d85e99aac7b1800fbd9ed24a66a108fe6ea5f49c
[gnulib.git] / ChangeLog
1 2012-01-12  Bruno Haible  <bruno@clisp.org>
2
3         random_r: Override incompatible API on AIX, OSF/1.
4         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5         Override the system function if REPLACE_RANDOM_R is 1.
6         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7         and OSF/1, set REPLACE_RANDOM_R.
8         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
10         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
11         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
12         * doc/glibc-functions/random_r.texi: Likewise.
13         * doc/glibc-functions/setstate_r.texi: Likewise.
14
15         random_r: Support for MSVC 9.
16         * lib/random_r.c: Include stdint.h, not inttypes.h.
17
18 2012-01-12  Eric Blake  <eblake@redhat.com>
19
20         inet_ntop: guard extra work by IF_LINT
21         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
22         better code generation when not checking for warnings.
23         Suggested by Paul Eggert and Jim Meyering.
24
25         strptime: fix regression on mingw
26         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27         Fix regression.  Reported by Bruno Haible.
28
29 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
30             Bruno Haible  <bruno@clisp.org>
31
32         copy-file: add error-code-returning variant.
33         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
34         (qcopy_file_preserving): New declaration.
35         * lib/copy-file.c (qcopy_file_preserving): Renamed from
36         copy_file_preserving. Change return type to 'int'. Don't emit an error
37         message here.
38         (copy_file_preserving): New function.
39         * tests/test-copy-file.c: Include <stdlib.h>.
40         (main): Test qcopy_file_preserving if the environment variable
41         NO_STDERR_OUTPUT is set.
42         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43         with NO_STDERR_OUTPUT
44         * tests/test-copy-file-2.sh: Likewise.
45
46 2012-01-10  Bruno Haible  <bruno@clisp.org>
47
48         copy-file: Use 'quote' module consistently.
49         * lib/copy-file.c (copy_file_preserving): Use quote().
50
51         copy-file: Refactor.
52         * lib/copy-file.c: Include quote.h.
53         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
54         message here.
55         * modules/copy-file (Depends-on): Add quote.
56
57         acl: Export qcopy_acl.
58         * lib/acl.h (qcopy_acl): New declaration.
59         * lib/copy-acl.c (qcopy_acl): Make non-static.
60
61         acl: Rename a local variable.
62         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
63
64         acl: Align return values of copy_acl and qcopy_acl.
65         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
66         maybe < -1.
67
68 2012-01-11  Eric Blake  <eblake@redhat.com>
69
70         strptime: silence gcc warnings
71         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
72         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
73         Reported by Daniel P. Berrange.
74
75         inet_ntop: silence gcc warning
76         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
77         Reported by Daniel P. Berrange.
78
79 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
80
81         getloadavg test: skip the test on GNU/Linux without /proc mounted
82         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
83         file.  When /proc is not mounted, it always fails with ENOENT.
84         * tests/test-getloadavg.c (main): Treat ENOENT return code from
85         getloadavg(3) the same way as ENOSYS and ENOTSUP.
86
87 2012-01-10  Bruno Haible  <bruno@clisp.org>
88
89         regex: Avoid link error on MSVC 9.
90         * modules/regex (Depends-on): Add wctype.
91
92 2012-01-10  Bruno Haible  <bruno@clisp.org>
93
94         doc: Mention --with-tests option.
95         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
96         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
97         --with-tests.
98         Reported by Reuben Thomas.
99
100 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
101
102         users.txt: order package names lexicographically.
103         * users.txt: Order package names lexicographically.
104
105 2012-01-10  Jim Meyering  <meyering@redhat.com>
106
107         maint.mk: fix description in comment
108         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
109
110         ignore-value: remove deprecated ignore_ptr function
111         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
112         * NEWS: Note this.
113
114 2012-01-09  Jim Meyering  <meyering@redhat.com>
115
116         test-init.sh: avoid a subshell
117         * tests/test-init.sh: Remove protective subshell.
118         Suggested by Bernhard Voelker.  While a subshell is normally
119         required to protect against older shells (Solaris, FreeBSD) that
120         warn about a missing program before performing redirection, the
121         shell-selection tests performed by init.sh probably exclude any
122         offending shell.
123
124 2012-01-08  Bruno Haible  <bruno@clisp.org>
125
126         setlocale tests: Avoid test failure on Solaris 11 2011-11.
127         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
128         variable.
129
130 2012-01-08  Bruno Haible  <bruno@clisp.org>
131
132         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
133         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
135         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
136         macro.
137         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
139         * lib/spawn_faction_addopen.c: Add workaround implementation if
140         HAVE_WORKING_POSIX_SPAWN.
141         * modules/spawn (Makefile): Substitute
142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
143         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
144         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
145         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
146         (Depends-on): Update conditions.
147         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
148         the Solaris 11 bug.
149
150 2012-01-08  Bruno Haible  <bruno@clisp.org>
151
152         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
153         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
154         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
155         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
156         macro.
157         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
158         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
159         * lib/spawn_faction_adddup2.c: Add workaround implementation if
160         HAVE_WORKING_POSIX_SPAWN.
161         * modules/spawn (Makefile): Substitute
162         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
163         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
164         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
165         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
166         (Depends-on): Update conditions.
167         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
168         the Solaris 11 bug.
169
170 2012-01-08  Bruno Haible  <bruno@clisp.org>
171
172         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
173         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
174         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
175         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
176         HAVE_WORKING_POSIX_SPAWN.
177         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
178         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
180         * lib/spawn_faction_addclose.c: Add workaround implementation if
181         HAVE_WORKING_POSIX_SPAWN.
182         * modules/spawn (Makefile): Substitute
183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
184         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
185         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
186         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
187         (Depends-on): Update conditions.
188         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
189         the Solaris 11 bug.
190
191 2012-01-08  Bruno Haible  <bruno@clisp.org>
192
193         doc: Update for Solaris 11 2011-11.
194         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
195         * m4/printf.m4: Update comments.
196
197 2012-01-08  Bruno Haible  <bruno@clisp.org>
198
199         mktime: Avoid compilation error on Solaris 11.
200         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
201
202 2012-01-08  Bruno Haible  <bruno@clisp.org>
203
204         doc: Small fix.
205         * doc/posix-headers/nl_types.texi: Correct platforms list.
206
207 2012-01-08  Simon Josefsson  <simon@josefsson.org>
208
209         Add lgpl-3.0 module.
210         * MODULES.html.sh (Support for building documentation): Add
211         lgpl-3.0.
212         * modules/lgpl-3.0: New file.
213
214 2012-01-08  Jim Meyering  <meyering@redhat.com>
215
216         select.c: indent with spaces, not TABs
217         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
218
219 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
220
221         quotearg: do not use grave accent for left quote
222         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
223         locale_quoting_style.
224         (quotearg_buffer_restyled): Fix example.
225         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
226
227 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
228
229         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
230         Most programs do not have translation catalogs for English and much
231         less separate catalogs for British and American English.  Drop the
232         suggestion to translators about these two, and provide it
233         automatically for Unicode locales.  Like most programs, even those
234         using American English, we use single quotation marks.  This conflicts
235         with the American typographic convention, but works better when you
236         cite the entire error message within double quotes.  It also tries not
237         to clash with established practice and with what non-gnulib programs
238         will usually do.
239         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
240         using an UTF-8 or GB-18030 locale.  The list of other locales with
241         quotes was provided by Bruno Haible.
242         (quotearg_buffer_restyled): Adjust instructions to translators.
243         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
244         text, since this would be wrong when using Unicode.
245         * modules/quotearg: Depend on c-strcaseeq.
246
247 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
248
249         quotearg: fix Wikipedia link
250         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
251
252 2012-01-07  Simon Josefsson  <simon@josefsson.org>
253
254         Fix for mingw with MSVC9.
255         * m4/ld-version-script.m4: Check that compiler rejects version
256         scripts with syntax errors.  Reported by Bruno Haible
257         <bruno@clisp.org>.
258
259 2012-01-06  Bruno Haible  <bruno@clisp.org>
260
261         Talk about "native Windows API", not "Woe32".
262         * lib/accept4.c: Update comments to mention native Windows.
263         * lib/execute.c: Likewise.
264         * lib/fatal-signal.c: Likewise.
265         * lib/localcharset.c: Likewise.
266         * lib/nanosleep.c: Likewise.
267         * lib/nl_langinfo.c: Likewise.
268         * lib/pclose.c: Likewise.
269         * lib/pipe-filter-gi.c: Likewise.
270         * lib/pipe-filter-ii.c: Likewise.
271         * lib/pipe.c: Likewise.
272         * lib/pipe2.c: Likewise.
273         * lib/popen.c: Likewise.
274         * lib/progreloc.c: Likewise.
275         * lib/relocatable.c: Likewise.
276         * lib/sigaction.c: Likewise.
277         * lib/sigprocmask.c: Likewise.
278         * lib/spawn-pipe.h: Likewise.
279         * lib/spawn-pipe.c: Likewise.
280         * lib/spawni.c: Likewise.
281         * lib/stat-time.h: Likewise.
282         * lib/w32spawn.h: Likewise.
283         * tests/test-isatty.c: Likewise.
284         * lib/config.charset: More comments.
285         * doc/gnulib-intro.texi: Mention native Windows.
286         * doc/posix-functions/_Exit_C99.texi: Likewise.
287         * doc/posix-headers/fcntl.texi: Likewise.
288
289 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
290
291         argp: Avoid crash if translator uses % characters in a translation.
292         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
293         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
294
295 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
296
297         doc: C11 and C++11 are now official
298         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
299         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
300         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
301         * modules/stdalign:
302         Replace references to draft C1X to C11, and to draft C++0X to C++11.
303
304 2012-01-06  Bruno Haible  <bruno@clisp.org>
305
306         uc-is-grapheme-break tests: Tweak.
307         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
308         message.
309
310 2012-01-06  Bruno Haible  <bruno@clisp.org>
311
312         test-init.sh: correct the test for diff -u
313         * tests/test-init.sh: Also redirect stdout to /dev/null.
314
315 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
316
317         Use ', not `, for quoting output.
318         * build-aux/announce-gen (usage, sizes, print_news_deltas)
319         (print_changelog_deltas, get_tool_versions, main program):
320         * build-aux/git-version-gen:
321         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
322         * build-aux/move-if-change (help):
323         * build-aux/useless-if-before-free (usage, main program):
324         * check-module (parse_module_file, usage)
325         (find_included_lib_files, check_module):
326         * lib/argmatch.c (main) [TEST]:
327         * lib/argp-help.c (_help):
328         * lib/getopt1.c (main) [TEST]:
329         * lib/git-merge-changelog.c (usage):
330         * lib/xstrtol-error.c (xstrtol_error):
331         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
332         * m4/argz.m4 (gl_FUNC_ARGZ):
333         * m4/bison.m4 (gl_BISON):
334         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
335         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
336         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
337         * m4/fpending.m4 (gl_PREREQ_FPENDING):
338         * m4/gc-random.m4 (gl_GC_RANDOM):
339         * m4/intl.m4 (gt_CHECK_DECL):
340         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
341         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
342         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
343         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
344         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
345         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
346         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
347         * tests/test-dirname.c (main):
348         * tests/test-getpass.c (main):
349         * tests/test-iconvme.c (main):
350         * tests/test-parse-datetime.c (LOG):
351         * tests/test-xstrtoimax.sh:
352         * tests/test-xstrtol.sh:
353         * tests/test-xstrtoll.sh:
354         * tests/test-xstrtoumax.sh:
355         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
356         * top/GNUmakefile (abort-due-to-no-makefile):
357         Quote 'like this', not `like this', as per the recent change to
358         the GNU coding standards.
359
360 2012-01-05  Bruno Haible  <bruno@clisp.org>
361
362         strtoimax: Don't force a replacement on systems where intmax_t is int.
363         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
364         'intmax_t' is not larger than 'int'.
365         Reported by Pádraig Brady <P@draigBrady.com>.
366
367 2012-01-05  Bruno Haible  <bruno@clisp.org>
368
369         doc: Mention NetBSD bugs.
370         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
371         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
372
373 2012-01-05  Bruno Haible  <bruno@clisp.org>
374
375         strtoumax tests: Enhance tests.
376         * tests/test-strtoumax.c (main): Add tests for large values.
377
378 2012-01-05  Bruno Haible  <bruno@clisp.org>
379
380         strtoimax: Work around AIX 5.1 bug.
381         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
382         definition.
383         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
384         Set HAVE_STRTOIMAX.
385         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
386         REPLACE_STRTOIMAX.
387         * modules/inttypes-incomplete (Makefile.am): Substitute
388         REPLACE_STRTOIMAX.
389         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
390         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
391         (Depends-on): Update conditions.
392         * tests/test-strtoimax.c (main): Add tests for large values.
393         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
394
395 2012-01-05  Bruno Haible  <bruno@clisp.org>
396
397         inttypes: Modernize.
398         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
399         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
400         (Makefile.am): Update inttypes.h rule.
401
402 2012-01-05  Jim Meyering  <meyering@redhat.com>
403
404         init.sh: don't waste a subshell just to redirect stderr
405         * tests/init.sh: In testing for diff -u and diff -c, use a
406         stderr-redirecting exec inside `...` rather than a subshell.
407
408         test-init.sh: avoid failure on HP-UX 11.00
409         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
410         resolves to diff -c or cmp.  Reported by Bruno Haible.
411
412 2012-01-05  Bruno Haible  <bruno@clisp.org>
413
414         Tests for module 'strtoull'.
415         * modules/strtoull-tests: New file.
416         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
417
418 2012-01-05  Bruno Haible  <bruno@clisp.org>
419
420         Tests for module 'strtoll'.
421         * modules/strtoll-tests: New file.
422         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
423
424 2012-01-05  Bruno Haible  <bruno@clisp.org>
425
426         Tests for module 'strtoul'.
427         * modules/strtoul-tests: New file.
428         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
429
430 2012-01-05  Bruno Haible  <bruno@clisp.org>
431
432         Tests for module 'strtol'.
433         * modules/strtol-tests: New file.
434         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
435
436 2012-01-04  Jim Meyering  <meyering@redhat.com>
437
438         test-init.sh: accommodate Solaris 5.10's different diff -u output
439         * tests/test-init.sh: Also exempt @@ lines from the comparison
440         of diff output, since Solaris 5.10 and GNU diff formats differ.
441         Reported by Stefano Lattarini.
442
443 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
444
445         test-posixtm: don't assume signed integer wraparound
446         * tests/test-posixtm.c (main): Don't assume wraparound semantics
447         after signed integer overflow.  Inspired by (though it may not
448         fix) Bruno Haible's bug report in
449         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
450
451         Spell out "Windows 9x" and "Windows XP".
452         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
453         "Windows 9x" and "WinXP" with "Windows XP".
454
455 2012-01-04  Jim Meyering  <meyering@redhat.com>
456
457         test-vc-list-files-cvs.sh: remove obsolete comment
458         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
459         double exit.  Now that's all encapsulated via skip_ and Exit.
460
461 2012-01-04  Bruno Haible  <bruno@clisp.org>
462
463         Talk about "native Windows API", not "Win32".
464         * lib/classpath.c: Update comments to mention native Windows.
465         * lib/csharpexec.c: Likewise.
466         * lib/dup2.c: Likewise.
467         * lib/error.c: Likewise.
468         * lib/fcntl.c: Likewise.
469         * lib/filename.h: Likewise.
470         * lib/findprog.c: Likewise.
471         * lib/get-rusage-as.c: Likewise.
472         * lib/get-rusage-data.c: Likewise.
473         * lib/getpagesize.c: Likewise.
474         * lib/javaexec.c: Likewise.
475         * lib/msvc-inval.c: Likewise.
476         * lib/msvc-nothrow.c: Likewise.
477         * lib/nanosleep.c: Likewise.
478         * lib/nonblocking.c: Likewise.
479         * lib/printf-parse.c: Likewise.
480         * lib/setlocale.c: Likewise.
481         * lib/sigaction.c: Likewise.
482         * lib/strerror_r.c: Likewise.
483         * lib/tmpdir.c: Likewise.
484         * lib/vasnprintf.c: Likewise.
485         * lib/w32spawn.h: Likewise.
486         * lib/waitpid.c: Likewise.
487         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
488         * m4/locale-ar.m4: Likewise.
489         * m4/locale-fr.m4: Likewise.
490         * m4/locale-ja.m4: Likewise.
491         * m4/locale-tr.m4: Likewise.
492         * m4/locale-zh.m4: Likewise.
493         * m4/printf.m4: Likewise.
494         * tests/test-cloexec.c: Likewise.
495         * tests/test-copy-acl.sh: Likewise.
496         * tests/test-copy-file.sh: Likewise.
497         * tests/test-file-has-acl.sh: Likewise.
498         * tests/test-set-mode-acl.sh: Likewise.
499         * tests/test-dup-safer.c: Likewise.
500         * tests/test-dup2.c: Likewise.
501         * tests/test-dup3.c: Likewise.
502         * tests/test-fcntl.c: Likewise.
503         * tests/test-nonblocking-pipe.h: Likewise.
504         * tests/test-nonblocking-socket.h: Likewise.
505         * tests/test-pipe.c: Likewise.
506         * tests/test-pipe2.c: Likewise.
507         * tests/test-spawn-pipe-child.c: Likewise.
508         * doc/acl-resources.txt: Likewise.
509         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
510         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
511         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
512         * lib/localcharset.c: Update comments to mention native Windows.
513         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
514         * lib/localename.c: Likewise.
515         * lib/progreloc.c: Likewise.
516         * lib/relocatable.c: Likewise.
517         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
518         (windows_compute_revents): Renamed from win32_compute_revents.
519         (windows_compute_revents_socket): Renamed from
520         win32_compute_revents_socket.
521         * lib/select.c: Update comments to mention native Windows.
522         (windows_poll_handle): Renamed from win32_poll_handle.
523         * m4/threadlib.m4: Update comments to mention native Windows.
524         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
525         --enable-threads=windows instead of --enable-threads=win32. Set
526         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
527         * lib/glthread/lock.h: Update comments to mention native Windows.
528         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
529         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
530         USE_WIN32_THREADS.
531         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
532         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
533         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
534         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
535         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
536         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
537         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
538         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
539         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
540         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
541         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
542         * tests/test-tls.c: Likewise.
543         Rationale:
544         Microsoft renamed the "Win32 API" to "Windows API", as it is available
545         on both 32-bit and 64-bit Windows systems.
546         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
547         line of distinction is between "native Windows" on one side and Unix/
548         POSIX systems on the other side. More details in
549         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
550         Suggested by Paul Eggert.
551
552 2012-01-03  Bruno Haible  <bruno@clisp.org>
553
554         isatty: Support for MSVC 9.
555         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
556         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
557         (_isatty_nothrow): New function.
558         (isatty): Use it instead of _isatty.
559         (IsConsoleHandle): Add comment, from Paolo Bonzini.
560         * lib/poll.c (IsConsoleHandle): Likewise.
561         * lib/select.c (IsConsoleHandle): Likewise.
562         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
563         (gl_PREREQ_ISATTY): New macro.
564         * modules/isatty (Depends-on): Add msvc-inval.
565         (configure.ac): Invoke gl_PREREQ_ISATTY.
566
567 2012-01-03  Jim Meyering  <meyering@redhat.com>
568
569         maint.mk: remove temporary transition aid from over 1.5 years ago
570         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
571         purpose was to aid in the transition (avoiding silent malfunction)
572         from that old name to the new _sc_search_regexp.  This shim was
573         added by commit 219c504b.
574
575         init.sh: do not try to accommodate compare arguments starting with "-"
576         * tests/init.sh (compare_dev_null_): Do not try to accommodate
577         compare arguments that start with "-".  Besides, we do not worry
578         about this when invoking diff or cmp; why start now with sed?
579         Using "--" to separate options from argument would trigger sed
580         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
581         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
582
583 2012-01-02  Bruno Haible  <bruno@clisp.org>
584
585         Enhance tests for module 'isatty'.
586         * modules/isatty-tests (Depends-on): Add pipe-posix.
587         * tests/test-isatty.c: Include <fcntl.h>.
588         (DEV_NULL): New macro.
589         (main): Test the resut of isatty() also on regular files, pipes, and
590         /dev/null.
591
592         New module 'isatty'.
593         * lib/unistd.in.h (isatty): New declaration.
594         * lib/isatty.c: New file, based on an idea of
595         Bastien Roucariès <roucaries.bastien@gmail.com>.
596         * m4/isatty.m4: New file.
597         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
598         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
599         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
600         REPLACE_ISATTY.
601         * modules/isatty: New file.
602         * doc/posix-functions/isatty.texi: Mention the new module.
603         Suggested by Paolo Bonzini.
604
605 2012-01-02  Bruno Haible  <bruno@clisp.org>
606
607         canonicalize: Tweak 2011-12-29 commit.
608         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
609         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
610
611 2012-01-02  Jim Meyering  <meyering@redhat.com>
612
613         gitlog-to-changelog: describe input syntax in --help output
614         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
615
616         gitlog-to-changelog: fix typo in --help: show backslash before email @
617         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
618         in sources, but not in actual output.
619
620 2011-12-30  Jim Meyering  <meyering@redhat.com>
621
622         gitlog-to-changelog: don't malfunction when name contains %-directive
623         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
624         in a name string cause trouble.  E.g., with a user name of "%s",
625         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
626
627 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
628
629         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
630         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
631         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
632         the "  (tiny change)" notation that is appended to the standard
633         ChangeLog "date  name  email" header line.
634
635 2012-01-01  Jim Meyering  <meyering@redhat.com>
636
637         test-framework-sh: init.sh: fix "make dist" failure
638         When using gnulib-tool's --with-tests option and any module that
639         depends on test-framework-sh, "make dist" would fail due to the
640         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
641         in the gltests directory, and not in the gllib/ directory.
642         One way to work around that is to move the EXTRA_DIST += init.sh
643         from the primary module to the -tests one:
644         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
645         * modules/test-framework-sh (Makefile.am): ...not here.
646         Reported by Tom G. Christensen in
647         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
648
649         version-etc: update copyright year reported by --version
650         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
651
652 2011-12-31  Pádraig Brady  <P@draigBrady.com>
653
654         canonicalize: only stat() if required
655         * lib/canonicalize.c (canonicalize_filename_mode):
656         Avoid calling l?stat() when both CAN_MISSING,
657         and CAN_NOLINKS are set, as we neither need
658         to resolve symlinks or test component existence.
659
660 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
661
662         doc: cover st_ino issues once; add OpenVMS etc.
663         * doc/posix-functions/stat.texi (stat):
664         * doc/posix-functions/lstat.texi (lstat):
665         * doc/posix-functions/fstatat.texi (fstatat):
666         * doc/posix-functions/fstat.texi (fstat):
667         Move general 'struct stat' stuff to sys_stat.texi,
668         leaving behind a pointer.
669         * doc/posix-headers/sys_stat.texi (sys/stat.h):
670         Merge duplicate info about 'struct stat' problems into here.
671         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
672         and suggest partial workarounds.
673
674         same-inode: port to OpenVMS
675         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
676         three st_ino values.
677
678 2011-12-30  Pádraig Brady  <P@draigBrady.com>
679
680         canonicalize: fix references to stat() and lstat()
681         * lib/canonicalize.c (canonicalize_filename_mode):
682         Ensure references always resolve to a replacement
683         function if required (even via a macro).
684
685 2011-12-30  Jim Meyering  <meyering@redhat.com>
686
687         gitlog-to-changelog: remove a little duplication
688         * build-aux/gitlog-to-changelog (main): Grep @lines once,
689         rather than twice.
690
691 2011-12-29  Pádraig Brady  <P@draigBrady.com>
692
693         canonicalize: add support for not resolving symlinks
694         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
695         indicate we don't want to follow symlinks.  Also
696         provide CAN_MODE_MASK to aid setting these existing
697         mutually exclusive values.
698         * lib/canonicalize.c (canonicalize_filename_mode):
699         Extract the flags from can_mode parameter, which
700         are currently just used to select between stat()
701         and lstat().  Also ensure that mutually exclusive
702         values are flagged immediately as invalid.
703         * tests/test-canonicalize.c: Verify symlinks are
704         not followed, and that invalid flag combinations
705         are diagnosed.
706
707 2011-12-25  Jim Meyering  <meyering@redhat.com>
708
709         gitlog-to-changelog: do not clump multi-paragraph entries
710         Identical header lines (date,name,email+coauthors) are suppressed,
711         thus putting all entries with those same characteristics under
712         a single header.  However, when a log entry consists of two or
713         more paragraphs, it may not be clear where it starts and ends.
714         This change makes it so that such an entry is always separated
715         from others by a header line, even when that header would
716         otherwise be suppressed.
717         * build-aux/gitlog-to-changelog: Implement the above.
718         Inspired by a related request from Stefano Lattarini in
719         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
720
721 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
722
723         announce-gen: fix `cmd' typo in diagnostic
724         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
725         diagnostic: a missing '$' meant that the command was not output.
726
727 2011-12-23  Jim Meyering  <meyering@redhat.com>
728
729         test-framework-sh: distribute init.sh
730         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
731         Otherwise, "make -C gnulib-tests check" (at least in grep) would
732         fail due to the lack of init.sh.
733
734         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
735         * modules/atexit-tests: Rather than listing tests/init.sh,
736         now that there's a module for it, simply depend on that new module.
737         * modules/closein-tests: Likewise.
738         * modules/exclude-tests: Likewise.
739         * modules/getcwd-tests: Likewise.
740         * modules/perror-tests: Likewise.
741         * modules/pread-tests: Likewise.
742         * modules/pwrite-tests: Likewise.
743         * modules/vc-list-files-tests: Likewise.
744         * modules/verify-tests: Likewise.
745         * modules/xalloc-die-tests: Likewise.
746         * modules/xstrtoimax-tests: Likewise.
747         * modules/xstrtol-tests: Likewise.
748         * modules/xstrtoll-tests: Likewise.
749         * modules/xstrtoumax-tests: Likewise.
750         * modules/yesno-tests: Likewise.
751
752 2011-12-22  Jim Meyering  <meyering@redhat.com>
753
754         test-framework-sh: add minimal tests of init.sh's compare function
755         * modules/test-framework-sh-tests: New file.
756         * tests/test-init.sh: New file.
757
758         test-framework-sh: new module
759         * modules/test-framework-sh: New file.
760         * MODULES.html.sh (Support for maintaining and releasing projects):
761         List it.
762
763         init.sh: do not emit simulated diff output to stderr
764         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
765
766 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
767
768         .gitignore: ignore gnulib.dvi and regex.info
769         * doc/.gitignore:add gnulib.dvi and regex.info
770
771 2011-12-22  Jim Meyering  <meyering@redhat.com>
772
773         init.sh: correct previous change
774         * tests/init.sh (compare): My previous change was wrong.
775         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
776
777         init.sh: avoid unwarranted test failure when using "set -e"
778         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
779         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
780         a use like "compare exp out" would get evoke an unconditional failure.
781
782 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
783
784         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
785         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
786         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
787         autoreconf that did not.
788         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
789         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
790
791 2011-12-17  Jim Meyering  <meyering@redhat.com>
792
793         bootstrap: remove some now-unneeded code
794         This script arose back when gnulib-tool was young.
795         Since then, it has seen improvements that render much of this
796         script unnecessary.  In particular, it can now make symlinks
797         to the files it uses.  Also, I no longer see as much value in
798         marking files as read-only via comments.
799         If you relied on the symlink-creation feature of the preceding
800         version of this script, you can get most of that functionality
801         by adding the --symlink option to the definition of
802         gnulib_tool_option_extras in your bootstrap.conf file.
803         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
804         Run autopoint and libtoolize *before* gnulib-tool.
805         After it, run an abbreviated autoreconf, rather than a loop around
806         all tools.
807         (slirp, bt_mark_as_generated): Remove functions.
808
809 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
810
811         ftoastr: fix typo
812         * lib/ftoastr.h: Fix misspelling in comment.
813
814 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
815
816         * top/README-release: fix punctuation.
817
818 2011-12-17  Jim Meyering  <meyering@redhat.com>
819
820         bootstrap: correct the recent buildreq change
821         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
822         had no effect.
823         * build-aux/bootstrap (buildreq): Bracket each search term with
824         "*...*", so that the shell "case" statement works as intended.
825         Add comments.
826
827 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
828
829         build: let bootstrap resort to wget when downloading .po files
830         * build-aux/bootstrap (download_po_files): Fallback to wget when
831         downloading the .po files via rsync fails.  This is necessary to
832         bootstrap from behind a strict firewall.
833
834 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
835
836         stdint: don't assume C++11 when compiling with g++
837         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
839         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
840         work also in C++ before C++11, as that improperly inhibits
841         generating a substitute stdint.h for that case.
842
843 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
844
845         alloca: protect comment from gnulib-tool
846         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
847         that gnulib-tool doesn't think it's a license, and munge it to
848         say "GCC version 3".
849
850 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
851
852         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
853         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
854         $(abs_top_builddir) instead of $(top_builddir).
855
856 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
857
858         strftime-tests: also test nanoseconds
859         * tests/test-strftime.c (T): Add a test of %N.
860
861 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
862
863         inttypes, stdint: add C++11 support
864         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
865         when including inttypes.h and stdint.h.  Support this change to
866         the standard.
867         * doc/posix-headers/inttypes.texi (inttypes.h):
868         * doc/posix-headers/stdint.texi (stdint.h): Document this.
869         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
870         Define if not defined already, for the benefit of pre-C++11 hosts.
871         Define the standard format macros (e.g., PRId8) always.
872         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
873         Likewise, if __cpluspus.  Define the standard constant and limit
874         macros (e.g., INT8_C, INT8_MAX) always.
875         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
876         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
877         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
878         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
879         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
880         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
881         Likewise.
882
883 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
884
885         nonblocking tests: Fix test failure on Linux/PPC.
886         Suggested by Prerna Saxena in
887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
888         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
889         Set to 1100000.
890
891 2011-12-12  Jim Meyering  <meyering@redhat.com>
892
893         argmatch: don't hard-code `' when listing valid option arguments
894         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
895         use the quote function to add quotes.  Use fputs rather than
896         fprintf for the format string with no format directive.
897
898 2011-12-07  Eric Blake  <eblake@redhat.com>
899
900         bootstrap: detect tools required by gnulib-tool
901         * build-aux/bootstrap (buildreq): Provide minimum implicit
902         dependencies.
903         * DEPENDENCIES: Mention patch as a prereq.
904
905 2011-12-04  Bruno Haible  <bruno@clisp.org>
906
907         sethostname: Port to Windows platforms.
908         * lib/sethostname.c: Provide an alternate implementation for Windows
909         platforms.
910         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
911         (main): Skip the test if sethostname() fails with EPERM. On Windows
912         platforms, don't check the result of gethostname().
913
914 2011-12-04  Bruno Haible  <bruno@clisp.org>
915             Jim Meyering  <meyering@redhat.com>
916
917         tests: Avoid spurious error message on platforms without mktemp program.
918         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
919
920 2011-12-04  Bruno Haible  <bruno@clisp.org>
921
922         sethostname: Fix documentation.
923         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
924         "not fixed" section.
925
926 2011-12-03  Bruno Haible  <bruno@clisp.org>
927
928         gnulib-tool: Verify that the License field is present and non-empty.
929         * gnulib-tool (func_get_license_raw): New function, extracted from
930         func_get_license.
931         (func_get_license): Use it. Warn if the module is not a test module and
932         has no license.
933         Suggested by Jim Meyering.
934
935 2011-12-03  Bruno Haible  <bruno@clisp.org>
936
937         sethostname tests: Fix link error on mingw.
938         * tests/test-sethostname1.c: New file, extracted from
939         tests/test-sethostname.c.
940         * tests/test-sethostname2.c: New file, extracted from
941         tests/test-sethostname.c.
942         * tests/test-sethostname.c: Remove file.
943         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
944         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
945         (Depends-on): Add gethostname.
946         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
947         Link the latter with $(GETHOSTNAME_LIB).
948
949         sethostname tests: Fix compilation error on mingw.
950         * tests/test-sethostname.c: Don't include <sys/types.h>.
951         (geteuid): Use a dummy value without uid_t.
952         * modules/sethostname-tests (Depends-on): Remove sys_types.
953
954         sethostname tests: Avoid a gcc warning.
955         * tests/test-sethostname.c (main): Remove an unused variable.
956
957         Tweak last commit.
958         * modules/sethostname-tests (Files): Sort by decreasing importance.
959         (configure.ac): Check for geteuid.
960         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
961         the test when there's nothing to test. Drop an unnecessary cast.
962         Improve an error message. Verify that the final sethostname() call
963         succeeds.
964
965 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
966
967         Add a test suite for the sethostname module.
968         * modules/sethostname-tests: New file.  A test program
969         for the sethostname module.
970         * tests/test-sethostname.c: Likewise.
971
972 2011-12-03  Bruno Haible  <bruno@clisp.org>
973
974         Tweak last commit.
975         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
976         Fix preprocessor directives indentation. Fix typos.
977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
978         * modules/unistd (Makefile): Likewise.
979
980 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
981
982         Integrate the sethostname module into unistd.
983         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
984         into the unistd.h header.
985         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
986         preprocessor directives.
987         * modules/unistd: Setup the Makefile substitutions of the
988         SETHOSTNAME preprocessor directives.
989
990 2011-12-03  Bruno Haible  <bruno@clisp.org>
991
992         Tweak last commit.
993         * lib/sethostname.c: Don't include <string.h>.
994         (sethostname): No need to copy the argument string to the stack. Don't
995         call clearerr. Preserve errno when fprintf failed.
996         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
997         Don't invoke AC_REPLACE_FUNCS.
998         * modules/sethostname (Link): Remove empty section.
999         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1000         failure problem.
1001
1002 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1003
1004         New module 'sethostname'.
1005         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1006         for systems that lack it.
1007         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1008         sethostname declaration and function.
1009         * modules/sethostname: New file.  Define the sethostname module.
1010
1011 2011-12-03  Bruno Haible  <bruno@clisp.org>
1012
1013         Tweak last commit.
1014         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1015
1016 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1017
1018         Split the HOST_NAME_MAX detection into a separate m4 macro.
1019         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1020         macro so it can be used by the pending sethostname module.
1021
1022 2011-12-03  Bruno Haible  <bruno@clisp.org>
1023
1024         Fix module descriptions syntax.
1025         * modules/argv-iter (License): Fix syntax.
1026         * modules/di-set (License): Likewise.
1027         * modules/ino-map (License): Likewise.
1028         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1029
1030 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1031
1032         stdalign: port to Clang 3.0
1033         Problem reported by Simon Josefsson in
1034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1035         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1036         which has <stdalign.h> but which does not define alignof.
1037         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1038
1039 2011-12-01  Eric Blake  <eblake@redhat.com>
1040
1041         mktempd: silence dd usage
1042         * build-aux/mktempd (rand_bytes): Silence dd.
1043
1044 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1045
1046         manywarnings: Don't mention gcc version in docstring.
1047         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1048         Jim Meyering <meyering@redhat.com>.
1049
1050 2011-11-30  Jim Meyering  <meyering@redhat.com>
1051
1052         hash: mark a few floating point constants with "f" suffix
1053         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1054         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1055         floating point constants with "f", since they're destined to be
1056         saved/used as "float"s.
1057
1058 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1059
1060         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1061         * tests/test-float.c (test_long_double): Correct and re-enable the
1062         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1063
1064 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1065
1066         Avoid subtracting two pointers that don't point into the same block.
1067         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1068         only pointers into the same memory block are subtracted. We cannot
1069         assume that sizeof (ptrdiff_t) == sizeof (void *).
1070
1071 2011-11-29  Eric Blake  <eblake@redhat.com>
1072
1073         maint.mk: add syntax check for use of compare from init.sh
1074         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1075         moved here from coreutils.
1076
1077         manywarnings: drop -Wunsuffixed-float-constants
1078         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1079         '1.0D', which is the only way to silence this warning for 'double'.
1080
1081 2011-11-29  Jim Meyering  <meyering@redhat.com>
1082
1083         hash: mark compute_bucket_size with the pure attribute
1084         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1085
1086         quotearg, propername: correct pragma guard expression
1087         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1088         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1089
1090 2011-11-28  Jim Meyering  <meyering@redhat.com>
1091
1092         propername: do not mark proper_name with the const attribute
1093         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1094         since it examines data pointed to by its parameter.
1095         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1096         the suggestion from -Wsuggest-attribute=const.
1097
1098         propername: mark one more function as const
1099         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1100
1101 2011-11-27  Jim Meyering  <meyering@redhat.com>
1102
1103         mark functions with const and pure attributes
1104
1105         Mark functions per suggestions from gcc-4.6 when using these options:
1106         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1107         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1108         Follow these guidelines: when possible, apply the attribute to
1109         an extern declaration, not to its definition.  Apply it to the
1110         definition only when the definition is static.
1111         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1112         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1113         * lib/base64.h (isbase64): Likewise.
1114         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1115         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1116         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1117         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1118         (c_tolower, c_toupper): Likewise.
1119         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1120         * lib/chdir-long.c (find_non_slash): Likewise.
1121         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1122         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1123         * lib/file-type.h (file_type): Likewise.
1124         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1125         * lib/filevercmp.c (verrevcmp): Likewise.
1126         * lib/freadahead.h (freadahead): Likewise.
1127         * lib/fts.c (fts_maxarglen): Likewise.
1128         * lib/hash-pjw.h (hash_pjw): Likewise.
1129         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1130         * lib/hash.c (is_prime, next_prime): Likewise.
1131         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1132         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1133         (hash_table_ok, hash_get_first, hash_string): Likewise.
1134         (compute_bucket_size): Likewise.
1135         * lib/i-ring.h (i_ring_empty): Likewise.
1136         * lib/isnan.c (isnanl): Likewise.
1137         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1138         * lib/memcasecmp.h (memcasecmp): Likewise.
1139         * lib/memchr2.h (memchr2): Likewise.
1140         * lib/memcmp2.h (memcmp2): Likewise.
1141         * lib/parse-datetime.y (lookup_zone): Likewise.
1142         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1143         [!WINDOWS_SOCKETS]: Likewise.
1144         * lib/strnlen1.h (strnlen1): Likewise.
1145         * lib/uniwidth.in.h (uc_width): Likewise.
1146         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1147         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1148         (quoting_options_from_style): Add a comment.
1149         * lib/propername.h (proper_name): Add a comment.
1150
1151 2011-11-27  Bruno Haible  <bruno@clisp.org>
1152
1153         Remove unused macros from !_LIBC code in glibc-borrowed files.
1154         * lib/fnmatch.c (STRCOLL): Remove macro.
1155         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1156         * lib/glob.c (__stat, __readdir64): Remove macros.
1157         * lib/tempname.c (__open64, __xstat64): Remove macros.
1158         Suggested by Paul Eggert.
1159
1160 2011-11-27  Bruno Haible  <bruno@clisp.org>
1161
1162         getcwd: Fix link error on MSVC 9.
1163         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1164
1165 2011-11-27  Bruno Haible  <bruno@clisp.org>
1166
1167         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1168         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1169         HAVE_OPENDIR is 0.
1170         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1171         HAVE_CLOSEDIR is 0.
1172         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1173         is 0.
1174         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1175
1176 2011-11-27  Bruno Haible  <bruno@clisp.org>
1177
1178         getcwd: Fix bug from 2011-08-17.
1179         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1180         platforms that need it.
1181         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1182         code of 4 to be a failure, not a success. This ensures that
1183         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1184
1185 2011-11-27  Bruno Haible  <bruno@clisp.org>
1186
1187         binary-io tests: Avoid test failure on mingw when libtool is used.
1188         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1189         Don't verify the size of t-bin-out1.tmp here.
1190         * tests/test-binary-io.sh: Verify it here.
1191         Reported by Simon Josefsson.
1192
1193 2011-11-26  Bruno Haible  <bruno@clisp.org>
1194
1195         Fix conflict between two instantiations of module 'unistd'.
1196         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1197         ${include_guard_prefix} also in the autoconf snippet.
1198         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1200         GNULIB_UNISTD_H_GETOPT.
1201         * modules/getopt-posix (configure.ac): Set the
1202         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1203         * modules/getopt-gnu (configure.ac): Likewise.
1204         * modules/unistd (Makefile.am): Change the substitution value of
1205         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1206         Reported by Simon Josefsson.
1207
1208 2011-11-25  Bruno Haible  <bruno@clisp.org>
1209
1210         pagealign_alloc: Doc and comments.
1211         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1212         module.
1213         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1214
1215 2011-11-25  Jim Meyering  <meyering@redhat.com>
1216
1217         test-update-copyright.sh: avoid false-positive failure
1218         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1219         around false positive failure on Cygwin/Windows.  The latter was
1220         matching erroneously-created files with names like
1221         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1222
1223 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1224
1225         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1226         * m4/valgrind-tests.m4: Check that the parameters that will be
1227         used works, not just a subset of them.  Reported by Bruno Haible
1228         <bruno@clisp.org>.
1229
1230 2011-11-24  Jim Meyering  <meyering@redhat.com>
1231
1232         test-stdalign.c: comment out long double tests
1233         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1234         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1235         error: '_Alignas' specifiers cannot reduce alignment of \
1236         'static_longdouble_alignas'.
1237
1238 2011-11-22  Jim Meyering  <meyering@redhat.com>
1239
1240         init.sh: make "compare /dev/null FILE" output more readable
1241         * tests/init.sh (compare_): Document the preferred order of arguments.
1242         (emit_diff_u_header_): New function.
1243         (compare_dev_null_): Emit a simulated diff, rather than just the
1244         contents of the unexpected file.  Suggestion from Bruno Haible.
1245
1246 2011-11-21  Jim Meyering  <meyering@redhat.com>
1247             Eric Blake  <eblake@redhat.com>
1248
1249         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1250         * tests/init.sh: Make our compare function slightly more portable.
1251         Reported by Bruno Haible in
1252         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1253
1254 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1255
1256         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1257         before using it, in code that ends up in config.h.
1258
1259 2011-11-20  Bruno Haible  <bruno@clisp.org>
1260
1261         getcwd: Work around getcwd bug on AIX 5..7.
1262         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1263         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1264         Use a different value for gl_cv_func_getcwd_path_max. Move the
1265         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1266         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1267         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1268         Define HAVE_MINIMALLY_WORKING_GETCWD.
1269         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1270         where it is not even minimally working, that is, on AIX.
1271         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1272         m4/getcwd-path-max.m4.
1273         (main): Update exit code computation.
1274         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1275         getcwd does not handle long file names.
1276
1277 2011-11-20  Bruno Haible  <bruno@clisp.org>
1278
1279         getcwd: Fix bug from 2009-09-10.
1280         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1281         like "no".
1282
1283 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1284
1285         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1286
1287 2011-11-20  Bruno Haible  <bruno@clisp.org>
1288
1289         fma tests: Avoid shadowing local variables.
1290         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1291         expected.
1292
1293 2011-11-20  Bruno Haible  <bruno@clisp.org>
1294
1295         copysignf tests: Fix.
1296         * tests/test-copysignf.c: Fix signature check.
1297
1298 2011-11-20  Bruno Haible  <bruno@clisp.org>
1299
1300         fma: Remove unused code.
1301         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1302         unused macros.
1303
1304 2011-11-20  Bruno Haible  <bruno@clisp.org>
1305
1306         sethostname: Fix doc about AIX.
1307         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1308         sethostname; it has it.
1309
1310         sethostname: Mention more portability problems.
1311         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1312         problem.
1313         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1314
1315 2011-11-19  Bruno Haible  <bruno@clisp.org>
1316
1317         Depend on module fcntl-h when AT_FDCWD is used.
1318         * modules/utimens (Depends-on): Add fcntl-h.
1319         * modules/areadlinkat (Depends-on): Likewise.
1320         * modules/areadlinkat-with-size (Depends-on): Likewise.
1321         * modules/faccessat (Depends-on): Likewise.
1322         * modules/fchmodat (Depends-on): Likewise.
1323         * modules/fchownat (Depends-on): Likewise.
1324         * modules/getcwd (Depends-on): Likewise.
1325         * modules/mkdirat (Depends-on): Likewise.
1326         * modules/mkfifoat (Depends-on): Likewise.
1327         * modules/readlinkat (Depends-on): Likewise.
1328         * modules/symlinkat (Depends-on): Likewise.
1329         * modules/dup2-tests (Depends-on): Likewise.
1330         * modules/fdutimensat-tests (Depends-on): Likewise.
1331         * modules/futimens-tests (Depends-on): Likewise.
1332
1333 2011-11-19  Bruno Haible  <bruno@clisp.org>
1334
1335         euidaccess: Update a comment.
1336         * lib/euidaccess.c: Update comment about platforms with faccessat.
1337
1338 2011-11-19  Bruno Haible  <bruno@clisp.org>
1339
1340         openat: Fix file list.
1341         * modules/openat (Files): Remove lib/at-func.c.
1342
1343 2011-11-19  Bruno Haible  <bruno@clisp.org>
1344
1345         fstatat: Simplify.
1346         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1347         gnulib should define rpl_fstatat, there is a
1348         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1349
1350 2011-11-19  Bruno Haible  <bruno@clisp.org>
1351
1352         Ensure 'inline' can be used in tests/test-utimens-common.h.
1353         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1354         * modules/futimens-tests (configure.ac): Likewise.
1355         * modules/utimens-tests (configure.ac): Likewise.
1356         * modules/utimensat-tests (configure.ac): Likewise.
1357
1358 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1359
1360         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1361         not hash_insert0.
1362         (hash_insert_if_absent): Doc fix.
1363
1364 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1365
1366         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1367
1368 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1369
1370         test-getcwd: disambiguate exit status
1371         * tests/test-getcwd.c (test_long_name): Return 0..7.
1372         (main): Exit with an unambiguous exit status.  The old
1373         code yielded a mysterious mixture of two failure codes.
1374
1375         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1376         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1377         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1378         rpl_fstatat or fstatat.  This should fix the other problem
1379         reported by Kai Habel in
1380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1381         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1383         and I reproduced it on a Solaris 8 host we still have in production.
1384
1385 2011-11-18  Jim Meyering  <meyering@redhat.com>
1386
1387         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1388         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1389         Add a sentence to the comment.
1390         (hash_insert0): New function that simply calls hash_insert_if_absent.
1391         * lib/hash.h (hash_insert_if_absent): Declare it.
1392         (hash_insert0): Add deprecation attribute.
1393         (_GL_ATTRIBUTE_DEPRECATED): Define.
1394         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1395         not hash_insert0.
1396         * NEWS: Mention it, even though it's not really an incompatible change.
1397
1398 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1399
1400         openat: avoid compilation failure due to lack of <errno.h> inclusion
1401         * lib/openat.c: Include <errno.h>.
1402
1403 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1404
1405         * modules/getcwd (Depends-on): Add fdopendir.
1406         This fixes one of the two problems reported by Kai Habel in
1407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1408
1409         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1410         stdalign problem reported by Ian Beckwith in
1411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1412         * modules/crypto/gc-arcfour (Depends-on):
1413         Depend conditionally on crypto/arcfour.
1414         * modules/crypto/gc-arctwo (Depends-on):
1415         Depend conditionally on crypto/arctwo.
1416         * modules/crypto/gc-des (Depends-on):
1417         Depend conditionally on crypto/des.
1418         * modules/crypto/gc-hmac-md5 (Depends-on):
1419         Depend conditionally on crypto/hmac-md5.
1420         * modules/crypto/gc-hmac-sha1 (Depends-on):
1421         Depend conditionally on crypto/hmac-sha1.
1422         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1423         * modules/crypto/gc-md4 (Depends-on):
1424         Depend conditionally on crypto/md4.
1425         * modules/crypto/gc-md5 (Depends-on):
1426         Depend conditionally on crypto/md5.
1427         * modules/crypto/gc-rijndael (Depends-on):
1428         Depend conditionally on crypto/rijndael.
1429         * modules/crypto/gc-sha1 (Depends-on):
1430         Depend conditionally on crypto/sha1.
1431         * modules/crypto/gc-arcfour:
1432         * modules/crypto/gc-arctwo:
1433         * modules/crypto/gc-des:
1434         * modules/crypto/gc-hmac-md5:
1435         * modules/crypto/gc-hmac-sha1:
1436         * modules/crypto/gc-md2:
1437         * modules/crypto/gc-md4:
1438         * modules/crypto/gc-md5:
1439         * modules/crypto/gc-rijndael:
1440         * modules/crypto/gc-sha1:
1441         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1442         now that the conditional dependencies do the work for us.
1443
1444 2011-11-17  Jim Meyering  <meyering@redhat.com>
1445
1446         tests: factor st_ctime-comparison out of two headers
1447         * tests/test-utimens-common.h (ctime_compare): Define.
1448         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1449         * tests/test-lutimens.h (test_lutimens): Likewise.
1450         * tests/test-utimens.h (test_utimens): Likewise.
1451
1452         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1453         Invoke the test program via an init.sh-using wrapper.
1454         * tests/test-getcwd.sh: New file.
1455         * modules/getcwd-tests (Files): Add it.
1456         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1457
1458 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1459
1460         gitlog-to-changelog: support multi-author commits.
1461         The FSF cares about keeping track of all authors of patches to its
1462         projects, but Git doesn't provide obvious support for multi-author
1463         changesets. Consensus seems to be forming around the use of extra
1464         Signed-off-by inspired lines in the log message formatted as
1465         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1466         multi-author commits between version control systems.
1467         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1468         log message and output in standard ChangeLog multi-author format.
1469         Reported by Peter Rosin <peda@lysator.liu.se>
1470
1471 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1472             Bruno Haible  <bruno@clisp.org>
1473
1474         Fix some modules' file list.
1475         * modules/fstatat (Files): Add m4/lstat.m4.
1476         * modules/openat (Files): Likewise.
1477         * modules/unlinkat (Files): Likewise.
1478
1479 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1480
1481         maint.mk: fix tight-scope.mk generation in VPATH builds.
1482         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1483         reference with $(srcdir) so that the file is found correctly even
1484         when running `make syntax-check' in a VPATH build.
1485
1486 2011-11-13  Bruno Haible  <bruno@clisp.org>
1487             Jim Meyering  <meyering@redhat.com>
1488
1489         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1490         * tests/init.sh (compare): Remove "No differences encountered" or
1491         synonymous output from the 'diff' program.
1492
1493 2011-11-13  Bruno Haible  <bruno@clisp.org>
1494
1495         Makefile: Tweak indentation.
1496         * Makefile: Use tab as first character in every line that contains rule
1497         commands.
1498
1499 2011-11-13  Bruno Haible  <bruno@clisp.org>
1500
1501         Syntax check for copyright statements.
1502         * check-copyright: New file.
1503         * Makefile (sc_check_copyright): New rule.
1504
1505 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1506
1507         * build-aux/git-version-gen: Add --prefix to configure the tag
1508         match string.
1509
1510 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1511
1512         * build-aux/git-version-gen: Add --help and --version.
1513
1514 2011-11-12  Jim Meyering  <meyering@redhat.com>
1515
1516         revamp the other test-exclude?.sh scripts to use init.sh, too
1517         * tests/test-exclude1.sh: Use init.sh.
1518         * tests/test-exclude2.sh: Likewise.
1519         * tests/test-exclude3.sh: Likewise.
1520         * tests/test-exclude4.sh: Likewise.
1521         * tests/test-exclude5.sh: Likewise.
1522         * tests/test-exclude6.sh: Likewise.
1523         * tests/test-exclude7.sh: Likewise.
1524         * tests/test-exclude8.sh: Likewise.
1525         * modules/exclude-tests (Files): List init.sh.
1526
1527         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1528         These shell scripts ignored failure of the binary test-exclude,
1529         so making the latter return 77 didn't cause them to be skipped.
1530         * tests/test-exclude5.sh: Exit with test-exclude's error status
1531         when that program fails.  Revamp to use init.sh.
1532         * tests/test-exclude2.sh: Likewise.
1533
1534         test-exclude: fix a typo
1535         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1536
1537 2011-11-11  Bruno Haible  <bruno@clisp.org>
1538
1539         obstack: Fix compilation error on MSVC 9.
1540         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1541
1542 2011-11-11  Jim Meyering  <meyering@redhat.com>
1543
1544         test-exclude: skip tests rather than failing on deficient systems
1545         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1546         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1547         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1548         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1549
1550 2011-11-10  Bruno Haible  <bruno@clisp.org>
1551
1552         ptsname_r test: Avoid gcc warning on glibc systems.
1553         * tests/test-ptsname_r.c (null_ptr): New function.
1554         (test_errors): Use it.
1555
1556 2011-11-10  Bruno Haible  <bruno@clisp.org>
1557
1558         ptsname_r: Avoid compilation error on OSF/1 5.1.
1559         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1561         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1562         function is not declared or incompatibly declared.
1563         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1564         * modules/ptsname_r (Depends-on, configure.ac): Update.
1565         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1566
1567 2011-11-10  Bruno Haible  <bruno@clisp.org>
1568
1569         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1570         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1571         When cross-compiling, guess yes on all platforms except AIX.
1572         Reported by Ludovic Courtès <ludo@gnu.org>.
1573
1574 2011-11-09  Bruno Haible  <bruno@clisp.org>
1575
1576         ptsname_r tests: Fix bugs.
1577         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1578         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1579
1580 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1581
1582         fstatat: work with cross-compilation
1583         Problem reported by Ludovic Courtès in
1584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1585         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1586         "cross-compiling" and assume the bug is present.  Replace
1587         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1588         an inverted sense, to be more conservative about our assumptions.
1589         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1590
1591 2011-11-09  Bruno Haible  <bruno@clisp.org>
1592
1593         Improve MODULES.html output.
1594         * modules/mkfifoat (Description): Use the word "function".
1595         * modules/readlinkat (Description): Likewise.
1596         * modules/symlinkat (Description): Likewise.
1597
1598 2011-11-09  Eric Blake  <eblake@redhat.com>
1599
1600         ptsname_r-tests: new test module
1601         * modules/ptsname_r-tests: New module.
1602         * tests/test-ptsname_r.c: New file.
1603
1604         ptsname_r: new module
1605         * modules/ptsname_r: New module.
1606         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1607         * lib/ptsname.c (__ptsname_r): Split...
1608         * lib/ptsname_r.c: ...into new file.
1609         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1610         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1611         * modules/stdlib (Makefile.am): Substitute witnesses.
1612         * lib/stdlib.in.h (ptsname_r): Declare it.
1613         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1614         * MODULES.html.sh (Misc): Likewise.
1615         * modules/ptsname (Depends-on): Alter dependency.
1616         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1617
1618 2011-11-09  Jim Meyering  <meyering@redhat.com>
1619
1620         announce-gen: be more concise when there's only one URL+tarball
1621         * build-aux/announce-gen (get_tool_versions): When you distribute
1622         only one type of tarball, combine the first two "Here are..."
1623         sections and make the key-checking grammar independent of
1624         how many tarballs there are.
1625
1626 2011-11-09  Eric Blake  <eblake@redhat.com>
1627
1628         openpty: provide a stub on mingw
1629         * lib/pty.in.h (includes): Provide forward declarations.
1630         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1631
1632         raise: fix mingw handling of SIGPIPE
1633         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1634
1635 2011-11-08  Bruno Haible  <bruno@clisp.org>
1636
1637         More conditional dependencies.
1638         * modules/faccessat (Depends-on): Add conditions.
1639         * modules/fchmodat (Depends-on): Likewise.
1640         * modules/fchownat (Depends-on): Likewise.
1641         * modules/fstatat (Depends-on): Likewise.
1642         * modules/mkfifoat (Depends-on): Likewise.
1643         * modules/readlinkat (Depends-on): Likewise.
1644         * modules/symlinkat (Depends-on): Likewise.
1645         * modules/unlinkat (Depends-on): Likewise.
1646         * modules/utimensat (Depends-on): Likewise.
1647         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1648         * modules/linkat (Depends-on): Refine the conditions.
1649         * modules/renameat (Depends-on): Likewise.
1650
1651 2011-11-08  Bruno Haible  <bruno@clisp.org>
1652
1653         faccessat: Move AC_LIBOBJ invocation to module description.
1654         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1655         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1656         invocation from here...
1657         * modules/faccessat (configure.ac): ... to here. Invoke
1658         gl_PREREQ_FACCESSAT.
1659
1660 2011-11-08  Bruno Haible  <bruno@clisp.org>
1661
1662         faccessat: Simplify autoconf macro.
1663         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1664         gl_FUNC_EUIDACCESS.
1665
1666 2011-11-08  Bruno Haible  <bruno@clisp.org>
1667
1668         renameat: Fix dependencies.
1669         * modules/renameat (Depends-on): Add stdbool.
1670
1671 2011-11-08  Bruno Haible  <bruno@clisp.org>
1672
1673         mkfifoat: Fix module description.
1674         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1675         not gl_UNISTD_MODULE_INDICATOR.
1676
1677 2011-11-08  Bruno Haible  <bruno@clisp.org>
1678
1679         fstatat: Remove unused dependency.
1680         * modules/fstatat (Depends-on): Remove fstat.
1681
1682 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1683
1684         GNUmakefile: behave when Makefile is missing.
1685         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1686
1687 2011-11-08  Bruno Haible  <bruno@clisp.org>
1688
1689         openat: Conditionalize dependencies.
1690         * lib/openat.c: Reduce the scope of some #includes.
1691         * modules/openat (Depends-on): Add conditions.
1692
1693 2011-11-07  Jim Meyering  <meyering@redhat.com>
1694
1695         maint.mk: extract GPG key ID without using a temporary file
1696         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1697         without using a temporary file.  Based on a suggestion from Werner Koch
1698         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1699
1700 2011-11-07  Eric Blake  <eblake@redhat.com>
1701
1702         grantpt: fix typo
1703         * lib/stdlib.in.h (grantpt): Check correct function.
1704
1705         maint.mk: silence new syntax check
1706         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1707
1708 2011-11-06  Bruno Haible  <bruno@clisp.org>
1709
1710         Doc about floating-point and math API.
1711         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1712         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1713
1714 2011-11-06  Bruno Haible  <bruno@clisp.org>
1715
1716         stdalign tests: Skip the test when compiled by Sun C.
1717         * tests/test-stdalign.c (main): Skip the test on Sun C.
1718
1719 2011-11-06  Bruno Haible  <bruno@clisp.org>
1720
1721         ansi-c++-opt: Complete the 2011-06-05 change.
1722         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1723         does not support namespaces, set the variable to "no", not to ":".
1724
1725 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1726
1727         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1728
1729 2011-11-06  Bruno Haible  <bruno@clisp.org>
1730
1731         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1732         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1733         (minus_zerol) [HP-UX]: New macro.
1734         (unary_minus) [HP-UX]: New function.
1735         (copysignl) [HP-UX]: Use unary_minus function.
1736
1737 2011-11-06  Bruno Haible  <bruno@clisp.org>
1738
1739         ldexp, ldexpf, ldexpl: Enhance tests.
1740         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1741         and tests/test-ldexpl.c.
1742         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1743         LDEXP, MIN_EXP, MAX_EXP): New macros.
1744         Include test-ldexp.h.
1745         (main): Just call test_function.
1746         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1747         infinity.h, nan.h.
1748         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1749         MAX_EXP): New macros.
1750         Include test-ldexp.h.
1751         (x, y): Remove variables.
1752         (main): Just call test_function.
1753         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1754         infinity.h, nan.h.
1755         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1756         MAX_EXP): New macros.
1757         Include test-ldexp.h.
1758         (x, y): Remove variables.
1759         (main): Just call test_function.
1760         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1761         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1762         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1763         (Depends-on): Add isnand-nolibm, signbit, float.
1764         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1765         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1766         (Depends-on): Add isnanf-nolibm, signbit, float.
1767
1768 2011-11-06  Bruno Haible  <bruno@clisp.org>
1769
1770         math tests: Cosmetics.
1771         * tests/test-math-c++.cc: Reorder declarations.
1772
1773 2011-11-05  Bruno Haible  <bruno@clisp.org>
1774
1775         fma*: Simplify test.
1776         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1777         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1778
1779         Tests for module 'fmal'.
1780         * modules/fmal-tests: New file.
1781         * tests/test-fmal1.c: New file.
1782         * tests/test-fmal2.c: New file.
1783
1784         New module 'fmal'.
1785         * lib/math.in.h (fmal): New declaration.
1786         * lib/fmal.c: New file.
1787         * m4/fmal.m4: New file.
1788         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1790         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1791         REPLACE_FMAL.
1792         * modules/fmal: New file.
1793         * doc/posix-functions/fmal.texi: Mention the new module and the various
1794         bugs.
1795
1796         Tests for module 'fmaf'.
1797         * modules/fmaf-tests: New file.
1798         * tests/test-fmaf1.c: New file.
1799         * tests/test-fmaf2.c: New file.
1800
1801         New module 'fmaf'.
1802         * lib/math.in.h (fmaf): New declaration.
1803         * lib/fmaf.c: New file.
1804         * m4/fmaf.m4: New file.
1805         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1807         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1808         REPLACE_FMAF.
1809         * modules/fmaf: New file.
1810         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1811         bugs.
1812
1813         Tests for module 'fma'.
1814         * modules/fma-tests: New file.
1815         * tests/test-fma1.c: New file.
1816         * tests/test-fma1.h: New file.
1817         * tests/test-fma2.c: New file.
1818         * tests/test-fma2.h: New file.
1819
1820         New module 'fma'.
1821         * lib/math.in.h (fma): New declaration.
1822         * lib/fma.c: New file.
1823         * m4/fma.m4: New file.
1824         * m4/fegetround.m4: New file.
1825         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1827         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1828         REPLACE_FMA.
1829         * modules/fma: New file.
1830         * doc/posix-functions/fma.texi: Mention the new module and the various
1831         bugs.
1832
1833         Extend gl_MATHFUNC.
1834         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1835         Support 'void' as argument type.
1836         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1837
1838 2011-11-05  Jim Meyering  <meyering@redhat.com>
1839
1840         maint.mk: also prohibit inclusion of dirent.h without use
1841         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1842
1843 2011-11-05  Bruno Haible  <bruno@clisp.org>
1844
1845         ldexpl tests: Avoid test failure on MSVC 9.
1846         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1847         value. Needed in order to enforce the conversion from a value greater
1848         than LDBL_MAX to Infinity.
1849
1850 2011-11-05  Bruno Haible  <bruno@clisp.org>
1851
1852         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1853         * modules/at-internal: New file, extracted from modules/openat.
1854         * modules/openat-h: New file.
1855         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1856         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1857         * modules/openat (Description): Add reference to POSIX function.
1858         (Files): Remove lib/openat.h, lib/openat-proc.c.
1859         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1860         intprops, unistd.
1861         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1862         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1863         gl_FCNTL_MODULE_INDICATOR.
1864         (Include): Remove unistd.h, openat.h.
1865         * modules/areadlinkat (Files): Add lib/at-func.c.
1866         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1867         openat-die, openat-h, save-cwd.
1868         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1869         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1870         openat-die, openat-h, save-cwd, unistd.
1871         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1872         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1873         openat-h, save-cwd. Remove fcntl-h, openat.
1874         * modules/fchmodat (Files): Remove lib/openat.h.
1875         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1876         openat, stdbool, unistd.
1877         * modules/fchownat (Files): Remove lib/openat.h.
1878         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1879         openat, stdbool, sys_stat.
1880         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1881         lib/openat-proc.c.
1882         (Depends-on): Add at-internal.
1883         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1884         * modules/fstatat (Files): Remove lib/openat.h.
1885         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1886         stdbool, unistd.
1887         * modules/fts (Depends-on): Add openat-h.
1888         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1889         openat.
1890         * modules/mkdirat (Files): Remove lib/openat.h.
1891         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1892         openat, stdbool, sys_stat.
1893         * modules/mkfifoat (Files): Add lib/at-func.c.
1894         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1895         openat-h, save-cwd. Remove fcntl-h, openat.
1896         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1897         * modules/readlinkat (Files): Add lib/at-func.c.
1898         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1899         openat-h, save-cwd. Remove fcntl-h, openat.
1900         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1901         openat.
1902         * modules/selinux-at (Files): Add lib/at-func.c.
1903         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1904         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1905         * modules/symlinkat (Files): Add lib/at-func.c.
1906         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1907         openat-h, save-cwd. Remove fcntl-h, openat.
1908         * modules/unlinkat (Files): Remove lib/openat.h.
1909         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1910         stdbool.
1911         * modules/utimensat (Files): Add lib/at-func.c.
1912         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1913         openat-die, openat-h, save-cwd.
1914         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1915         * modules/fdutimensat-tests (Depends-on): Add openat.
1916         * modules/fstatat-tests (Depends-on): Add openat-h.
1917         * modules/readlinkat-tests (Depends-on): Add openat.
1918         * modules/symlinkat-tests (Depends-on): Add openat.
1919
1920 2011-11-05  Bruno Haible  <bruno@clisp.org>
1921
1922         openat: Include <stdbool.h>.
1923         * lib/openat.c: Include <stdbool.h>.
1924
1925 2011-11-04  Bruno Haible  <bruno@clisp.org>
1926
1927         fchownat, renameat, unlinkat: Fix dependencies.
1928         * modules/fchownat (Depends-on): Add fstatat.
1929         * modules/renameat (Depends-on): Likewise.
1930         * modules/unlinkat (Depends-on): Likewise.
1931
1932 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1933
1934         openat: remove direct dependency on dirent
1935         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1936         and hasn't been needed ever since fdopendir was split into its own
1937         module on 2009-08-31.
1938         * modules/openat (Depends-on): Remove dirent.
1939
1940 2011-11-04  Bruno Haible  <bruno@clisp.org>
1941
1942         renameat: Optimize code size.
1943         * modules/renameat (configure.ac): Don't compile at-func2.c if
1944         REPLACE_RENAMEAT is 1.
1945
1946 2011-11-04  Bruno Haible  <bruno@clisp.org>
1947
1948         openat tests: Fix file list.
1949         * modules/openat-tests (Files): Add tests/test-open.h.
1950
1951 2011-11-04  Bruno Haible  <bruno@clisp.org>
1952
1953         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1954         * modules/fchmodat (Depends-on): Add openat-die.
1955         * modules/fchownat (Depends-on): Likewise.
1956         * modules/linkat (Depends-on): Likewise.
1957         * modules/renameat (Depends-on): Likewise.
1958         * modules/openat (Depends-on): Add dirent.
1959
1960 2011-11-04  Jim Meyering  <meyering@redhat.com>
1961
1962         at-func*.c: fix comments
1963         * lib/at-func2.c: Correct/improve first-line comment.
1964         * lib/at-func.c: Correct grammar in first-line comment.
1965
1966 2011-11-04  Bruno Haible  <bruno@clisp.org>
1967
1968         New module 'mkdirat', split off from module 'openat'.
1969         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1970         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1971         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1972         * modules/mkdirat: New file, extracted from modules/openat.
1973         * modules/openat (Files): Remove lib/mkdirat.c.
1974         (Depends-on): Remove mkdir.
1975         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1976         (Include): Remove <sys/stat.h>.
1977         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1978         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1979         tests/test-mkdir.h.
1980         (Depends-on): Remove ignore-value.
1981         (Makefile.am): Remove rules for test-mkdirat.
1982         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1983         of module 'openat'.
1984         * NEWS: Mention the change.
1985
1986 2011-11-04  Bruno Haible  <bruno@clisp.org>
1987
1988         closedir: Avoid warning on mingw.
1989         * lib/closedir.c: Include <unistd.h>.
1990
1991 2011-11-04  Bruno Haible  <bruno@clisp.org>
1992
1993         New module 'fstatat', split off from module 'openat'.
1994         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1995         defined.
1996         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1997         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1998         gl_FUNC_FSTATAT.
1999         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2000         * modules/fstatat: New file, extracted from modules/openat.
2001         * modules/openat (Files): Remove lib/fstatat.c.
2002         (Depends-on): Remove lstat.
2003         (configure.ac): Remove AC_LIBOBJ of fstatat.
2004         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2005         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2006         tests/test-lstat.h, tests/test-stat.h.
2007         (Depends-on): Remove getcwd-lgpl.
2008         (Makefile.am): Remove rules for test-fstatat.
2009         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2010         of module 'openat'.
2011         * NEWS: Mention the change.
2012         * modules/getcwd (Depends-on): Add fstatat.
2013         * modules/linkat (Depends-on): Likewise.
2014         * modules/mkfifoat-tests (Depends-on): Likewise.
2015         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2016
2017 2011-11-03  Bruno Haible  <bruno@clisp.org>
2018
2019         New module 'unlinkat', split off from module 'openat'.
2020         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2021         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2022         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2023         * modules/unlinkat: New file, extracted from modules/openat. Correct
2024         the dependency conditions.
2025         * modules/openat (Files): Remove lib/unlinkat.c.
2026         (Depends-on): Remove rmdir, unlink.
2027         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2028         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2029         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2030         tests/test-rmdir.h, tests/test-unlink.h.
2031         (Depends-on): Remove unlinkdir.
2032         (Makefile.am): Remove rules for test-unlinkat.
2033         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2034         of module 'openat'.
2035         * NEWS: Mention the change.
2036         * modules/linkat-tests (Depends-on): Add unlinkat.
2037         * modules/mkfifoat-tests (Depends-on): Likewise.
2038         * modules/readlinkat-tests (Depends-on): Likewise.
2039
2040 2011-11-02  Bruno Haible  <bruno@clisp.org>
2041
2042         New module 'fchmodat', split off from module 'openat'.
2043         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2044         defined.
2045         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2047         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2048         * modules/fchmodat: New file, extracted from modules/openat.
2049         * modules/openat (Files): Remove lib/fchmodat.c.
2050         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2051         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2052         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2053         (Makefile.am): Remove rules for test-fchmodat.
2054         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2055         of module 'openat'.
2056         * NEWS: Mention the change.
2057
2058 2011-11-02  Jim Meyering  <meyering@redhat.com>
2059
2060         putenv: indent #definition of "environ" to placate cppi
2061         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2062
2063         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2064         Git logs are often treated as immutable, because editing them
2065         changes the SHA1 checksums of all descendants.  Thus, errors in
2066         git logs tend to stay there forever.  However, when we generate
2067         a ChangeLog file -- typically for distribution -- from that git log,
2068         we can actually make corrections in the generated file.  The key
2069         lies in recording in machine-readable/applicable form the desired
2070         corrections.  See --help for description and an example.
2071         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2072         (usage): Describe it; alphabetize option descriptions.
2073         (main): Honor the new option, carefully.
2074
2075 2011-11-01  Jim Meyering  <meyering@redhat.com>
2076
2077         gitlog-to-changelog: avoid an infloop
2078         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2079         that ends up being empty.
2080
2081 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2082
2083         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2084         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2085         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2086         contains (possibly-quoted) backslashes.  This should avoid
2087         all-too-common shell bugs if COMPLICATED contains backslashes in
2088         the "wrong" places.  Reported by David Evans in
2089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2090         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2091         because we want ASCII ranges.  Is there some reason we don't use
2092         the C locale everywhere in this script?
2093         (func_module, top level): Avoid unwanted pathname expansion when
2094         $repo_url_prefix or $repo_url_suffix_repl contain shell
2095         metacharacters like '?' and '*'.
2096
2097 2011-11-01  Bruno Haible  <bruno@clisp.org>
2098
2099         fchownat: Improve description.
2100         * modules/fchownat (Description): Add link to function.
2101
2102 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2103
2104         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2105         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2107         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2108
2109 2011-11-01  Bruno Haible  <bruno@clisp.org>
2110
2111         alignof: Avoid collision with stdalign module.
2112         * lib/alignof.h (alignof): Remove macro.
2113         * NEWS: Mention the change.
2114         Reported by Paul Eggert.
2115
2116 2011-11-01  Bruno Haible  <bruno@clisp.org>
2117
2118         New module 'fchownat', split off from module 'openat'.
2119         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2120         defined.
2121         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2122         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2123         invoke gl_FUNC_FCHOWNAT.
2124         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2125         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2126         * modules/fchownat: New file, extracted from modules/openat.
2127         * modules/openat (Files): Remove lib/fchownat.c.
2128         (Depends-on): Remove lchown.
2129         (configure.ac): Remove AC_LIBOBJ of fchownat.
2130         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2131         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2132         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2133         (Depends-on): Remove mgetgroups, usleep, stat-time.
2134         (configure.ac): Remove test for getegid.
2135         (Makefile.am): Remove rules for test-fchownat.
2136         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2137         of module 'openat'.
2138         * NEWS: Mention the change.
2139
2140 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2141
2142         stdalign: port better to MSVC and to Sun C 5.11
2143         This fixes some of the problems reported by Bruno Haible in
2144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2145         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2146         shortcomings of MSVC and of Sun C 5.11.
2147         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2148         around __declspec arg.
2149         * modules/stdalign-tests (Files): Add tests/macros.h.
2150         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2151         Include macros.h, for ASSERT.
2152         (DECLARE_ALIGNED): Remove.
2153         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2154         to catch bug), and to 1 if not (simplifies the rest of the code).
2155         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2156         (CHECK_AUTO): Remove.
2157         (CHECK_ALIGNED): Check only the alignment of the static vars,
2158         since auto var alignment isn't supported by Sun C 5.11.
2159         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2160         ASSERT failures are easier to diagnose.
2161
2162 2011-10-31  Bruno Haible  <bruno@clisp.org>
2163
2164         doc about some IRIX 5.3 problems.
2165         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2166         on IRIX 5.3.
2167         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2168         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2169         5.3.
2170         * doc/posix-functions/grantpt.texi: Likewise.
2171         * doc/posix-functions/unlockpt.texi: Likewise.
2172         * doc/posix-functions/lgamma.texi: Likewise.
2173         * doc/posix-functions/nextafter.texi: Likewise.
2174         * doc/posix-functions/remainder.texi: Likewise.
2175         * doc/posix-functions/select.texi: Mention misplaced declaration on
2176         IRIX 5.3.
2177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2178
2179 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2180
2181         gitlog-to-changelog: fix git-log invocation.
2182         git-log mishandles date strings before 1970-01-01 UTC, and there is
2183         no use to specify --since=1970-01-01 by default anyway.
2184         * build-aux/gitlog-to-changelog: By default, when no --since option
2185         was given, do not specify explicit --since option to git-log.
2186
2187 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2188
2189         gitlog-to-changelog: new option --append-dot.
2190         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2191         first non-blank line of each commit message terminated with a dot.
2192
2193 2011-10-30  Bruno Haible  <bruno@clisp.org>
2194
2195         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2196         * lib/ffsl.h: Include <config.h>.
2197         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2198
2199 2011-10-30  Jim Meyering  <meyering@redhat.com>
2200
2201         GNUmakefile: reenable "make syntax-check" for most projects
2202         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2203         build-aux variable", "syntax-check" would do nothing but succeed with
2204         the "No version control files detected..." diagnostic (unless you
2205         happened to override _build-aux via cfg.mk).
2206         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2207         to precede inclusion of maint.mk.  Otherwise, these variables would
2208         be used undefined in any project that does not override the default.
2209
2210 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2211
2212         gitlog-to-changelog: treat a message with only blank lines as empty.
2213         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2214         trailing blank lines before the code that issues a warning about an
2215         empty commit message.
2216
2217 2011-10-30  Jim Meyering  <meyering@redhat.com>
2218
2219         test-parse-datetime.c: avoid new DST-related false positive test failure
2220         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2221         based on the time/date we'll convert, not the current time.
2222         Otherwise, the moment we cross a DST boundary like today's in
2223         Europe, (CEST to CET), that offset ends up being one hour off.
2224
2225 2011-10-27  Bruno Haible  <bruno@clisp.org>
2226
2227         fstat: Tweak documentation.
2228         * modules/fstat (Description): More precise description.
2229
2230 2011-10-27  Bruno Haible  <bruno@clisp.org>
2231
2232         Update documentation regarding 'largefile' module.
2233         * doc/posix-functions/fstat.texi: Tweak wording.
2234         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2235         problems with huge directories and/or small ino_t types.
2236         * doc/posix-functions/readdir.texi: Likewise.
2237         * doc/posix-functions/rewinddir.texi: Likewise.
2238
2239 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2240
2241         maint.mk: don't maintain a second build-aux variable.
2242         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2243         depends on GNUmakefile, which already maintains a cfg.mk
2244         overridable $(_build-aux) for projects with a non-standard
2245         build-aux directory location, although without the $(srcdir)
2246         prefix.  Use that variable consistently instead of introducing a
2247         second one.  Adjust all call sites.
2248
2249 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2250
2251         Add stdalign module and use it in other modules.
2252         This is based on a previous proposal by Bruno Haible
2253         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2254
2255         stdalign: new module
2256         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2257         * modules/stdalign: New files.
2258         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2259         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2260
2261         stdalign-tests: new module
2262         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2263
2264         argp: use stdalign
2265         * lib/argp-parse.c: Include <stdalign.h>.
2266         (alignof): Remove.
2267         * modules/argp (Depends-on): Add stdalign.
2268
2269         crypto libraries: use stdalign
2270         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2271         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2272         Do not include <stdlib.h> twice, in md4.c.
2273         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2274         because we are accessing a pointer's bit-pattern, not a size.
2275         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2276         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2277         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2278         * modules/crypto/sha512: Likewise.
2279
2280         sys_socket: use stdalign, not alignof
2281         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2282         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2283
2284 2011-10-27  Bruno Haible  <bruno@clisp.org>
2285
2286         raise test: Avoid a test failure on Linux/MIPS.
2287         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2288         because 99 is a valid signal on Linux/MIPS.
2289
2290 2011-10-27  Bruno Haible  <bruno@clisp.org>
2291
2292         nonblocking tests: Fix test failure on Linux/MIPS.
2293         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2294         Set to 270000.
2295
2296 2011-10-27  Bruno Haible  <bruno@clisp.org>
2297
2298         utimensat: Work around problem on Linux/hppa.
2299         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2300         values.
2301         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2302
2303 2011-10-25  Jim Meyering  <meyering@redhat.com>
2304
2305         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2306         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2307         after symbols like NULL, size_t, etc.
2308         Reported by Alfred M. Szmidt.
2309
2310         maint.mk: exempt ENODATA from a syntax-check rule
2311         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2312         from the sc_prohibit_always-defined_macros syntax-check rule.
2313         Add a comment.  See this for more details:
2314         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2315
2316 2011-10-23  Jim Meyering  <meyering@redhat.com>
2317
2318         fts: close parent dir FD before returning from post-traversal fts_read
2319         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2320         unlink A, even though an FD open on A remained.  This is suboptimal
2321         (holding a file descriptor open longer than needed), but otherwise not
2322         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2323         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2324         that represents a real problem: it causes the removal of A to fail
2325         with e.g., "rm: cannot remove `A': Device or resource busy"
2326
2327         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2328         directory file descriptors.  After completing the final, FTS_DP,
2329         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2330         cache, but then proceeded to add a new FD to it via the subsequent
2331         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2332         final file descriptor would be closed only via fts_close's call to
2333         fd_ring_clear.  Now, it is usually closed earlier, via the final
2334         FTS_DP-returning fts_read call.
2335         * lib/fts.c (restore_initial_cwd): New function, converted from
2336         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2337         Update callers.
2338         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2339         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2340
2341 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2342             Bruno Haible  <bruno@clisp.org>
2343             Jim Meyering  <jim@meyering.net>
2344
2345         readme-release: improve safety of release prep instructions.
2346         * README-release: Don't git pull all branches when only master
2347         is needed for the release process.
2348         Run make maintainer-clean before changing trees and merging.
2349         Don't try to run ./configure right after git pull in case files
2350         that influence the bootstrap process have changed, move the
2351         ./configure step to after running ./bootstrap.
2352         Don't bootstrap "one last time"... it's the first time!
2353
2354 2011-10-22  Bruno Haible  <bruno@clisp.org>
2355
2356         errno, strerror-override: Support for MSVC 10.
2357         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2358         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2359         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2360         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2361         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2362         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2363         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2364         Assign values compatible with MSVC 10.
2365         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2366         New macros.
2367         (GNULIB_defined_EWINSOCK): New macro.
2368         * lib/strerror-override.c (strerror_override): Update accordingly.
2369         * lib/strerror-override.h: Likewise.
2370         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2371         longer equal to the corresponding errno value.
2372         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2373
2374 2011-10-22  Bruno Haible  <bruno@clisp.org>
2375
2376         perror: Recognize when test program crashes.
2377         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2378         strerror, set gl_cv_func_perror_works to no.
2379         Reported by Daniel Richard G. <skunk@iskunk.org>.
2380
2381         perror: Fix indentation.
2382         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2383
2384 2011-10-22  Bruno Haible  <bruno@clisp.org>
2385
2386         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2387         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2388         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2389         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2390         functions, not as a macro.
2391         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2392         macros.
2393         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2394         absence of macro.
2395         Suggested by Eric Blake.
2396         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2397
2398 2011-10-21  Bruno Haible  <bruno@clisp.org>
2399
2400         relocatable-prog-wrapper: Don't leave object files behind.
2401         * build-aux/install-reloc: Re-synchronize list of .o files to be
2402         removed with list of compilation units.
2403
2404 2011-10-20  Bruno Haible  <bruno@clisp.org>
2405
2406         openpty, posix_openpt: Remove code duplication.
2407         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2408         * lib/openpty.c: Include <stdlib.h>.
2409         (openpty): Use posix_openpt on all platforms except IRIX.
2410         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2411
2412 2011-10-20  Bruno Haible  <bruno@clisp.org>
2413
2414         unlockpt: Detect invalid argument.
2415         * lib/unlockpt.c: Include <fcntl.h>.
2416         (unlockpt): Check whether fd is valid, using fcntl().
2417         * modules/unlockpt (Depends-on): Add fcntl-h.
2418
2419 2011-10-20  Bruno Haible  <bruno@clisp.org>
2420
2421         openpty: Avoid compilation error on AIX 6.1.
2422         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2423
2424 2011-10-20  Bruno Haible  <bruno@clisp.org>
2425
2426         posix_openpt: Support for OpenBSD.
2427         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2428         (posix_openpt) [OpenBSD]: New code.
2429         * lib/grantpt.c: Include <fcntl.h>.
2430         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2431         * modules/grantpt (Depends-on): Add fcntl-h.
2432
2433 2011-10-20  Bruno Haible  <bruno@clisp.org>
2434
2435         posix_openpt test: Coding style.
2436         * tests/test-posix_openpt.c: Use GNU coding style.
2437
2438 2011-10-20  Bruno Haible  <bruno@clisp.org>
2439
2440         grantpt: Support --avoid=pt_chown.
2441         * modules/grantpt (Files): Add lib/pty-private.h.
2442
2443 2011-10-20  Bruno Haible  <bruno@clisp.org>
2444
2445         posix_openpt: Fix autoconf macro.
2446         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2447         unneeded check for _getpty.
2448
2449 2011-10-20  Bruno Haible  <bruno@clisp.org>
2450
2451         openpty: Update comments.
2452         * lib/openpty.c: Add comments about Minix.
2453
2454 2011-10-19  Eric Blake  <eblake@redhat.com>
2455
2456         openpty: relax license
2457         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2458
2459         pt_chown: use configmake to simplify build
2460         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2461
2462         ptsname and others: relax license
2463         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2464         * modules/unlockpt (License): Likewise.
2465         * modules/pt_chown (License): Likewise.
2466         * modules/ptsname (License): Likewise.
2467         * modules/ttyname_r (License): Likewise.
2468
2469 2011-10-19  Jim Meyering  <meyering@redhat.com>
2470
2471         posix_openpt: remove spurious #endif
2472         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2473
2474 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2475
2476         maint.mk: Respect $(build_aux) in web-manual rule.
2477         * top/maint.mk (web-manual): Find gen-announce script in user's
2478         $(build_aux) directory instead of hard-coding 'build-aux'.
2479
2480 2011-10-19  Bruno Haible  <bruno@clisp.org>
2481
2482         posix_openpt: Fix compilation error.
2483         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2484         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2485         Mention the openpty module as an alternative.
2486
2487 2011-10-19  Bruno Haible  <bruno@clisp.org>
2488
2489         Support for old NeXTstep 3.3 frexp().
2490         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2491         execution time of the test to 5 seconds.
2492         Reported by Daniel Richard G. <skunk@iskunk.org>.
2493
2494 2011-10-19  Bruno Haible  <bruno@clisp.org>
2495
2496         Support for old NeXTstep 3.3 sed.
2497         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2498         part, use /.../, not \|...|. Escape periods in the header file name.
2499         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2500         Reported by Daniel Richard G. <skunk@iskunk.org>.
2501
2502 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2503
2504         Support for old NeXTstep 3.3 gcc.
2505         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2506         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2507         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2508         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2509         * lib/regex.h (_Restrict_arr_): Likewise.
2510         * lib/regex_internal.h (re_token_t): Likewise.
2511         * lib/regexec.c (check_node_accept_bytes): Likewise.
2512         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2513
2514 2011-10-18  Eric Blake  <eblake@redhat.com>
2515
2516         posix_openpt: new module
2517         * modules/posix_openpt: New module.
2518         * m4/posix_openpt.m4: New file.
2519         * lib/posix_openpt.c: Likewise.
2520         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2521         (gl_STDLIB_H_DEFAULTS): Set defaults.
2522         * modules/stdlib (Makefile.am): Substitute macros.
2523         * lib/stdlib.in.h (posix_openpt): Declare.
2524         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2525         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2526         * modules/posix_openpt-tests: New test module.
2527         * tests/test-posix_openpt.c: New test.
2528
2529 2011-10-15  Bruno Haible  <bruno@clisp.org>
2530
2531         xstrtoll: Fix compilation failure.
2532         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2533         from lib/strtol.c.
2534         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2535         some platforms.
2536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2537
2538 2011-10-15  Bruno Haible  <bruno@clisp.org>
2539
2540         vasnprintf: Optimize bit search operation.
2541         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2542         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2543         gl_DOUBLE_EXPONENT_LOCATION.
2544         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2545         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2546         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2547         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2548         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2549         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2550         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2551         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2552         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2553
2554 2011-10-15  Bruno Haible  <bruno@clisp.org>
2555
2556         vasnprintf: Fix comments.
2557         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2558
2559 2011-10-14  Bruno Haible  <bruno@clisp.org>
2560
2561         Tests for module 'integer_length_ll'.
2562         * modules/integer_length_ll-tests: New file.
2563         * tests/test-integer_length_ll.c: New file.
2564
2565         New module 'integer_length_ll'.
2566         * lib/integer_length_ll.c: New file.
2567         * modules/integer_length_ll: New file.
2568
2569 2011-10-14  Bruno Haible  <bruno@clisp.org>
2570
2571         Tests for module 'integer_length_l'.
2572         * modules/integer_length_l-tests: New file.
2573         * tests/test-integer_length_l.c: New file.
2574
2575         New module 'integer_length_l'.
2576         * lib/integer_length_l.c: New file.
2577         * modules/integer_length_l: New file.
2578
2579 2011-10-14  Bruno Haible  <bruno@clisp.org>
2580
2581         Tests for module 'integer_length'.
2582         * modules/integer_length-tests: New file.
2583         * tests/test-integer_length.c: New file.
2584
2585         New module 'integer_length'.
2586         * lib/integer_length.h: New file.
2587         * lib/integer_length.c: New file.
2588         * modules/integer_length: New file.
2589
2590 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2591
2592         popen: Fix dependency conditions.
2593         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2594
2595 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2596
2597         perror: Fix autoconf test.
2598         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2599         <stdlib.h> and <string.h>.
2600
2601 2011-10-14  Bruno Haible  <bruno@clisp.org>
2602
2603         ffsl: Optimize on 64-bit platforms.
2604         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2605         unrolling.
2606
2607 2011-10-13  Bruno Haible  <bruno@clisp.org>
2608
2609         ffsl: Optimize on 32-bit platforms.
2610         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2611         use ffs() without a loop.
2612
2613         ffsl, ffsll: Optimize for GCC.
2614         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2615         * lib/ffsl.c (GCC_BUILTIN): New macro.
2616         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2617
2618 2011-10-13  Bruno Haible  <bruno@clisp.org>
2619
2620         ffs, bcopy, memset: Support symbol renaming via config.h.
2621         * lib/ffs.c: Include <config.h>.
2622         * lib/bcopy.c: Likewise.
2623         * lib/memset.c: Likewise.
2624
2625 2011-10-10  Bruno Haible  <bruno@clisp.org>
2626
2627         atanl: Simplify for platforms where 'long double' == 'double'.
2628         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2629         alternative implementation.
2630         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2631         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2632         * modules/atanl (Depends-on): Add atan. Update conditions.
2633
2634 2011-10-10  Bruno Haible  <bruno@clisp.org>
2635
2636         acosl: Simplify for platforms where 'long double' == 'double'.
2637         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2638         alternative implementation.
2639         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2640         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2641         * modules/acosl (Depends-on): Add acos. Update conditions.
2642
2643 2011-10-10  Bruno Haible  <bruno@clisp.org>
2644
2645         asinl: Simplify for platforms where 'long double' == 'double'.
2646         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2647         alternative implementation.
2648         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2649         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2650         * modules/asinl (Depends-on): Add asin. Update conditions.
2651
2652 2011-10-10  Bruno Haible  <bruno@clisp.org>
2653
2654         tanl: Simplify for platforms where 'long double' == 'double'.
2655         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2656         implementation.
2657         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2658         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2659         * modules/tanl (Depends-on): Add tan. Update conditions.
2660         (configure.ac): Don't compile trigl.c if
2661         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2662
2663 2011-10-10  Bruno Haible  <bruno@clisp.org>
2664
2665         cosl: Simplify for platforms where 'long double' == 'double'.
2666         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2667         implementation.
2668         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2669         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2670         * modules/cosl (Depends-on): Add cos. Update conditions.
2671         (configure.ac): Don't compile sincosl.c and trigl.c if
2672         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2673
2674 2011-10-10  Bruno Haible  <bruno@clisp.org>
2675
2676         sinl: Simplify for platforms where 'long double' == 'double'.
2677         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2678         implementation.
2679         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2680         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2681         * modules/sinl (Depends-on): Add sin. Update conditions.
2682         (configure.ac): Don't compile sincosl.c and trigl.c if
2683         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2684
2685 2011-10-10  Bruno Haible  <bruno@clisp.org>
2686
2687         logl: Simplify for platforms where 'long double' == 'double'.
2688         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2689         implementation.
2690         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2691         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2692         * modules/logl (Depends-on): Add log. Update conditions.
2693
2694 2011-10-10  Bruno Haible  <bruno@clisp.org>
2695
2696         expl: Simplify for platforms where 'long double' == 'double'.
2697         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2698         implementation.
2699         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2700         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2701         * modules/expl (Depends-on): Add exp. Update conditions.
2702
2703 2011-10-10  Bruno Haible  <bruno@clisp.org>
2704
2705         sqrtl: Simplify for platforms where 'long double' == 'double'.
2706         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2707         alternative implementation.
2708         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2709         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2710         * modules/sqrtl (Depends-on): Update conditions.
2711
2712 2011-10-10  Bruno Haible  <bruno@clisp.org>
2713
2714         ldexpl: Simplify for platforms where 'long double' == 'double'.
2715         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2716         alternative implementation.
2717         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2718         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2719         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2720
2721 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2722
2723         ffsll: set correct witness
2724         * modules/ffsll (configure.ac): Fix typo.
2725
2726 2011-10-10  Bruno Haible  <bruno@clisp.org>
2727
2728         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2729         * lib/printf-frexpl.c: Include <config.h>.
2730         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2731         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2732         second time.
2733         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2734         gl_LONG_DOUBLE_VS_DOUBLE.
2735         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2736         conditions.
2737
2738 2011-10-10  Bruno Haible  <bruno@clisp.org>
2739
2740         frexpl: Simplify for platforms where 'long double' == 'double'.
2741         * lib/frexpl.c: Include <config.h>.
2742         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2743         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2744         time.
2745         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2746         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2747         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2748         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2749         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2750         conditions.
2751
2752 2011-10-10  Jim Meyering  <meyering@redhat.com>
2753
2754         test-renameat: don't leave behind a temporary file
2755         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2756           ERROR: files left in build directory after distclean:
2757           ./gltests/test-renameat.too
2758           make[1]: *** [distcleancheck] Error 1
2759         Reported by Tom G. Christensen.
2760
2761 2011-10-09  Bruno Haible  <bruno@clisp.org>
2762
2763         rint: Determine RINT_LIBM correctly on AIX 7.
2764         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2765         directly, not only through a function pointer. Also accept an optional
2766         4th argument with extra code.
2767         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2768         rintf() call by gcc when optimizing.
2769
2770         mathfunc.m4: Refactor.
2771         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2772         m4 variable.
2773
2774 2011-10-09  Bruno Haible  <bruno@clisp.org>
2775
2776         rintl: Simplify for platforms where 'long double' == 'double'.
2777         * lib/rintl.c: Include <config.h>.
2778         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2779         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2780         time.
2781         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2782         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2783         * modules/rintl (Depends-on): Add rint. Update conditions.
2784
2785 2011-10-09  Bruno Haible  <bruno@clisp.org>
2786
2787         roundl: Simplify for platforms where 'long double' == 'double'.
2788         * lib/roundl.c: Include <config.h>.
2789         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2790         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2791         time.
2792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2793         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2794         * modules/roundl (Depends-on): Add round. Update conditions.
2795
2796 2011-10-09  Bruno Haible  <bruno@clisp.org>
2797
2798         truncl: Simplify for platforms where 'long double' == 'double'.
2799         * lib/truncl.c: Include <config.h>.
2800         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2801         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2802         time.
2803         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2804         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2805         * modules/truncl (Depends-on): Add trunc. Update conditions.
2806
2807 2011-10-09  Bruno Haible  <bruno@clisp.org>
2808
2809         ceill: Simplify for platforms where 'long double' == 'double'.
2810         * lib/ceill.c: Include <config.h>.
2811         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2812         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2813         time.
2814         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2815         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2816         * modules/ceill (Depends-on): Add ceil. Update conditions.
2817
2818 2011-10-09  Bruno Haible  <bruno@clisp.org>
2819
2820         floorl: Simplify for platforms where 'long double' == 'double'.
2821         * lib/floorl.c: Include <config.h>.
2822         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2823         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2824         time.
2825         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2826         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2827         * modules/floorl (Depends-on): Add floor. Update conditions.
2828
2829 2011-10-09  Bruno Haible  <bruno@clisp.org>
2830
2831         rint: Fix ordering constraints.
2832         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2833         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2834         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2835
2836 2011-10-09  Bruno Haible  <bruno@clisp.org>
2837
2838         copysignl: Simplify for platforms where 'long double' == 'double'.
2839         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2840         alternative.
2841         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2842         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2843         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2844
2845 2011-10-09  Bruno Haible  <bruno@clisp.org>
2846
2847         Tests for module 'rintl'.
2848         * modules/rintl-tests: New file.
2849         * tests/test-rintl.c: New file.
2850
2851         New module 'rintl'.
2852         * lib/math.in.h (rintl): New declaration.
2853         * lib/rintl.c: New file.
2854         * m4/rintl.m4: New file.
2855         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2857         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2858         * modules/rintl: New file.
2859         * tests/test-math-c++.cc: Check the declaration of rintl.
2860         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2861         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2862         * doc/posix-functions/rintl.texi: Mention the new module.
2863
2864 2011-10-09  Bruno Haible  <bruno@clisp.org>
2865
2866         Tests for module 'rintf'.
2867         * modules/rintf-tests: New file.
2868         * tests/test-rintf.c: New file.
2869
2870         New module 'rintf'.
2871         * lib/math.in.h (rintf): New declaration.
2872         * lib/rintf.c: New file.
2873         * m4/rintf.m4: New file.
2874         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2876         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2877         * modules/rintf: New file.
2878         * tests/test-math-c++.cc: Check the declaration of rintf.
2879         * doc/posix-functions/rintf.texi: Mention the new module.
2880
2881 2011-10-09  Bruno Haible  <bruno@clisp.org>
2882
2883         rint: Support for MSVC.
2884         * lib/math.in.h (rint): New declaration.
2885         * lib/rint.c: New file.
2886         * m4/rint.m4: New file.
2887         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2889         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2890         * modules/rint (Description): Fix.
2891         (Files): Add lib/rint.c, m4/rint.m4.
2892         (Depends-on): Add math.
2893         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2894         gl_MATH_MODULE_INDICATOR.
2895         * tests/test-math-c++.cc: Check the declaration of rint.
2896         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2897         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2898         * doc/posix-functions/rint.texi: Mention the replacement provided by
2899         the module.
2900
2901         rint tests: More tests.
2902         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2903         minus-zero.h, infinity.h, nan.h.
2904         (main): Skip the test if the current rounding mode is not standard. Add
2905         tests for negative numbers, minus zero, infinity, NaN.
2906         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2907         tests/nan.h.
2908         (Depends-on): Add isnand-nolibm.
2909
2910 2011-10-09  Bruno Haible  <bruno@clisp.org>
2911
2912         Tests for module 'copysignl'.
2913         * modules/copysignl-tests: New file.
2914         * tests/test-copysignl.c: New file.
2915
2916         New module 'copysignl'.
2917         * lib/math.in.h (copysignl): New declaration.
2918         * lib/copysignl.c: New file.
2919         * m4/copysignl.m4: New file.
2920         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2922         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2923         HAVE_COPYSIGNL.
2924         * modules/copysignl: New file.
2925         * tests/test-math-c++.cc: Check the declaration of copysignl.
2926         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2927         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2928         * doc/posix-functions/copysignl.texi: Mention the new module.
2929
2930 2011-10-09  Bruno Haible  <bruno@clisp.org>
2931
2932         Tests for module 'copysignf'.
2933         * modules/copysignf-tests: New file.
2934         * tests/test-copysignf.c: New file.
2935
2936         New module 'copysignf'.
2937         * lib/math.in.h (copysignf): New declaration.
2938         * lib/copysignf.c: New file.
2939         * m4/copysignf.m4: New file.
2940         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2942         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2943         HAVE_COPYSIGNF.
2944         * modules/copysignf: New file.
2945         * tests/test-math-c++.cc: Check the declaration of copysignf.
2946         * doc/posix-functions/copysignf.texi: Mention the new module.
2947
2948 2011-10-09  Bruno Haible  <bruno@clisp.org>
2949
2950         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2951         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2952         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2953         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2954         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2955         gl_SIGNAL_H_DEFAULTS.
2956
2957 2011-10-09  Bruno Haible  <bruno@clisp.org>
2958
2959         poll: Make macro safer.
2960         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2961         ac_cv_header_poll_h is not set.
2962
2963 2011-10-09  Bruno Haible  <bruno@clisp.org>
2964
2965         copysign: Provide replacement.
2966         * lib/math.in.h (copysign): New declaration.
2967         * lib/copysign.c: New file.
2968         * m4/copysign.m4: New file.
2969         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2971         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2972         HAVE_COPYSIGN.
2973         * modules/copysign (Description): Clarify.
2974         (Files): Add lib/copysign.c, m4/copysign.m4.
2975         (Depends-on): Add math, signbit.
2976         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2977         gl_MATH_MODULE_INDICATOR.
2978         * tests/test-math-c++.cc: Check the declaration of copysign.
2979         * doc/posix-functions/copysign.texi: Mention the effects of the module
2980         on Minix and MSVC.
2981
2982 2011-10-09  Bruno Haible  <bruno@clisp.org>
2983
2984         isinf: Ensure macro on AIX 5.1.
2985         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2986         macro.
2987         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2988
2989 2011-10-09  Bruno Haible  <bruno@clisp.org>
2990
2991         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2992         * modules/snprintf-posix-tests (configure.ac): Require
2993         gl_LONG_DOUBLE_VS_DOUBLE.
2994         * modules/sprintf-posix-tests (configure.ac): Likewise.
2995         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2996         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2997         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2998         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2999         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3000         tests on platforms where 'long double' is the same as 'double'.
3001         * tests/test-sprintf-posix.h (test_function): Likewise.
3002         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3003         * tests/test-vasprintf-posix.c (test_function): Likewise.
3004
3005         *printf: Fix for platforms where 'long double' == 'double'.
3006         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3007         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3008         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3009         * modules/fprintf-posix (Files): Likewise.
3010         * modules/obstack-printf-posix (Files): Likewise.
3011         * modules/snprintf-posix (Files): Likewise.
3012         * modules/sprintf-posix (Files): Likewise.
3013         * modules/vasnprintf (Files): Likewise.
3014         * modules/vasnprintf-posix (Files): Likewise.
3015         * modules/vasprintf-posix (Files): Likewise.
3016         * modules/vdprintf-posix (Files): Likewise.
3017         * modules/vfprintf-posix (Files): Likewise.
3018         * modules/vsnprintf-posix (Files): Likewise.
3019         * modules/vsprintf-posix (Files): Likewise.
3020         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3021         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3022         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3023         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3024         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3025         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3026         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3027
3028         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3029         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3030         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3031         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3032         'long double'.
3033         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3034
3035         isinf: Fix for platforms where 'long double' == 'double'.
3036         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3037         Don't blindly assume 80-bit 'long double'.
3038
3039         isfinite: Fix for platforms where 'long double' == 'double'.
3040         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3041         Don't blindly assume 80-bit 'long double'.
3042
3043         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3044         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3045         * modules/isfinite-tests (configure.ac): Require
3046         gl_LONG_DOUBLE_VS_DOUBLE.
3047         * modules/isinf-tests (configure.ac): Likewise.
3048         * modules/isnan-tests (configure.ac): Likewise.
3049         * modules/isnanl-tests (configure.ac): Likewise.
3050         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3051         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3052         tests on platforms where 'long double' is the same as 'double'.
3053         * tests/test-isinf.c (test_isinfl): Likewise.
3054         * tests/test-isnan.c (test_long_double): Likewise.
3055         * tests/test-isnanl.h (main): Likewise.
3056
3057 2011-10-08  Bruno Haible  <bruno@clisp.org>
3058
3059         Tests for module 'tanhf'.
3060         * modules/tanhf-tests: New file.
3061         * tests/test-tanhf.c: New file.
3062
3063         New module 'tanhf'.
3064         * lib/math.in.h (tanhf): New declaration.
3065         * lib/tanhf.c: New file.
3066         * m4/tanhf.m4: New file.
3067         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3069         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3070         * modules/tanhf: New file.
3071         * tests/test-math-c++.cc: Check the declaration of tanhf.
3072         * doc/posix-functions/tanhf.texi: Mention the new module.
3073
3074         tanh: Use a .m4 file.
3075         * m4/tanh.m4: New file.
3076         * modules/tanh (Files): Add it.
3077         (configure.ac): Just invoke gl_FUNC_TANH.
3078
3079 2011-10-08  Bruno Haible  <bruno@clisp.org>
3080
3081         Tests for module 'coshf'.
3082         * modules/coshf-tests: New file.
3083         * tests/test-coshf.c: New file.
3084
3085         New module 'coshf'.
3086         * lib/math.in.h (coshf): New declaration.
3087         * lib/coshf.c: New file.
3088         * m4/coshf.m4: New file.
3089         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3091         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3092         * modules/coshf: New file.
3093         * tests/test-math-c++.cc: Check the declaration of coshf.
3094         * doc/posix-functions/coshf.texi: Mention the new module.
3095
3096         cosh: Use a .m4 file.
3097         * m4/cosh.m4: New file.
3098         * modules/cosh (Files): Add it.
3099         (configure.ac): Just invoke gl_FUNC_COSH.
3100
3101 2011-10-08  Bruno Haible  <bruno@clisp.org>
3102
3103         Tests for module 'sinhf'.
3104         * modules/sinhf-tests: New file.
3105         * tests/test-sinhf.c: New file.
3106
3107         New module 'sinhf'.
3108         * lib/math.in.h (sinhf): New declaration.
3109         * lib/sinhf.c: New file.
3110         * m4/sinhf.m4: New file.
3111         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3113         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3114         * modules/sinhf: New file.
3115         * tests/test-math-c++.cc: Check the declaration of sinhf.
3116         * doc/posix-functions/sinhf.texi: Mention the new module.
3117
3118         sinh: Use a .m4 file.
3119         * m4/sinh.m4: New file.
3120         * modules/sinh (Files): Add it.
3121         (configure.ac): Just invoke gl_FUNC_SINH.
3122
3123 2011-10-08  Bruno Haible  <bruno@clisp.org>
3124
3125         Tests for module 'atan2f'.
3126         * modules/atan2f-tests: New file.
3127         * tests/test-atan2f.c: New file.
3128
3129         New module 'atan2f'.
3130         * lib/math.in.h (atan2f): New declaration.
3131         * lib/atan2f.c: New file.
3132         * m4/atan2f.m4: New file.
3133         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3135         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3136         * modules/atan2f: New file.
3137         * tests/test-math-c++.cc: Check the declaration of atan2f.
3138         * doc/posix-functions/atan2f.texi: Mention the new module.
3139
3140         atan2: Use a .m4 file.
3141         * m4/atan2.m4: New file.
3142         * modules/atan2 (Files): Add it.
3143         (configure.ac): Just invoke gl_FUNC_ATAN2.
3144
3145 2011-10-08  Bruno Haible  <bruno@clisp.org>
3146
3147         Tests for module 'atanf'.
3148         * modules/atanf-tests: New file.
3149         * tests/test-atanf.c: New file.
3150
3151         New module 'atanf'.
3152         * lib/math.in.h (atanf): New declaration.
3153         * lib/atanf.c: New file.
3154         * m4/atanf.m4: New file.
3155         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3157         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3158         * modules/atanf: New file.
3159         * tests/test-math-c++.cc: Check the declaration of atanf.
3160         * doc/posix-functions/atanf.texi: Mention the new module.
3161
3162         atan: Use a .m4 file.
3163         * m4/atan.m4: New file.
3164         * modules/atan (Files): Add it.
3165         (configure.ac): Just invoke gl_FUNC_ATAN.
3166
3167 2011-10-08  Bruno Haible  <bruno@clisp.org>
3168
3169         Tests for module 'acosf'.
3170         * modules/acosf-tests: New file.
3171         * tests/test-acosf.c: New file.
3172
3173         New module 'acosf'.
3174         * lib/math.in.h (acosf): New declaration.
3175         * lib/acosf.c: New file.
3176         * m4/acosf.m4: New file.
3177         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3179         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3180         * modules/acosf: New file.
3181         * tests/test-math-c++.cc: Check the declaration of acosf.
3182         * doc/posix-functions/acosf.texi: Mention the new module.
3183
3184         acos: Use a .m4 file.
3185         * m4/acos.m4: New file.
3186         * modules/acos (Files): Add it.
3187         (configure.ac): Just invoke gl_FUNC_ACOS.
3188
3189 2011-10-08  Bruno Haible  <bruno@clisp.org>
3190
3191         Tests for module 'asinf'.
3192         * modules/asinf-tests: New file.
3193         * tests/test-asinf.c: New file.
3194
3195         New module 'asinf'.
3196         * lib/math.in.h (asinf): New declaration.
3197         * lib/asinf.c: New file.
3198         * m4/asinf.m4: New file.
3199         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3201         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3202         * modules/asinf: New file.
3203         * tests/test-math-c++.cc: Check the declaration of asinf.
3204         * doc/posix-functions/asinf.texi: Mention the new module.
3205
3206         asin: Use a .m4 file.
3207         * m4/asin.m4: New file.
3208         * modules/asin (Files): Add it.
3209         (configure.ac): Just invoke gl_FUNC_ASIN.
3210
3211 2011-10-08  Bruno Haible  <bruno@clisp.org>
3212
3213         Tests for module 'tanf'.
3214         * modules/tanf-tests: New file.
3215         * tests/test-tanf.c: New file.
3216
3217         New module 'tanf'.
3218         * lib/math.in.h (tanf): New declaration.
3219         * lib/tanf.c: New file.
3220         * m4/tanf.m4: New file.
3221         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3223         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3224         * modules/tanf: New file.
3225         * tests/test-math-c++.cc: Check the declaration of tanf.
3226         * doc/posix-functions/tanf.texi: Mention the new module.
3227
3228         tan: Use a .m4 file.
3229         * m4/tan.m4: New file.
3230         * modules/tan (Files): Add it.
3231         (configure.ac): Just invoke gl_FUNC_TAN.
3232
3233 2011-10-08  Bruno Haible  <bruno@clisp.org>
3234
3235         Tests for module 'cosf'.
3236         * modules/cosf-tests: New file.
3237         * tests/test-cosf.c: New file.
3238
3239         New module 'cosf'.
3240         * lib/math.in.h (cosf): New declaration.
3241         * lib/cosf.c: New file.
3242         * m4/cosf.m4: New file.
3243         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3245         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3246         * modules/cosf: New file.
3247         * tests/test-math-c++.cc: Check the declaration of cosf.
3248         * doc/posix-functions/cosf.texi: Mention the new module.
3249
3250         cos: Use a .m4 file.
3251         * m4/cos.m4: New file.
3252         * modules/cos (Files): Add it.
3253         (configure.ac): Just invoke gl_FUNC_COS.
3254
3255 2011-10-08  Bruno Haible  <bruno@clisp.org>
3256
3257         Tests for module 'sinf'.
3258         * modules/sinf-tests: New file.
3259         * tests/test-sinf.c: New file.
3260
3261         New module 'sinf'.
3262         * lib/math.in.h (sinf): New declaration.
3263         * lib/sinf.c: New file.
3264         * m4/sinf.m4: New file.
3265         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3267         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3268         * modules/sinf: New file.
3269         * tests/test-math-c++.cc: Check the declaration of sinf.
3270         * doc/posix-functions/sinf.texi: Mention the new module.
3271
3272         sin: Use a .m4 file.
3273         * m4/sin.m4: New file.
3274         * modules/sin (Files): Add it.
3275         (configure.ac): Just invoke gl_FUNC_SIN.
3276
3277 2011-10-08  Bruno Haible  <bruno@clisp.org>
3278
3279         Tests for module 'powf'.
3280         * modules/powf-tests: New file.
3281         * tests/test-powf.c: New file.
3282
3283         New module 'powf'.
3284         * lib/math.in.h (powf): New declaration.
3285         * lib/powf.c: New file.
3286         * m4/powf.m4: New file.
3287         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3289         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3290         * modules/powf: New file.
3291         * tests/test-math-c++.cc: Check the declaration of powf.
3292         * doc/posix-functions/powf.texi: Mention the new module.
3293
3294         pow: Use a .m4 file.
3295         * m4/pow.m4: New file.
3296         * modules/pow (Files): Add it.
3297         (configure.ac): Just invoke gl_FUNC_POW.
3298
3299 2011-10-08  Bruno Haible  <bruno@clisp.org>
3300
3301         Tests for module 'log10f'.
3302         * modules/log10f-tests: New file.
3303         * tests/test-log10f.c: New file.
3304
3305         New module 'log10f'.
3306         * lib/math.in.h (log10f): New declaration.
3307         * lib/log10f.c: New file.
3308         * m4/log10f.m4: New file.
3309         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3311         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3312         * modules/log10f: New file.
3313         * tests/test-math-c++.cc: Check the declaration of log10f.
3314         * doc/posix-functions/log10f.texi: Mention the new module.
3315
3316         log10: Use a .m4 file.
3317         * m4/log10.m4: New file.
3318         * modules/log10 (Files): Add it.
3319         (configure.ac): Just invoke gl_FUNC_LOG10.
3320
3321 2011-10-08  Bruno Haible  <bruno@clisp.org>
3322
3323         Tests for module 'logf'.
3324         * modules/logf-tests: New file.
3325         * tests/test-logf.c: New file.
3326
3327         New module 'logf'.
3328         * lib/math.in.h (logf): New declaration.
3329         * lib/logf.c: New file.
3330         * m4/logf.m4: New file.
3331         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3333         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3334         * modules/logf: New file.
3335         * tests/test-math-c++.cc: Check the declaration of logf.
3336         * doc/posix-functions/logf.texi: Mention the new module.
3337
3338         log: Use a .m4 file.
3339         * m4/log.m4: New file.
3340         * modules/log (Files): Add it.
3341         (configure.ac): Just invoke gl_FUNC_LOG.
3342
3343 2011-10-08  Bruno Haible  <bruno@clisp.org>
3344
3345         Tests for module 'expf'.
3346         * modules/expf-tests: New file.
3347         * tests/test-expf.c: New file.
3348
3349         New module 'expf'.
3350         * lib/math.in.h (expf): New declaration.
3351         * lib/expf.c: New file.
3352         * m4/expf.m4: New file.
3353         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3355         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3356         * modules/expf: New file.
3357         * tests/test-math-c++.cc: Check the declaration of expf.
3358         * doc/posix-functions/expf.texi: Mention the new module.
3359
3360         exp: Use a .m4 file.
3361         * m4/exp.m4: New file.
3362         * modules/exp (Files): Add it.
3363         (configure.ac): Just invoke gl_FUNC_EXP.
3364
3365 2011-10-08  Bruno Haible  <bruno@clisp.org>
3366
3367         Tests for module 'sqrtf'.
3368         * modules/sqrtf-tests: New file.
3369         * tests/test-sqrtf.c: New file.
3370
3371         New module 'sqrtf'.
3372         * lib/math.in.h (sqrtf): New declaration.
3373         * lib/sqrtf.c: New file.
3374         * m4/sqrtf.m4: New file.
3375         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3377         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3378         * modules/sqrtf: New file.
3379         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3380         * doc/posix-functions/sqrtf.texi: Mention the new module.
3381
3382 2011-10-08  Bruno Haible  <bruno@clisp.org>
3383
3384         Tests: Avoid link failures w.r.t. libintl.
3385         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3386         $(LIBINTL).
3387         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3388         $(LIBINTL).
3389         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3390         against $(LIBINTL).
3391         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3392         $(LIBINTL).
3393         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3394         $(LIBINTL).
3395         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3396
3397 2011-10-08  Bruno Haible  <bruno@clisp.org>
3398
3399         pow tests: Defeat compiler optimizations.
3400         * tests/test-pow.c (main): Assign arguments to x and y before use.
3401
3402 2011-10-08  Bruno Haible  <bruno@clisp.org>
3403
3404         gnulib-tool: Improve last commit.
3405         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3406         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3407         ignore dependencies that are not among the modules list.
3408
3409 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3410
3411         gnulib-tool: don't follow dependencies to avoided modules
3412         This fixes a bug that is related to the previous one.
3413         * gnulib-tool (func_modules_transitive_closure)
3414         (func_emit_autoconf_snippets):
3415         Check whether a dependency is acceptable before using it.
3416         (--extract-dependencies): Report an error if --avoid is also used,
3417         since this combination of options is not yet supported.
3418
3419         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3420         Problem reported by Peter Dyballa in
3421         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3422         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3423         when echoing "$condition".
3424
3425 2011-10-07  Bruno Haible  <bruno@clisp.org>
3426
3427         Fix documentation about math functions on MacOS X.
3428         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3429         MacOS X 10.5.
3430         * doc/posix-functions/fdim.texi: Likewise.
3431         * doc/posix-functions/feclearexcept.texi: Likewise.
3432         * doc/posix-functions/fegetenv.texi: Likewise.
3433         * doc/posix-functions/fegetround.texi: Likewise.
3434         * doc/posix-functions/feholdexcept.texi: Likewise.
3435         * doc/posix-functions/feraiseexcept.texi: Likewise.
3436         * doc/posix-functions/fesetenv.texi: Likewise.
3437         * doc/posix-functions/fesetround.texi: Likewise.
3438         * doc/posix-functions/fetestexcept.texi: Likewise.
3439         * doc/posix-functions/feupdateenv.texi: Likewise.
3440         * doc/posix-functions/fmax.texi: Likewise.
3441         * doc/posix-functions/fmin.texi: Likewise.
3442         * doc/posix-functions/log2.texi: Likewise.
3443         * doc/posix-functions/modff.texi: Likewise.
3444         * doc/posix-functions/nan.texi: Likewise.
3445         * doc/posix-functions/nanf.texi: Likewise.
3446         * doc/posix-functions/nextafterf.texi: Likewise.
3447         * doc/posix-functions/remquo.texi: Likewise.
3448
3449 2011-10-07  Bruno Haible  <bruno@clisp.org>
3450
3451         modff: Drop assumption about library that defines modff.
3452         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3453         AC_CHECK_FUNCS.
3454         * modules/modff (Files): Add m4/mathfunc.m4.
3455
3456 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3457
3458         raise tests: Avoid a GCC warning.
3459         * tests/test-raise.c (handler): Use _Noreturn.
3460
3461 2011-10-07  Bruno Haible  <bruno@clisp.org>
3462
3463         Tests for module 'ldexpf'.
3464         * modules/ldexpf-tests: New file.
3465         * tests/test-ldexpf.c: New file.
3466
3467         New module 'ldexpf'.
3468         * lib/math.in.h (ldexpf): New declaration.
3469         * lib/ldexpf.c: New file.
3470         * m4/ldexpf.m4: New file.
3471         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3473         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3474         * modules/ldexpf: New file.
3475         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3476         * doc/posix-functions/ldexpf.texi: Mention the new module.
3477
3478 2011-10-06  Bruno Haible  <bruno@clisp.org>
3479
3480         frexpf: Work around problems on IRIX and mingw.
3481         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3483         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3484         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3485         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3486         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3487         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3488
3489 2011-10-06  Bruno Haible  <bruno@clisp.org>
3490
3491         fabsf: Drop assumption about library that defines fabsf.
3492         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3493         AC_CHECK_FUNCS.
3494         * modules/fabsf (Files): Add m4/mathfunc.m4.
3495
3496 2011-10-06  Bruno Haible  <bruno@clisp.org>
3497
3498         frexpf: Drop assumption about library that defines frexpf.
3499         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3500         'int *', 'float *', 'long double *', 'float', 'long double'.
3501         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3502         AC_CHECK_FUNCS.
3503         * modules/frexpf (Files): Add m4/mathfunc.m4.
3504
3505         Tests for module 'frexpf'.
3506         * modules/frexpf-tests: New file.
3507         * tests/test-frexpf.c: New file.
3508
3509         New module 'frexpf'.
3510         * lib/math.in.h (frexpf): New declaration.
3511         * lib/frexpf.c: New file.
3512         * m4/frexpf.m4: New file.
3513         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3515         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3516         * modules/frexpf: New file.
3517         * tests/test-math-c++.cc: Check the declaration of frexpf.
3518         * doc/posix-functions/frexpf.texi: Mention the new module.
3519
3520 2011-10-06  Bruno Haible  <bruno@clisp.org>
3521
3522         math: Sort function declarations of math.in.h.
3523         * lib/math.in.h (frexp, logb): Move declarations.
3524
3525 2011-10-05  Bruno Haible  <bruno@clisp.org>
3526
3527         Tests for module 'modff'.
3528         * modules/modff-tests: New file.
3529         * tests/test-modff.c: New file.
3530
3531         New module 'modff'.
3532         * lib/math.in.h (modff): New declaration.
3533         * lib/modff.c: New file.
3534         * m4/modff.m4: New file.
3535         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3537         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3538         * modules/modff: New file.
3539         * tests/test-math-c++.cc: Check the declaration of modff.
3540         * doc/posix-functions/modff.texi: Mention the new module.
3541
3542         modf tests: Make test sharper.
3543         * tests/test-modf.c (main): Strengthen upper bound.
3544
3545         modf: Use a .m4 file.
3546         * m4/modf.m4: New file.
3547         * modules/modf (Files): Add it.
3548         (configure.ac): Just invoke gl_FUNC_MODF.
3549
3550 2011-10-05  Bruno Haible  <bruno@clisp.org>
3551
3552         Tests for module 'fmodf'.
3553         * modules/fmodf-tests: New file.
3554         * tests/test-fmodf.c: New file.
3555
3556         New module 'fmodf'.
3557         * lib/math.in.h (fmodf): New declaration.
3558         * lib/fmodf.c: New file.
3559         * m4/fmodf.m4: New file.
3560         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3562         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3563         * modules/fmodf: New file.
3564         * tests/test-math-c++.cc: Check the declaration of fmodf.
3565         * doc/posix-functions/fmodf.texi: Mention the new module.
3566
3567         fmod: Use a .m4 file.
3568         * m4/fmod.m4: New file.
3569         * modules/fmod (Files): Add it.
3570         (configure.ac): Just invoke gl_FUNC_FMOD.
3571
3572 2011-10-05  Bruno Haible  <bruno@clisp.org>
3573
3574         Tests for module 'fabsf'.
3575         * modules/fabsf-tests: New file.
3576         * tests/test-fabsf.c: New file.
3577
3578         New module 'fabsf'.
3579         * lib/math.in.h (fabsf): New declaration.
3580         * lib/fabsf.c: New file.
3581         * m4/fabsf.m4: New file.
3582         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3584         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3585         * modules/fabsf: New file.
3586         * tests/test-math-c++.cc: Check the declaration of fabsf.
3587         * doc/posix-functions/fabsf.texi: Mention the new module.
3588
3589         fabs: Use a .m4 file.
3590         * m4/fabs.m4: New file.
3591         * modules/fabs (Files): Add it.
3592         (configure.ac): Just invoke gl_FUNC_FABS.
3593
3594 2011-10-05  Jim Meyering  <meyering@redhat.com>
3595
3596         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3597         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3598         ls -lL regression introduced in coreutils-8.12, it does so at the
3599         cost of an additional stat call in the common case.  Besides, now
3600         that the kernel change that prompted commit 95f7c57f has been reverted
3601         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3602         we have no use for commit 95f7c57f, "file-has-acl: use
3603         acl_extended_file_nofollow if available".
3604
3605 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3606
3607         file-has-acl: revert unintended change in behavior of ls -L
3608         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3609         derived from...
3610         (file_has_acl): ...code here.  Call it.
3611         This problem was introduced with 2011-07-22 commit 95f7c57f,
3612         "file-has-acl: use acl_extended_file_nofollow if available".
3613         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3614
3615 2011-10-03  Bruno Haible  <bruno@clisp.org>
3616
3617         poll: Avoid link errors on MSVC.
3618         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3619         * modules/poll (Depends-on): Add sockets.
3620         (Link): New section.
3621         * NEWS: Mention the change.
3622         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3623         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3624         $(LIB_POLL) instead of $(LIBSOCKET).
3625
3626 2011-10-03  Bruno Haible  <bruno@clisp.org>
3627
3628         sys_select tests: Fix link error on MSVC 9.
3629         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3630         with $(LIB_SELECT) instead of $(LIBSOCKET).
3631
3632 2011-10-03  Bruno Haible  <bruno@clisp.org>
3633
3634         sys_select: Fix compilation error on mingw.
3635         * lib/sys_select.in.h: On native Windows, include <io.h>.
3636
3637 2011-10-03  Bruno Haible  <bruno@clisp.org>
3638
3639         wmemset: Support for MSVC.
3640         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3641         whether wmemset() exists.
3642
3643 2011-10-03  Bruno Haible  <bruno@clisp.org>
3644
3645         wmemmove: Support for MSVC.
3646         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3647         whether wmemmove() exists.
3648
3649 2011-10-03  Bruno Haible  <bruno@clisp.org>
3650
3651         wmemcpy: Support for MSVC.
3652         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3653         whether wmemcpy() exists.
3654
3655 2011-10-03  Bruno Haible  <bruno@clisp.org>
3656
3657         wmemcmp: Support for MSVC.
3658         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3659         whether wmemcmp() exists.
3660
3661 2011-10-03  Bruno Haible  <bruno@clisp.org>
3662
3663         wmemchr: Support for MSVC.
3664         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3665         whether wmemchr() exists.
3666
3667 2011-10-03  Bruno Haible  <bruno@clisp.org>
3668
3669         glthread/*, strsignal: Support for MSVC.
3670         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3671         including <winsock.h> on MSVC 9.
3672         * lib/glthread/lock.h: Likewise.
3673         * lib/glthread/thread.h: Likewise.
3674         * lib/glthread/tls.h: Likewise.
3675         * lib/glthread/yield.h: Likewise.
3676         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3677         if HAVE_UNISTD_H is false.
3678         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3679
3680 2011-10-03  Bruno Haible  <bruno@clisp.org>
3681
3682         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3683         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3684         Set to 100000.
3685
3686 2011-10-03  Bruno Haible  <bruno@clisp.org>
3687
3688         acl: Fix specification.
3689         * lib/file-has-acl.c (file_has_acl): Fix specification.
3690
3691 2011-10-03  Bruno Haible  <bruno@clisp.org>
3692
3693         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3694         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3695         (compute_curr_prefix, shared_library_fullname,
3696         find_shared_library_fullname, get_shared_library_fullname, relocate):
3697         Use it together with PIC && INSTALLDIR.
3698         Reported by <jojelino@gmail.com>
3699         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3700
3701 2011-10-01  Jim Meyering  <meyering@redhat.com>
3702
3703         maint.mk: adjust a release-related rule not to require use of gzip
3704         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3705         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3706         projects that build only .tar.xz files.  Also fix an erroneous test.
3707
3708         test-linkat: don't leave behind a temporary file
3709         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3710         Otherwise, coreutils' "make distcheck" would fail with this:
3711           Only in /c/cu/tests/torture/coreutils/test/\
3712             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3713           make[2]: *** [my-distcheck] Error 1
3714
3715         float, math: add omitted file
3716         * lib/itold.c: Add file, required for yesterday's float change.
3717
3718 2011-10-01  Bruno Haible  <bruno@clisp.org>
3719
3720         isinf: Fix for OpenBSD/x86.
3721         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3722         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3723         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3724
3725 2011-10-01  Bruno Haible  <bruno@clisp.org>
3726
3727         isfinite: Fix syntax error in configure test.
3728         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3729
3730         isfinite: Fix typo.
3731         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3732         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3733
3734 2011-10-01  Bruno Haible  <bruno@clisp.org>
3735
3736         nonblocking tests: Fix test failure on Linux/IA-64.
3737         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3738         Set to 270000.
3739
3740 2011-10-01  Bruno Haible  <bruno@clisp.org>
3741
3742         mkfifoat tests: Fix a test failure on mingw.
3743         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3744         with error ENOSYS.
3745
3746 2011-09-30  Bruno Haible  <bruno@clisp.org>
3747
3748         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3749         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3750         'long double'. Set REPLACE_ITOLD.
3751         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3752         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3753         * lib/itold.c: New file.
3754         * modules/float (Files): Add lib/itold.c.
3755         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3756         (Makefile.am): Substitute REPLACE_ITOLD.
3757         * modules/math (Depends-on): Add float.
3758         (Makefile.am): Substitute REPLACE_ITOLD.
3759         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3760         * doc/posix-headers/math.texi: Likewise.
3761         * doc/posix-functions/logl.texi: Likewise.
3762
3763 2011-09-30  Bruno Haible  <bruno@clisp.org>
3764
3765         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3766         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3767         Set to 140000.
3768
3769 2011-09-30  Bruno Haible  <bruno@clisp.org>
3770
3771         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3772         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3773         invocation, say "right after AC_PROG_CC_STDC", not "right after
3774         AC_PROG_CC".
3775         Reported by Gary V. Vaughan <gary@gnu.org>.
3776
3777 2011-09-30  Bruno Haible  <bruno@clisp.org>
3778
3779         Centralize C99 requirement.
3780         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3781         * modules/stdarg (configure.ac-early): Invoke it instead of
3782         AC_PROG_CC_STDC.
3783         Reported by Gary V. Vaughan and Paul Eggert.
3784
3785 2011-09-29  Bruno Haible  <bruno@clisp.org>
3786
3787         float: Fix LDBL_MAX value on Linux/PowerPC.
3788         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3789         on Linux/PowerPC.
3790         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3791         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3792         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3793         platform.
3794         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3795
3796 2011-09-29  Bruno Haible  <bruno@clisp.org>
3797
3798         doc: Improve doc about gl_EARLY.
3799         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3800         AC_PROG_CC_STDC invocation.
3801         Reported by Gary V. Vaughan <gary@gnu.org>.
3802
3803 2011-09-28  Bruno Haible  <bruno@clisp.org>
3804
3805         fgetc, fputc, fread, fwrite tests: Fix link error.
3806         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3807         on non-MSVC platforms.
3808         * tests/test-fputc.c (main): Likewise.
3809         * tests/test-fread.c (main): Likewise.
3810         * tests/test-fwrite.c (main): Likewise.
3811         Reported by Jim Meyering.
3812
3813 2011-09-27  Bruno Haible  <bruno@clisp.org>
3814
3815         fputc, fwrite tests: Avoid test failure on MSVC.
3816         * tests/test-fgetc.c: Include msvc-inval.h.
3817         (main): Invoke gl_msvc_inval_ensure_handler.
3818         * tests/test-fputc.c: Include msvc-inval.h.
3819         (main): Invoke gl_msvc_inval_ensure_handler.
3820         * tests/test-fread.c: Include msvc-inval.h.
3821         (main): Invoke gl_msvc_inval_ensure_handler.
3822         * tests/test-fwrite.c: Include msvc-inval.h.
3823         (main): Invoke gl_msvc_inval_ensure_handler.
3824         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3825         * modules/fputc-tests (Depends-on): Likewise.
3826         * modules/fread-tests (Depends-on): Likewise.
3827         * modules/fwrite-tests (Depends-on): Likewise.
3828
3829 2011-09-27  Bruno Haible  <bruno@clisp.org>
3830
3831         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3832         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3833         (raise): Remove older, duplicated declaration.
3834         (_gl_raise_SIGPIPE): New declaration.
3835         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3836         (rpl_raise): Remove function.
3837         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3838         a gnulib-defined SIGPIPE here.
3839         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3840         'sigprocmask' has detected missing signal-blocking and the module
3841         'sigpipe' is enabled.
3842         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3843
3844 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3845
3846         base64-tests: avoid memory leak
3847         * tests/test-base64.c (main): Plug memory leak.
3848
3849         base32: new module
3850         * modules/base32: New module.
3851         * lib/base32.c: New file.
3852         * lib/base32.h: Likewise.
3853         * m4/base32.m4: Likewise.
3854         * modules/base32-tests: New test.
3855         * tests/test-base32.c: Likewise.
3856         * MODULES.html.sh (Misc): Mention it.
3857
3858 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3859
3860         gnulib: use more-standard license notice wording
3861         * gnulib-tool (func_emit_copyright_notice): When emitting a
3862         license notice into a file, use the standard wording as suggested
3863         by the current information for GNU maintainers, except say "file"
3864         rather than "program".  The new wording gives a license version
3865         number, which addresses an issue raised by Glenn Morris in
3866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3867         * m4/onceonly.m4: Use that same wording here, too.
3868
3869         dup2: minor simplification
3870         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3871         as lib/dup2.c no longer uses 'inline'.
3872
3873 2011-09-25  Bruno Haible  <bruno@clisp.org>
3874
3875         strings: Fix compilation error on MSVC.
3876         * lib/strings.in.h: Include <stddef.h> for size_t.
3877
3878 2011-09-25  Bruno Haible  <bruno@clisp.org>
3879
3880         fflush et al.: Document limitation on MSVC.
3881         * doc/posix-functions/fflush.texi: Document possible crash in handling
3882         mode other than DEFAULT_HANDLING.
3883         * doc/posix-functions/fgetc.texi: Likewise.
3884         * doc/posix-functions/fputc.texi: Likewise.
3885         * doc/posix-functions/fread.texi: Likewise.
3886         * doc/posix-functions/fwrite.texi: Likewise.
3887
3888 2011-09-25  Bruno Haible  <bruno@clisp.org>
3889
3890         msvc-inval: Allow three invalid parameter handling modes.
3891         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3892         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3893         macros.
3894         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3895         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3896         SANE_LIBRARY_HANDLING as a no-op.
3897         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3898         <stdlib.h>.
3899         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3900
3901 2011-09-25  Bruno Haible  <bruno@clisp.org>
3902
3903         msvc-inval: Make handler multithread-safe.
3904         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3905         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3906         declarations.
3907         (gl_msvc_inval_current): New declaration.
3908         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3909         Operate on the structure returned by gl_msvc_inval_current().
3910         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3911         Remove varaiables.
3912         (tls_index, tls_initialized): New variables.
3913         (not_per_thread): New variable.
3914         (gl_msvc_inval_current): New function.
3915         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3916         returned by gl_msvc_inval_current().
3917
3918 2011-09-25  Bruno Haible  <bruno@clisp.org>
3919
3920         msvc-inval: Install handler globally.
3921         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3922         !_MSC_VER.
3923         (gl_msvc_invalid_parameter_handler): Remove declaration.
3924         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3925         declarations.
3926         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3927         Install the handler globally, don't uninstall it.
3928         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3929         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3930         currently valid, call RaiseException instead.
3931         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3932         for !_MSC_VER.
3933
3934 2011-09-25  Bruno Haible  <bruno@clisp.org>
3935
3936         strerror_r-posix: Fix for MSVC 9.
3937         * lib/strerror_r.c (local_snprintf): New function.
3938         (snprintf): Define to local_snprintf, not to _snprintf.
3939
3940 2011-09-25  Bruno Haible  <bruno@clisp.org>
3941
3942         ftruncate: Support for MSVC 9.
3943         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3944         (chsize_nothrow): New function.
3945         (chsize): Redefine as a macro.
3946         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3947         * modules/ftruncate (Depends-on): Add msvc-inval.
3948
3949 2011-09-25  Bruno Haible  <bruno@clisp.org>
3950
3951         New module 'fstat'.
3952         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3953         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3954         * lib/fchdir.c (rpl_fstat): Remove function.
3955         * m4/fstat.m4: New file.
3956         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3958         declared.
3959         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3960         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3961         * modules/fstat: New file.
3962         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3963         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3964         is set.
3965         * doc/posix-functions/fstat.texi: Mention the new module and the
3966         problem on MSVC.
3967         * NEWS: Mention the change.
3968         * modules/acl (Depends-on): Add fstat.
3969         * modules/chdir-safer (Depends-on): Likewise.
3970         * modules/chown (Depends-on): Likewise.
3971         * modules/copy-file (Depends-on): Likewise.
3972         * modules/fchdir (Depends-on): Likewise.
3973         * modules/fdopendir (Depends-on): Likewise.
3974         * modules/fopen (Depends-on): Likewise.
3975         * modules/fts (Depends-on): Likewise.
3976         * modules/getcwd (Depends-on): Likewise.
3977         * modules/isapipe (Depends-on): Likewise.
3978         * modules/linkat (Depends-on): Likewise.
3979         * modules/lseek (Depends-on): Likewise.
3980         * modules/mkdir-p (Depends-on): Likewise.
3981         * modules/open (Depends-on): Likewise.
3982         * modules/openat (Depends-on): Likewise.
3983         * modules/read-file (Depends-on): Likewise.
3984         * modules/renameat (Depends-on): Likewise.
3985         * modules/utimens (Depends-on): Likewise.
3986
3987 2011-09-25  Bruno Haible  <bruno@clisp.org>
3988
3989         linkat: Fix compilation on MSVC 9.
3990         * lib/linkat.c: Don't include <stdint.h>.
3991
3992 2011-09-25  Bruno Haible  <bruno@clisp.org>
3993
3994         fclose: Support for MSVC 9.
3995         * lib/fclose.c: Include msvc-inval.h.
3996         (fclose_nothrow): New function.
3997         (rpl_fclose): Use it.
3998         * modules/fclose (Depends-on): Add msvc-inval.
3999         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4000
4001 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4002
4003         dup2: minor simplifications
4004         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4005         that it's a performance win.
4006         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4007         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4008
4009 2011-09-24  Jim Meyering  <meyering@redhat.com>
4010
4011         test-futimens: avoid a warning from gcc -Wshadow
4012         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4013         to avoid a shadowing warning.
4014
4015 2011-09-24  Bruno Haible  <bruno@clisp.org>
4016
4017         fdopen: Support for MSVC 9.
4018         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4019         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4020         * lib/fdopen.c: Include msvc-inval.h.
4021         (fdopen_nothrow): New function.
4022         (rpl_fdopen): Use it.
4023         * modules/fdopen (Depends-on): Add msvc-inval.
4024         * modules/fclose-tests (Depends-on): Add fdopen.
4025         * modules/fflush-tests (Depends-on): Likewise.
4026         * modules/fgetc-tests (Depends-on): Likewise.
4027         * modules/fputc-tests (Depends-on): Likewise.
4028         * modules/fread-tests (Depends-on): Likewise.
4029         * modules/freopen-tests (Depends-on): Likewise.
4030         * modules/fseeko-tests (Depends-on): Likewise.
4031         * modules/ftello-tests (Depends-on): Likewise.
4032         * modules/fwrite-tests  (Depends-on): Likewise.
4033         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4034
4035 2011-09-24  Bruno Haible  <bruno@clisp.org>
4036
4037         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4038         * modules/fgetc-tests (Depends-on): Add unistd.
4039         * modules/fputc-tests (Depends-on): Likewise.
4040         * modules/fread-tests (Depends-on): Likewise.
4041         * modules/fwrite-tests (Depends-on): Likewise.
4042
4043 2011-09-24  Bruno Haible  <bruno@clisp.org>
4044
4045         dup: Simplify autoconf test.
4046         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4047         on gl_MSVC_INVAL's result.
4048
4049 2011-09-24  Bruno Haible  <bruno@clisp.org>
4050
4051         Tests for function fwrite().
4052         * modules/fwrite-tests: New file.
4053         * tests/test-fwrite.c: New file.
4054         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4055
4056         Tests for function fread().
4057         * modules/fread-tests: New file.
4058         * tests/test-fread.c: New file.
4059         * modules/stdio-tests (Depends-on): Add fread-tests.
4060
4061         Activate fputc tests.
4062         * modules/stdio-tests (Depends-on): Add fputc-tests.
4063
4064         Enhance fgetc, fputc tests.
4065         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4066         * tests/test-fputc.c (main): Likewise.
4067
4068 2011-09-24  Bruno Haible  <bruno@clisp.org>
4069
4070         write: Support for MSVC 9.
4071         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4072         is not 1.
4073         * lib/write.c (write_nothrow): New function.
4074         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4075         not 1. Use write_nothrow.
4076         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4077         invalid parameter handler.
4078         (gl_PREREQ_WRITE): New macro.
4079         * modules/write (Depends-on): Add msvc-inval.
4080         (configure.ac): Invoke gl_PREREQ_WRITE.
4081         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4082
4083 2011-09-24  Bruno Haible  <bruno@clisp.org>
4084
4085         read: Fix last commit.
4086         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4087
4088 2011-09-24  Bruno Haible  <bruno@clisp.org>
4089
4090         dup2: Fix last commit.
4091         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4092         (rpl_dup2): Disable fcntl workaround on native Windows.
4093
4094         sigprocmask: Make code safer.
4095         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4096         section that changes macro definitions for this compilation unit.
4097
4098 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4099
4100         dup2: clarify by coalescing Windows-specific material
4101         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4102         "msvc-nothrow.h"' to the Windows-specific section, so that the
4103         Emacs source need not contain these include files.
4104         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4105         Windows-specific fixes into this function rather than just the
4106         nothrow fix, as this shortens and clarifies the code.  Always
4107         define as a function, as that's a bit cleaner than having it be
4108         sometimes a function and sometimes a macro.
4109         (rpl_dup2): Move the Windows-specific stuff out of here and into
4110         ms_windows_dup2.  Don't protect the Haiku-related fix with
4111         "#if !defined __linux__", as the same code also works around
4112         a Linux kernel bug, and it doesn't add any system calls on any
4113         platform.  Add comment about FreeBSD 6.1.
4114
4115         sigprocmask: move #include directive
4116         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4117         Windows-specific section, so that the Emacs source need not
4118         contain msvc-inval.h.
4119
4120 2011-09-23  Bruno Haible  <bruno@clisp.org>
4121
4122         read: Support for MSVC 9.
4123         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4124         is not 1.
4125         * lib/read.c (read_nothrow): New function.
4126         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4127         read_nothrow.
4128         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4129         invalid parameter handler.
4130         (gl_PREREQ_READ): New macro.
4131         * modules/read (Depends-on): Add msvc-inval.
4132         (configure.ac): Invoke gl_PREREQ_READ.
4133         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4134
4135 2011-09-23  Bruno Haible  <bruno@clisp.org>
4136
4137         close: Support for MSVC 9.
4138         * lib/close.c: Include <errno.h>, msvc-inval.h.
4139         (close_nothrow): New function.
4140         (rpl_close): Use it.
4141         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4142         invalid parameter handler.
4143         * modules/close (Depends-on): Add msvc-inval.
4144         * modules/dup2-tests (Depends-on): Add close.
4145         * modules/dup3-tests (Depends-on): Likewise.
4146         * modules/fcntl-tests (Depends-on): Likewise.
4147         * modules/spawn-pipe-tests (Depends-on): Likewise.
4148         * modules/unistd-safer-tests (Depends-on): Likewise.
4149         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4150
4151 2011-09-23  Bruno Haible  <bruno@clisp.org>
4152
4153         New module 'dup'.
4154         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4155         Allow replacement.
4156         * lib/dup.c: New file.
4157         * lib/fchdir.c (rpl_dup): Remove function.
4158         * m4/dup.m4: New file.
4159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4160         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4161         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4162         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4163         * modules/dup: New file.
4164         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4165         'dup' module is in use.
4166         * modules/fdopendir (Depends-on): Add dup.
4167         * modules/fdutimensat-tests (Depends-on): Likewise.
4168         * modules/fts (Depends-on): Likewise.
4169         * modules/futimens-tests (Depends-on): Likewise.
4170         * modules/posix_spawnp-tests (Depends-on): Likewise.
4171         * modules/unistd-safer-tests (Depends-on): Likewise.
4172         * modules/utimens-tests (Depends-on): Likewise.
4173         * doc/posix-functions/dup.texi: Mention the new module and the problem
4174         on MSVC.
4175
4176 2011-09-23  Bruno Haible  <bruno@clisp.org>
4177
4178         getdtablesize: Support for MSVC 9.
4179         * lib/getdtablesize.c: Include msvc-inval.h.
4180         (_setmaxstdio_nothrow): New function.
4181         (_setmaxstdio): Redefine it.
4182         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4183         * modules/getdtablesize (Depends-on): Add msvc-inval.
4184         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4185
4186 2011-09-23  Bruno Haible  <bruno@clisp.org>
4187
4188         signal-h: Rename from signal.
4189         * modules/signal-h: Renamed from modules/signal.
4190         * modules/pthread_sigmask (Depends-on): Update.
4191         * modules/raise (Depends-on): Likewise.
4192         * modules/sigaction (Depends-on): Likewise.
4193         * modules/sigpipe (Depends-on): Likewise.
4194         * modules/sigprocmask (Depends-on): Likewise.
4195         * modules/sys_select (Depends-on): Likewise.
4196         * modules/signal-h-tests: Renamed from modules/signal-tests.
4197         (Files, Depends-on, Makefile.am): Update.
4198         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4199         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4200         (Files, Makefile.am): Update.
4201         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4202         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4203         * modules/signal: New placeholder file.
4204         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4205         * doc/posix-headers/signal.texi: Update.
4206         * NEWS: Mention the change.
4207
4208 2011-09-23  Bruno Haible  <bruno@clisp.org>
4209
4210         sigprocmask: Avoid crashes through signal() on MSVC 9.
4211         * lib/sigprocmask.c: Include msvc-inval.h.
4212         (signal_nothrow): New function.
4213         (signal): Redefine it.
4214         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4215         * modules/sigprocmask (Depends-on): Add msvc-inval.
4216         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4217
4218 2011-09-23  Bruno Haible  <bruno@clisp.org>
4219
4220         Tests for module 'raise'.
4221         * modules/raise-tests: New file.
4222         * tests/test-raise.c: New file.
4223
4224         raise: Support for MSVC.
4225         * lib/signal.in.h (raise): New declaration.
4226         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4227         for native Windows platforms.
4228         * m4/raise.m4: New file.
4229         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4230         HAVE_RAISE, REPLACE_RAISE.
4231         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4232         REPLACE_RAISE.
4233         * modules/raise (Status, Notice): Remove fields.
4234         (Files): Add m4/raise.m4.
4235         (Depends-on): Add signal, msvc-inval.
4236         (configure.ac): Use the common idioms.
4237         (Maintainer): Add me.
4238         * tests/test-signal-c++.cc: Check the signature of raise.
4239         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4240
4241 2011-09-23  Bruno Haible  <bruno@clisp.org>
4242
4243         pipe2: Fix compilation on pre-C99 compilers.
4244         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4245
4246 2011-09-23  Bruno Haible  <bruno@clisp.org>
4247
4248         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4249         * lib/msvc-nothrow.h: New file.
4250         * lib/msvc-nothrow.c: New file.
4251         * m4/msvc-nothrow.m4: New file.
4252         * modules/msvc-nothrow: New file.
4253         * lib/dup2.c: Include msvc-nothrow.h.
4254         (rpl_dup2): No need to protect _get_osfhandle call here.
4255         * lib/accept4.c: Include msvc-nothrow.h.
4256         * lib/error.c: Likewise.
4257         * lib/fcntl.c: Likewise.
4258         * lib/lseek.c: Likewise.
4259         * lib/nonblocking.c: Likewise.
4260         * lib/poll.c: Likewise.
4261         * lib/read.c: Likewise.
4262         * lib/select.c: Likewise.
4263         * lib/sockets.h: Likewise.
4264         * lib/sockets.c: Likewise.
4265         * lib/stdio-read.c: Likewise.
4266         * lib/stdio-write.c: Likewise.
4267         * lib/write.c: Likewise.
4268         * lib/w32sock.h: Likewise.
4269         * lib/w32spawn.h: Likewise.
4270         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4271         * lib/fsync.c: Likewise.
4272         * lib/isapipe.c: Likewise.
4273         * modules/dup2 (Depends-on): Add msvc-nothrow.
4274         * modules/accept4 (Depends-on): Likewise.
4275         * modules/error (Depends-on): Likewise.
4276         * modules/fcntl (Depends-on): Likewise.
4277         * modules/lseek (Depends-on): Likewise.
4278         * modules/nonblocking (Depends-on): Likewise.
4279         * modules/poll (Depends-on): Likewise.
4280         * modules/read (Depends-on): Likewise.
4281         * modules/select (Depends-on): Likewise.
4282         * modules/sockets (Depends-on): Likewise.
4283         * modules/sigpipe (Depends-on): Likewise.
4284         * modules/write (Depends-on): Likewise.
4285         * modules/accept (Depends-on): Likewise.
4286         * modules/bind (Depends-on): Likewise.
4287         * modules/connect (Depends-on): Likewise.
4288         * modules/gethostname (Depends-on): Likewise.
4289         * modules/getpeername (Depends-on): Likewise.
4290         * modules/getsockname (Depends-on): Likewise.
4291         * modules/getsockopt (Depends-on): Likewise.
4292         * modules/ioctl (Depends-on): Likewise.
4293         * modules/listen (Depends-on): Likewise.
4294         * modules/recv (Depends-on): Likewise.
4295         * modules/recvfrom (Depends-on): Likewise.
4296         * modules/send (Depends-on): Likewise.
4297         * modules/sendto (Depends-on): Likewise.
4298         * modules/setsockopt (Depends-on): Likewise.
4299         * modules/shutdown (Depends-on): Likewise.
4300         * modules/socket (Depends-on): Likewise.
4301         * modules/execute (Depends-on): Likewise.
4302         * modules/spawn-pipe (Depends-on): Likewise.
4303         * modules/flock (Depends-on): Likewise.
4304         * modules/fsync (Depends-on): Likewise.
4305         * modules/isapipe (Depends-on): Likewise.
4306         * tests/test-cloexec.c: Include msvc-nothrow.h.
4307         * tests/test-dup-safer.c: Likewise.
4308         * tests/test-dup2.c: Likewise.
4309         * tests/test-dup3.c: Likewise.
4310         * tests/test-fcntl.c: Likewise.
4311         * tests/test-pipe.c: Likewise.
4312         * tests/test-pipe2.c: Likewise.
4313         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4314         * modules/unistd-safer-tests (Depends-on): Likewise.
4315         * modules/dup2-tests (Depends-on): Likewise.
4316         * modules/dup3-tests (Depends-on): Likewise.
4317         * modules/fcntl-tests (Depends-on): Likewise.
4318         * modules/pipe-posix-tests (Depends-on): Likewise.
4319         * modules/pipe2-tests (Depends-on): Likewise.
4320
4321 2011-09-23  Bruno Haible  <bruno@clisp.org>
4322
4323         dup2: Make code more maintainable.
4324         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4325         (rpl_dup2): Use it.
4326         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4327         * modules/dup2 (configure.ac): Invoke it.
4328         Reported by Paul Eggert.
4329
4330 2011-09-23  Bruno Haible  <bruno@clisp.org>
4331
4332         msvc-inval: Fix compilation error.
4333         * lib/msvc-inval.h: Include <excpt.h>.
4334
4335 2011-09-23  Bruno Haible  <bruno@clisp.org>
4336
4337         mkdir: Tweak for MSVC 9.
4338         * lib/sys_stat.in.h: Update comments.
4339         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4340
4341         Tests for module 'chdir'.
4342         * modules/chdir-tests: New file.
4343         * tests/test-chdir.c: New file.
4344
4345         New module 'chdir'.
4346         * modules/chdir: New file.
4347         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4348         (chdir): New declaration.
4349         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4350         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4351         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4352         * tests/test-unistd-c++.cc: Check signature of chdir.
4353         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4354         * modules/chdir-long (Depends-on): Add chdir.
4355         * modules/fchdir (Depends-on): Likewise.
4356         * modules/rename (Depends-on): Likewise.
4357         * modules/savewd (Depends-on): Likewise.
4358
4359         rmdir: Support for mingw, MSVC 9.
4360         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4361         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4362
4363         getcwd: Tweak for MSVC 9.
4364         * lib/unistd.in.h: Update comments.
4365         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4366
4367 2011-09-22  Bruno Haible  <bruno@clisp.org>
4368
4369         strerror_r-posix: Avoid a link error on MSVC.
4370         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4371         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4372
4373 2011-09-22  Bruno Haible  <bruno@clisp.org>
4374
4375         select: Avoid link errors on MSVC.
4376         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4377         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4378         * modules/pselect (Link): Likewise.
4379         * NEWS: Mention the change.
4380         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4381         test-select-stdin against $(LIB_SELECT).
4382         * modules/pselect-tests (Makefile.am): Link test-pselect against
4383         $(LIB_SELECT).
4384
4385 2011-09-22  Bruno Haible  <bruno@clisp.org>
4386
4387         select: Avoid compilation error on MSVC.
4388         * lib/select.c: Don't include <stdbool.h>.
4389
4390 2011-09-21  Bruno Haible  <bruno@clisp.org>
4391
4392         Consolidate all uses of PATH_MAX in *.m4 files.
4393         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4394         macros.
4395         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4396         and gl_PATHMAX_SNIPPET.
4397         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4398         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4399         * modules/chdir-long (Files): Add m4/pathmax.m4.
4400         * modules/getcwd (Files): Likewise.
4401
4402 2011-09-21  Bruno Haible  <bruno@clisp.org>
4403
4404         ftruncate: Un-deprecate, concentrate on Win32 support.
4405         * modules/ftruncate (Status, Notice): Remove sections.
4406         (Depends-on): Add largefile.
4407         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4408         non-mingw platforms.
4409         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4410         include <io.h>.
4411         * modules/perror-tests (Depends-on): Add ftruncate.
4412         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4413         'ftruncate' module.
4414
4415 2011-09-21  Bruno Haible  <bruno@clisp.org>
4416
4417         Add dependencies to new dirent related modules.
4418         * modules/opendir (Depends-on): Add closedir.
4419         * modules/getcwd (Depends-on): Add opendir, closedir.
4420         * modules/dirent-safer-tests (Depends-on): Likewise.
4421         * modules/fdopendir-tests (Depends-on): Likewise.
4422         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4423         * modules/renameat-tests (Depends-on): Likewise.
4424
4425 2011-09-21  Bruno Haible  <bruno@clisp.org>
4426
4427         opendir: Avoid compilation error on mingw.
4428         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4429         * modules/opendir (Depends-on): Add unistd.
4430
4431 2011-09-21  Bruno Haible  <bruno@clisp.org>
4432
4433         ftruncate tests: Avoid a test failure on mingw.
4434         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4435
4436 2011-09-21  Bruno Haible  <bruno@clisp.org>
4437
4438         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4439         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4440         native Windows.
4441
4442 2011-09-21  Bruno Haible  <bruno@clisp.org>
4443
4444         New module 'fdopen'.
4445         * lib/stdio.in.h (fdopen): New declaration.
4446         * lib/fdopen.c: New file.
4447         * m4/fdopen.m4: New file.
4448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4449         REPLACE_FDOPEN.
4450         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4451         REPLACE_FDOPEN.
4452         * modules/fdopen: New file.
4453         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4454         * tests/test-stdio-c++.cc: Check signature of fdopen.
4455         * doc/posix-functions/fdopen.texi: Mention the new module.
4456
4457 2011-09-21  Bruno Haible  <bruno@clisp.org>
4458
4459         unlockpt tests: Avoid test failure on NetBSD 5.1.
4460         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4461         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4462
4463 2011-09-21  Bruno Haible  <bruno@clisp.org>
4464
4465         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4466         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4467         * tests/test-getlogin_r.c (main): Likewise.
4468
4469 2011-09-20  Bruno Haible  <bruno@clisp.org>
4470
4471         time tests: Don't require pid_t.
4472         * doc/posix-headers/time.texi: Revert last change.
4473         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4474         * tests/test-time.c: Comment out the check for pid_t.
4475
4476 2011-09-20  Bruno Haible  <bruno@clisp.org>
4477
4478         fsync tests: Avoid a test failure on mingw.
4479         * tests/test-fsync.c (main): Allow a failure with EIO.
4480
4481 2011-09-20  Bruno Haible  <bruno@clisp.org>
4482
4483         euidaccess: Update comments.
4484         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4485
4486 2011-09-20  Bruno Haible  <bruno@clisp.org>
4487
4488         Ensure EBADF returns for socket functions on mingw.
4489         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4490         descriptor is invalid.
4491         * lib/bind.c (rpl_bind): Likewise.
4492         * lib/connect.c (rpl_connect): Likewise.
4493         * lib/getpeername.c (rpl_getpeername): Likewise.
4494         * lib/getsockname.c (rpl_getsockname): Likewise.
4495         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4496         * lib/listen.c (rpl_listen): Likewise.
4497         * lib/recv.c (rpl_recv): Likewise.
4498         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4499         * lib/send.c (rpl_send): Likewise.
4500         * lib/sendto.c (rpl_sendto): Likewise.
4501         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4502         * lib/shutdown.c (rpl_shutdown): Likewise.
4503
4504 2011-09-20  Bruno Haible  <bruno@clisp.org>
4505
4506         select tests: EBADF tests.
4507         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4508         test_bad_fd): New functions.
4509         (test_function): Invoke also test_bad_fd.
4510
4511 2011-09-20  Bruno Haible  <bruno@clisp.org>
4512
4513         Tests for module 'posix_spawn_file_actions_addopen.
4514         * modules/posix_spawn_file_actions_addopen-tests: New file.
4515         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4516
4517         Tests for module 'posix_spawn_file_actions_adddup2'.
4518         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4519         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4520
4521         Tests for module 'posix_spawn_file_actions_addclose'.
4522         * modules/posix_spawn_file_actions_addclose-tests: New file.
4523         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4524
4525 2011-09-20  Bruno Haible  <bruno@clisp.org>
4526
4527         Tests for module 'unlockpt'.
4528         * modules/unlockpt-tests: New file.
4529         * tests/test-unlockpt.c: New file.
4530         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4531
4532         Tests for module 'grantpt'.
4533         * modules/grantpt-tests: New file.
4534         * tests/test-grantpt.c: New file.
4535         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4536
4537 2011-09-20  Bruno Haible  <bruno@clisp.org>
4538
4539         freopen tests: EBADF tests.
4540         * tests/test-freopen.c: Include errno.h, unistd.h.
4541         (main): Add tests for EBADF, commented out for the moment.
4542
4543         fclose tests: EBADF tests.
4544         * tests/test-fclose.c (main): Add tests for EBADF.
4545
4546         fflush tests: EBADF tests.
4547         * tests/test-fflush.c: Include errno.h, macros.h.
4548         (main): Add tests for EBADF.
4549
4550         ftello tests: EBADF tests.
4551         * tests/test-ftello4.sh: New file.
4552         * tests/test-ftello4.c: New file.
4553         * modules/ftello-tests (Files): Add them.
4554         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4555
4556         fseeko tests: EBADF tests.
4557         * tests/test-fseeko4.sh: New file.
4558         * tests/test-fseeko4.c: New file.
4559         * modules/fseeko-tests (Files): Add them.
4560         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4561
4562         Tests for function fputc().
4563         * modules/fputc-tests: New file.
4564         * tests/test-fputc.c: New file.
4565         * modules/stdio-tests (Depends-on): Add fputc-tests.
4566
4567         Tests for function fgetc().
4568         * modules/fgetc-tests: New file.
4569         * tests/test-fgetc.c: New file.
4570         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4571
4572         Tests for function fdopen().
4573         * modules/fdopen-tests: New file.
4574         * tests/test-fdopen.c: New file.
4575         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4576
4577         Tests for module 'vdprintf'.
4578         * modules/vdprintf-tests: New file.
4579         * tests/test-vdprintf.c: New file.
4580
4581         Tests for module 'dprintf'.
4582         * modules/dprintf-tests: New file.
4583         * tests/test-dprintf.c: New file.
4584
4585 2011-09-20  Bruno Haible  <bruno@clisp.org>
4586
4587         Tests for module 'ioctl'.
4588         * modules/ioctl-tests: New file.
4589         * tests/test-ioctl.c: New file.
4590
4591 2011-09-20  Bruno Haible  <bruno@clisp.org>
4592
4593         fcntl tests: EBADF tests.
4594         * tests/test-fcntl.c (main): Add more tests for EBADF.
4595
4596 2011-09-20  Bruno Haible  <bruno@clisp.org>
4597
4598         utimensat tests: EBADF tests.
4599         * tests/test-utimensat.c (main): Add tests for EBADF.
4600
4601         renameat tests: EBADF tests.
4602         * tests/test-renameat.c (main): Add tests for EBADF.
4603
4604         mkfifoat tests: EBADF tests.
4605         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4606
4607         readlinkat tests: EBADF tests.
4608         * tests/test-readlinkat.c (main): Add tests for EBADF.
4609
4610         symlinkat tests: EBADF tests.
4611         * tests/test-symlinkat.c (main): Add tests for EBADF.
4612
4613         linkat tests: EBADF tests.
4614         * tests/test-linkat.c (main): Add tests for EBADF.
4615
4616         Tests for module 'faccessat'.
4617         * modules/faccessat-tests: New file.
4618         * tests/test-faccessat.c: New file.
4619
4620         fdopendir tests: EBADF tests.
4621         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4622
4623         openat tests: EBADF tests.
4624         * tests/test-fchownat.c (main): Add tests for EBADF.
4625         * tests/test-fstatat.c (main): Likewise.
4626         * tests/test-mkdirat.c (main): Likewise.
4627         * tests/test-openat.c (main): Likewise.
4628         * tests/test-unlinkat.c (main): Likewise.
4629         * tests/test-fchmodat.c: New file.
4630         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4631         (Makefile.am): Also run 'test-fchmodat'.
4632
4633 2011-09-20  Bruno Haible  <bruno@clisp.org>
4634
4635         utimens, futimens, fdutimensat tests: EBADF tests.
4636         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4637
4638         Tests for function fstat().
4639         * modules/fstat-tests: New file.
4640         * tests/test-fstat.c: New file.
4641         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4642
4643 2011-09-20  Bruno Haible  <bruno@clisp.org>
4644
4645         test-ttyname_r tests: EBADF tests.
4646         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4647
4648         Tests for module 'isatty'.
4649         * modules/isatty-tests: New file.
4650         * tests/test-isatty.c: New file.
4651
4652         Tests for module 'write'.
4653         * modules/write-tests: New file.
4654         * tests/test-write.c: New file.
4655
4656         Tests for module 'read'.
4657         * modules/read-tests: New file.
4658         * tests/test-read.c: New file.
4659
4660         pwrite tests: EBADF tests.
4661         * tests/test-pwrite.c (main): Add tests for EBADF.
4662
4663         pread tests: EBADF tests.
4664         * tests/test-pread.c (main): Add tests for EBADF.
4665
4666         lseek tests: EBADF tests.
4667         * tests/test-lseek.c (main): Add more tests for EBADF.
4668
4669         Tests for module 'ftruncate'.
4670         * modules/ftruncate-tests: New file.
4671         * tests/test-ftruncate.sh: New file.
4672         * tests/test-ftruncate.c: New file.
4673
4674         fsync tests: EBADF tests.
4675         * tests/test-fsync.c (main): Add more tests for EBADF.
4676
4677         fdatasync tests: EBADF tests.
4678         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4679
4680         Tests for module 'fchown'.
4681         * modules/fchown-tests: New file.
4682         * tests/test-fchown.c: New file.
4683
4684         Tests for module 'fchmod'.
4685         * modules/fchmod-tests: New file.
4686         * tests/test-fchmod.c: New file.
4687
4688         fchdir tests: EBADF tests.
4689         * tests/test-fchdir.c (main): Add more tests for EBADF.
4690
4691         dup2 tests: EBADF tests.
4692         * tests/test-dup2.c (main): Add more tests for EBADF.
4693
4694         Tests for module 'dup'.
4695         * modules/dup-tests: New file.
4696         * tests/test-dup.c: New file.
4697
4698         Tests for module 'close'.
4699         * modules/close-tests: New file.
4700         * tests/test-close.c: New file.
4701
4702 2011-09-20  Bruno Haible  <bruno@clisp.org>
4703
4704         Tests for module 'shutdown'.
4705         * modules/shutdown-tests: New file.
4706         * tests/test-shutdown.c: New file.
4707
4708         Tests for module 'setsockopt'.
4709         * modules/setsockopt-tests: New file.
4710         * tests/test-setsockopt.c: New file.
4711
4712         Tests for module 'sendto'.
4713         * modules/sendto-tests: New file.
4714         * tests/test-sendto.c: New file.
4715
4716         Tests for module 'send'.
4717         * modules/send-tests: New file.
4718         * tests/test-send.c: New file.
4719
4720         Tests for module 'recvfrom'.
4721         * modules/recvfrom-tests: New file.
4722         * tests/test-recvfrom.c: New file.
4723
4724         Tests for module 'recv'.
4725         * modules/recv-tests: New file.
4726         * tests/test-recv.c: New file.
4727
4728         Tests for module 'listen'.
4729         * modules/listen-tests: New file.
4730         * tests/test-listen.c: New file.
4731
4732         Tests for module 'getsockopt'.
4733         * modules/getsockopt-tests: New file.
4734         * tests/test-getsockopt.c: New file.
4735
4736         Tests for module 'getsockname'.
4737         * modules/getsockname-tests: New file.
4738         * tests/test-getsockname.c: New file.
4739
4740         Tests for module 'getpeername'.
4741         * modules/getpeername-tests: New file.
4742         * tests/test-getpeername.c: New file.
4743
4744         Tests for module 'connect'.
4745         * modules/connect-tests: New file.
4746         * tests/test-connect.c: New file.
4747
4748         Tests for module 'bind'.
4749         * modules/bind-tests: New file.
4750         * tests/test-bind.c: New file.
4751
4752         accept4 tests: Fix for native Windows.
4753         * tests/test-accept4.c: Include sockets.h.
4754         (main): Invoke gl_sockets_startup.
4755         * modules/accept4-tests (Depends-on): Add sockets.
4756
4757         accept tests: Fix for native Windows.
4758         * tests/test-accept.c: Include sockets.h.
4759         (main): Invoke gl_sockets_startup.
4760         * modules/accept-tests (Depends-on): Add sockets.
4761
4762 2011-09-19  Bruno Haible  <bruno@clisp.org>
4763
4764         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4765         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4766         do...while(0).
4767         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4768         Suggested by Paul Eggert.
4769
4770 2011-09-19  Bruno Haible  <bruno@clisp.org>
4771
4772         sched: Ensure pid_t is defined.
4773         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4774         not define pid_t.
4775         * lib/sched.in.h: Include <sys/types.h>.
4776         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4778
4779 2011-09-19  Bruno Haible  <bruno@clisp.org>
4780
4781         msvc-inval: Ensure the entire expansion is a single statement.
4782         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4783         of braces.
4784
4785 2011-09-19  Jim Meyering  <meyering@redhat.com>
4786
4787         tests: use printf, not echo in init.sh's warn_ function
4788         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4789         misbehave when given strings containing a backslash or starting
4790         with e.g., -n.  James Youngman suggested setting IFS.
4791
4792 2011-09-19  Eric Blake  <eblake@redhat.com>
4793
4794         futimens: enhance test
4795         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4796         closed non-negative fd.
4797
4798         date: accept 'hence' as opposite of 'ago'
4799         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4800         * tests/test-parse-datetime.c (main): Enhance test.
4801         Suggested by Jesse Wilson.
4802
4803 2011-09-19  Jim Meyering  <meyering@redhat.com>
4804
4805         getcwd: don't fail in a deep directory on a system without openat
4806         Before this change, getcwd would fail when called from a directory
4807         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4808         the non-openat implementation used "..", "../..", "../../..", etc.
4809         to access ancestor directories.  With too many, that string would
4810         be longer than PATH_MAX.
4811         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4812         using gnulib's openat replacement.
4813         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4814         we're using the replacement function.
4815
4816 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4817
4818         maint.mk: avoid warnings from perl about missing files
4819         * top/maint.mk (def_sym_regex): Ignore files listed in
4820         $(gl_other_headers_) that do not exist, say because a project
4821         does not use a corresponding module.
4822
4823 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4824
4825         stat: use pathmax.h only if needed
4826         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4827         This is better for Emacs, which does not have a mingw port and
4828         therefore can avoid the pathmax module.
4829
4830         utimens: remove dependency on dup2
4831         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4832         to work around the Linux kernel bug.
4833         * modules/utimens (Depends-on): Remove dup2.
4834
4835 2011-09-18  Bruno Haible  <bruno@clisp.org>
4836
4837         inet_ntop, inet_pton: Look for it also in libresolv.
4838         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4839         libnsl, search for it in libresolv.
4840         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4841         Needed on Solaris 7.
4842
4843 2011-09-18  Bruno Haible  <bruno@clisp.org>
4844
4845         accept, accept4 tests: Avoid link error on Solaris.
4846         * modules/accept-tests (Makefile.am): Link test-accept against
4847         $(LIBSOCKET).
4848         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4849         $(LIBSOCKET).
4850
4851         accept4: Avoid link error on Solaris.
4852         * modules/accept4 (Link): New section.
4853
4854         socket functions: Avoid link errors on Solaris.
4855         * modules/accept (Depends-on): Add socketlib.
4856         (Link): New section.
4857         * modules/bind (Depends-on): Add socketlib.
4858         (Link): New section.
4859         * modules/connect (Depends-on): Add socketlib.
4860         (Link): New section.
4861         * modules/getpeername (Depends-on): Add socketlib.
4862         (Link): New section.
4863         * modules/getsockname (Depends-on): Add socketlib.
4864         (Link): New section.
4865         * modules/getsockopt (Depends-on): Add socketlib.
4866         (Link): New section.
4867         * modules/listen (Depends-on): Add socketlib.
4868         (Link): New section.
4869         * modules/recv (Depends-on): Add socketlib.
4870         (Link): New section.
4871         * modules/recvfrom (Depends-on): Add socketlib.
4872         (Link): New section.
4873         * modules/send (Depends-on): Add socketlib.
4874         (Link): New section.
4875         * modules/sendto (Depends-on): Add socketlib.
4876         (Link): New section.
4877         * modules/setsockopt (Depends-on): Add socketlib.
4878         (Link): New section.
4879         * modules/shutdown (Depends-on): Add socketlib.
4880         (Link): New section.
4881         * modules/socket (Depends-on): Add socketlib.
4882         (Link): New section.
4883
4884 2011-09-18  Bruno Haible  <bruno@clisp.org>
4885
4886         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4887         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4888         than 5 seconds.
4889         * modules/ptsname-tests (configure.ac): Test for alarm.
4890
4891 2011-09-18  Bruno Haible  <bruno@clisp.org>
4892
4893         posix_spawn_file_actions_add*: Fix module dependencies.
4894         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4895         posix_spawn_file_actions_init.
4896         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4897         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4898
4899 2011-09-18  Bruno Haible  <bruno@clisp.org>
4900
4901         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4902         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4903         * tests/test-renameat.c (main): Likewise.
4904
4905 2011-09-18  Bruno Haible  <bruno@clisp.org>
4906
4907         Tests for module 'accept4'.
4908         * modules/accept4-tests: New file.
4909         * tests/test-accept4.c: New file.
4910
4911 2011-09-18  Bruno Haible  <bruno@clisp.org>
4912
4913         Tests for module 'accept'.
4914         * modules/accept-tests: New file.
4915         * tests/test-accept.c: New file.
4916
4917 2011-09-18  Bruno Haible  <bruno@clisp.org>
4918
4919         dup2: Support for MSVC.
4920         * lib/dup2.c: Include msvc-inval.h.
4921         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4922         _get_osfhandle calls.
4923         * modules/dup2 (Depends-on): Add msvc-inval.
4924         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4925
4926         New module 'msvc-inval'.
4927         * lib/msvc-inval.h: New file.
4928         * lib/msvc-inval.c: New file.
4929         * m4/msvc-inval.m4: New file.
4930         * modules/msvc-inval: New file.
4931
4932 2011-09-17  Bruno Haible  <bruno@clisp.org>
4933
4934         Tests for module 'pclose'.
4935         * modules/pclose-tests: New file.
4936
4937         New module 'pclose'.
4938         * lib/stdio.in.h (pclose): New declaration.
4939         * lib/pclose.c: New file.
4940         * m4/pclose.m4: New file.
4941         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4942         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4943         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4944         * modules/pclose: New file.
4945         * modules/popen-tests (Depends-on): Add pclose.
4946         * modules/popen-safer-tests (Depends-on): Likewise.
4947         * doc/posix-functions/pclose.texi: Mention the new module.
4948
4949 2011-09-17  Bruno Haible  <bruno@clisp.org>
4950
4951         popen: Support for MSVC.
4952         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4953         * lib/popen.c (popen): Provide alternate definition for native Windows.
4954         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4956         * modules/popen (Depends-on, configure.ac): Update condition.
4957         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4958         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4959         fixed.
4960
4961 2011-09-17  Bruno Haible  <bruno@clisp.org>
4962
4963         isnanl, isnand, isnanf: Work around MSVC bug.
4964         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4965
4966 2011-09-17  Bruno Haible  <bruno@clisp.org>
4967
4968         sys_socket tests: Fix recent mistake.
4969         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4970
4971 2011-09-17  Bruno Haible  <bruno@clisp.org>
4972
4973         putenv: Support for MSVC.
4974         * modules/putenv (Depends-on): Add environ.
4975         * lib/putenv.c (environ): Disable declaration.
4976         * lib/unistd.in.h: Update comment.
4977
4978 2011-09-17  Bruno Haible  <bruno@clisp.org>
4979
4980         math: Avoid macro redefinition warnings on MSVC.
4981         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4982         Undefine before redefining.
4983
4984 2011-09-17  Bruno Haible  <bruno@clisp.org>
4985
4986         doc: Mention functions which are declared as macros.
4987         * doc/posix-functions/*[fl].texi: Mention that some functions are
4988         defined as macros with arguments only.
4989
4990 2011-09-17  Bruno Haible  <bruno@clisp.org>
4991
4992         Add dependencies to new dirent related modules.
4993         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4994         * modules/fts (Depends-on): Likewise.
4995         * modules/glob (Depends-on): Likewise.
4996         * modules/savedir (Depends-on): Likewise.
4997         * modules/scandir (Depends-on): Likewise.
4998         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4999         * modules/fdopendir (Depends-on): Add opendir.
5000
5001 2011-09-17  Bruno Haible  <bruno@clisp.org>
5002
5003         inet_pton: Support for MSVC on Windows Vista or newer.
5004         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5005         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5006         HAVE_DECL_INET_PTON is defined.
5007         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5008         On platforms with <winsock2.h>, test whether inet_pton is declared in
5009         <ws2tcpip.h>. If so, arrange to replace it.
5010         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5011         REPLACE_INET_PTON.
5012         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5013         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5014         (Depends-on, configure.ac): Update condition.
5015         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5016
5017 2011-09-17  Bruno Haible  <bruno@clisp.org>
5018
5019         inet_ntop: Support for MSVC on Windows Vista or newer.
5020         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5021         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5022         HAVE_DECL_INET_NTOP is defined.
5023         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5024         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5025         <ws2tcpip.h>. If so, arrange to replace it.
5026         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5027         REPLACE_INET_NTOP.
5028         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5029         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5030         (Depends-on, configure.ac): Update condition.
5031         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5032
5033 2011-09-16  Eric Blake  <eblake@redhat.com>
5034
5035         test-fsync: yet another enhancement
5036         * tests/test-fsync.c (main): Also test behavior on read-only text
5037         file.
5038
5039 2011-09-16  Bruno Haible  <bruno@clisp.org>
5040
5041         Enhance fsync, fdatasync tests.
5042         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5043         * tests/test-fdatasync.c (main): Likewise.
5044
5045 2011-09-16  Bruno Haible  <bruno@clisp.org>
5046
5047         Support for MSVC compiler: Ensure mode_t gets defined.
5048         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5049         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5051         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5052         * tests/test-fcntl-h.c: Check that mode_t is defined.
5053         * tests/test-sys_stat.c: Likewise.
5054         * tests/test-sys_types.c: Likewise.
5055         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5056         * doc/posix-headers/sys_stat.texi: Likewise.
5057         * doc/posix-headers/sys_types.texi: Likewise.
5058
5059 2011-09-16  Bruno Haible  <bruno@clisp.org>
5060
5061         sys_stat: Support for MSVC.
5062         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5063         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5064         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5065         MSVC.
5066
5067 2011-09-16  Bruno Haible  <bruno@clisp.org>
5068
5069         Support for MSVC compiler: Ensure off_t gets defined.
5070         * lib/unistd.in.h: Include <sys/types.h>.
5071         * tests/test-fcntl-h.c: Check that off_t is defined.
5072         * tests/test-sys_stat.c: Likewise.
5073         * tests/test-sys_types.c: Likewise.
5074
5075 2011-09-16  Eric Blake  <eblake@redhat.com>
5076
5077         fdatasync: port to Solaris
5078         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5079         * modules/fdatasync (Link): Document it.
5080         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5081
5082         fdatasync: port to MacOS X 10.7
5083         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5084         declared.
5085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5086         * modules/unistd (Makefile.am): Substitute it.
5087         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5088         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5089
5090         fdatasync: minor improvements
5091         * modules/fdatasync (Depends-on): Add condition for fsync.
5092         * lib/fdatasync.c (fdatasync): Add comment.
5093         * tests/test-unistd-c++.cc: Test fdatasync.
5094
5095         unistd: update refs to newer POSIX
5096         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5097         Suggested by Bruno Haible.
5098
5099         fdatasync: new module
5100         * modules/fsync (Description): Document difference to fdatasync.
5101         * modules/fdatasync: New module.
5102         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5103         * lib/fdatasync.c (fdatasync): Likewise.
5104         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5105         defaults.
5106         * modules/unistd (Makefile.am): Set witnesses.
5107         * lib/unistd.in.h (fdatasync): Declare.
5108         * MODULES.html.sh: Document it.
5109         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5110         * modules/fdatasync-tests: New test.
5111         * tests/test-fdatasync.c: Likewise.
5112
5113 2011-09-16  Eric Blake  <eblake@redhat.com>
5114
5115         test-fsync: enhance tests
5116         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5117         * tests/test-fsync.c (main): Enhance test.
5118
5119 2011-09-15  Bruno Haible  <bruno@clisp.org>
5120
5121         Support for MSVC compiler: Ensure ssize_t gets defined.
5122         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5123         * doc/posix-headers/stdio.texi: Likewise.
5124         * modules/stdio (Depends-on): Add ssize_t.
5125         * modules/sys_socket (Depends-on): Likewise.
5126         * modules/sys_types (Depends-on): Likewise.
5127         * modules/sys_uio (Depends-on): Likewise.
5128         * modules/unistd (Depends-on): Likewise.
5129         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5130         * tests/test-sys_types.c: Check that ssize_t is defined.
5131
5132 2011-09-14  Bruno Haible  <bruno@clisp.org>
5133
5134         Avoid using #, the m4 comment starter character, near brackets.
5135         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5136         delimiter character in sed expressions.
5137         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5138         Suggested by Eric Blake.
5139
5140         Properly quote AC_CHECK_DECLS' 4th argument.
5141         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5142         argument.
5143         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5144         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5146         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5147         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5148         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5149         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5150         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5151         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5152         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5153         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5154         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5155         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5156         * m4/isinf.m4 (gl_ISINF): Likewise.
5157         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5158         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5159         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5160         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5163         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5164         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5165         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5166         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5167         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5168         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5170         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5172         Reported by Eric Blake.
5173
5174         Properly quote AC_CHECK_DECL's 4th argument.
5175         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5176         argument.
5177         * m4/argp.m4 (gl_ARGP): Likewise.
5178         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5179         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5180         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5181         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5182         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5183         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5184         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5185         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5186         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5187         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5188         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5189         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5190         Reported by Eric Blake.
5191
5192 2011-09-14  Eric Blake  <eblake@redhat.com>
5193
5194         opendir: avoid compile warning
5195         * lib/opendir.c (includes): Always include errno.h.
5196         Reported by Tatsuro MATSUOKA.
5197
5198 2011-09-14  Jim Meyering  <meyering@redhat.com>
5199
5200         maint.mk: sc_tight_scope: propagate failure from sub-make
5201         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5202         Reported by Martin von Gagern.
5203
5204 2011-09-13  Bruno Haible  <bruno@clisp.org>
5205
5206         tempname: Support for MSVC.
5207         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5208         MSVC.
5209         * modules/tempname (Depends-on): Add fcntl-h.
5210
5211 2011-09-13  Bruno Haible  <bruno@clisp.org>
5212
5213         sys_time: Support for MSVC.
5214         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5215         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5216         include <winsock2.h>.
5217         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5218         function declarations that collide with POSIX.
5219         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5220         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5221
5222 2011-09-13  Bruno Haible  <bruno@clisp.org>
5223
5224         stat: Support for MSVC.
5225         * lib/stat.c: Include pathmax.h.
5226         * modules/stat (Depends-on): Add pathmax.
5227
5228         pathmax: Support for native Windows.
5229         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5230
5231 2011-09-12  Bruno Haible  <bruno@clisp.org>
5232
5233         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5234         * lib/dirent.in.h (struct dirent): New type.
5235         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5236         DT_WHT): New macros.
5237         (DIR): New type.
5238         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5239         (readdir, rewinddir): New declarations.
5240         * lib/dirent-private.h: New file.
5241         * lib/opendir.c: New file.
5242         * lib/readdir.c: New file.
5243         * lib/rewinddir.c: New file.
5244         * lib/closedir.c: New file.
5245         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5246         * m4/opendir.m4: New file.
5247         * m4/readdir.m4: New file.
5248         * m4/rewinddir.m4: New file.
5249         * m4/closedir.m4: New file.
5250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5251         REPLACE_CLOSEDIR here.
5252         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5253         readdir, rewinddir are declared.
5254         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5255         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5256         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5257         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5258         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5259         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5260         * modules/opendir: New file.
5261         * modules/readdir: New file.
5262         * modules/rewinddir: New file.
5263         * modules/closedir: New file.
5264         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5265         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5266         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5267         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5268         * NEWS: Mention the 'fchdir' change.
5269
5270 2011-09-11  Bruno Haible  <bruno@clisp.org>
5271
5272         asm-underscore.m4: Support for MSVC.
5273         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5274         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5275
5276 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5277
5278         Doc about crypt functions.
5279         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5280         needing for _GNU_SOURCE to get crypt.
5281         * doc/posix-functions/encrypt.texi: Likewise.
5282         * doc/posix-functions/setkey.texi: Likewise.
5283
5284 2011-09-11  Bruno Haible  <bruno@clisp.org>
5285
5286         doc: Update regarding MSVC 9.
5287         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5288         tested".
5289         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5290         * doc/posix-headers/*.texi: Likewise.
5291         * doc/pastposix-functions/*.texi: Likewise.
5292         * doc/glibc-functions/*.texi: Likewise.
5293         * doc/glibc-headers/*.texi: Likewise.
5294
5295 2011-09-11  Bruno Haible  <bruno@clisp.org>
5296
5297         unistd et al.: Don't assume <unistd.h> exists.
5298         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5299         does not exist.
5300         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5301         exist. But include <stdlib.h>.
5302         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5303         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5304         symlink() does not exist.
5305         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5306         include <io.h> instead.
5307         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5308         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5309         include <direct.h> instead.
5310         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5312         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5313         <io.h> instead.
5314         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5315         correctly if the system does not have hard links.
5316         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5317         <direct.h> instead.
5318         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5319         it when looking for function declarations.
5320         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5321         <direct.h> and <io.h> instead.
5322         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5323
5324 2011-09-11  Bruno Haible  <bruno@clisp.org>
5325
5326         strcase: Support for MSVC.
5327         * modules/strcase (Status, Notice): Remove obsoletion mark.
5328         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5329         * doc/posix-functions/strncasecmp.texi: Likewise.
5330
5331         strings: Don't assume <strings.h> exists.
5332         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5333         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5334         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5335         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5336
5337 2011-09-11  Bruno Haible  <bruno@clisp.org>
5338
5339         dirent: Don't assume <dirent.h> exists.
5340         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5341         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5342         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5343         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5344
5345 2011-09-11  Bruno Haible  <bruno@clisp.org>
5346
5347         Fix wint_t on MSVC.
5348         * lib/wchar.in.h (wint_t): On MSVC, override it.
5349         * lib/wctype.in.h (wint_t): Likewise.
5350         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5351         MSVC.
5352         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5353         * doc/posix-headers/wctype.texi: Likewise.
5354
5355 2011-09-11  Bruno Haible  <bruno@clisp.org>
5356
5357         sys_types: Fix typo.
5358         * lib/sys_types.in.h: Fix typo in comment.
5359         Reported by Paul Eggert.
5360
5361         Support for MSVC compiler: Ensure size_t gets defined.
5362         * modules/strings (Depends-on): Add 'sys_types'.
5363         * modules/sys_uio (Depends-on): Likewise.
5364         * lib/sys_uio.in.h: Update comment.
5365
5366         C++ tests for module 'sys_types'.
5367         * modules/sys_types-c++-tests: New file.
5368         * tests/test-sys_types-c++.cc: New file.
5369
5370         Tests for module 'sys_types'.
5371         * modules/sys_types-tests: New file.
5372         * tests/test-sys_types.c: New file.
5373
5374         New module 'sys_types'.
5375         * lib/sys_types.in.h: New file.
5376         * m4/sys_types_h.m4: New file.
5377         * modules/sys_types: New file.
5378         * doc/posix-headers/sys_types.texi: Mention the new module and the
5379         size_t problem on MSVC 9.
5380
5381 2011-09-11  Bruno Haible  <bruno@clisp.org>
5382
5383         Support for MSVC compiler: Avoid division by a literal 0.
5384         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5385         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5386         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5387         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5388         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5389         * tests/infinity.h: New file.
5390         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5391         on MSVC.
5392         * tests/test-ceilf1.c: Include infinity.h.
5393         (main): Use Infinityf.
5394         * tests/test-ceil1.c: Include infinity.h.
5395         (main): Use Infinityd.
5396         * tests/test-ceill.c: Include infinity.h.
5397         (main): Use Infinityl.
5398         * tests/test-dprintf-posix.c: Include infinity.h.
5399         (test_function): Use Infinityd.
5400         * tests/test-floorf1.c: Include infinity.h.
5401         (main): Use Infinityf.
5402         * tests/test-floor1.c: Include infinity.h.
5403         (main): Use Infinityd.
5404         * tests/test-floorl.c: Include infinity.h.
5405         (main): Use Infinityl.
5406         * tests/test-fprintf-posix.c: Include infinity.h.
5407         (test_function): Use Infinityd.
5408         * tests/test-frexp.c: Include infinity.h.
5409         (main): Use Infinityd.
5410         * tests/test-frexpl.c: Include infinity.h.
5411         (main): Use Infinityl.
5412         * tests/test-isfinite.c: Include infinity.h.
5413         (test_isfinitef): Use Infinityf.
5414         (test_isfinited): Use Infinityd.
5415         (test_isfinitel): Use Infinityl.
5416         * tests/test-isinf.c: Include infinity.h.
5417         (test_isinff): Use Infinityf.
5418         (test_isinfd): Use Infinityd.
5419         (test_isinfl): Use Infinityl.
5420         * tests/test-isnan.c: Include infinity.h.
5421         (test_float): Use Infinityf.
5422         (test_double): Use Infinityd.
5423         (test_long_double): Use Infinityl.
5424         * tests/test-isnanf.h: Include infinity.h.
5425         (main): Use Infinityf.
5426         * tests/test-isnand.h: Include infinity.h.
5427         (main): Use Infinityd.
5428         * tests/test-isnanl.h: Include infinity.h.
5429         (main): Use Infinityl.
5430         * tests/test-ldexpl.c: Include infinity.h.
5431         (main): Use Infinityl.
5432         * tests/test-printf-posix.h: Include infinity.h.
5433         (test_function): Use Infinityd.
5434         * tests/test-roundf1.c: Include infinity.h.
5435         (main): Use Infinityf.
5436         * tests/test-round1.c: Include infinity.h.
5437         (main): Use Infinityd.
5438         * tests/test-roundl.c: Include infinity.h.
5439         (main): Use Infinityl.
5440         * tests/test-signbit.c: Include infinity.h.
5441         (test_signbitf): Use Infinityf.
5442         (test_signbitd): Use Infinityd.
5443         (test_signbitl): Use Infinityl.
5444         * tests/test-snprintf-posix.h: Include infinity.h.
5445         (test_function): Use Infinityd, Infinityl.
5446         * tests/test-sprintf-posix.h: Include infinity.h.
5447         (test_function): Use Infinityd, Infinityl.
5448         * tests/test-truncf1.c: Include infinity.h.
5449         (main): Use Infinityf.
5450         * tests/test-trunc1.c: Include infinity.h.
5451         (main): Use Infinityd.
5452         * tests/test-truncl.c: Include infinity.h.
5453         (main): Use Infinityl.
5454         * tests/test-vasnprintf-posix.c: Include infinity.h.
5455         (test_function): Use Infinityd, Infinityl.
5456         * tests/test-vasprintf-posix.c: Include infinity.h.
5457         (test_function): Use Infinityd, Infinityl.
5458         * modules/ceilf-tests (Files): Add tests/infinity.h.
5459         * modules/ceil-tests (Files): Likewise.
5460         * modules/ceill-tests (Files): Likewise.
5461         * modules/dprintf-posix-tests (Files): Likewise.
5462         * modules/floorf-tests (Files): Likewise.
5463         * modules/floor-tests (Files): Likewise.
5464         * modules/floorl-tests (Files): Likewise.
5465         * modules/fprintf-posix-tests (Files): Likewise.
5466         * modules/frexp-tests (Files): Likewise.
5467         * modules/frexp-nolibm-tests (Files): Likewise.
5468         * modules/frexpl-tests (Files): Likewise.
5469         * modules/frexpl-nolibm-tests (Files): Likewise.
5470         * modules/isfinite-tests (Files): Likewise.
5471         * modules/isinf-tests (Files): Likewise.
5472         * modules/isnan-tests (Files): Likewise.
5473         * modules/isnanf-tests (Files): Likewise.
5474         * modules/isnanf-nolibm-tests (Files): Likewise.
5475         * modules/isnand-tests (Files): Likewise.
5476         * modules/isnand-nolibm-tests (Files): Likewise.
5477         * modules/isnanl-tests (Files): Likewise.
5478         * modules/isnanl-nolibm-tests (Files): Likewise.
5479         * modules/ldexpl-tests (Files): Likewise.
5480         * modules/printf-posix-tests (Files): Likewise.
5481         * modules/roundf-tests (Files): Likewise.
5482         * modules/round-tests (Files): Likewise.
5483         * modules/roundl-tests (Files): Likewise.
5484         * modules/signbit-tests (Files): Likewise.
5485         * modules/snprintf-posix-tests (Files): Likewise.
5486         * modules/sprintf-posix-tests (Files): Likewise.
5487         * modules/truncf-tests (Files): Likewise.
5488         * modules/trunc-tests (Files): Likewise.
5489         * modules/truncl-tests (Files): Likewise.
5490         * modules/vasnprintf-posix-tests (Files): Likewise.
5491         * modules/vasprintf-posix-tests (Files): Likewise.
5492         * modules/vdprintf-posix-tests (Files): Likewise.
5493         * modules/vfprintf-posix-tests (Files): Likewise.
5494         * modules/vprintf-posix-tests (Files): Likewise.
5495         * modules/vsnprintf-posix-tests (Files): Likewise.
5496         * modules/vsprintf-posix-tests (Files): Likewise.
5497         * modules/xprintf-posix-tests (Files): Likewise.
5498
5499 2011-09-11  Bruno Haible  <bruno@clisp.org>
5500
5501         Ensure pid_t gets defined.
5502         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5503         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5504         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5505         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5506         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5507         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5508         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5509         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5510         * tests/test-fcntl-h.c: Check that pid_t is defined.
5511         * tests/test-sched.c: Likewise.
5512         * tests/test-termios.c: Likewise.
5513         * tests/test-time.c: Likewise.
5514         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5515         * doc/posix-headers/signal.texi: Likewise.
5516         * doc/posix-headers/sys_types.texi: Likewise.
5517         * doc/posix-headers/time.texi: Likewise.
5518
5519 2011-09-11  Bruno Haible  <bruno@clisp.org>
5520
5521         acl: Fix compilation on Solaris 10 (older version).
5522         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5523         of ACE_EVERYONE.
5524         * lib/set-mode-acl.c (qset_acl): Likewise.
5525         Reported by Christian Jullien <eligis@orange.fr>.
5526
5527 2011-09-10  Bruno Haible  <bruno@clisp.org>
5528
5529         iconv, unsetenv: Add support for MSVC compiler.
5530         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5531         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5532
5533 2011-09-10  Bruno Haible  <bruno@clisp.org>
5534
5535         *printf: Add support for MSVC compiler.
5536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5537         handles the exception caused by the %n directive. When cross-compiling,
5538         guess no on native Windows.
5539         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5540         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5541         emulate it through vsnprintf.
5542         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5543         * doc/posix-functions/dprintf.texi: Update documentation regarding
5544         MSVC 9.
5545         * doc/posix-functions/fprintf.texi: Likewise.
5546         * doc/posix-functions/printf.texi: Likewise.
5547         * doc/posix-functions/snprintf.texi: Likewise.
5548         * doc/posix-functions/sprintf.texi: Likewise.
5549         * doc/posix-functions/swprintf.texi: Likewise.
5550         * doc/posix-functions/vdprintf.texi: Likewise.
5551         * doc/posix-functions/vfprintf.texi: Likewise.
5552         * doc/posix-functions/vprintf.texi: Likewise.
5553         * doc/posix-functions/vsnprintf.texi: Likewise.
5554         * doc/posix-functions/vsprintf.texi: Likewise.
5555         * doc/glibc-functions/asprintf.texi: Likewise.
5556         * doc/glibc-functions/obstack_printf.texi: Likewise.
5557         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5558         * doc/glibc-functions/vasprintf.texi: Likewise.
5559
5560 2011-09-10  Bruno Haible  <bruno@clisp.org>
5561
5562         nocrash: Add support for native Windows.
5563         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5564
5565 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5566             Bruno Haible  <bruno@clisp.org>
5567
5568         absolute-header, include-next: Add support for MSVC compiler.
5569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5570         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5571         directory separator in #line directives.
5572         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5573         recognize also backslash as directory separator in #line directives.
5574
5575 2011-09-08  Jim Meyering  <meyering@redhat.com>
5576
5577         maint.mk: mark the post-release commit log with "maint: " prefix
5578         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5579         one-line commit-log summary.
5580
5581 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5582             Bruno Haible  <bruno@clisp.org>
5583
5584         Doc about crypt functions.
5585         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5586         systems.
5587         * doc/posix-functions/encrypt.texi: Likewise.
5588         * doc/posix-functions/setkey.texi: Likewise.
5589
5590 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5591
5592         * lib/gc.h: Fix copyright header.
5593
5594 2011-09-07  Bruno Haible  <bruno@clisp.org>
5595
5596         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5597         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5598         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5599
5600 2011-09-07  Bruno Haible  <bruno@clisp.org>
5601
5602         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5603         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5604         * lib/freopen.c: Likewise.
5605         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5606         * lib/lstat.c: Likewise.
5607         * lib/stat.c: Likewise.
5608         * lib/open.c: Use different syntax for include of <fcntl.h>.
5609         * lib/openat.c: Include fcntl.h again, explicitly.
5610
5611 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5612
5613         parse-datetime: document the newly accepted format
5614         * doc/parse-datetime.texi (Combined date and time of day items):
5615         New section.
5616
5617 2011-09-06  Bruno Haible  <bruno@clisp.org>
5618
5619         acl: Fix a test failure on newer Solaris 10 with ZFS.
5620         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5621         ENOSYS as no ACL.
5622         Reported by Jim Meyering.
5623
5624 2011-09-06  Bruno Haible  <bruno@clisp.org>
5625
5626         acl: Update for AIX >= 5.3 with NFS.
5627         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5628         ENOSYS as no ACL.
5629
5630         acl: Fix a test failure on AIX >= 5.3 with NFS.
5631         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5632         as no ACL.
5633
5634 2011-09-06  Bruno Haible  <bruno@clisp.org>
5635
5636         acl: Fix a test failure on IRIX 6.5 with NFS.
5637         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5638         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5639         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5640         * lib/copy-acl.c (qcopy_acl): Likewise.
5641
5642 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5643
5644         openat: port to AIX 7.1 with large files
5645         AIX 7.1 does a "#define openat open64at" if large files are in use,
5646         so we can't simply #undef openat.  Use the orig_openat trick (similar
5647         to orig_open in lib/open.c) to work around the problem.  Problem
5648         reported by Kevin Brott for GNU tar, in the thread containing
5649         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5650         * lib/openat.c (__need_system_fcntl_h): Define first.
5651         Include <fcntl.h> and <sys/types.h> before undefining.
5652         (orig_openat) [HAVE_OPENAT]: New inline function.
5653         (openat) [HAVE_OPENAT]: Do not undef.
5654         (rpl_openat): Use orig_openat, not openat.
5655
5656 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5657             Bruno Haible  <bruno@clisp.org>
5658
5659         acl: Avoid errors on NonStop Kernel.
5660         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5661         ENOTSUP errors.
5662
5663 2011-09-05  Bruno Haible  <bruno@clisp.org>
5664
5665         acl: Clean up Solaris code.
5666         * lib/acl-internal.h: Remove no-op #if.
5667         * lib/file-has-acl.c: Likewise.
5668         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5669         * lib/copy-acl.c (qcopy_acl): Likewise.
5670
5671 2011-09-05  Bruno Haible  <bruno@clisp.org>
5672
5673         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5674         binaries built on the original Solaris 10.
5675         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5676         trivial.
5677
5678 2011-09-05  Bruno Haible  <bruno@clisp.org>
5679
5680         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5681         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5682         10.
5683         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5684         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5685         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5686         instead of acl_get, facl_get, acl_set, facl_set.
5687
5688 2011-09-05  Bruno Haible  <bruno@clisp.org>
5689
5690         copy-file: Try unit tests on more file systems.
5691         * tests/test-copy-file-1.sh: New file.
5692         * tests/test-copy-file-2.sh: New file.
5693         * modules/copy-file-tests (Files): Add them.
5694         (Makefile.am): Add them to TESTS.
5695
5696         acl: Try unit tests on more file systems.
5697         * tests/test-file-has-acl-1.sh: New file.
5698         * tests/test-file-has-acl-2.sh: New file.
5699         * tests/test-set-mode-acl-1.sh: New file.
5700         * tests/test-set-mode-acl-2.sh: New file.
5701         * tests/test-copy-acl-1.sh: New file.
5702         * tests/test-copy-acl-2.sh: New file.
5703         * modules/acl-tests (Files): Add them.
5704         (Makefile.am): Add them to TESTS.
5705
5706 2011-09-04  Bruno Haible  <bruno@clisp.org>
5707
5708         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5709         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5710         10.
5711         (OLD_ALLOW, OLD_DENY): New macros.
5712         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5713         ACE_ACCESS_ALLOWED_ACE_TYPE.
5714         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5715         ACE_ACCESS_DENIED_ACE_TYPE.
5716         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5717         (NEW_ACE_EXECUTE): Fix value.
5718         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5719         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5720         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5721         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5722         NEW_ACE_SYNCHRONIZE): New macros.
5723         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5724         instead of acl_fromtext, acl_set, facl_set.
5725         Fixes a coreutils/tests/cp/perm failure.
5726
5727 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5728
5729         openat: test for fstatat (..., 0) bug
5730         Further testing with tar suggests that fstatat (..., 0)
5731         does not work in general, on AIX 7.1; see
5732         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5733         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5734         replacement fstatat (which is what older AIX releases were using
5735         anyway).
5736         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5737         use is now changed to orig_fstatat.  This was probably the right
5738         thing to do anyway.
5739         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5740         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5741         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5742         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5743         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5744         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5745         if the bug is found.
5746
5747         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5748         This tests for another fstatat bug on AIX 7.1:
5749         fstatat (AT_FDCWD, ..., 0) does not work.  See
5750         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5751         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5752         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5753         (rpl_fstatat): Adjust so that it works around either (or both)
5754         bugs if present.
5755         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5756
5757 2011-09-03  Karl Berry  <karl@gnu.org>
5758
5759         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5760         in index entries.
5761
5762 2011-09-02  Bruno Haible  <bruno@clisp.org>
5763
5764         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5765         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5766         values of AR, ARFLAGS, RANLIB.
5767         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5768
5769 2011-09-02  Bruno Haible  <bruno@clisp.org>
5770
5771         Find 'ar' program that fits with --host argument.
5772         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5773
5774 2011-09-02  Bruno Haible  <bruno@clisp.org>
5775
5776         tests: init.sh: Support any non-GNU diff.
5777         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5778         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5779         Solaris 8.
5780
5781 2011-09-02  Bruno Haible  <bruno@clisp.org>
5782
5783         tests: init.sh: work also with any non-GNU diff that supports -u
5784         * tests/init.sh: Relax check for diff -u support.
5785         Rather than checking for GNU diff via --version, simply check
5786         for support for -u itself.  Useful at least on OpenBSD 4.9,
5787         AIX 7.1, IRIX 6.5, and Solaris 10.
5788
5789 2011-09-01  Bruno Haible  <bruno@clisp.org>
5790
5791         strtoimax, strtoumax: Document problem on HP-UX 11.
5792         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5793         * doc/posix-functions/strtoumax.texi: Likewise.
5794
5795 2011-09-01  Bruno Haible  <bruno@clisp.org>
5796
5797         strtoumax: Avoid link error on OSF/1 with DTK cc.
5798         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5799         defined as a function.
5800         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5801         strtoumax is defined, not whether it is declared.
5802
5803 2011-09-01  Bruno Haible  <bruno@clisp.org>
5804
5805         strtoimax: Avoid link error on OSF/1 with DTK cc.
5806         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5807         defined as a function.
5808         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5809         strtoimax is defined, not whether it is declared.
5810
5811 2011-09-01  Bruno Haible  <bruno@clisp.org>
5812
5813         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5814         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5815         as a function.
5816         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5817         whether it is declared.
5818
5819 2011-09-01  Bruno Haible  <bruno@clisp.org>
5820
5821         imaxabs: Avoid link error on OSF/1 with DTK cc.
5822         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5823         as a function.
5824         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5825         whether it is declared.
5826
5827 2011-09-01  Bruno Haible  <bruno@clisp.org>
5828
5829         Tests for module 'strtoumax'.
5830         * modules/strtoumax-tests: New file.
5831         * tests/test-strtoumax.c: New file.
5832
5833         Tests for module 'strtoimax'.
5834         * modules/strtoimax-tests: New file.
5835         * tests/test-strtoimax.c: New file.
5836
5837         Tests for module 'imaxdiv'.
5838         * modules/imaxdiv-tests: New file.
5839         * tests/test-imaxdiv.c: New file.
5840
5841         Tests for module 'imaxabs'.
5842         * modules/imaxabs-tests: New file.
5843         * tests/test-imaxabs.c: New file.
5844
5845 2011-09-01  Bruno Haible  <bruno@clisp.org>
5846
5847         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5848         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5849         pthread_create.
5850
5851 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         openat: work around AIX 7.1 fstatat issue
5854         This should fix the problem that was not properly fixed
5855         in the previous change, dated 2011-08-30.
5856         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5857         __need_system_stat_h defined.
5858         (orig_fstatat) [HAVE_FSTATAT]: New function.
5859         (rpl_fstatat): Go back to the old way of doing things,
5860         except call orig_fstatat instead of fstatat.
5861         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5862         Remove unnecessary check whether fstatat fills in st_size etc.
5863
5864 2011-09-01  Bruno Haible  <bruno@clisp.org>
5865
5866         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5867         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5868         just include the system's header.
5869
5870 2011-08-31  Jim Meyering  <meyering@redhat.com>
5871
5872         tests: avoid spurious assertion failure in test-float.c on ppc64
5873         * tests/test-float.c (test_long_double): Comment out an assertion,
5874         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5875         with gcc-4.4.4.
5876
5877         maint: indent with spaces, not TABs
5878         I need to get in the habit of running gnulib's "make check".
5879         Both of these would have been caught.
5880         * m4/largefile.m4: Indent with spaces, not TABs.
5881         * lib/parse-datetime.y (iso_8601_time): Likewise.
5882         Spotted by Pádraig Brady.
5883
5884         test-parse-datetime.c: accommodate a relatively strict gcc warning
5885         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5886         to avoid a warning from gcc's -Werror=missing-declarations.
5887         Insert a few spaces-before-funcall-parenthesis.
5888
5889 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5890
5891         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5892         The parser now accepts ISO 8601 date-time strings with "T" as the
5893         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5894         with a space between the date and time strings.  Now it also parses
5895         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5896         variants like "2004-02-29T16:21:42.333-07:00"
5897         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5898         of day representation using the 'T' separator character.
5899         * doc/parse-datetime.texi (General date syntax): replace use of
5900         deprecated --iso-8601 option with --rfc-3339 in example of date
5901         command output formats that can be parsed.
5902         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5903         lib/parse-datetime.y.
5904         (gmt_offset): New function.
5905         (main): Add additional test cases to validate ISO8601 extended
5906         date and time of day parsing.
5907
5908 2011-08-31  Bruno Haible  <bruno@clisp.org>
5909
5910         freopen: Documentation.
5911         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5912         name.
5913         Reported by Claudio Bley <claudio.bley@gmail.com>.
5914
5915 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5916
5917         freopen: Don't crash if the filename argument is NULL.
5918         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5919         NULL.
5920
5921 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5922
5923         openat: work around AIX 7.1 fstatat bug
5924         Problem reported by Kevin Brott for GNU tar, in the thread containing
5925         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5926         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5927         FSTATAT_ST_SIZE_ETC_BROKEN.
5928         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5929         rpl_fstatat.
5930         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5931         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5932         AC_CHECK_FUNCS_ONCE for fstatat.
5933         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5934         fchmodat, mkdirat, openat and unlinkat.
5935
5936 2011-08-30  Bruno Haible  <bruno@clisp.org>
5937
5938         Avoid endless recursions if config.h includes some header files.
5939         * lib/fopen.c (__need_FILE): Define already before including config.h.
5940         * lib/freopen.c (__need_FILE): Likewise.
5941         * lib/open.c (__need_system_fcntl_h): Likewise.
5942         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5943         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5944         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5945
5946 2011-08-25  Karl Berry  <karl@gnu.org>
5947
5948         * config/srclist.txt (ylwrap): new try.
5949         * build-aux/ylwrap: new file.
5950
5951 2011-08-23  Bruno Haible  <bruno@clisp.org>
5952
5953         tmpdir: Use a good default directory on native Windows.
5954         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5955         (P_tmpdir): Default to _P_tmpdir on native Windows.
5956         (path_search): On native Windows, try the value returned by GetTempPath
5957         before trying P_tmpdir.
5958         * modules/tmpdir (Depends-on): Add pathmax.
5959         Suggested by John Darrington <john@darrington.wattle.id.au>.
5960
5961 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5962
5963         doc: fix typo in README-release
5964         * top/README-release: Capitalize first word of a sentence.
5965
5966 2011-08-19  Jim Meyering  <meyering@redhat.com>
5967
5968         fts: do not exhaust memory when processing million-entry directories
5969         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5970         directory would require about 256*N bytes of memory.  Thus, it was
5971         easy to construct a directory too large to be processed by any of
5972         those tools.  With this change, fts' maximum memory utilization is
5973         now limited to around 30MB.
5974         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5975         (fts_read): When we've processed the final entry (i.e., when
5976         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5977         using the parent entry to read any remaining entries.  Dispatch
5978         depending on what fts_build returns:
5979         - NULL+stop, aka failure: stop
5980         - NULL otherwise: move up in the dir hierarchy
5981         - non-NULL: handle this new entry
5982         (fts_build): Declare and use new local, continue_readdir.
5983         Prepare to be called from fts_read, when the entries
5984         from a partially-read directory have just been exhausted.
5985         In that case, we'll skip the opendir and instead use the parent's
5986         fts_dirp and derive dir_fd from that.
5987         Finally, in the readdir loop, if we read max_entries entries,
5988         exit the loop ensuring *not* to call closedir.  This is required
5989         so that fts_dirp can be reused on a subsequent call.
5990         Prompted by Ben England's report of memory exhaustion in find
5991         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5992
5993         maint: fts: move decl of `dp' down into while loop; split a long line
5994         * lib/fts.c (fts_build): No semantic change.
5995
5996         fts: add/use new struct member, fts_dirp
5997         We are about to use this to manage any directory with
5998         too many entries to read all of them into memory at once.
5999         To do that, we'll need to save the DIR* pointer in each
6000         affected FTSENT struct.
6001         * lib/fts_.h: Include <dirent.h>.
6002         (struct FTSENT) [fts_dirp]: New member.
6003         * lib/fts.c (closedir_and_clear): Define.
6004         Use it in place of closedir so that we are sure to
6005         clear the new fts_dirp member when done with it.
6006         (fts_alloc): Initialize the new member.
6007         (fts_lfree): Free, if needed.
6008
6009         maint: fts: give __opendir2 a new parameter and rename
6010         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6011         than surreptitiously using sole caller's "dir_fd".
6012         (fts_opendir): Rename from __opendir2.
6013
6014         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6015         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6016
6017         maint: fts.c: correct off-by-one indentation
6018         * lib/fts.c (fts_build): Correct indentation, change style
6019         of a couple of block comments, and bracing style.
6020
6021         maint: fts.c: move __opendir2 #define "up" out of function body
6022         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6023
6024         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6025         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6026         out for a long time and besides was useful only on BSD systems.
6027
6028 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6029
6030         regex: port to Stratus OpenVOS
6031         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6032         define to empty, rather than attempting nonportable optimizations.
6033         Problem reported by Paul Green in:
6034         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6035         and fix suggested by Eric Blake in:
6036         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6037
6038 2011-08-17  Eric Blake  <eblake@redhat.com>
6039
6040         getcwd: fix test failures on mingw
6041         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6042         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6043         test if long directory cannot be created, and allow mingw errno.
6044
6045         getcwd-lgpl: fix m4 to match relaxed test for BSD
6046         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6047         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6048         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6049         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6050         signature problem.
6051
6052         getcwd: fix compilation on mingw64
6053         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6054         getcwd.
6055         Reported by Marc-André Lureau.
6056
6057         pipe2: silence compiler warning
6058         * lib/pipe2.c (pipe2): Hide label if it is not used.
6059
6060 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6061
6062         relocatable-prog: fix link error
6063         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6064         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6065         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6066         into modules/relocatable-lib without noticing that
6067         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6068         also needs to build relocatable.c.
6069
6070 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6071
6072         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6073         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6074         shell code: it contained a 'break' that was not in a loop.
6075         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6076         via a shell-language loop; this may have been true in old Autoconf
6077         versions, but it's not true in Autoconf 2.68.  I found this bug
6078         when testing coreutils git on Solaris 8, whose shell complains
6079         about the syntax error.
6080
6081 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6082
6083         * lib/base64.c: Fix comment to reference RFC 4648.
6084         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6085         <gvtulder@gmail.com>.
6086
6087 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6088
6089         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6090
6091         po/Makefile.in.in: fix make -q problem
6092         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6093         rule, since there's no file named 'check-macro-version' and its
6094         use as a file breaks make -q.
6095         (all): Don't depend on check-macro-version.
6096         (CHECK_MACRO_VERSION): New macro.
6097         (stamp-po): Use it.
6098
6099         configmake: fix make -q problem
6100         * modules/configmake (configmake.h): Update configmake.h's time stamp
6101         even if the file does not change.  Otherwise, 'make -q' fails.
6102         Problem reported by Simon Josefsson in
6103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6104
6105 2011-08-11  Jim Meyering  <meyering@redhat.com>
6106
6107         git-version-gen: correct the advice in a comment
6108         * build-aux/git-version-gen: Correct comment.
6109         Don't recommend to list .tarball-version in .gitignore.
6110
6111 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6112
6113         base64: fix off-by-one buffer size bug
6114         Problem and (trivial) fix reported by Gijs van Tulder in
6115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6116         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6117         * tests/test-base64.c (main): Catch the bug.
6118
6119 2011-08-10  Eric Blake  <eblake@redhat.com>
6120
6121         closein: correct comments
6122         * lib/closein.c (close_stdin): Improve comments.
6123
6124 2011-08-09  Bruno Haible  <bruno@clisp.org>
6125
6126         More tests for 'fseeko'.
6127         * tests/test-fseeko3.c: New file, from Eric Blake.
6128         * tests/test-fseeko3.sh: New file.
6129         * modules/fseeko-tests (Files): Add them.
6130         (TESTS): Add test-fseeko3.sh.
6131         (check_PROGRAMS): Add test-fseeko3.
6132
6133 2011-08-09  Eric Blake  <eblake@redhat.com>
6134
6135         fseeko: remove unneeded hack
6136         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6137
6138         fseeko: fix bug on glibc
6139         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6140         Reported by John W. Eaton.
6141
6142 2011-08-08  Bruno Haible  <bruno@clisp.org>
6143
6144         unictype/base: Fix interoperability with preinstalled libunistring.
6145         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6146         Reported by Simon Josefsson.
6147
6148 2011-08-08  Bruno Haible  <bruno@clisp.org>
6149
6150         iswblank: Detect declaration correctly.
6151         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6152         AC_CHECK_DECLS invocation.
6153
6154 2011-08-08  Bruno Haible  <bruno@clisp.org>
6155
6156         tcgetsid: Detect declaration correctly.
6157         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6158         AC_CHECK_DECLS invocation.
6159         Reported by Simon Josefsson.
6160
6161 2011-08-08  Eric Blake  <eblake@redhat.com>
6162
6163         largefile: fix typo that regressed large file support
6164         * modules/largefile (configure.ac-early): Fix section name.
6165
6166 2011-08-06  Karl Berry  <karl@gnu.org>
6167
6168         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6169         a separate module.
6170
6171 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6172
6173         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6174         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6175         get prototype for free.
6176
6177 2011-08-04  Bruno Haible  <bruno@clisp.org>
6178
6179         Tests for module 'pathmax'.
6180         * modules/pathmax-tests: New file.
6181         * tests/test-pathmax.c: New file.
6182
6183         canonicalize-lgpl: Support larger filenames on the Hurd.
6184         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6185         Reported by Paul Eggert.
6186
6187         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6188         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6189         * lib/chdir-long.h: Include pathmax.h.
6190         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6191         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6192         (PATH_MAX): Remove code that is done by pathmax.h.
6193         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6194         * lib/tmpfile.c: Add a comment.
6195         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6196         * modules/chdir-long (Depends-on): Add pathmax.
6197         * modules/getcwd (Depends-on): Add pathmax.
6198         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6199         is not defined.
6200         * doc/posix-headers/limits.texi: Mention the pathmax module.
6201         * NEWS: Mention the change.
6202
6203 2011-08-02  Bruno Haible  <bruno@clisp.org>
6204
6205         pthread_sigmask: Actually use results of gl_THREADLIB.
6206         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6207         gl_THREADLIB, not gl_[]THREADLIB.
6208         Reported by Eric Blake.
6209
6210 2011-08-02  Jim Meyering  <meyering@redhat.com>
6211
6212         maint.mk: relax the default _gl_TS_function_match regexp
6213         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6214         space between function name and "(" in an "extern" declaration.
6215         That would fail to match a decl with no space there: extern void foo();
6216
6217 2011-07-31  Iain Nicol  <iain@thenicols.net>
6218
6219         git-version-gen: document that EXTRA_DIST must include .version
6220         * build-aux/git-version-gen: In the how-to-use comment, document
6221         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6222         will fail when run from an unpacked distribution tarball.
6223
6224 2011-08-01  Bruno Haible  <bruno@clisp.org>
6225
6226         wctype-h: Fix last change.
6227         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6228         REPLACE_TOWLOWER to 0.
6229         Reported by Sam Steingold <sds@gnu.org>.
6230
6231 2011-07-31  Bruno Haible  <bruno@clisp.org>
6232
6233         frexpl: Update autoconf test.
6234         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6235         according to changes of 2011-06-20.
6236
6237 2011-07-31  Bruno Haible  <bruno@clisp.org>
6238
6239         sys_utsname: Add support for Minix.
6240         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6241         <sys/utsname.h>.
6242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6243         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6244
6245 2011-07-31  Bruno Haible  <bruno@clisp.org>
6246
6247         strings: Add support for Minix.
6248         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6249         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6250         * doc/posix-headers/strings.texi: Document the Minix problem.
6251
6252 2011-07-31  Bruno Haible  <bruno@clisp.org>
6253
6254         wctype-h: Add support for Minix.
6255         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6256         REPLACE_TOWLOWER.
6257         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6258         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6259         REPLACE_ISWCNTRL.
6260
6261 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6262
6263         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6264         This is a performance improvement for 64-bit hosts: it causes the
6265         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6266
6267 2011-07-31  Bruno Haible  <bruno@clisp.org>
6268
6269         stdioext: Add support for Minix.
6270         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6271         * lib/fpurge.c (fpurge): Likewise.
6272         * lib/freadahead.c (freadahead): Likewise.
6273         * lib/freadable.c (freadable): Likewise.
6274         * lib/freading.c (freading): Likewise.
6275         * lib/freadptr.c (freadptr): Likewise.
6276         * lib/freadseek.c (freadptrinc): Likewise.
6277         * lib/fseeko.c (rpl_fseeko): Likewise.
6278         * lib/fseterr.c (fseterr): Likewise.
6279         * lib/fwritable.c (fwritable): Likewise.
6280         * lib/fwriting.c (fwriting): Likewise.
6281         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6282         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6283
6284 2011-07-31  Bruno Haible  <bruno@clisp.org>
6285
6286         errno: Port to Minix.
6287         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6288         ECONNABORTED are defined.
6289         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6290         GNULIB_defined_ECONNABORTED): New macros.
6291         * lib/strerror-override.h (strerror_override): Test also
6292         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6293         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6294         ECONNABORTED.
6295         * doc/posix-headers/errno.texi: Mention the Minix problem.
6296
6297 2011-07-31  Bruno Haible  <bruno@clisp.org>
6298
6299         Work around declaration collisions on Minix.
6300         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6301         defined, set REPLACE_MBSINIT.
6302         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6303         defined, set REPLACE_MBRTOWC.
6304         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6305         set REPLACE_MBRLEN.
6306         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6307         defined, set REPLACE_MBSRTOWCS.
6308         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6309         defined, set REPLACE_WCRTOMB.
6310         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6311         defined, set REPLACE_WCSRTOMBS.
6312
6313 2011-07-31  Bruno Haible  <bruno@clisp.org>
6314
6315         Add support for Minix with ACK compiler.
6316         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6317         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6318         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6319
6320 2011-07-31  Bruno Haible  <bruno@clisp.org>
6321
6322         Documentation about Minix.
6323         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6324         * doc/glibc-headers/*.texi: Likewise.
6325         * doc/posix-functions/*.texi: Likewise.
6326         * doc/glibc-functions/*.texi: Likewise.
6327
6328 2011-07-31  Bruno Haible  <bruno@clisp.org>
6329
6330         snippet/warn-on-use: Fix indentation.
6331         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6332
6333 2011-07-25  Jim Meyering  <meyering@redhat.com>
6334
6335         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6336         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6337         commands.
6338
6339 2011-07-27  Jim Meyering  <meyering@redhat.com>
6340
6341         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6342         * top/maint.mk (gl_extract_significant_defines_): Now that
6343         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6344         gnulib/lib/signal.in.h, and now that we recommend to
6345         define-if-undefined those two symbols in application code,
6346         we must filter them out of the "significant" list.
6347         This avoids a "make syntax-check" failure in coreutils.
6348
6349 2011-07-26  Eric Blake  <eblake@redhat.com>
6350
6351         warnings: add comments about previous patch
6352         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6353         * m4/include_next.m4: Likewise.
6354         * m4/warn-on-use.m4: Likewise.
6355         * m4/warnings.m4: Likewise, and simplify use.
6356         Suggested by Stefano Lattarini.
6357
6358         include-next, warnings: support older autoconf
6359         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6360         AS_VAR_PUSHDEF in a way that works with older autoconf.
6361         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6362         Reported by Daniel P. Berrange.
6363
6364 2011-07-25  Bruno Haible  <bruno@clisp.org>
6365
6366         fseek, ftell: Fix doc.
6367         * doc/posix-functions/fseek.texi: Reword statement about
6368         AC_SYS_LARGEFILE.
6369         * doc/posix-functions/ftell.texi: Likewise.
6370
6371 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6372             Bruno Haible  <bruno@clisp.org>
6373
6374         Add dependencies to the 'largefile' module.
6375         * modules/fopen (Depends-on): Add 'largefile'.
6376         * modules/freopen (Depends-on): Likewise.
6377         * modules/fseeko (Depends-on): Likewise.
6378         * modules/ftello (Depends-on): Likewise.
6379         * modules/glob (Depends-on): Likewise.
6380         * modules/lseek (Depends-on): Likewise.
6381         * modules/lstat (Depends-on): Likewise.
6382         * modules/mkostemp (Depends-on): Likewise.
6383         * modules/mkostemps (Depends-on): Likewise.
6384         * modules/mkstemp (Depends-on): Likewise.
6385         * modules/mkstemps (Depends-on): Likewise.
6386         * modules/open (Depends-on): Likewise.
6387         * modules/openat (Depends-on): Likewise.
6388         * modules/pread (Depends-on): Likewise.
6389         * modules/pwrite (Depends-on): Likewise.
6390         * modules/scandir (Depends-on): Likewise.
6391         * modules/stat (Depends-on): Likewise.
6392         * modules/tmpfile (Depends-on): Likewise.
6393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6394         since the containing module now depends on the largefile module.
6395         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6396         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6397         off_t is fixed by gnulib.
6398         * doc/posix-functions/freopen.texi: Likewise.
6399         * doc/posix-functions/fseeko.texi: Likewise.
6400         * doc/posix-functions/fstatat.texi: Likewise.
6401         * doc/posix-functions/ftello.texi: Likewise.
6402         * doc/posix-functions/glob.texi: Likewise.
6403         * doc/posix-functions/lseek.texi: Likewise.
6404         * doc/posix-functions/lstat.texi: Likewise.
6405         * doc/posix-functions/mkstemp.texi: Likewise.
6406         * doc/posix-functions/open.texi: Likewise.
6407         * doc/posix-functions/openat.texi: Likewise.
6408         * doc/posix-functions/pread.texi: Likewise.
6409         * doc/posix-functions/pwrite.texi: Likewise.
6410         * doc/posix-functions/scandir.texi: Likewise.
6411         * doc/posix-functions/stat.texi: Likewise.
6412         * doc/posix-functions/tmpfile.texi: Likewise.
6413         * doc/glibc-functions/mkostemp.texi: Likewise.
6414         * doc/glibc-functions/mkostemps.texi: Likewise.
6415         * doc/glibc-functions/mkstemps.texi: Likewise.
6416
6417 2011-07-25  Bruno Haible  <bruno@clisp.org>
6418
6419         fcntl: Move AC_LIBOBJ invocation to module description.
6420         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6421         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6422
6423         fcntl: Remove call-in from fchdir.m4.
6424         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6426
6427         dup3: Remove potential call-in from fchdir.m4.
6428         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6430
6431         dup2: Move AC_LIBOBJ invocation to module description.
6432         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6433         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6434         Don't invoke AC_LIBOBJ.
6435         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6436
6437         dup2: Remove call-in from fchdir.m4.
6438         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6440
6441         fclose: Move AC_LIBOBJ invocation to module description.
6442         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6443         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6444         to 1.
6445         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6446
6447         fclose: Remove call-in from close.m4.
6448         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6449         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6450
6451         close: Move AC_LIBOBJ invocation to module description.
6452         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6453         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6454         1.
6455         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6456
6457         close: Remove call-in from fchdir.m4.
6458         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6460
6461         open: Move AC_LIBOBJ invocation to module description.
6462         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6463         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6464         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6465
6466         open: Remove call-in from fchdir.m4.
6467         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6469
6470         fchdir: Start to remove gl_REPLACE_* idiom.
6471         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6472         (gl_FUNC_FCHDIR): Invoke it.
6473
6474 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6475
6476         * lib/ftell.c (ftell): Comment out cast.
6477
6478         close: use gl_REPLACE_FCLOSE only if defined
6479         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6480         is defined.  The close module doesn't depend on the fclose module
6481         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6483         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6484
6485 2011-07-24  Jim Meyering  <meyering@redhat.com>
6486
6487         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6488         * tests/test-select.h (test_function): Declare as "static".
6489
6490 2011-07-24  Bruno Haible  <bruno@clisp.org>
6491
6492         doc: Mention the effects of AC_SYS_LARGEFILE.
6493         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6494         on this function.
6495         * doc/posix-functions/aio_error.texi: Likewise.
6496         * doc/posix-functions/aio_fsync.texi: Likewise.
6497         * doc/posix-functions/aio_read.texi: Likewise.
6498         * doc/posix-functions/aio_return.texi: Likewise.
6499         * doc/posix-functions/aio_suspend.texi: Likewise.
6500         * doc/posix-functions/aio_write.texi: Likewise.
6501         * doc/posix-functions/fgetpos.texi: Likewise.
6502         * doc/posix-functions/fopen.texi: Likewise.
6503         * doc/posix-functions/freopen.texi: Likewise.
6504         * doc/posix-functions/fsetpos.texi: Likewise.
6505         * doc/posix-functions/fstatvfs.texi: Likewise.
6506         * doc/posix-functions/ftruncate.texi: Likewise.
6507         * doc/posix-functions/ftw.texi: Likewise.
6508         * doc/posix-functions/getrlimit.texi: Likewise.
6509         * doc/posix-functions/glob.texi: Likewise.
6510         * doc/posix-functions/lio_listio.texi: Likewise.
6511         * doc/posix-functions/lockf.texi: Likewise.
6512         * doc/posix-functions/mkstemp.texi: Likewise.
6513         * doc/posix-functions/mmap.texi: Likewise.
6514         * doc/posix-functions/nftw.texi: Likewise.
6515         * doc/posix-functions/openat.texi: Likewise.
6516         * doc/posix-functions/opendir.texi: Likewise.
6517         * doc/posix-functions/posix_fadvise.texi: Likewise.
6518         * doc/posix-functions/posix_fallocate.texi: Likewise.
6519         * doc/posix-functions/pread.texi: Likewise.
6520         * doc/posix-functions/pwrite.texi: Likewise.
6521         * doc/posix-functions/readdir.texi: Likewise.
6522         * doc/posix-functions/readdir_r.texi: Likewise.
6523         * doc/posix-functions/rewinddir.texi: Likewise.
6524         * doc/posix-functions/scandir.texi: Likewise.
6525         * doc/posix-functions/seekdir.texi: Likewise.
6526         * doc/posix-functions/setrlimit.texi: Likewise.
6527         * doc/posix-functions/statvfs.texi: Likewise.
6528         * doc/posix-functions/telldir.texi: Likewise.
6529         * doc/posix-functions/tmpfile.texi: Likewise.
6530         * doc/posix-functions/truncate.texi: Likewise.
6531         * doc/glibc-functions/fallocate.texi: Likewise.
6532         * doc/glibc-functions/fstatfs.texi: Likewise.
6533         * doc/glibc-functions/fts_children.texi: Likewise.
6534         * doc/glibc-functions/fts_read.texi: Likewise.
6535         * doc/glibc-functions/getdirentries.texi: Likewise.
6536         * doc/glibc-functions/mkostemp.texi: Likewise.
6537         * doc/glibc-functions/mkostemps.texi: Likewise.
6538         * doc/glibc-functions/mkstemps.texi: Likewise.
6539         * doc/glibc-functions/preadv.texi: Likewise.
6540         * doc/glibc-functions/pwritev.texi: Likewise.
6541         * doc/glibc-functions/sendfile.texi: Likewise.
6542         * doc/glibc-functions/statfs.texi: Likewise.
6543
6544 2011-07-24  Bruno Haible  <bruno@clisp.org>
6545
6546         doc: Fix typo.
6547         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6548
6549 2011-07-24  Bruno Haible  <bruno@clisp.org>
6550
6551         doc: Mention fsusage.
6552         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6553
6554 2011-07-24  Bruno Haible  <bruno@clisp.org>
6555
6556         doc: Mention new glibc headers and functions.
6557         * doc/glibc-headers/gshadow.texi: New file.
6558         * doc/glibc-functions/endsgent.texi: New file.
6559         * doc/glibc-functions/fgetsgent.texi: New file.
6560         * doc/glibc-functions/fgetsgent_r.texi: New file.
6561         * doc/glibc-functions/getsgent.texi: New file.
6562         * doc/glibc-functions/getsgent_r.texi: New file.
6563         * doc/glibc-functions/getsgnam.texi: New file.
6564         * doc/glibc-functions/getsgnam_r.texi: New file.
6565         * doc/glibc-functions/putsgent.texi: New file.
6566         * doc/glibc-functions/setsgent.texi: New file.
6567         * doc/glibc-functions/sgetsgent.texi: New file.
6568         * doc/glibc-functions/sgetsgent_r.texi: New file.
6569         * doc/glibc-functions/malloc_info.texi: New file.
6570         * doc/glibc-functions/preadv.texi: New file.
6571         * doc/glibc-functions/pwritev.texi: New file.
6572         * doc/glibc-functions/register_printf_modifier.texi: New file.
6573         * doc/glibc-functions/register_printf_specifier.texi: New file.
6574         * doc/glibc-functions/register_printf_type.texi: New file.
6575         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6576         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6577         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6578         * doc/glibc-functions/pthread_getname_np.texi: New file.
6579         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6580         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6581         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6582         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6583         * doc/glibc-functions/pthread_setname_np.texi: New file.
6584         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6585         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6586         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6587         * doc/glibc-functions/qsort_r.texi: New file.
6588         * doc/glibc-functions/quick_exit.texi: New file.
6589         * doc/glibc-functions/syncfs.texi: New file.
6590         * doc/gnulib.texi: Include them.
6591         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6592         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6593         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6594         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6595         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6596         * doc/glibc-functions/execvpe.texi: Likewise.
6597
6598 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6599
6600         ftell: don't include <unistd.h>
6601         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6602         guaranteed to define off_t, and the ftell module depends on the
6603         stdio module.
6604
6605         ftell: do not assume wraparound signed arithmetic
6606         * lib/ftell.c: Include <limits.h>.
6607         (ftell): Don't assume wraparound signed arithmetic.
6608
6609 2011-07-24  Bruno Haible  <bruno@clisp.org>
6610
6611         close: No longer depend on module 'fclose'.
6612         * modules/close (Depends-on): Remove fclose.
6613         * NEWS: Mention the change.
6614         Suggested by Sam Steingold <sds@gnu.org>.
6615
6616 2011-07-24  Bruno Haible  <bruno@clisp.org>
6617
6618         fsusage: Enable large volume support on AIX >= 5.2.
6619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6620         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6621         instead of STAT_STATVFS.
6622         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6623
6624         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6626         f_blocks field only on MacOS X.
6627
6628         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6629         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6630         * modules/fsusage (Depends-on): Add largefile.
6631
6632 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6633
6634         * README: Modernize discussion of signed integers.
6635         Assuming overflow wraparound is no longer safe.
6636         Mention ones' complement and signed magnitude.
6637
6638 2011-07-22  Bruno Haible  <bruno@clisp.org>
6639
6640         select tests, pselect tests: Refactor.
6641         * tests/test-select.h: New file, extracted from tests/test-select.c.
6642         (select_fn): New type.
6643         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6644         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6645         test_pipe): Add my_select argument.
6646         (test_function): Renamed from main. Add my_select argument.
6647         * tests/test-select.c: Move most code to tests/test-select.h. Include
6648         test-select.h.
6649         * modules/select-tests (Files): Add tests/test-select.h.
6650         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6651         (my_select, main): New functions.
6652         * modules/pselect-tests (Files): Add tests/test-select.h,
6653         tests/macros.h, tests/signature.h.
6654         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6655         (configure.ac): Check for <sys/wait.h>.
6656
6657 2011-07-22  Bruno Haible  <bruno@clisp.org>
6658
6659         sys_select tests: Check the signature of FD_*.
6660         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6661         signature tests from here...
6662         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6663         here.
6664         * modules/sys_select-tests (Files): Add tests/signature.h.
6665
6666 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6667
6668         largefile: new module, replacing large-inode
6669         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6670         * MODULES.html.sh: Add largefile, remove large-inode.
6671         * modules/largefile, m4/largefile.m4: New files.
6672         * modules/large-inode, m4/large-inode.m4: Remove.
6673
6674         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6676         implementations that use only 32 bits to count blocks.
6677         On typical hosts with 1024-byte blocks, this fails with file
6678         systems as small as 4 TiB.  Problem reported by Herb Wartens
6679         <http://debbugs.gnu.org/9140> and this should also fix a similar
6680         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6681
6682         large-inode: New module
6683         * MODULES.html.sh: Add it.
6684         * modules/large-inode, m4/large-inode.m4: New files.
6685
6686         extensions: Enable extensions on MacOS X 10.5 and later.
6687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6688
6689 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6690
6691         file-has-acl: use acl_extended_file_nofollow if available
6692         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6693         (acl_extended_file): New macro.
6694         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6695         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6696
6697 2011-07-21  Bruno Haible  <bruno@clisp.org>
6698
6699         Declare system functions in a way that works with C++.
6700         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6701         declare fdopendir as extern "C".
6702         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6703         declare frexpl as extern "C".
6704         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6705         declare gai_strerror as extern "C".
6706         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6707         programs, declare gai_strerror as extern "C".
6708         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6709         declare getlogin_r as extern "C".
6710         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6711         as extern "C".
6712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6713         declare ldexpl as extern "C".
6714         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6715         as extern "C".
6716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6717         program, declare getmntinfo as extern "C".
6718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6719         stpncpy as extern "C".
6720         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6721         program, declare __xpg_strerror_r as extern "C".
6722         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6723         strndup as extern "C".
6724         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6725         declare memset and bzero as extern "C".
6726         Reported by Sam Steingold <sds@gnu.org>.
6727
6728 2011-07-12  Jim Meyering  <meyering@redhat.com>
6729
6730         maint.mk: prohibit inclusion of "verify.h" without use
6731         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6732
6733 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6734
6735         timer-time: A new module to check for timer_settime()
6736         * m4/timer_time.m4: Check for the posix function.
6737         * modules/timer-time: Add the new module.
6738         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6739         Mention it.
6740
6741 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6742             Bruno Haible  <bruno@clisp.org>
6743
6744         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6745         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6746         not defined, assume POSIX threads and look for pthread_sigmask in
6747         $LIBS, without changing $CPPFLAGS.
6748
6749 2011-07-19  Bruno Haible  <bruno@clisp.org>
6750
6751         strstr: Update cross-compilation guess.
6752         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6753         CPUs, guess no, in view of glibc
6754         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6755         Suggested by Eric Blake. Reported by Reuben Thomas.
6756
6757 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6758
6759         getopt-gnu: suppress core dumps from detection code
6760         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6761         to suppress core dumps that may well occur on glibc systems.
6762         * modules/getopt-gnu: Depend on nocrash.
6763
6764 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6765
6766         pthread_sigmask: ensure usleep is declared
6767         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6768         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6769
6770 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6771
6772         doc: Document NonStop portability issues.
6773         * doc/posix-functions/sigaction.texi (sigaction):
6774         * doc/posix-headers/signal.texi (signal.h):
6775         Document NonStop.  See Joachim Schmitz in
6776         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6777
6778 2011-07-15  Bruno Haible  <bruno@clisp.org>
6779
6780         ffsl, ffsll: Avoid unportable behaviour.
6781         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6782
6783 2011-07-15  Bruno Haible  <bruno@clisp.org>
6784
6785         ffs: More tests.
6786         * tests/test-ffs.c (NBITS): New macro.
6787         (main): Add more tests.
6788         * tests/test-ffsl.c (NBITS): New macro.
6789         (main): Add more tests.
6790         * tests/test-ffsll.c (NBITS): New macro.
6791         (main): Add more tests.
6792
6793 2011-07-15  Eric Blake  <eblake@redhat.com>
6794
6795         ffsl, ffsll: new modules
6796         * modules/ffsl: New file.
6797         * modules/ffsll: Likewise.
6798         * m4/ffsl.m4: Likewise.
6799         * m4/ffsll.m4: Likewise.
6800         * lib/ffsl.c: Likewise.
6801         * lib/ffsl.h: Likewise.
6802         * lib/ffsll.c: Likewise.
6803         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6804         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6805         * modules/string (Makefile.am): Substitute witnesses.
6806         * lib/strings.in.h (ffsl, ffsll): Declare.
6807         * modules/ffsl-tests: New test file.
6808         * modules/ffsll-tests: Likewise.
6809         * tests/test-ffsl.c: Likewise.
6810         * tests/test-ffsll.c: Likewise.
6811         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6812         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6813         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6814
6815         ffs: fix m4 prerequisite
6816         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6817
6818         ffs: avoid undefined behavior
6819         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6820         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6821         Reported by Bruno Haible.
6822
6823 2011-07-12  Bruno Haible  <bruno@clisp.org>
6824
6825         pthread_sigmask: Rely on module 'threadlib'.
6826         * modules/pthread_sigmask (Depends-on): Add threadlib.
6827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6828         is defined.
6829
6830 2011-07-12  Bruno Haible  <bruno@clisp.org>
6831
6832         regex: Depend on module 'strcase'.
6833         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6834
6835 2011-07-12  Jim Meyering  <meyering@redhat.com>
6836
6837         warn-on-use: fix typo in file name
6838         * modules/snippet/warn-on-use (Files): Correct file name:
6839         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6840
6841 2011-07-12  Bruno Haible  <bruno@clisp.org>
6842
6843         strings: Document module.
6844         * doc/posix-headers/strings.texi: Mention module 'strings'.
6845
6846 2011-07-12  Bruno Haible  <bruno@clisp.org>
6847
6848         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6849         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6850         (Files, Makefile.am): Update.
6851         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6852         * modules/stdlib (Depends-on): Update.
6853
6854 2011-07-12  Bruno Haible  <bruno@clisp.org>
6855
6856         * NEWS: Mention the changes.
6857
6858         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6859         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6860         (Files, Makefile.am): Update.
6861         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6862         * modules/arpa_inet (Depends-on): Update.
6863         * modules/ctype (Depends-on): Update.
6864         * modules/dirent (Depends-on): Update.
6865         * modules/fcntl-h (Depends-on): Update.
6866         * modules/glob (Depends-on): Update.
6867         * modules/iconv-h (Depends-on): Update.
6868         * modules/inttypes-incomplete (Depends-on): Update.
6869         * modules/langinfo (Depends-on): Update.
6870         * modules/locale (Depends-on): Update.
6871         * modules/math (Depends-on): Update.
6872         * modules/netdb (Depends-on): Update.
6873         * modules/poll-h (Depends-on): Update.
6874         * modules/pty (Depends-on): Update.
6875         * modules/search (Depends-on): Update.
6876         * modules/signal (Depends-on): Update.
6877         * modules/spawn (Depends-on): Update.
6878         * modules/stdio (Depends-on): Update.
6879         * modules/stdlib (Depends-on): Update.
6880         * modules/string (Depends-on): Update.
6881         * modules/strings (Depends-on): Update.
6882         * modules/sys_file (Depends-on): Update.
6883         * modules/sys_ioctl (Depends-on): Update.
6884         * modules/sys_select (Depends-on): Update.
6885         * modules/sys_socket (Depends-on): Update.
6886         * modules/sys_stat (Depends-on): Update.
6887         * modules/sys_time (Depends-on): Update.
6888         * modules/sys_times (Depends-on): Update.
6889         * modules/sys_utsname (Depends-on): Update.
6890         * modules/sys_wait (Depends-on): Update.
6891         * modules/termios (Depends-on): Update.
6892         * modules/time (Depends-on): Update.
6893         * modules/unistd (Depends-on): Update.
6894         * modules/wchar (Depends-on): Update.
6895         * modules/wctype-h (Depends-on): Update.
6896         * MODULES.html.sh (Support for building libraries and executables):
6897         Update.
6898
6899         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6900         * modules/snippet/unused-parameter: Renamed from
6901         modules/unused-parameter.
6902         (Files, Makefile.am): Update.
6903         * build-aux/snippet/unused-parameter.h: Renamed from
6904         build-aux/unused-parameter.h.
6905         * modules/selinux-h (Depends-on): Update.
6906         * modules/unistr/base (Depends-on): Update.
6907         * MODULES.html.sh (Core language properties): Update.
6908
6909         Rename module 'link-warning' to 'snippet/link-warning'.
6910         * modules/snippet/link-warning: Renamed from modules/link-warning.
6911         (Files, Makefile.am): Update.
6912         * build-aux/snippet/link-warning.h: Renamed from
6913         build-aux/link-warning.h.
6914         * MODULES.html.sh (Support for building libraries and executables):
6915         Update.
6916
6917         Rename module 'c++defs' to 'snippet/c++defs'.
6918         * modules/snippet/c++defs: Renamed from modules/c++defs.
6919         (Files, Makefile.am): Update.
6920         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.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/langinfo (Depends-on): Update.
6928         * modules/locale (Depends-on): Update.
6929         * modules/math (Depends-on): Update.
6930         * modules/netdb (Depends-on): Update.
6931         * modules/poll-h (Depends-on): Update.
6932         * modules/pty (Depends-on): Update.
6933         * modules/search (Depends-on): Update.
6934         * modules/signal (Depends-on): Update.
6935         * modules/spawn (Depends-on): Update.
6936         * modules/stdio (Depends-on): Update.
6937         * modules/stdlib (Depends-on): Update.
6938         * modules/string (Depends-on): Update.
6939         * modules/strings (Depends-on): Update.
6940         * modules/sys_ioctl (Depends-on): Update.
6941         * modules/sys_select (Depends-on): Update.
6942         * modules/sys_socket (Depends-on): Update.
6943         * modules/sys_stat (Depends-on): Update.
6944         * modules/sys_time (Depends-on): Update.
6945         * modules/sys_wait (Depends-on): Update.
6946         * modules/termios (Depends-on): Update.
6947         * modules/time (Depends-on): Update.
6948         * modules/unistd (Depends-on): Update.
6949         * modules/wchar (Depends-on): Update.
6950         * modules/wctype-h (Depends-on): Update.
6951
6952         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6953         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6954         (Files, Makefile.am): Update.
6955         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6956         * modules/argv-iter (Depends-on): Update.
6957         * modules/arpa_inet (Depends-on): Update.
6958         * modules/dirent (Depends-on): Update.
6959         * modules/fcntl-h (Depends-on): Update.
6960         * modules/fnmatch (Depends-on): Update.
6961         * modules/getopt-posix (Depends-on): Update.
6962         * modules/glob (Depends-on): Update.
6963         * modules/iconv-h (Depends-on): Update.
6964         * modules/inttypes-incomplete (Depends-on): Update.
6965         * modules/locale (Depends-on): Update.
6966         * modules/math (Depends-on): Update.
6967         * modules/netdb (Depends-on): Update.
6968         * modules/search (Depends-on): Update.
6969         * modules/signal (Depends-on): Update.
6970         * modules/spawn (Depends-on): Update.
6971         * modules/stdio (Depends-on): Update.
6972         * modules/stdlib (Depends-on): Update.
6973         * modules/string (Depends-on): Update.
6974         * modules/strings (Depends-on): Update.
6975         * modules/sys_socket (Depends-on): Update.
6976         * modules/sys_stat (Depends-on): Update.
6977         * modules/sys_time (Depends-on): Update.
6978         * modules/sys_times (Depends-on): Update.
6979         * modules/sys_utsname (Depends-on): Update.
6980         * modules/time (Depends-on): Update.
6981         * modules/unistd (Depends-on): Update.
6982         * modules/wchar (Depends-on): Update.
6983         * MODULES.html.sh (Support for building libraries and executables):
6984         Update.
6985
6986 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6987
6988         Improvements on _Noreturn and related modules.
6989
6990         modules/_Exit-tests: test _Noreturn too
6991         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6992         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6993         (main): Use them.
6994
6995         stdnoreturn, stdnoreturn-tests: remove modules
6996         They're not needed here and a bit premature for use elsewhere.  See
6997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6998         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6999         * tests/test-stdnoreturn.c: Remove files.
7000         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7001         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7002         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7003         and using noreturn.
7004         * modules/openat, modules/sigpipe-die, modules/xalloc:
7005         * modules/xmemdup0, modules/xstrtol:
7006         Remove dependency on stdnoreturn.
7007
7008         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7009         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7010         Reparenthesize to avoid GCC warning.
7011         Support Microsoft's syntax.
7012         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7013
7014         _Noreturn-tests: remove module
7015         * modules/_Noreturn-tests: Remove.
7016         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7017         * tests/test-_Noreturn.c: Remove.
7018         * tests/test-stdnoreturn.c: Merge from the old
7019         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7020
7021 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7022
7023         _Noreturn, stdnoreturn, and related modules.
7024
7025         * top/maint.mk: Adjust to new noreturn support.
7026         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7027         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7028
7029         xalloc: use stdnoreturn.h
7030         * lib/xalloc.h: Include <stdnoreturn.h>.
7031         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7032         * modules/xalloc (Depends-on): Add stdnoreturn.
7033
7034         xstrtol: use stdnoreturn.h
7035         * lib/xstrtol.h: Include <stdnoreturn.h>.
7036         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7037         * modules/xstrtol (Depends-on): Add stdnoreturn.
7038
7039         xmemdup0: use stdnoreturn.h
7040         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7041         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7042         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7043
7044         sigpipe-die: use stdnoreturn.h
7045         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7046         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7047         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7048
7049         openat: use stdnoreturn.h
7050         * lib/openat.h: Include <stdnoreturn.h>.
7051         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7052         * modules/openat (Depends-on): Add stdnoreturn.
7053
7054         * lib/openat-die.c (openat_save_fail): Modernize comment.
7055
7056         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7057
7058         * lib/glthread/thread.h: Modernize comment.
7059
7060         obstack: use _Noreturn
7061         * lib/obstack.c (__attribute__): Remove macro.
7062         (print_and_abort): Use _Noreturn.
7063
7064         c-stack: use _Noreturn
7065         * lib/c-stack.c (die, overflow_handler, segv_handler):
7066         Use _Noreturn rather than __attribute__((noreturn)).
7067
7068         argmatch-tests, exclude_tests: use _Noreturn
7069         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7070         Remove.
7071         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7072
7073         stdlib: use _Noreturn
7074         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7075         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7076         * modules/stdlib (Depends-on): Add _Noreturn.
7077         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7078
7079         stdnoreturn-tests: new module
7080         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7081
7082         stdnoreturn: new module
7083         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7084         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7085
7086         _Noreturn-tests: new module
7087         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7088
7089         _Noreturn: new module
7090         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7091         New section, mentioning it.
7092         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7093
7094         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7095
7096 2011-07-11  Eric Blake  <eblake@redhat.com>
7097
7098         ffs: new module
7099         * modules/ffs: New file.
7100         * m4/ffs.m4: Likewise.
7101         * lib/ffs.c: Likewise.
7102         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7103         * modules/strings (Makefile.am): Substitute witness.
7104         (Depends-on): Add c++defs.
7105         * lib/strings.in.h (ffs): Declare.
7106         * modules/ffs-tests: New test file.
7107         * tests/test-ffs.c: Test new module.
7108         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7109         * doc/posix-functions/ffs.texi (ffs): Likewise.
7110
7111         regex: avoid compiler warning
7112         * lib/regex.c (includes): Include <strings.h>, for use of
7113         strcasecmp in regcomp.c.
7114         Reported by Joachim Schmitz.
7115
7116 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7117
7118         stdint: respect system's intmax_t if INTMAX_MAX
7119         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7120         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7121         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7122         long but int64_t is long long, and where we will clash with the
7123         system intmax_t if we override it.  See
7124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7125         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7126         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7127         similarly for UINTMAX_C.
7128
7129 2011-07-08  Bruno Haible  <bruno@clisp.org>
7130
7131         pthread_sigmask tests: Avoid a compiler warning.
7132         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7133         non-zero.
7134
7135         sigprocmask tests: A better way to avoid a compiler warning.
7136         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7137         (main): Complain if system() returns non-zero.
7138         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7139
7140 2011-07-08  Bruno Haible  <bruno@clisp.org>
7141
7142         pthread_sigmask: Work around IRIX bug.
7143         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7144         bug.
7145         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7146         there may be unblocked pending signals.
7147         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7148
7149 2011-07-08  Bruno Haible  <bruno@clisp.org>
7150
7151         pthread_sigmask: Work around Cygwin bug.
7152         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7153         bug.
7154         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7155         the system's pthread_sigmask function.
7156         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7157
7158 2011-07-08  Bruno Haible  <bruno@clisp.org>
7159
7160         pthread_sigmask: Work around bug in single-threaded implementation.
7161         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7162         FreeBSD, HP-UX, Solaris bug.
7163         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7164         * lib/pthread_sigmask.c: Include <stddef.h>.
7165         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7166         the system's pthread_sigmask function.
7167         * modules/pthread_sigmask (configure.ac): Invoke
7168         gl_PREREQ_PTHREAD_SIGMASK.
7169         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7170         HP-UX, Solaris.
7171
7172 2011-07-08  Eric Blake  <eblake@redhat.com>
7173
7174         test-sigprocmask: avoid compiler warning
7175         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7176         * tests/test-sigprocmask.c (main): Use it to silence warning.
7177         Reported by Jim Meyering.
7178
7179         test-snprintf: avoid compiler warning
7180         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7181         * tests/test-vsnprintf.c (main): Likewise.
7182         Reported by Jim Meyering.
7183
7184 2011-07-08  Bruno Haible  <bruno@clisp.org>
7185
7186         Tests for module 'pthread_sigmask'.
7187         * modules/pthread_sigmask-tests: New file.
7188         * tests/test-pthread_sigmask1.c: New file, based on
7189         tests/test-sigprocmask.c.
7190         * tests/test-pthread_sigmask2.c: New file.
7191
7192 2011-07-08  Jim Meyering  <meyering@redhat.com>
7193
7194         test-getopt.h: avoid warning about an unused variable
7195         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7196
7197 2011-07-07  Jim Meyering  <meyering@redhat.com>
7198
7199         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7200         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7201         now that it no longer contains leading TABs.
7202         Remove unused "url=FIXME" statement.
7203
7204 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7205
7206         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7208         When gl_THREADLIB is not in use, assume that the POSIX sematics
7209         are desired.  This is better for Emacs, which uses POSIX semantics
7210         on GNUish and/or POSIXish platforms, and does not use threads at
7211         all otherwise.
7212
7213         pthread_sigmask: fix typo when testing for libraries
7214         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7215         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7216
7217 2011-07-08  Eric Blake  <eblake@redhat.com>
7218
7219         fts: introduce FTS_NOATIME
7220         * lib/fts_.h (FTS_NOATIME): New bit flag.
7221         (FTS_OPTIONMASK): Adjust.
7222         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7223         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7224
7225 2011-07-08  Bruno Haible  <bruno@clisp.org>
7226
7227         Tests for module 'thread'.
7228         * modules/thread-tests: New file.
7229         * tests/test-thread_self.c: New file.
7230         * tests/test-thread_create.cc: New file.
7231
7232 2011-07-08  Bruno Haible  <bruno@clisp.org>
7233
7234         thread: Avoid gcc warnings when using gl_thread_self().
7235         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7236         'void *'.
7237         (gl_thread_self_pointer): Update.
7238
7239 2011-07-07  Bruno Haible  <bruno@clisp.org>
7240
7241         signal-c++-tests: Check declaration of pthread_sigmask.
7242         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7243         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7244         $(LIB_PTHREAD_SIGMASK).
7245
7246 2011-07-07  Bruno Haible  <bruno@clisp.org>
7247
7248         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7249         * lib/signal.in.h (pthread_sigmask): Override if
7250         REPLACE_PTHREAD_SIGMASK is 1.
7251         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7252         REPLACE_PTHREAD_SIGMASK.
7253         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7254         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7255         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7256         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7257         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7258
7259 2011-07-07  Bruno Haible  <bruno@clisp.org>
7260
7261         pthread_sigmask: Ensure declaration in <signal.h>.
7262         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7263         include <pthread.h>.
7264         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7265         problem.
7266
7267 2011-07-07  Bruno Haible  <bruno@clisp.org>
7268
7269         pthread_sigmask: Document the module.
7270         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7271
7272 2011-07-07  Bruno Haible  <bruno@clisp.org>
7273
7274         pthread_sigmask: Follow gnulib conventions.
7275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7276         gl_PTHREAD_SIGMASK.
7277         * modules/pthread_sigmask (configure.ac): Update.
7278
7279 2011-07-07  Bruno Haible  <bruno@clisp.org>
7280
7281         pthread_sigmask: Make declaration C++ safe.
7282         * lib/signal.in.h: In two special conditions, just do an #include_next.
7283         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7284         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7285         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7286         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7287         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7288         not REPLACE_PTHREAD_MASK.
7289         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7290         not REPLACE_PTHREAD_MASK.
7291         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7292
7293 2011-07-07  Bruno Haible  <bruno@clisp.org>
7294
7295         pthread_sigmask: Fix return value.
7296         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7297         * lib/pthread_sigmask.c: New file.
7298         * modules/pthread_sigmask (Files): Add it.
7299         (configure.ac): Invoke AC_LIBOBJ.
7300
7301 2011-07-07  Eric Blake  <eblake@redhat.com>
7302
7303         getopt: more portable argv creation
7304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7305         const, use char arrays rather than strings.
7306         Suggested by Paul Eggert.
7307
7308 2011-07-07  Bruno Haible  <bruno@clisp.org>
7309
7310         Tests for module 'sigprocmask'.
7311         * modules/sigprocmask-tests: New file.
7312         * tests/test-sigprocmask.c: New file.
7313
7314 2011-07-07  Bruno Haible  <bruno@clisp.org>
7315
7316         float tests: Tweak.
7317         * tests/test-float.c (main): Tweak skip message.
7318
7319 2011-07-07  Eric Blake  <eblake@redhat.com>
7320
7321         getopt: avoid compiler warning during configure
7322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7323         assigning string literals to non-const pointer.
7324
7325         getopt-gnu: avoid crash in glibc getopt
7326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7327         * tests/test-getopt.h (test_getopt): Enhance test.
7328         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7329         * doc/posix-functions/getopt.texi (getopt): Document it.
7330         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7331         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7332         Likewise.
7333
7334 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7335
7336         getopt: handle W; without long options in getopt [BZ #12922]
7337         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7338         but no long options are defined, just return 'W'.
7339
7340 2011-07-07  Bruno Haible  <bruno@clisp.org>
7341
7342         Avoid literal tabs.
7343         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7344         variable containing a tab instead of a literal tab.
7345         Reported by Jim Meyering.
7346
7347 2011-07-07  Bruno Haible  <bruno@clisp.org>
7348
7349         Comments.
7350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7351
7352 2011-07-06  Bruno Haible  <bruno@clisp.org>
7353
7354         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7355         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7356         <winsock2.h>.
7357         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7358         lib/sys_socket.in.h.
7359         (close, gethostname): Hide declarations from <winsock2.h>.
7360         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7361         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7362         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7363         (select): Don't override if gnulib's <sys/select.h> was already
7364         included.
7365         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7366         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7367         setsockopt, shutdown, select): Tweak indentation.
7368
7369 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7370
7371         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7372         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7373         in an application that does not use the sys_select module.
7374
7375 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7376
7377         poll: do not return 0 on timeout=-1
7378         * lib/poll.c: Loop with yield if no events occured
7379
7380 2011-07-06  Eric Blake  <eblake@redhat.com>
7381
7382         pthread_sigmask: always replace when not using pthread
7383         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7384         replacement when using some threading other than pthread.  Fix
7385         logic bug.
7386
7387 2011-07-06  Bruno Haible  <bruno@clisp.org>
7388
7389         Comments.
7390         * m4/printf.m4: Update comments about mingw.
7391
7392 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7393
7394         sys_select: define sigset_t more portably
7395         * lib/sys_select.in.h: Always include <sys/types.h>, since
7396         we now need sigset_t and mingw defines it there.
7397         Include <signal.h> before split inclusion guard, to avoid
7398         mishaps on Solaris, whose <signal.h> eventually includes us.
7399         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7400         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7401         which come from ...
7402         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7403         gl_CHECK_TYPE_SIGSET_T.
7404         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7405         does the real work.
7406         * modules/sys_select (Depends-on): Add 'signal'.
7407
7408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7409         Suggested by Bruno Haible.
7410
7411         pselect: Use pthread_sigmask, not sigprocmask.
7412         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7413         multithreaded apps better than sigprocmask does.
7414         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7415         sigprocmask directly.
7416
7417 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7420         Don't #undef,  since we don't need any underlying pselect.
7421         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7422         (Depends-on): Add select.
7423         (Link): Add $(LIBSOCKET).
7424         These changes suggested by Bruno Haible.
7425
7426         pselect: document better
7427         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7428         * doc/posix-functions/pselect.texi (pselect): Document new module.
7429
7430         pthread_sigmask: new module
7431         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7432         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7433         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7434         This is done only as a macro; I don't know how well that'll
7435         work for C++.  Move <sys/types.h> include before the include_next,
7436         to avoid mishap on Solaris.
7437         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7438         * modules/signal (Makefile.am): Substitute the check's results.
7439         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7440
7441         test-pselect: new module
7442         * modules/pselect-tests, tests/test-pselect.c: New files.
7443         * tests/test-select.c, tests/test-sys_select-c++.cc:
7444         If TEST_PSELECT is defined, test pselect instead of testing select.
7445
7446         * tests/test-sys_select.c (sigset_t): Test for it, too.
7447         Suggested by Bruno Haible.
7448
7449 2011-07-05  Eric Blake  <eblake@redhat.com>
7450
7451         snprintf: guarantee %1$d, for libintl
7452         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7453         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7454         * doc/posix-functions/snprintf.texi (snprintf): Update.
7455         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7456         * tests/test-snprintf.c (main): Enhance test.
7457         * tests/test-vsnprintf.c (main): Likewise.
7458
7459 2011-07-05  Jim Meyering  <meyering@redhat.com>
7460
7461         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7462         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7463         per Bruno's request, to accommodate this idiom (no space after "#")
7464         even when the function is inside an #if block:
7465         char *
7466         gets (char *s)
7467         #undef gets
7468         {
7469           ...
7470         }
7471
7472 2011-07-04  Jim Meyering  <meyering@redhat.com>
7473
7474         maint: indent with spaces, not TABs, and add a rule to check this
7475         * tests/test-userspec.c: Indent with spaces, not TABs.
7476         * tests/test-argp.c: Likewise.
7477         * tests/test-c-stack2.sh: Likewise.
7478         * tests/test-parse-duration.sh: Likewise
7479         * m4/strtod.m4: Likewise.
7480         * m4/alloca.m4: Likewise.
7481         * m4/pselect.m4: Likewise.
7482         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7483
7484 2011-07-03  Jim Meyering  <meyering@redhat.com>
7485
7486         maint.mk: correct omissions in prohibit_argmatch_without_use check
7487         This rule would mistakenly report that argmatch.h is included without
7488         use even when both the argmatch and invalid_arg macro were used.
7489         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7490         of argmatch and invalid_arg.
7491
7492 2011-07-03  Bruno Haible  <bruno@clisp.org>
7493
7494         Comments about EINTR.
7495         * lib/safe-read.h: Explain the purpose of this module.
7496         * lib/safe-write.h: Likewise.
7497         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7498         module.
7499         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7500         module.
7501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7502
7503 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         xnanosleep: Rewrite to use new dtotimespec module.
7506         It has the conversion code that used to be in xnanosleep.
7507         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7508         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7509         (TIME_T_MAX): Remove.
7510         (xnanosleep): Rewrite in terms of dtotimespec.
7511         * modules/xnanosleep (Depends-on): Add dtotimespec.
7512         Remove intprops, stdbool.
7513
7514         timespec-add, timespec-sub: new modules
7515         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7516         * lib/timespec-add.c, lib/timespec-sub.c:
7517         * modules/timespec-add, modules/timespec-sub: New files.
7518
7519         dtotimespec: new module
7520         * lib/timespec.h (dtotimespec): New decl.
7521         * lib/dtotimespec.c, modules/dtotimespec: New files.
7522
7523         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7524
7525         pselect: new module
7526         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7527         (pselect): New decls.
7528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7529         since the standard pselect decl uses 'restrict'.
7530         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7531         HAVE_PSELECT, REPLACE_PSELECT.
7532         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7533         HAVE_PSELECT, REPLACE_PSELECT.
7534         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7535
7536         sys_select: don't depend on sys_socket
7537         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7539         This fix works on GNU and GNU-like platforms, but has not been tested
7540         on native Windows.
7541         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7543         gl_HEADER_SYS_SOCKET.
7544         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7545         gl_PREREQ_SYS_H_WINSOCK2.
7546
7547 2011-06-29  Eric Blake  <eblake@redhat.com>
7548
7549         pipe2: fix C89 compile problem
7550         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7551         Reported by Bruno Haible.
7552
7553         pipe, pipe2: don't corrupt fd on error
7554         * lib/pipe.c (pipe): Leave fd unchanged on error.
7555         * lib/pipe2.c (pipe2): Likewise.
7556         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7557         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7558
7559 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7560
7561         mmap-anon: do not use regular expressions inadvertently
7562         * m4/mmap-anon.m4: Remove trailing period from strings sought
7563         in the output.
7564
7565 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7566
7567         nanosleep: fix integer overflow problem
7568         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7569         arithmetic wraps around on overflow.
7570
7571         nanosleep: simplify carrying
7572         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7573         first call to the underyling nanosleep, not for the last one.
7574         This doesn't fix any bugs, but it simplifies the computation of
7575         the remaining delay.  Found while auditing integer overflow issues.
7576
7577         dup2: remove test for existence of fcntl
7578         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7579         "#if HAVE_FCNTL", in the configure-time test program.
7580         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7581         and therefore speeds up "configure" a bit.  Found while
7582         adding the dup2 module to Emacs.
7583
7584 2011-06-24  Eric Blake  <eblake@redhat.com>
7585
7586         maint.mk: enhance useless header checks
7587         * top/maint.mk (_sc_header_without_use): Check both include
7588         styles.
7589         (sc_prohibit_assert_without_use)
7590         (sc_prohibit_close_stream_without_use)
7591         (sc_prohibit_getopt_without_use)
7592         (sc_prohibit_quotearg_without_use)
7593         (sc_prohibit_quote_without_use)
7594         (sc_prohibit_long_options_without_use)
7595         (sc_prohibit_inttostr_without_use)
7596         (sc_prohibit_ignore_value_without_use)
7597         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7598         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7599         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7600         (sc_prohibit_hash_pjw_without_use)
7601         (sc_prohibit_safe_read_without_use)
7602         (sc_prohibit_argmatch_without_use)
7603         (sc_prohibit_canonicalize_without_use)
7604         (sc_prohibit_root_dev_ino_without_use)
7605         (sc_prohibit_openat_without_use)
7606         (sc_prohibit_c_ctype_without_use)
7607         (sc_prohibit_signal_without_use)
7608         (sc_prohibit_stdio--_without_use)
7609         (sc_prohibit_stdio-safer_without_use)
7610         (sc_prohibit_strings_without_use)
7611         (sc_prohibit_intprops_without_use)
7612         (sc_prohibit_stddef_without_use)
7613         (sc_prohibit_xfreopen_without_use): Update clients.
7614
7615 2011-06-24  Jim Meyering  <meyering@redhat.com>
7616
7617         syntax-check: keep one maint.mk rule in sync with its header
7618         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7619         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7620         I prefer to avoid temporary files here, so use <(...), but that
7621         is not supported by /bin/sh, so...
7622         (SHELL): Define to /bin/bash.
7623
7624 2011-06-24  Eric Blake  <eblake@redhat.com>
7625
7626         maint.mk: update sc_prohibit_intprops_without_use
7627         * top/maint.mk (_intprops_names): Match recent changes.
7628
7629 2011-06-24  Bruno Haible  <bruno@clisp.org>
7630
7631         strerror-override: No-op tweak.
7632         * lib/strerror-override.h (strerror_override): Reorder conditions,
7633         for consistency with lib/strerror-override.c.
7634
7635 2011-06-23  Eric Blake  <eblake@redhat.com>
7636
7637         maint.mk: test further PATH_MAX issues
7638         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7639         (sc_prohibit_path_max_allocation): ...and also test alloca.
7640         Suggested by Jim Meyering.
7641
7642 2011-06-22  Eric Blake  <eblake@redhat.com>
7643
7644         maint.mk: add syntax-check to avoid char[PATH_MAX]
7645         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7646
7647         stat: be robust to PATH_MAX definition
7648         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7649         * modules/stat (Depends-on): Add verify.
7650
7651         link: work around IRIX bug
7652         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7653         * lib/link.c (rpl_link): Work around it.
7654         * tests/test-link.h (test_link): Enhance test.
7655         * doc/posix-functions/link.texi (link): Document the bug.
7656
7657         getopt: silence clang warning
7658         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7659         dereference.
7660         Reported by Gustavo Martin Domato.
7661
7662 2011-06-22  Jim Meyering  <meyering@redhat.com>
7663
7664         bootstrap: do not insert a blank line into each .gitignore file
7665         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7666
7667 2011-06-21  Eric Blake  <eblake@redhat.com>
7668
7669         perror: test for output mismatch
7670         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7671         perror on IRIX.
7672
7673         strerror_r: fix OpenBSD behavior on out-of-range
7674         * lib/strerror_r.c (strerror_r): Always use maximal string.
7675         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7676
7677         strerror_r: fix OpenBSD behavior on 0
7678         * lib/strerror-override.c (strerror_override): Also override 0
7679         when needed.
7680         * lib/strerror-override.h (strerror_override): Likewise.
7681         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7682         earlier.
7683         * lib/strerror_r.c (strerror_r): Likewise.
7684         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7685         behavior...
7686         (gl_FUNC_STRERROR_0): ...into new macro.
7687         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7688         is overridden.
7689         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7690         * modules/strerror-override (Files): Add strerror.m4.
7691         (configure.ac): Also provide override for 0 when needed.
7692         * doc/posix-functions/strerror.texi (strerror): Document this.
7693         * doc/posix-functions/perror.texi (perror): Likewise.
7694
7695         perror: adjust array size
7696         * modules/perror (Depends-on): Add strerror-override.
7697         * lib/perror.c (perror): Use it to avoid magic number.
7698
7699         strerror-override: reduce size
7700         * lib/strerror-override.c (strerror_override): Use fewer lines.
7701
7702 2011-06-20  Bruno Haible  <bruno@clisp.org>
7703
7704         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7705         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7706
7707 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         alloca: port to compilers that can optimize like GCC 4.6.0
7710         * lib/alloca.c (find_stack_direction): New signature, taken from
7711         Autoconf git.  This works with GCC 4.6.0.  This code should never
7712         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7713         be used with other compilers that optimize as well as GCC 4.6.0 does.
7714         (alloca): Adjust to new signature.
7715         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7716         New macro, which patches Autoconf in a similar way.
7717
7718         c-stack: stop worrying about stack direction
7719         * lib/c-stack.c (find_stack_direction): Remove.
7720         (segv_handler): Don't worry about stack direction growth, as it's
7721         too much of a pain to configure this correctly, given how compilers
7722         are optimizing-away our stack-growth detection code.  Instead, assume
7723         that any access to just before or just after the stack is OK.
7724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7725         Don't require AC_FUNC_ALLOCA; no longer needed.
7726
7727 2011-06-20  Eric Blake  <eblake@redhat.com>
7728
7729         test-stat: don't allocate PATH_MAX bytes
7730         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7731         PATH_MAX-sized buffer.
7732         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7733         * modules/stat-tests (Depends-on): Likewise.
7734         * tests/test-fstatat.c (includes): Drop pathmax.h.
7735         * tests/test-stat.c (includes): Likewise.
7736         Reported by Bruno Haible.
7737
7738 2011-06-20  Bruno Haible  <bruno@clisp.org>
7739
7740         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7741         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7742         * lib/float.c: New file.
7743         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7744         REPLACE_FLOAT_LDBL.
7745         * modules/float (Files): Add lib/float.c.
7746         (configure.ac): Invoke AC_LIBOBJ.
7747         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7748
7749 2011-06-20  Bruno Haible  <bruno@clisp.org>
7750
7751         Tests for module 'float'.
7752         * modules/float-tests: New file.
7753         * tests/test-float.c: New file.
7754
7755 2011-06-19  Bruno Haible  <bruno@clisp.org>
7756
7757         isinf: Coding style.
7758         * lib/isinf.c: Use GNU coding style.
7759
7760 2011-06-19  Bruno Haible  <bruno@clisp.org>
7761
7762         linkat test: Avoid test failure on AIX 7.1.
7763         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7764         * tests/test-link.h (test_link): Likewise.
7765
7766 2011-06-19  Bruno Haible  <bruno@clisp.org>
7767
7768         pread test: Avoid test failure on OpenBSD 4.9.
7769         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7770
7771 2011-06-19  Bruno Haible  <bruno@clisp.org>
7772
7773         sprintf-posix: Fix test failure on AIX 7.1.
7774         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7775         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7776         on AIX.
7777         * doc/posix-functions/fprintf.texi: Likewise.
7778         * doc/posix-functions/printf.texi: Likewise.
7779         * doc/posix-functions/snprintf.texi: Likewise.
7780         * doc/posix-functions/sprintf.texi: Likewise.
7781         * doc/posix-functions/vdprintf.texi: Likewise.
7782         * doc/posix-functions/vfprintf.texi: Likewise.
7783         * doc/posix-functions/vprintf.texi: Likewise.
7784         * doc/posix-functions/vsnprintf.texi: Likewise.
7785         * doc/posix-functions/vsprintf.texi: Likewise.
7786
7787 2011-06-19  Bruno Haible  <bruno@clisp.org>
7788
7789         roundl-ieee: Fix test failure on AIX 7.1.
7790         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7791         * doc/posix-functions/roundl.texi: Mention problem with negative
7792         arguments.
7793
7794 2011-06-19  Bruno Haible  <bruno@clisp.org>
7795
7796         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7797         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7798         * doc/posix-functions/round.texi: Mention problem with negative
7799         arguments.
7800         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7801
7802 2011-06-19  Bruno Haible  <bruno@clisp.org>
7803
7804         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7806         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7807         * doc/posix-functions/roundf.texi: Mention problem with negative
7808         arguments.
7809         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7810
7811 2011-06-19  Bruno Haible  <bruno@clisp.org>
7812
7813         ceilf-ieee: Work around bug on MacOS X 10.5.
7814         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7815
7816         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7817         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7818         IEEE compliant, avoid compiler optimizations.
7819         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7820         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7821         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7822         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7823         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7824         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7826         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7827         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7828         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7829
7830 2011-06-19  Bruno Haible  <bruno@clisp.org>
7831
7832         ceilf-ieee: Work around bug on AIX 7.1.
7833         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7834         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7835
7836 2011-06-19  Bruno Haible  <bruno@clisp.org>
7837
7838         ceil-ieee: Work around bug on AIX 7.1.
7839         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7840         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7841
7842 2011-06-18  Bruno Haible  <bruno@clisp.org>
7843
7844         fsync test: Avoid test failure on MacOS X and AIX.
7845         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7846         EINVAL.
7847
7848 2011-06-18  Bruno Haible  <bruno@clisp.org>
7849
7850         openat, fdopendir tests: Fix link errors.
7851         * modules/openat-tests (Depends-on): Add progname.
7852         * modules/fdopendir-tests (Depends-on): Likewise.
7853         * tests/test-fchownat.c: Include progname.h.
7854         (main): Call set_program_name.
7855         * tests/test-fstatat.c: Include progname.h.
7856         (main): Call set_program_name.
7857         * tests/test-mkdirat.c: Include progname.h.
7858         (main): Call set_program_name.
7859         * tests/test-openat.c: Include progname.h.
7860         (main): Call set_program_name.
7861         * tests/test-unlinkat.c: Include progname.h.
7862         (main): Call set_program_name.
7863         * tests/test-fdopendir.c: Include progname.h.
7864         (main): Call set_program_name.
7865
7866 2011-06-18  Bruno Haible  <bruno@clisp.org>
7867
7868         Doc update.
7869         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7870         HP-UX.
7871         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7872
7873 2011-06-18  Bruno Haible  <bruno@clisp.org>
7874
7875         getcwd tests: Avoid compilation error on HP-UX 11.31.
7876         * modules/getcwd-tests (Depends-on): Add pathmax.
7877         * tests/test-getcwd.c: Include pathmax.h.
7878
7879 2011-06-18  Bruno Haible  <bruno@clisp.org>
7880
7881         isfinite, isinf: Fix link error on AIX 6 and 7.
7882         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7883         needed, also test the macro with a 'float' argument.
7884         * m4/isinf.m4 (gl_ISINF): Likewise.
7885
7886 2011-06-18  Bruno Haible  <bruno@clisp.org>
7887
7888         getloadavg: Don't clobber LIBS. Regression from previous commit.
7889         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7890         AC_CHECK_LIB from here...
7891         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7892         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7893         gl_func_getloadavg_done.
7894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7895
7896 2011-06-18  Bruno Haible  <bruno@clisp.org>
7897
7898         clean-temp: Improve documentation.
7899         * lib/clean-temp.h: Explain better how to use this module.
7900         Reported by John Darrington <john@darrington.wattle.id.au>.
7901
7902 2011-06-17  Bruno Haible  <bruno@clisp.org>
7903
7904         pread, pwrite: Avoid cc warning on AIX.
7905         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7906         (pwrite): Likewise.
7907
7908 2011-06-17  Bruno Haible  <bruno@clisp.org>
7909
7910         spawn-pipe tests: Fix link error.
7911         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7913
7914 2011-06-17  Bruno Haible  <bruno@clisp.org>
7915
7916         Tests: Remove unnecessary dependency.
7917         * modules/canonicalize-tests (Depends-on): Remove progname.
7918         * modules/chown-tests (Depends-on): Likewise.
7919         * modules/dirname-tests (Depends-on): Likewise.
7920         * modules/fdopendir-tests (Depends-on): Likewise.
7921         * modules/fdutimensat-tests (Depends-on): Likewise.
7922         * modules/hash-tests (Depends-on): Likewise.
7923         * modules/lchown-tests (Depends-on): Likewise.
7924         * modules/linkat-tests (Depends-on): Likewise.
7925         * modules/renameat-tests (Depends-on): Likewise.
7926         * modules/spawn-pipe-tests (Depends-on): Likewise.
7927         * modules/utimensat-tests (Depends-on): Likewise.
7928
7929 2011-06-17  Bruno Haible  <bruno@clisp.org>
7930
7931         spawn-pipe tests: Fix link error.
7932         * tests/test-spawn-pipe-child.c: Undefine fflush.
7933
7934 2011-06-17  Bruno Haible  <bruno@clisp.org>
7935
7936         Fix tests link errors.
7937         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7938         * modules/chown-tests (Makefile.am): Don't link test-chown with
7939         LIBINTL.
7940         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7941         LIBINTL.
7942         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7943         LIBINTL.
7944         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7945         LIBINTL.
7946
7947 2011-06-16  Bruno Haible  <bruno@clisp.org>
7948
7949         crypto/gc-sha1: Fix recent regression.
7950         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7951         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7952
7953         crypto/gc-md5: Fix recent regression.
7954         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7955
7956         crypto/gc-md4: Fix recent regression.
7957         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7958         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7959
7960         crypto/gc-arctwo: Fix recent regression.
7961         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7962         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7963
7964         crypto/gc-rijndael: Fix recent regression.
7965         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7966         (configure.ac): Invoke AC_LIBOBJ here.
7967         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7969
7970         crypto/gc-hmac-sha1: Fix recent regression.
7971         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7972         (configure.ac): Invoke AC_LIBOBJ here.
7973         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7975
7976         crypto/gc-hmac-md5: Fix recent regression.
7977         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7978         (configure.ac): Invoke AC_LIBOBJ here.
7979         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7981
7982         crypto/gc-des: Fix recent regression.
7983         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7984         (configure.ac): Invoke AC_LIBOBJ here.
7985         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7987
7988         crypto/gc-arcfour: Fix recent regression.
7989         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7990         (configure.ac): Invoke AC_LIBOBJ here.
7991         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7993
7994 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7995
7996         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7997         After the 2011-05-21 change, this macro requires
7998         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7999         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8000
8001 2011-06-16  Bruno Haible  <bruno@clisp.org>
8002
8003         fprintftime: Move AC_LIBOBJ invocations to module description.
8004         * m4/fprintftime.m4: Remove file.
8005         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8006         (configure.ac): Remove gl_FPRINTFTIME call.
8007         (Makefile.am): Augment lib_SOURCES.
8008         Reported by Jim Meyering.
8009
8010 2011-06-16  Bruno Haible  <bruno@clisp.org>
8011
8012         tmpfile-safer: Finish 2011-05-23 commit.
8013         * m4/stdio-safer.m4: Really remove file.
8014         Reported by Jim Meyering.
8015
8016 2011-06-16  Bruno Haible  <bruno@clisp.org>
8017
8018         syntax-check: Fix typo.
8019         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8020         printf-posix.m4.
8021         Reported by Jim Meyering.
8022
8023 2011-06-13  Jim Meyering  <meyering@redhat.com>
8024
8025         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8026         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8027
8028 2011-05-23  Bruno Haible  <bruno@clisp.org>
8029
8030         yesno: Move AC_LIBOBJ invocations to module description.
8031         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8032         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8033
8034 2011-05-23  Bruno Haible  <bruno@clisp.org>
8035
8036         xstrtol: Move AC_LIBOBJ invocations to module description.
8037         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8038         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8039
8040 2011-05-23  Bruno Haible  <bruno@clisp.org>
8041
8042         xstrtold: Move AC_LIBOBJ invocations to module description.
8043         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8044         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8045
8046 2011-05-23  Bruno Haible  <bruno@clisp.org>
8047
8048         xstrtod: Move AC_LIBOBJ invocations to module description.
8049         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8050         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8051
8052 2011-05-23  Bruno Haible  <bruno@clisp.org>
8053
8054         xnanosleep: Move AC_LIBOBJ invocations to module description.
8055         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8056         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8057
8058 2011-05-23  Bruno Haible  <bruno@clisp.org>
8059
8060         xgetcwd: Move AC_LIBOBJ invocations to module description.
8061         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8062         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8063
8064 2011-05-23  Bruno Haible  <bruno@clisp.org>
8065
8066         xalloc: Move AC_LIBOBJ invocations to module description.
8067         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8068         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8069
8070 2011-05-23  Bruno Haible  <bruno@clisp.org>
8071
8072         write-any-file: Move AC_LIBOBJ invocations to module description.
8073         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8074         invocation.
8075         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8076
8077 2011-05-23  Bruno Haible  <bruno@clisp.org>
8078
8079         utimens: Move AC_LIBOBJ invocations to module description.
8080         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8081         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8082
8083 2011-05-23  Bruno Haible  <bruno@clisp.org>
8084
8085         utimecmp: Move AC_LIBOBJ invocations to module description.
8086         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8087         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8088
8089 2011-05-23  Bruno Haible  <bruno@clisp.org>
8090
8091         userspec: Move AC_LIBOBJ invocations to module description.
8092         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8093         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8094
8095 2011-05-23  Bruno Haible  <bruno@clisp.org>
8096
8097         unlinkdir: Move AC_LIBOBJ invocations to module description.
8098         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8099         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8100
8101 2011-05-23  Bruno Haible  <bruno@clisp.org>
8102
8103         unistd-safer: Move AC_LIBOBJ invocations to module description.
8104         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8105         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8106
8107 2011-05-23  Bruno Haible  <bruno@clisp.org>
8108
8109         tempname: Move AC_LIBOBJ invocations to module description.
8110         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8111         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8112
8113 2011-05-23  Bruno Haible  <bruno@clisp.org>
8114
8115         strftime: Move AC_LIBOBJ invocations to module description.
8116         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8117         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8118
8119 2011-05-23  Bruno Haible  <bruno@clisp.org>
8120
8121         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8122         * m4/stdlib-safer.m4: Remove file.
8123         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8124         (configure.ac): Remove gl_STDLIB_SAFER call.
8125         (Makefile.am): Augment lib_SOURCES.
8126
8127 2011-05-23  Bruno Haible  <bruno@clisp.org>
8128
8129         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8130         * m4/stdio-safer.m4: Remove file.
8131         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8132         (configure.ac): Remove gl_TMPFILE_SAFER call.
8133         (Makefile.am): Augment lib_SOURCES.
8134
8135 2011-05-23  Bruno Haible  <bruno@clisp.org>
8136
8137         popen-safer: Move AC_LIBOBJ invocations to module description.
8138         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8139         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8140         (configure.ac): Remove gl_POPEN_SAFER call.
8141         (Makefile.am): Augment lib_SOURCES.
8142
8143 2011-05-23  Bruno Haible  <bruno@clisp.org>
8144
8145         freopen-safer: Move AC_LIBOBJ invocations to module description.
8146         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8147         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8148         (configure.ac): Remove gl_FREOPEN_SAFER call.
8149         (Makefile.am): Augment lib_SOURCES.
8150
8151 2011-05-23  Bruno Haible  <bruno@clisp.org>
8152
8153         fopen-safer: Move AC_LIBOBJ invocations to module description.
8154         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8155         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8156         (configure.ac): Remove gl_FOPEN_SAFER call.
8157         (Makefile.am): Augment lib_SOURCES.
8158
8159 2011-05-23  Bruno Haible  <bruno@clisp.org>
8160
8161         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8162         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8163         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8164
8165 2011-05-23  Bruno Haible  <bruno@clisp.org>
8166
8167         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8168         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8169         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8170
8171 2011-05-23  Bruno Haible  <bruno@clisp.org>
8172
8173         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8174         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8175         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8176
8177 2011-05-23  Bruno Haible  <bruno@clisp.org>
8178
8179         settime: Move AC_LIBOBJ invocations to module description.
8180         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8181         * modules/settime (Makefile.am): Augment lib_SOURCES.
8182
8183 2011-05-23  Bruno Haible  <bruno@clisp.org>
8184
8185         savedir: Move AC_LIBOBJ invocations to module description.
8186         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8187         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8188
8189 2011-05-23  Bruno Haible  <bruno@clisp.org>
8190
8191         save-cwd: Move AC_LIBOBJ invocations to module description.
8192         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8193         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8194
8195 2011-05-23  Bruno Haible  <bruno@clisp.org>
8196
8197         same: Move AC_LIBOBJ invocations to module description.
8198         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8199         * modules/same (Makefile.am): Augment lib_SOURCES.
8200
8201 2011-05-23  Bruno Haible  <bruno@clisp.org>
8202
8203         safe-write: Move AC_LIBOBJ invocations to module description.
8204         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8205         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8206         instead of gl_SAFE_WRITE.
8207         (Makefile.am): Augment lib_SOURCES.
8208
8209 2011-05-23  Bruno Haible  <bruno@clisp.org>
8210
8211         safe-read: Move AC_LIBOBJ invocations to module description.
8212         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8213         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8214         of gl_SAFE_READ.
8215         (Makefile.am): Augment lib_SOURCES.
8216
8217 2011-05-23  Bruno Haible  <bruno@clisp.org>
8218
8219         safe-alloc: Move AC_LIBOBJ invocations to module description.
8220         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8221         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8222
8223 2011-05-23  Bruno Haible  <bruno@clisp.org>
8224
8225         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8226         * m4/rijndael.m4: Remove file.
8227         * modules/crypto/rijndael (Files): Remove it.
8228         (configure.ac): Remove gl_RIJNDAEL call.
8229         (Makefile.am): Augment lib_SOURCES.
8230
8231 2011-05-23  Bruno Haible  <bruno@clisp.org>
8232
8233         readtokens: Move AC_LIBOBJ invocations to module description.
8234         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8235         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8236
8237 2011-05-23  Bruno Haible  <bruno@clisp.org>
8238
8239         read-file: Move AC_LIBOBJ invocations to module description.
8240         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8241         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8242         of gl_FUNC_READ_FILE.
8243         (Makefile.am): Augment lib_SOURCES.
8244
8245 2011-05-23  Bruno Haible  <bruno@clisp.org>
8246
8247         quotearg: Move AC_LIBOBJ invocations to module description.
8248         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8249         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8250
8251 2011-05-23  Bruno Haible  <bruno@clisp.org>
8252
8253         quote: Move AC_LIBOBJ invocations to module description.
8254         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8255         * modules/quote (Makefile.am): Augment lib_SOURCES.
8256
8257 2011-05-23  Bruno Haible  <bruno@clisp.org>
8258
8259         posixver: Move AC_LIBOBJ invocations to module description.
8260         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8261         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8262
8263 2011-05-23  Bruno Haible  <bruno@clisp.org>
8264
8265         posixtm: Move AC_LIBOBJ invocations to module description.
8266         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8267         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8268
8269 2011-05-23  Bruno Haible  <bruno@clisp.org>
8270
8271         physmem: Move AC_LIBOBJ invocations to module description.
8272         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8273         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8274
8275 2011-05-23  Bruno Haible  <bruno@clisp.org>
8276
8277         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8278         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8279         invocation.
8280         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8281
8282 2011-05-23  Bruno Haible  <bruno@clisp.org>
8283
8284         mpsort: Move AC_LIBOBJ invocations to module description.
8285         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8286         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8287
8288 2011-05-23  Bruno Haible  <bruno@clisp.org>
8289
8290         modechange: Move AC_LIBOBJ invocations to module description.
8291         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8292         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8293
8294 2011-05-23  Bruno Haible  <bruno@clisp.org>
8295
8296         mkdir-p: Move AC_LIBOBJ invocations to module description.
8297         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8298         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8299
8300 2011-05-23  Bruno Haible  <bruno@clisp.org>
8301
8302         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8303         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8304         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8305
8306 2011-05-23  Bruno Haible  <bruno@clisp.org>
8307
8308         mgetgroups: Move AC_LIBOBJ invocations to module description.
8309         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8310         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8311
8312 2011-05-23  Bruno Haible  <bruno@clisp.org>
8313
8314         memxor: Move AC_LIBOBJ invocations to module description.
8315         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8316         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8317
8318 2011-05-23  Bruno Haible  <bruno@clisp.org>
8319
8320         memcoll: Move AC_LIBOBJ invocations to module description.
8321         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8322         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8323
8324 2011-05-23  Bruno Haible  <bruno@clisp.org>
8325
8326         memcasecmp: Move AC_LIBOBJ invocations to module description.
8327         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8328         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8329
8330 2011-05-23  Bruno Haible  <bruno@clisp.org>
8331
8332         crypto/md5: Move AC_LIBOBJ invocations to module description.
8333         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8334         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8335
8336 2011-05-23  Bruno Haible  <bruno@clisp.org>
8337
8338         crypto/md4: Move AC_LIBOBJ invocations to module description.
8339         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8340         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8341
8342 2011-05-23  Bruno Haible  <bruno@clisp.org>
8343
8344         crypto/md2: Move AC_LIBOBJ invocations to module description.
8345         * m4/md2.m4: Remove file.
8346         * modules/crypto/md2 (Files): Remove it.
8347         (configure.ac): Remove gl_MD2 call.
8348         (Makefile.am): Augment lib_SOURCES.
8349
8350 2011-05-23  Bruno Haible  <bruno@clisp.org>
8351
8352         long-options: Move AC_LIBOBJ invocations to module description.
8353         * m4/long-options.m4: Remove file.
8354         * modules/long-options (Files): Remove it.
8355         (configure.ac): Remove gl_LONG_OPTIONS call.
8356         (Makefile.am): Augment lib_SOURCES.
8357
8358 2011-05-23  Bruno Haible  <bruno@clisp.org>
8359
8360         i-ring: Move AC_LIBOBJ invocations to module description.
8361         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8362         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8363
8364 2011-05-23  Bruno Haible  <bruno@clisp.org>
8365
8366         idcache: Move AC_LIBOBJ invocations to module description.
8367         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8368         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8369
8370 2011-05-23  Bruno Haible  <bruno@clisp.org>
8371
8372         human: Move AC_LIBOBJ invocations to module description.
8373         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8374         * modules/human (Makefile.am): Augment lib_SOURCES.
8375
8376 2011-05-23  Bruno Haible  <bruno@clisp.org>
8377
8378         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8379         * m4/hmac-sha1.m4: Remove file.
8380         * modules/crypto/hmac-sha1 (Files): Remove it.
8381         (configure.ac): Remove gl_HMAC_SHA1 call.
8382         (Makefile.am): Augment lib_SOURCES.
8383
8384 2011-05-23  Bruno Haible  <bruno@clisp.org>
8385
8386         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8387         * m4/hmac-md5.m4: Remove file.
8388         * modules/crypto/hmac-md5 (Files): Remove it.
8389         (configure.ac): Remove gl_HMAC_MD5 call.
8390         (Makefile.am): Augment lib_SOURCES.
8391
8392 2011-05-23  Bruno Haible  <bruno@clisp.org>
8393
8394         hash: Move AC_LIBOBJ invocations to module description.
8395         * m4/hash.m4: Remove file.
8396         * modules/hash (Files): Remove it.
8397         (configure.ac): Remove gl_HASH call.
8398         (Makefile.am): Augment lib_SOURCES.
8399
8400 2011-05-23  Bruno Haible  <bruno@clisp.org>
8401
8402         hard-locale: Move AC_LIBOBJ invocations to module description.
8403         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8404         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8405
8406 2011-05-23  Bruno Haible  <bruno@clisp.org>
8407
8408         getugroups: Move AC_LIBOBJ invocations to module description.
8409         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8410         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8411
8412 2011-05-23  Bruno Haible  <bruno@clisp.org>
8413
8414         gettime: Move AC_LIBOBJ invocations to module description.
8415         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8416         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8417
8418 2011-05-23  Bruno Haible  <bruno@clisp.org>
8419
8420         getndelim2: Move AC_LIBOBJ invocations to module description.
8421         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8422         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8423
8424 2011-05-23  Bruno Haible  <bruno@clisp.org>
8425
8426         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8427         * m4/gc-pbkdf2-sha1.m4: Remove file.
8428         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8429         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8430         (Makefile.am): Augment lib_SOURCES.
8431
8432 2011-05-23  Bruno Haible  <bruno@clisp.org>
8433
8434         fts: Move AC_LIBOBJ invocations to module description.
8435         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8436         * modules/fts (configure.ac): ... to here.
8437
8438 2011-05-23  Bruno Haible  <bruno@clisp.org>
8439
8440         file-type: Move AC_LIBOBJ invocations to module description.
8441         * m4/file-type.m4: Remove file.
8442         * modules/file-type (Files): Remove it.
8443         (configure.ac): Remove gl_FILE_TYPE call.
8444         (Makefile.am): Augment lib_SOURCES.
8445
8446 2011-05-23  Bruno Haible  <bruno@clisp.org>
8447
8448         filenamecat*: Respect rules for use of AC_LIBOBJ.
8449         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8450         Remove AC_LIBOBJ invocation.
8451         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8452         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8453
8454 2011-05-23  Bruno Haible  <bruno@clisp.org>
8455
8456         filemode: Move AC_LIBOBJ invocations to module description.
8457         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8458         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8459
8460 2011-05-23  Bruno Haible  <bruno@clisp.org>
8461
8462         openat-safer: Move AC_LIBOBJ invocations to module description.
8463         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8464         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8465
8466 2011-05-23  Bruno Haible  <bruno@clisp.org>
8467
8468         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8469         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8470         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8471
8472 2011-05-23  Bruno Haible  <bruno@clisp.org>
8473
8474         exclude: Move AC_LIBOBJ invocations to module description.
8475         * m4/exclude.m4: Remove file.
8476         * modules/exclude (Files): Remove it.
8477         (configure.ac): Remove gl_EXCLUDE call.
8478         (Makefile.am): Augment lib_SOURCES.
8479
8480 2011-05-23  Bruno Haible  <bruno@clisp.org>
8481
8482         dirname*: Respect rules for use of AC_LIBOBJ.
8483         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8484         invocations.
8485         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8486         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8487
8488 2011-05-23  Bruno Haible  <bruno@clisp.org>
8489
8490         dirent-safer: Move AC_LIBOBJ invocations to module description.
8491         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8492         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8493
8494 2011-05-23  Bruno Haible  <bruno@clisp.org>
8495
8496         crypto/des: Move AC_LIBOBJ invocations to module description.
8497         * m4/des.m4: Remove file.
8498         * modules/crypto/des (Files): Remove it.
8499         (configure.ac): Remove gl_DES call.
8500         (Makefile.am): Augment lib_SOURCES.
8501
8502 2011-05-23  Bruno Haible  <bruno@clisp.org>
8503
8504         cycle-check: Move AC_LIBOBJ invocations to module description.
8505         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8506         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8507
8508 2011-05-23  Bruno Haible  <bruno@clisp.org>
8509
8510         c-strtold: Move AC_LIBOBJ invocations to module description.
8511         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8512         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8513
8514 2011-05-23  Bruno Haible  <bruno@clisp.org>
8515
8516         c-strtod: Move AC_LIBOBJ invocations to module description.
8517         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8518         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8519
8520 2011-05-23  Bruno Haible  <bruno@clisp.org>
8521
8522         crc: Move AC_LIBOBJ invocations to module description.
8523         * m4/crc.m4: Remove file.
8524         * modules/crc (Files): Remove it.
8525         (configure.ac): Remove gl_CRC call.
8526         (Makefile.am): Augment lib_SOURCES.
8527
8528 2011-05-23  Bruno Haible  <bruno@clisp.org>
8529
8530         close-stream: Move AC_LIBOBJ invocations to module description.
8531         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8532         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8533
8534 2011-05-23  Bruno Haible  <bruno@clisp.org>
8535
8536         closeout: Move AC_LIBOBJ invocations to module description.
8537         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8538         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8539
8540 2011-05-23  Bruno Haible  <bruno@clisp.org>
8541
8542         closein: Move AC_LIBOBJ invocations to module description.
8543         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8544         * modules/closein (Makefile.am): Augment lib_SOURCES.
8545
8546 2011-05-23  Bruno Haible  <bruno@clisp.org>
8547
8548         cloexec: Move AC_LIBOBJ invocations to module description.
8549         * m4/cloexec.m4: Remove file.
8550         * modules/cloexec (Files): Remove it.
8551         (configure.ac): Remove gl_CLOEXEC call.
8552         (Makefile.am): Augment lib_SOURCES.
8553
8554 2011-05-23  Bruno Haible  <bruno@clisp.org>
8555
8556         check-version: Move AC_LIBOBJ invocations to module description.
8557         * m4/check-version.m4: Remove file.
8558         * modules/check-version (Files): Remove it.
8559         (configure.ac): Remove gl_CHECK_VERSION call.
8560         (Makefile.am): Augment lib_SOURCES.
8561
8562 2011-05-23  Bruno Haible  <bruno@clisp.org>
8563
8564         chdir-safer: Move AC_LIBOBJ invocations to module description.
8565         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8566         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8567
8568 2011-05-23  Bruno Haible  <bruno@clisp.org>
8569
8570         canonicalize: Move AC_LIBOBJ invocations to module description.
8571         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8572         AC_LIBOBJ invocation.
8573         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8574
8575 2011-05-23  Bruno Haible  <bruno@clisp.org>
8576
8577         canon-host: Move AC_LIBOBJ invocations to module description.
8578         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8579         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8580         instead of gl_CANON_HOST.
8581         (Makefile.am): Augment lib_SOURCES.
8582
8583 2011-05-23  Bruno Haible  <bruno@clisp.org>
8584
8585         backupfile: Move AC_LIBOBJ invocations to module description.
8586         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8587         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8588
8589 2011-05-23  Bruno Haible  <bruno@clisp.org>
8590
8591         argmatch: Move AC_LIBOBJ invocations to module description.
8592         * m4/argmatch.m4: Remove file.
8593         * modules/argmatch (Files): Remove it.
8594         (configure.ac): Remove gl_ARGMATCH call.
8595         (Makefile.am): Augment lib_SOURCES.
8596
8597 2011-05-23  Bruno Haible  <bruno@clisp.org>
8598
8599         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8600         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8601         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8602
8603 2011-05-23  Bruno Haible  <bruno@clisp.org>
8604
8605         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8606         * m4/arcfour.m4: Remove file.
8607         * modules/crypto/arcfour (Files): Remove it.
8608         (configure.ac): Remove gl_ARCFOUR call.
8609         (Makefile.am): Augment lib_SOURCES.
8610
8611 2011-05-22  Bruno Haible  <bruno@clisp.org>
8612
8613         write: Move AC_LIBOBJ invocations to module description.
8614         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8615         * modules/write (configure.ac): ... to here.
8616
8617 2011-05-22  Bruno Haible  <bruno@clisp.org>
8618
8619         wmemset: Move AC_LIBOBJ invocations to module description.
8620         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8621         here...
8622         * modules/wmemset (configure.ac): ... to here.
8623
8624 2011-05-22  Bruno Haible  <bruno@clisp.org>
8625
8626         wmemmove: Move AC_LIBOBJ invocations to module description.
8627         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8628         here...
8629         * modules/wmemmove (configure.ac): ... to here.
8630
8631 2011-05-22  Bruno Haible  <bruno@clisp.org>
8632
8633         wmemcpy: Move AC_LIBOBJ invocations to module description.
8634         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8635         here...
8636         * modules/wmemcpy (configure.ac): ... to here.
8637
8638 2011-05-22  Bruno Haible  <bruno@clisp.org>
8639
8640         wmemcmp: Move AC_LIBOBJ invocations to module description.
8641         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8642         here...
8643         * modules/wmemcmp (configure.ac): ... to here.
8644
8645 2011-05-22  Bruno Haible  <bruno@clisp.org>
8646
8647         wmemchr: Move AC_LIBOBJ invocations to module description.
8648         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8649         here...
8650         * modules/wmemchr (configure.ac): ... to here.
8651
8652 2011-05-22  Bruno Haible  <bruno@clisp.org>
8653
8654         wcswidth: Move AC_LIBOBJ invocations to module description.
8655         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8656         here...
8657         * modules/wcswidth (configure.ac): ... to here.
8658
8659 2011-05-22  Bruno Haible  <bruno@clisp.org>
8660
8661         wcwidth: Respect rules for use of AC_LIBOBJ.
8662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8663         invocation from here...
8664         * modules/wcwidth (configure.ac): ... to here.
8665         (Depends-on): Update conditions.
8666
8667 2011-05-22  Bruno Haible  <bruno@clisp.org>
8668
8669         wctype: Move AC_LIBOBJ invocations to module description.
8670         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8671         invocation from here...
8672         * modules/wctype (configure.ac): ... to here.
8673         (Depends-on): Update conditions.
8674
8675 2011-05-22  Bruno Haible  <bruno@clisp.org>
8676
8677         wctrans: Move AC_LIBOBJ invocations to module description.
8678         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8679         invocation from here...
8680         * modules/wctrans (configure.ac): ... to here.
8681
8682 2011-05-22  Bruno Haible  <bruno@clisp.org>
8683
8684         wctomb: Move AC_LIBOBJ invocations to module description.
8685         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8686         invocations from here...
8687         * modules/wctomb (configure.ac): ... to here.
8688
8689 2011-05-22  Bruno Haible  <bruno@clisp.org>
8690
8691         wctob: Move AC_LIBOBJ invocations to module description.
8692         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8693         gl_PREREQ_WCTOB invocations from here...
8694         * modules/wctob (configure.ac): ... to here.
8695         (Depends-on): Update conditions.
8696
8697 2011-05-22  Bruno Haible  <bruno@clisp.org>
8698
8699         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8700         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8701         here...
8702         * modules/wcsxfrm (configure.ac): ... to here.
8703
8704 2011-05-22  Bruno Haible  <bruno@clisp.org>
8705
8706         wcstok: Move AC_LIBOBJ invocations to module description.
8707         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8708         * modules/wcstok (configure.ac): ... to here.
8709
8710 2011-05-22  Bruno Haible  <bruno@clisp.org>
8711
8712         wcsstr: Move AC_LIBOBJ invocations to module description.
8713         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8714         * modules/wcsstr (configure.ac): ... to here.
8715
8716 2011-05-22  Bruno Haible  <bruno@clisp.org>
8717
8718         wcsspn: Move AC_LIBOBJ invocations to module description.
8719         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8720         * modules/wcsspn (configure.ac): ... to here.
8721
8722 2011-05-22  Bruno Haible  <bruno@clisp.org>
8723
8724         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8725         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8726         gl_PREREQ_WCSRTOMBS invocations from here...
8727         * modules/wcsrtombs (configure.ac): ... to here.
8728
8729 2011-05-22  Bruno Haible  <bruno@clisp.org>
8730
8731         wcsrchr: Move AC_LIBOBJ invocations to module description.
8732         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8733         here...
8734         * modules/wcsrchr (configure.ac): ... to here.
8735
8736 2011-05-22  Bruno Haible  <bruno@clisp.org>
8737
8738         wcspbrk: Move AC_LIBOBJ invocations to module description.
8739         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8740         here...
8741         * modules/wcspbrk (configure.ac): ... to here.
8742
8743 2011-05-22  Bruno Haible  <bruno@clisp.org>
8744
8745         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8746         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8747         gl_PREREQ_WCSNRTOMBS invocations from here...
8748         * modules/wcsnrtombs (configure.ac): ... to here.
8749
8750 2011-05-22  Bruno Haible  <bruno@clisp.org>
8751
8752         wcsnlen: Move AC_LIBOBJ invocations to module description.
8753         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8754         here...
8755         * modules/wcsnlen (configure.ac): ... to here.
8756
8757 2011-05-22  Bruno Haible  <bruno@clisp.org>
8758
8759         wcsncpy: Move AC_LIBOBJ invocations to module description.
8760         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8761         here...
8762         * modules/wcsncpy (configure.ac): ... to here.
8763
8764 2011-05-22  Bruno Haible  <bruno@clisp.org>
8765
8766         wcsncmp: Move AC_LIBOBJ invocations to module description.
8767         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8768         here...
8769         * modules/wcsncmp (configure.ac): ... to here.
8770
8771 2011-05-22  Bruno Haible  <bruno@clisp.org>
8772
8773         wcsncat: Move AC_LIBOBJ invocations to module description.
8774         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8775         here...
8776         * modules/wcsncat (configure.ac): ... to here.
8777
8778 2011-05-22  Bruno Haible  <bruno@clisp.org>
8779
8780         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8781         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8782         from here...
8783         * modules/wcsncasecmp (configure.ac): ... to here.
8784
8785 2011-05-22  Bruno Haible  <bruno@clisp.org>
8786
8787         wcslen: Move AC_LIBOBJ invocations to module description.
8788         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8789         * modules/wcslen (configure.ac): ... to here.
8790
8791 2011-05-22  Bruno Haible  <bruno@clisp.org>
8792
8793         wcsdup: Move AC_LIBOBJ invocations to module description.
8794         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8795         * modules/wcsdup (configure.ac): ... to here.
8796
8797 2011-05-22  Bruno Haible  <bruno@clisp.org>
8798
8799         wcscspn: Move AC_LIBOBJ invocations to module description.
8800         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8801         here...
8802         * modules/wcscspn (configure.ac): ... to here.
8803
8804 2011-05-22  Bruno Haible  <bruno@clisp.org>
8805
8806         wcscpy: Move AC_LIBOBJ invocations to module description.
8807         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8808         * modules/wcscpy (configure.ac): ... to here.
8809
8810 2011-05-22  Bruno Haible  <bruno@clisp.org>
8811
8812         wcscoll: Move AC_LIBOBJ invocations to module description.
8813         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8814         here...
8815         * modules/wcscoll (configure.ac): ... to here.
8816
8817 2011-05-22  Bruno Haible  <bruno@clisp.org>
8818
8819         wcscmp: Move AC_LIBOBJ invocations to module description.
8820         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8821         * modules/wcscmp (configure.ac): ... to here.
8822
8823 2011-05-22  Bruno Haible  <bruno@clisp.org>
8824
8825         wcschr: Move AC_LIBOBJ invocations to module description.
8826         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8827         * modules/wcschr (configure.ac): ... to here.
8828
8829 2011-05-22  Bruno Haible  <bruno@clisp.org>
8830
8831         wcscat: Move AC_LIBOBJ invocations to module description.
8832         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8833         * modules/wcscat (configure.ac): ... to here.
8834
8835 2011-05-22  Bruno Haible  <bruno@clisp.org>
8836
8837         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8838         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8839         here...
8840         * modules/wcscasecmp (configure.ac): ... to here.
8841
8842 2011-05-22  Bruno Haible  <bruno@clisp.org>
8843
8844         wcrtomb: Move AC_LIBOBJ invocations to module description.
8845         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8846         invocations from here...
8847         * modules/wcrtomb (configure.ac): ... to here.
8848
8849 2011-05-22  Bruno Haible  <bruno@clisp.org>
8850
8851         wcpncpy: Move AC_LIBOBJ invocations to module description.
8852         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8853         here...
8854         * modules/wcpncpy (configure.ac): ... to here.
8855
8856 2011-05-22  Bruno Haible  <bruno@clisp.org>
8857
8858         wcpcpy: Move AC_LIBOBJ invocations to module description.
8859         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8860         * modules/wcpcpy (configure.ac): ... to here.
8861
8862 2011-05-22  Bruno Haible  <bruno@clisp.org>
8863
8864         waitpid: Move AC_LIBOBJ invocations to module description.
8865         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8866         invocation from here...
8867         * modules/waitpid (configure.ac): ... to here.
8868
8869 2011-05-22  Bruno Haible  <bruno@clisp.org>
8870
8871         utimensat: Move AC_LIBOBJ invocations to module description.
8872         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8873         here...
8874         * modules/utimensat (configure.ac): ... to here.
8875
8876 2011-05-22  Bruno Haible  <bruno@clisp.org>
8877
8878         usleep: Move AC_LIBOBJ invocations to module description.
8879         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8880         here...
8881         * modules/usleep (configure.ac): ... to here.
8882
8883 2011-05-22  Bruno Haible  <bruno@clisp.org>
8884
8885         unlockpt: Move AC_LIBOBJ invocations to module description.
8886         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8887         gl_PREREQ_UNLOCKPT invocations from here...
8888         * modules/unlockpt (configure.ac): ... to here.
8889
8890 2011-05-22  Bruno Haible  <bruno@clisp.org>
8891
8892         unlink: Respect rules for use of AC_LIBOBJ.
8893         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8894         * modules/unlink (configure.ac): ... to here.
8895
8896 2011-05-22  Bruno Haible  <bruno@clisp.org>
8897
8898         uname: Move AC_LIBOBJ invocations to module description.
8899         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8901         here...
8902         * modules/uname (configure.ac): ... to here.
8903
8904 2011-05-22  Bruno Haible  <bruno@clisp.org>
8905
8906         ttyname_r: Move AC_LIBOBJ invocations to module description.
8907         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8908         gl_PREREQ_TTYNAME_R invocations from here...
8909         * modules/ttyname_r (configure.ac): ... to here.
8910
8911 2011-05-22  Bruno Haible  <bruno@clisp.org>
8912
8913         tsearch: Move AC_LIBOBJ invocations to module description.
8914         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8915         invocations from here...
8916         * modules/tsearch (configure.ac): ... to here.
8917
8918 2011-05-22  Bruno Haible  <bruno@clisp.org>
8919
8920         towctrans: Move AC_LIBOBJ invocations to module description.
8921         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8922         AC_LIBOBJ invocation from here...
8923         * modules/towctrans (configure.ac): ... to here.
8924
8925 2011-05-22  Bruno Haible  <bruno@clisp.org>
8926
8927         tmpfile: Move AC_LIBOBJ invocations to module description.
8928         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8929         invocations from here...
8930         * modules/tmpfile (configure.ac): ... to here.
8931
8932 2011-05-22  Bruno Haible  <bruno@clisp.org>
8933
8934         times: Move AC_LIBOBJ invocations to module description.
8935         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8936         * modules/times (configure.ac): ... to here.
8937
8938 2011-05-22  Bruno Haible  <bruno@clisp.org>
8939
8940         time_r: Move AC_LIBOBJ invocations to module description.
8941         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8942         invocations from here...
8943         * modules/time_r (configure.ac): ... to here.
8944
8945 2011-05-22  Bruno Haible  <bruno@clisp.org>
8946
8947         timegm: Move AC_LIBOBJ invocations to module description.
8948         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8949         invocations from here...
8950         * modules/timegm (configure.ac): ... to here.
8951
8952 2011-05-22  Bruno Haible  <bruno@clisp.org>
8953
8954         tcgetsid: Move AC_LIBOBJ invocations to module description.
8955         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8956         and gl_PREREQ_TCGETSID invocations from here...
8957         * modules/tcgetsid (configure.ac): ... to here.
8958         (Depends-on): Update conditions.
8959
8960 2011-05-22  Bruno Haible  <bruno@clisp.org>
8961
8962         symlinkat: Move AC_LIBOBJ invocations to module description.
8963         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8964         here...
8965         * modules/symlinkat (configure.ac): ... to here.
8966
8967 2011-05-22  Bruno Haible  <bruno@clisp.org>
8968
8969         symlink: Move AC_LIBOBJ invocations to module description.
8970         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8971         here...
8972         * modules/symlink (configure.ac): ... to here.
8973
8974 2011-05-22  Bruno Haible  <bruno@clisp.org>
8975
8976         strverscmp: Move AC_LIBOBJ invocations to module description.
8977         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8978         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8979         from here...
8980         * modules/strverscmp (configure.ac): ... to here.
8981
8982 2011-05-22  Bruno Haible  <bruno@clisp.org>
8983
8984         strtok_r: Move AC_LIBOBJ invocations to module description.
8985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8986         and gl_PREREQ_STRTOK_R invocations from here...
8987         * modules/strtok_r (configure.ac): ... to here.
8988         (Depends-on): Update conditions.
8989
8990 2011-05-22  Bruno Haible  <bruno@clisp.org>
8991
8992         strtoumax: Move AC_LIBOBJ invocations to module description.
8993         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8995         from here...
8996         * modules/strtoumax (configure.ac): ... to here.
8997
8998 2011-05-22  Bruno Haible  <bruno@clisp.org>
8999
9000         strtoimax: Move AC_LIBOBJ invocations to module description.
9001         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9003         from here...
9004         * modules/strtoimax (configure.ac): ... to here.
9005
9006 2011-05-22  Bruno Haible  <bruno@clisp.org>
9007
9008         strtoull: Move AC_LIBOBJ invocations to module description.
9009         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9011         from here...
9012         * modules/strtoull (configure.ac): ... to here.
9013
9014 2011-05-22  Bruno Haible  <bruno@clisp.org>
9015
9016         strtoll: Move AC_LIBOBJ invocations to module description.
9017         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9019         here...
9020         * modules/strtoll (configure.ac): ... to here.
9021
9022 2011-05-22  Bruno Haible  <bruno@clisp.org>
9023
9024         strtoul: Move AC_LIBOBJ invocations to module description.
9025         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9026         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9027         * modules/strtoul (configure.ac): ... to here.
9028
9029 2011-05-22  Bruno Haible  <bruno@clisp.org>
9030
9031         strtol: Move AC_LIBOBJ invocations to module description.
9032         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9033         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9034         * modules/strtol (configure.ac): ... to here.
9035
9036 2011-05-22  Bruno Haible  <bruno@clisp.org>
9037
9038         strtod: Move AC_LIBOBJ invocations to module description.
9039         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9040         invocations from here...
9041         * modules/strtod (configure.ac): ... to here.
9042
9043 2011-05-22  Bruno Haible  <bruno@clisp.org>
9044
9045         strstr*: Move AC_LIBOBJ invocations to module description.
9046         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9047         invocations from here...
9048         * modules/strstr-simple (configure.ac): ... to here.
9049         * modules/strstr (configure.ac): ... and here.
9050
9051 2011-05-22  Bruno Haible  <bruno@clisp.org>
9052
9053         strsignal: Move AC_LIBOBJ invocations to module description.
9054         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9055         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9056         * modules/strsignal (configure.ac): ... to here.
9057         (Depends-on): Update conditions.
9058
9059 2011-05-22  Bruno Haible  <bruno@clisp.org>
9060
9061         strsep: Move AC_LIBOBJ invocations to module description.
9062         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9064         here...
9065         * modules/strsep (configure.ac): ... to here.
9066
9067 2011-05-22  Bruno Haible  <bruno@clisp.org>
9068
9069         strptime: Move AC_LIBOBJ invocations to module description.
9070         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9071         gl_PREREQ_STRPTIME invocations from here...
9072         * modules/strptime (configure.ac): ... to here.
9073
9074 2011-05-22  Bruno Haible  <bruno@clisp.org>
9075
9076         strpbrk: Move AC_LIBOBJ invocations to module description.
9077         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9078         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9079         here...
9080         * modules/strpbrk (configure.ac): ... to here.
9081
9082 2011-05-22  Bruno Haible  <bruno@clisp.org>
9083
9084         strnlen: Move AC_LIBOBJ invocations to module description.
9085         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9086         invocations from here...
9087         * modules/strnlen (configure.ac): ... to here.
9088
9089 2011-05-22  Bruno Haible  <bruno@clisp.org>
9090
9091         strndup: Move AC_LIBOBJ invocations to module description.
9092         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9093         invocations from here...
9094         * modules/strndup (configure.ac): ... to here.
9095         (Depends-on): Update conditions.
9096
9097 2011-05-22  Bruno Haible  <bruno@clisp.org>
9098
9099         strncat: Move AC_LIBOBJ invocations to module description.
9100         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9101         invocations from here...
9102         * modules/strncat (configure.ac): ... to here.
9103
9104 2011-05-22  Bruno Haible  <bruno@clisp.org>
9105
9106         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9107         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9108         invocations from here...
9109         * modules/strdup (configure.ac): ... to here.
9110         * modules/strdup-posix (configure.ac): ... and here.
9111
9112 2011-05-22  Bruno Haible  <bruno@clisp.org>
9113
9114         strcspn: Move AC_LIBOBJ invocations to module description.
9115         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9117         here...
9118         * modules/strcspn (configure.ac): ... to here.
9119
9120 2011-05-22  Bruno Haible  <bruno@clisp.org>
9121
9122         strchrnul: Move AC_LIBOBJ invocations to module description.
9123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9124         gl_PREREQ_STRCHRNUL invocations from here...
9125         * modules/strchrnul (configure.ac): ... to here.
9126
9127 2011-05-22  Bruno Haible  <bruno@clisp.org>
9128
9129         strcasestr*: Move AC_LIBOBJ invocations to module description.
9130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9131         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9132         * modules/strcasestr-simple (configure.ac): ... to here.
9133         * modules/strcasestr (configure.ac): ... and here.
9134
9135 2011-05-22  Bruno Haible  <bruno@clisp.org>
9136
9137         strcase: Move AC_LIBOBJ invocations to module description.
9138         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9139         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9140         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9141         gl_PREREQ_STRNCASECMP invocations from here...
9142         * modules/strcase (configure.ac): ... to here.
9143
9144 2011-05-22  Bruno Haible  <bruno@clisp.org>
9145
9146         stpncpy: Move AC_LIBOBJ invocations to module description.
9147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9148         here...
9149         * modules/stpncpy (configure.ac): ... to here.
9150
9151 2011-05-22  Bruno Haible  <bruno@clisp.org>
9152
9153         stpcpy: Move AC_LIBOBJ invocations to module description.
9154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9155         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9156         here...
9157         * modules/stpcpy (configure.ac): ... to here.
9158
9159 2011-05-21  Bruno Haible  <bruno@clisp.org>
9160
9161         stat: Move AC_LIBOBJ invocations to module description.
9162         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9163         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9164         here...
9165         * modules/stat (configure.ac): ... to here.
9166
9167 2011-05-21  Bruno Haible  <bruno@clisp.org>
9168
9169         sleep: Move AC_LIBOBJ invocations to module description.
9170         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9171         * modules/sleep (configure.ac): ... to here.
9172
9173 2011-05-21  Bruno Haible  <bruno@clisp.org>
9174
9175         signbit: Move AC_LIBOBJ invocations to module description.
9176         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9177         * modules/signbit (configure.ac): ... to here.
9178
9179 2011-05-21  Bruno Haible  <bruno@clisp.org>
9180
9181         sigprocmask: Move AC_LIBOBJ invocations to module description.
9182         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9183         gl_PREREQ_SIGPROMASK invocations from here...
9184         * modules/sigprocmask (configure.ac): ... to here.
9185
9186 2011-05-21  Bruno Haible  <bruno@clisp.org>
9187
9188         sigaction: Move AC_LIBOBJ invocations to module description.
9189         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9190         gl_PREREQ_SIGACTION invocations from here...
9191         * modules/sigaction (configure.ac): ... to here.
9192
9193 2011-05-21  Bruno Haible  <bruno@clisp.org>
9194
9195         sig2str: Move AC_LIBOBJ invocations to module description.
9196         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9198         here...
9199         * modules/sig2str (configure.ac): ... to here.
9200
9201 2011-05-21  Bruno Haible  <bruno@clisp.org>
9202
9203         setlocale: Move AC_LIBOBJ invocations to module description.
9204         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9205         gl_PREREQ_SETLOCALE invocations from here...
9206         * modules/setlocale (configure.ac): ... to here.
9207
9208 2011-05-21  Bruno Haible  <bruno@clisp.org>
9209
9210         unsetenv: Move AC_LIBOBJ invocations to module description.
9211         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9212         and gl_PREREQ_UNSETENV invocations from here...
9213         * modules/unsetenv (configure.ac): ... to here.
9214         (Depends-on): Update.
9215
9216 2011-05-21  Bruno Haible  <bruno@clisp.org>
9217
9218         setenv: Move AC_LIBOBJ invocations to module description.
9219         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9220         here...
9221         * modules/setenv (configure.ac): ... to here.
9222
9223 2011-05-21  Bruno Haible  <bruno@clisp.org>
9224
9225         selinux-h: Move AC_LIBOBJ invocations to module description.
9226         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9227         AC_LIBOBJ invocation from here...
9228         * modules/selinux-h (configure.ac): ... to here.
9229
9230 2011-05-21  Bruno Haible  <bruno@clisp.org>
9231
9232         select: Respect rules for use of AC_LIBOBJ.
9233         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9234         here...
9235         * modules/select (configure.ac): ... to here.
9236
9237 2011-05-21  Bruno Haible  <bruno@clisp.org>
9238
9239         scandir: Move AC_LIBOBJ invocations to module description.
9240         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9241         invocations from here...
9242         * modules/scandir (configure.ac): ... to here.
9243
9244 2011-05-21  Bruno Haible  <bruno@clisp.org>
9245
9246         rpmatch: Move AC_LIBOBJ invocations to module description.
9247         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9249         here...
9250         * modules/rpmatch (configure.ac): ... to here.
9251
9252 2011-05-21  Bruno Haible  <bruno@clisp.org>
9253
9254         rmdir: Respect rules for use of AC_LIBOBJ.
9255         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9256         * modules/rmdir (configure.ac): ... to here.
9257
9258 2011-05-21  Bruno Haible  <bruno@clisp.org>
9259
9260         renameat: Move AC_LIBOBJ invocations to module description.
9261         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9262         here...
9263         * modules/renameat (configure.ac): ... to here.
9264
9265 2011-05-21  Bruno Haible  <bruno@clisp.org>
9266
9267         rename: Respect rules for use of AC_LIBOBJ.
9268         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9269         here...
9270         * modules/rename (configure.ac): ... to here.
9271
9272 2011-05-21  Bruno Haible  <bruno@clisp.org>
9273
9274         remove: Move AC_LIBOBJ invocations to module description.
9275         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9276         here...
9277         * modules/remove (configure.ac): ... to here.
9278
9279 2011-05-21  Bruno Haible  <bruno@clisp.org>
9280
9281         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9282         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9283         macro.
9284         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9285         * modules/relocatable-lib (configure.ac): ... to here.
9286         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9287         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9288
9289 2011-05-21  Bruno Haible  <bruno@clisp.org>
9290
9291         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9292         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9293         here...
9294         * modules/relocatable-prog (configure.ac): ... to here.
9295
9296 2011-05-21  Bruno Haible  <bruno@clisp.org>
9297
9298         regex: Move AC_LIBOBJ invocations to module description.
9299         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9300         invocations from here...
9301         * modules/regex (configure.ac): ... to here.
9302
9303 2011-05-21  Bruno Haible  <bruno@clisp.org>
9304
9305         realloc-*: Move AC_LIBOBJ invocations to module description.
9306         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9307         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9308         AC_LIBOBJ invocations from here...
9309         * modules/realloc-gnu (configure.ac): ... to here.
9310         * modules/realloc-posix (configure.ac): ... and here.
9311
9312 2011-05-21  Bruno Haible  <bruno@clisp.org>
9313
9314         readutmp: Move AC_LIBOBJ invocations to module description.
9315         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9316         * modules/readutmp (configure.ac): ... to here.
9317
9318 2011-05-21  Bruno Haible  <bruno@clisp.org>
9319
9320         readlinkat: Move AC_LIBOBJ invocations to module description.
9321         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9322         here...
9323         * modules/readlinkat (configure.ac): ... to here.
9324
9325 2011-05-21  Bruno Haible  <bruno@clisp.org>
9326
9327         readlink: Move AC_LIBOBJ invocations to module description.
9328         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9329         gl_PREREQ_READLINK invocations from here...
9330         * modules/readlink (configure.ac): ... to here.
9331
9332 2011-05-21  Bruno Haible  <bruno@clisp.org>
9333
9334         readline: Move AC_LIBOBJ invocations to module description.
9335         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9336         gl_PREREQ_READLINE invocations from here...
9337         * modules/readline (configure.ac): ... to here.
9338
9339 2011-05-21  Bruno Haible  <bruno@clisp.org>
9340
9341         read: Move AC_LIBOBJ invocations to module description.
9342         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9343         * modules/read (configure.ac): ... to here.
9344
9345 2011-05-21  Bruno Haible  <bruno@clisp.org>
9346
9347         rawmemchr: Move AC_LIBOBJ invocations to module description.
9348         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9350         from here...
9351         * modules/rawmemchr (configure.ac): ... to here.
9352
9353 2011-05-21  Bruno Haible  <bruno@clisp.org>
9354
9355         random_r: Move AC_LIBOBJ invocations to module description.
9356         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9357         gl_PREREQ_RANDOM_R invocations from here...
9358         * modules/random_r (configure.ac): ... to here.
9359
9360 2011-05-21  Bruno Haible  <bruno@clisp.org>
9361
9362         pwrite: Move AC_LIBOBJ invocations to module description.
9363         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9364         * modules/pwrite (configure.ac): ... to here.
9365
9366 2011-05-21  Bruno Haible  <bruno@clisp.org>
9367
9368         putenv: Move AC_LIBOBJ invocations to module description.
9369         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9370         * modules/putenv (configure.ac): ... to here.
9371
9372 2011-05-21  Bruno Haible  <bruno@clisp.org>
9373
9374         login_tty: Move AC_LIBOBJ invocations to module description.
9375         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9376         * modules/login_tty (configure.ac): ... to here.
9377
9378 2011-05-21  Bruno Haible  <bruno@clisp.org>
9379
9380         openpty: Move AC_LIBOBJ invocations to module description.
9381         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9382         * modules/openpty (configure.ac): ... to here.
9383
9384 2011-05-21  Bruno Haible  <bruno@clisp.org>
9385
9386         forkpty: Move AC_LIBOBJ invocations to module description.
9387         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9388         * modules/forkpty (configure.ac): ... to here.
9389
9390 2011-05-21  Bruno Haible  <bruno@clisp.org>
9391
9392         ptsname: Move AC_LIBOBJ invocations to module description.
9393         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9394         invocations from here...
9395         * modules/ptsname (configure.ac): ... to here.
9396
9397 2011-05-21  Bruno Haible  <bruno@clisp.org>
9398
9399         pread: Move AC_LIBOBJ invocations to module description.
9400         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9401         * modules/pread (configure.ac): ... to here.
9402
9403 2011-05-21  Bruno Haible  <bruno@clisp.org>
9404
9405         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9406         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9407         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9408         * modules/posix_spawn (configure.ac): ... to here.
9409         * modules/posix_spawnp (configure.ac): ... and here.
9410
9411 2011-05-21  Bruno Haible  <bruno@clisp.org>
9412
9413         popen: Move AC_LIBOBJ invocations to module description.
9414         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9415         invocations from here...
9416         * modules/popen (configure.ac): ... to here.
9417
9418 2011-05-21  Bruno Haible  <bruno@clisp.org>
9419
9420         poll: Move AC_LIBOBJ invocations to module description.
9421         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9422         invocations from here...
9423         * modules/poll (configure.ac): ... to here.
9424
9425 2011-05-21  Bruno Haible  <bruno@clisp.org>
9426
9427         pipe-posix: Move AC_LIBOBJ invocations to module description.
9428         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9429         * modules/pipe-posix (configure.ac): ... to here.
9430
9431 2011-05-21  Bruno Haible  <bruno@clisp.org>
9432
9433         openat: Respect rules for use of AC_LIBOBJ.
9434         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9435         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9436         * modules/openat (configure.ac): ... to here.
9437
9438 2011-05-21  Bruno Haible  <bruno@clisp.org>
9439
9440         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9441         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9442         invocation from here...
9443         * modules/obstack-printf (configure.ac): ... to here.
9444         * modules/obstack-printf-posix (configure.ac): ... and here.
9445
9446 2011-05-21  Bruno Haible  <bruno@clisp.org>
9447
9448         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9449         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9450         from here...
9451         * modules/nl_langinfo (configure.ac): ... to here.
9452
9453 2011-05-21  Bruno Haible  <bruno@clisp.org>
9454
9455         nanosleep: Move AC_LIBOBJ invocations to module description.
9456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9457         gl_PREREQ_NANOSLEEP invocations from here...
9458         * modules/nanosleep (configure.ac): ... to here.
9459
9460 2011-05-21  Bruno Haible  <bruno@clisp.org>
9461
9462         mountlist: Move AC_LIBOBJ invocations to module description.
9463         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9464         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9465         * modules/mountlist (configure.ac): ... to here.
9466
9467 2011-05-21  Bruno Haible  <bruno@clisp.org>
9468
9469         mktime: Respect rules for use of AC_LIBOBJ.
9470         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9471         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9472         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9473         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9474         * modules/mktime (configure.ac): ... to here.
9475         * modules/mktime-internal (configure.ac): ... and here.
9476         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9477
9478 2011-05-21  Bruno Haible  <bruno@clisp.org>
9479
9480         mkstemps: Move AC_LIBOBJ invocations to module description.
9481         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9482         here...
9483         * modules/mkstemps (configure.ac): ... to here.
9484
9485 2011-05-21  Bruno Haible  <bruno@clisp.org>
9486
9487         mkstemp: Move AC_LIBOBJ invocations to module description.
9488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9489         gl_PREREQ_MKSTEMP invocations from here...
9490         * modules/mkstemp (configure.ac): ... to here.
9491
9492 2011-05-21  Bruno Haible  <bruno@clisp.org>
9493
9494         mkostemps: Move AC_LIBOBJ invocations to module description.
9495         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9496         here...
9497         * modules/mkostemps (configure.ac): ... to here.
9498
9499 2011-05-21  Bruno Haible  <bruno@clisp.org>
9500
9501         mkostemp: Move AC_LIBOBJ invocations to module description.
9502         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9503         gl_PREREQ_MKOSTEMP invocations from here...
9504         * modules/mkostemp (configure.ac): ... to here.
9505
9506 2011-05-21  Bruno Haible  <bruno@clisp.org>
9507
9508         mknod: Move AC_LIBOBJ invocations to module description.
9509         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9510         * modules/mknod (configure.ac): ... to here.
9511
9512 2011-05-21  Bruno Haible  <bruno@clisp.org>
9513
9514         mkfifoat: Move AC_LIBOBJ invocations to module description.
9515         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9516         here...
9517         * modules/mkfifoat (configure.ac): ... to here.
9518
9519 2011-05-21  Bruno Haible  <bruno@clisp.org>
9520
9521         mkfifo: Respect rules for use of AC_LIBOBJ.
9522         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9523         here...
9524         * modules/mkfifo (configure.ac): ... to here.
9525
9526 2011-05-21  Bruno Haible  <bruno@clisp.org>
9527
9528         mkdtemp: Move AC_LIBOBJ invocations to module description.
9529         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9530         invocations from here...
9531         * modules/mkdtemp (configure.ac): ... to here.
9532
9533 2011-05-21  Bruno Haible  <bruno@clisp.org>
9534
9535         mkdir: Move AC_LIBOBJ invocations to module description.
9536         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9537         * modules/mkdir (configure.ac): ... to here.
9538
9539 2011-05-21  Bruno Haible  <bruno@clisp.org>
9540
9541         memset: Move AC_LIBOBJ invocations to module description.
9542         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9544         here...
9545         * modules/memset (configure.ac): ... to here.
9546
9547 2011-05-21  Bruno Haible  <bruno@clisp.org>
9548
9549         memrchr: Move AC_LIBOBJ invocations to module description.
9550         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9552         here...
9553         * modules/memrchr (configure.ac): ... to here.
9554
9555 2011-05-21  Bruno Haible  <bruno@clisp.org>
9556
9557         mempcpy: Move AC_LIBOBJ invocations to module description.
9558         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9560         here...
9561         * modules/mempcpy (configure.ac): ... to here.
9562
9563 2011-05-21  Bruno Haible  <bruno@clisp.org>
9564
9565         memmove: Move AC_LIBOBJ invocations to module description.
9566         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9568         here...
9569         * modules/memmove (configure.ac): ... to here.
9570
9571 2011-05-21  Bruno Haible  <bruno@clisp.org>
9572
9573         memmem*: Move AC_LIBOBJ invocations to module description.
9574         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9575         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9576         here...
9577         (gl_FUNC_MEMMEM): ... and here...
9578         * modules/memmem-simple (configure.ac): ... to here.
9579         * modules/memmem (configure.ac): ... and here.
9580
9581 2011-05-21  Bruno Haible  <bruno@clisp.org>
9582
9583         memcpy: Move AC_LIBOBJ invocations to module description.
9584         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9585         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9586         here...
9587         * modules/memcpy (configure.ac): ... to here.
9588
9589 2011-05-21  Bruno Haible  <bruno@clisp.org>
9590
9591         memcmp: Simplify autoconf macro.
9592         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9593         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9594         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9595
9596 2011-05-21  Bruno Haible  <bruno@clisp.org>
9597
9598         memcmp: Move AC_LIBOBJ invocations to module description.
9599         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9600         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9601         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9602         * modules/memcmp (configure.ac): ... to here.
9603         (Depends-on): Update conditions.
9604
9605 2011-05-21  Bruno Haible  <bruno@clisp.org>
9606
9607         memchr: Respect rules for use of AC_LIBOBJ.
9608         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9609         invocations from here...
9610         * modules/memchr (configure.ac): ... to here.
9611
9612 2011-05-21  Bruno Haible  <bruno@clisp.org>
9613
9614         mbtowc: Move AC_LIBOBJ invocations to module description.
9615         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9616         invocations from here...
9617         * modules/mbtowc (configure.ac): ... to here.
9618
9619 2011-05-21  Bruno Haible  <bruno@clisp.org>
9620
9621         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9622         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9623         gl_PREREQ_MBSRTOWCS invocations from here...
9624         * modules/mbsrtowcs (configure.ac): ... to here.
9625
9626 2011-05-21  Bruno Haible  <bruno@clisp.org>
9627
9628         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9629         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9630         gl_PREREQ_MBSNRTOWCS invocations from here...
9631         * modules/mbsnrtowcs (configure.ac): ... to here.
9632
9633 2011-05-21  Bruno Haible  <bruno@clisp.org>
9634
9635         mbsinit: Move AC_LIBOBJ invocations to module description.
9636         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9637         invocations from here...
9638         * modules/mbsinit (configure.ac): ... to here.
9639
9640 2011-05-21  Bruno Haible  <bruno@clisp.org>
9641
9642         mbrlen: Move AC_LIBOBJ invocations to module description.
9643         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9644         invocations from here...
9645         * modules/mbrlen (configure.ac): ... to here.
9646
9647 2011-05-21  Bruno Haible  <bruno@clisp.org>
9648
9649         mbrtowc: Respect rules for use of AC_LIBOBJ.
9650         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9651         invocations from here...
9652         * modules/mbrtowc (configure.ac): ... to here.
9653
9654 2011-05-21  Bruno Haible  <bruno@clisp.org>
9655
9656         malloc-*: Move AC_LIBOBJ invocations to module description.
9657         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9658         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9659         AC_LIBOBJ invocations from here...
9660         * modules/malloc-gnu (configure.ac): ... to here.
9661         * modules/malloc-posix (configure.ac): ... and here.
9662
9663 2011-05-21  Bruno Haible  <bruno@clisp.org>
9664
9665         lstat, openat: Respect rules for use of AC_LIBOBJ.
9666         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9667         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9668         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9669         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9670         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9671         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9672         here.
9673         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9674
9675 2011-05-21  Bruno Haible  <bruno@clisp.org>
9676
9677         lseek: Move AC_LIBOBJ invocations to module description.
9678         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9679         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9680         * modules/lseek (configure.ac): ... to here.
9681
9682 2011-05-21  Bruno Haible  <bruno@clisp.org>
9683
9684         linkat: Move AC_LIBOBJ invocations to module description.
9685         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9686         here...
9687         * modules/linkat (configure.ac): ... to here.
9688
9689 2011-05-21  Bruno Haible  <bruno@clisp.org>
9690
9691         link: Respect rules for use of AC_LIBOBJ.
9692         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9693         * modules/link (configure.ac): ... to here.
9694
9695 2011-05-21  Bruno Haible  <bruno@clisp.org>
9696
9697         lchown: Move AC_LIBOBJ invocations to module description.
9698         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9699         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9700         * modules/lchown (configure.ac): ... to here.
9701
9702 2011-05-21  Bruno Haible  <bruno@clisp.org>
9703
9704         iswctype: Move AC_LIBOBJ invocations to module description.
9705         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9706         here...
9707         * modules/iswctype (configure.ac): ... to here.
9708
9709 2011-05-21  Bruno Haible  <bruno@clisp.org>
9710
9711         iswblank: Move AC_LIBOBJ invocations to module description.
9712         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9713         here...
9714         * modules/iswblank (configure.ac): ... to here.
9715
9716 2011-05-21  Bruno Haible  <bruno@clisp.org>
9717
9718         atanl: Move AC_LIBOBJ invocations to module description.
9719         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9720         * modules/atanl (configure.ac): ... to here.
9721
9722 2011-05-21  Bruno Haible  <bruno@clisp.org>
9723
9724         acosl: Move AC_LIBOBJ invocations to module description.
9725         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9726         * modules/acosl (configure.ac): ... to here.
9727
9728 2011-05-21  Bruno Haible  <bruno@clisp.org>
9729
9730         asinl: Respect rules for use of AC_LIBOBJ.
9731         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9732         * modules/asinl (configure.ac): ... to here.
9733
9734 2011-05-21  Bruno Haible  <bruno@clisp.org>
9735
9736         tanl: Move AC_LIBOBJ invocations to module description.
9737         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9738         * modules/tanl (configure.ac): ... to here.
9739
9740 2011-05-21  Bruno Haible  <bruno@clisp.org>
9741
9742         cosl: Move AC_LIBOBJ invocations to module description.
9743         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9744         * modules/cosl (configure.ac): ... to here.
9745
9746 2011-05-21  Bruno Haible  <bruno@clisp.org>
9747
9748         sinl: Move AC_LIBOBJ invocations to module description.
9749         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9750         * modules/sinl (configure.ac): ... to here.
9751
9752 2011-05-21  Bruno Haible  <bruno@clisp.org>
9753
9754         logl: Move AC_LIBOBJ invocations to module description.
9755         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9756         * modules/logl (configure.ac): ... to here.
9757
9758 2011-05-21  Bruno Haible  <bruno@clisp.org>
9759
9760         expl: Move AC_LIBOBJ invocations to module description.
9761         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9762         * modules/expl (configure.ac): ... to here.
9763
9764 2011-05-21  Bruno Haible  <bruno@clisp.org>
9765
9766         roundl: Move AC_LIBOBJ invocations to module description.
9767         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9768         * modules/roundl (configure.ac): ... to here.
9769
9770 2011-05-21  Bruno Haible  <bruno@clisp.org>
9771
9772         round: Move AC_LIBOBJ invocations to module description.
9773         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9774         * modules/round (configure.ac): ... to here.
9775
9776 2011-05-21  Bruno Haible  <bruno@clisp.org>
9777
9778         roundf: Move AC_LIBOBJ invocations to module description.
9779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9780         * modules/roundf (configure.ac): ... to here.
9781
9782 2011-05-21  Bruno Haible  <bruno@clisp.org>
9783
9784         truncl: Move AC_LIBOBJ invocations to module description.
9785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9786         * modules/truncl (configure.ac): ... to here.
9787
9788 2011-05-21  Bruno Haible  <bruno@clisp.org>
9789
9790         trunc: Move AC_LIBOBJ invocations to module description.
9791         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9792         * modules/trunc (configure.ac): ... to here.
9793
9794 2011-05-21  Bruno Haible  <bruno@clisp.org>
9795
9796         truncf: Move AC_LIBOBJ invocations to module description.
9797         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9798         * modules/truncf (configure.ac): ... to here.
9799
9800 2011-05-21  Bruno Haible  <bruno@clisp.org>
9801
9802         ceill: Move AC_LIBOBJ invocations to module description.
9803         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9804         * modules/ceill (configure.ac): ... to here.
9805
9806 2011-05-21  Bruno Haible  <bruno@clisp.org>
9807
9808         ceil: Move AC_LIBOBJ invocations to module description.
9809         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9810         * modules/ceil (configure.ac): ... to here.
9811
9812 2011-05-21  Bruno Haible  <bruno@clisp.org>
9813
9814         ceilf: Move AC_LIBOBJ invocations to module description.
9815         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9816         * modules/ceilf (configure.ac): ... to here.
9817
9818 2011-05-21  Bruno Haible  <bruno@clisp.org>
9819
9820         floorl: Respect rules for use of AC_LIBOBJ.
9821         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9822         * modules/floorl (configure.ac): ... to here.
9823
9824 2011-05-21  Bruno Haible  <bruno@clisp.org>
9825
9826         floor: Respect rules for use of AC_LIBOBJ.
9827         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9828         * modules/floor (configure.ac): ... to here.
9829
9830 2011-05-21  Bruno Haible  <bruno@clisp.org>
9831
9832         floorf: Move AC_LIBOBJ invocations to module description.
9833         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9834         * modules/floorf (configure.ac): ... to here.
9835
9836 2011-05-20  Bruno Haible  <bruno@clisp.org>
9837
9838         sqrtl: Respect rules for use of AC_LIBOBJ.
9839         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9840         * modules/sqrtl (configure.ac): ... to here.
9841
9842 2011-05-20  Bruno Haible  <bruno@clisp.org>
9843
9844         ldexpl: Respect rules for use of AC_LIBOBJ.
9845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9846         * modules/ldexpl (configure.ac): ... to here.
9847
9848 2011-05-20  Bruno Haible  <bruno@clisp.org>
9849
9850         frexpl*: Respect rules for use of AC_LIBOBJ.
9851         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9852         invocation from here...
9853         * modules/frexpl (configure.ac): ... to here.
9854         * modules/frexpl-nolibm (configure.ac): ... and here.
9855
9856 2011-05-20  Bruno Haible  <bruno@clisp.org>
9857
9858         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9859         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9860         invocation from here...
9861         * modules/frexp (configure.ac): ... to here.
9862         * modules/frexp-nolibm (configure.ac): ... and here.
9863
9864 2011-05-20  Bruno Haible  <bruno@clisp.org>
9865
9866         isnan: Respect rules for use of AC_LIBOBJ.
9867         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9868         invocations here.
9869         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9870         REPLACE_ISNAN.
9871         * modules/isnand (configure.ac): Likewise.
9872         * modules/isnanl (configure.ac): Likewise.
9873
9874 2011-05-20  Bruno Haible  <bruno@clisp.org>
9875
9876         isnanl*: Respect rules for use of AC_LIBOBJ.
9877         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9878         invocation from here...
9879         * modules/isnanl (configure.ac): ... to here.
9880         * modules/isnanl-nolibm (configure.ac): ... and here.
9881
9882 2011-05-20  Bruno Haible  <bruno@clisp.org>
9883
9884         isnand*: Move AC_LIBOBJ invocations to module description.
9885         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9886         invocation from here...
9887         * modules/isnand (configure.ac): ... to here.
9888         * modules/isnand-nolibm (configure.ac): ... and here.
9889
9890 2011-05-20  Bruno Haible  <bruno@clisp.org>
9891
9892         isnanf*: Move AC_LIBOBJ invocations to module description.
9893         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9894         invocation from here...
9895         * modules/isnanf (configure.ac): ... to here.
9896         * modules/isnanf-nolibm (configure.ac): ... and here.
9897
9898 2011-05-20  Bruno Haible  <bruno@clisp.org>
9899
9900         isnan*: Separate the AC_LIBOBJ invocations.
9901         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9902         AC_LIBOBJ invocation.
9903         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9904         here.
9905         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9906         AC_LIBOBJ invocation.
9907         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9908         here.
9909         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9910         AC_LIBOBJ invocation.
9911         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9912         here.
9913         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9914
9915 2011-05-08  Bruno Haible  <bruno@clisp.org>
9916
9917         isinf: Move AC_LIBOBJ invocations to module description.
9918         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9919         * modules/isinf (configure.ac): ... to here.
9920
9921 2011-05-08  Bruno Haible  <bruno@clisp.org>
9922
9923         isfinite: Move AC_LIBOBJ invocations to module description.
9924         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9925         * modules/isfinite (configure.ac): ... to here.
9926
9927 2011-05-08  Bruno Haible  <bruno@clisp.org>
9928
9929         isblank: Move AC_LIBOBJ invocations to module description.
9930         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9931         here...
9932         * modules/isblank (configure.ac): ... to here.
9933
9934 2011-05-08  Bruno Haible  <bruno@clisp.org>
9935
9936         isapipe: Move AC_LIBOBJ invocations to module description.
9937         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9938         gl_PREREQ_ISAPIPE invocations from here...
9939         * modules/isapipe (configure.ac): ... to here.
9940         (Depends-on): Update condition.
9941
9942 2011-05-08  Bruno Haible  <bruno@clisp.org>
9943
9944         ioctl: Move AC_LIBOBJ invocations to module description.
9945         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9946         invocations from here...
9947         * modules/ioctl (configure.ac): ... to here.
9948         (Depends-on): Update condition.
9949
9950 2011-05-08  Bruno Haible  <bruno@clisp.org>
9951
9952         imaxdiv: Move AC_LIBOBJ invocations to module description.
9953         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9954         invocations from here...
9955         * modules/imaxdiv (configure.ac): ... to here.
9956
9957 2011-05-08  Bruno Haible  <bruno@clisp.org>
9958
9959         imaxabs: Move AC_LIBOBJ invocations to module description.
9960         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9961         invocations from here...
9962         * modules/imaxabs (configure.ac): ... to here.
9963
9964 2011-05-08  Bruno Haible  <bruno@clisp.org>
9965
9966         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9968         AC_LIBOBJ invocations from here...
9969         * modules/getaddrinfo (configure.ac): ... to here.
9970         (Depends-on): Add conditions.
9971
9972 2011-05-08  Bruno Haible  <bruno@clisp.org>
9973
9974         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9975         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9976         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9977         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9978         (gl_PREREQ_INET_PTON): ... from here.
9979         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9980         gl_PREREQ_INET_PTON here.
9981         (Depends-on): Update condition.
9982
9983 2011-05-08  Bruno Haible  <bruno@clisp.org>
9984
9985         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9986         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9987         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9988         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9989         (gl_PREREQ_INET_NTOP): ... from here.
9990         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9991         gl_PREREQ_INET_NTOP here.
9992         (Depends-on): Update condition.
9993
9994 2011-05-08  Bruno Haible  <bruno@clisp.org>
9995
9996         iconv_open: Move AC_LIBOBJ invocations to module description.
9997         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9998         AC_LIBOBJ invocations from here...
9999         * modules/iconv_open (configure.ac): ... to here.
10000
10001 2011-05-08  Bruno Haible  <bruno@clisp.org>
10002
10003         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10004         If module 'iconv_open' is among the main modules and module
10005         'iconv_open-utf' is among the tests dependencies, then
10006         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10007         return the special iconv_t values. Therefore iconv() and iconv_close()
10008         must support these special iconv_t values, already in lib, not only in
10009         tests.
10010         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10011         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10012         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10013         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10014         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10015         (Depends-on): Add the dependencies of iconv_open-utf.
10016         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10017         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10018         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10019
10020 2011-05-08  Bruno Haible  <bruno@clisp.org>
10021
10022         group-member: Move AC_LIBOBJ invocations to module description.
10023         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10024         gl_PREREQ_GROUP_MEMBER invocations from here...
10025         * modules/group-member (configure.ac): ... to here.
10026
10027 2011-05-08  Bruno Haible  <bruno@clisp.org>
10028
10029         grantpt: Move AC_LIBOBJ invocations to module description.
10030         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10031         invocations from here...
10032         * modules/grantpt (configure.ac): ... to here.
10033
10034 2011-05-08  Bruno Haible  <bruno@clisp.org>
10035
10036         glob: Move AC_LIBOBJ invocations to module description.
10037         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10038         from here...
10039         * modules/glob (configure.ac): ... to here.
10040
10041 2011-05-08  Bruno Haible  <bruno@clisp.org>
10042
10043         getusershell: Move AC_LIBOBJ invocations to module description.
10044         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10045         Move AC_LIBOBJ invocation from here...
10046         * modules/getusershell (configure.ac): ... to here.
10047         (Depends-on): Update condition.
10048
10049 2011-05-08  Bruno Haible  <bruno@clisp.org>
10050
10051         gettimeofday: Move AC_LIBOBJ invocations to module description.
10052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10053         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10054         gl_PREREQ_GETTIMEOFDAY invocations from here...
10055         * modules/gettimeofday (configure.ac): ... to here.
10056
10057 2011-05-08  Bruno Haible  <bruno@clisp.org>
10058
10059         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10060         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10061         just gl_FUNC_TZSET.
10062         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10063         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10065         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10066
10067 2011-05-08  Bruno Haible  <bruno@clisp.org>
10068
10069         getsubopt: Move AC_LIBOBJ invocations to module description.
10070         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10071         gl_PREREQ_GETSUBOPT invocations from here...
10072         * modules/getsubopt (configure.ac): ... to here.
10073
10074 2011-05-08  Bruno Haible  <bruno@clisp.org>
10075
10076         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10077         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10078         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10079         * modules/getpass-gnu (configure.ac): ... to here.
10080
10081 2011-05-08  Bruno Haible  <bruno@clisp.org>
10082
10083         getpass: Move AC_LIBOBJ invocations to module description.
10084         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10085         gl_PREREQ_GETPASS invocations from here...
10086         * modules/getpass (configure.ac): ... to here.
10087
10088 2011-05-08  Bruno Haible  <bruno@clisp.org>
10089
10090         getpagesize: Move AC_LIBOBJ invocations to module description.
10091         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10092         from here...
10093         * modules/getpagesize (configure.ac): ... to here.
10094
10095 2011-05-08  Bruno Haible  <bruno@clisp.org>
10096
10097         getopt: Move AC_LIBOBJ invocations to module description.
10098         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10099         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10100         invocations from here...
10101         * modules/getopt-gnu (configure.ac): ... to here.
10102         * modules/getopt-posix (configure.ac): ... and here.
10103         (Depends-on): Update condition.
10104
10105 2011-05-08  Bruno Haible  <bruno@clisp.org>
10106
10107         getopt, argp: Respect rules for use of AC_LIBOBJ.
10108         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10109         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10110         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10111         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10112
10113 2011-05-08  Bruno Haible  <bruno@clisp.org>
10114
10115         getlogin_r: Move AC_LIBOBJ invocations to module description.
10116         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10117         gl_PREREQ_GETLOGIN_R invocations from here...
10118         * modules/getlogin_r (configure.ac): ... to here.
10119
10120 2011-05-08  Bruno Haible  <bruno@clisp.org>
10121
10122         getlogin: Move AC_LIBOBJ invocations to module description.
10123         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10124         here...
10125         * modules/getlogin (configure.ac): ... to here.
10126
10127 2011-05-08  Bruno Haible  <bruno@clisp.org>
10128
10129         getloadavg: Move AC_LIBOBJ invocations to module description.
10130         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10131         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10132         * modules/getloadavg (configure.ac): ... to here.
10133
10134 2011-05-08  Bruno Haible  <bruno@clisp.org>
10135
10136         gethrxtime: Move AC_LIBOBJ invocations to module description.
10137         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10138         LIB_GETHRXTIME from here...
10139         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10140         invocations from here...
10141         * modules/gethrxtime (configure.ac): ... to here.
10142
10143 2011-05-08  Bruno Haible  <bruno@clisp.org>
10144
10145         gethostname: Move AC_LIBOBJ invocations to module description.
10146         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10147         gl_PREREQ_GETHOSTNAME invocations from here...
10148         * modules/gethostname (configure.ac): ... to here.
10149
10150 2011-05-08  Bruno Haible  <bruno@clisp.org>
10151
10152         getgroups: Move AC_LIBOBJ invocations to module description.
10153         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10154         here...
10155         * modules/getgroups (configure.ac): ... to here.
10156
10157 2011-05-08  Bruno Haible  <bruno@clisp.org>
10158
10159         getdtablesize: Move AC_LIBOBJ invocations to module description.
10160         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10161         invocation from here...
10162         * modules/getdtablesize (configure.ac): ... to here.
10163
10164 2011-05-08  Bruno Haible  <bruno@clisp.org>
10165
10166         getdomainname: Move AC_LIBOBJ invocations to module description.
10167         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10168         gl_PREREQ_GETDOMAINNAME invocations from here...
10169         * modules/getdomainname (configure.ac): ... to here.
10170
10171 2011-05-08  Bruno Haible  <bruno@clisp.org>
10172
10173         getline: Move AC_LIBOBJ invocations to module description.
10174         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10175         invocations from here...
10176         * modules/getline (configure.ac): ... to here.
10177
10178 2011-05-08  Bruno Haible  <bruno@clisp.org>
10179
10180         getline: Simplify.
10181         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10182         It's already handled through the module dependency.
10183
10184 2011-05-08  Bruno Haible  <bruno@clisp.org>
10185
10186         getdelim: Move AC_LIBOBJ invocations to module description.
10187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10188         and gl_PREREQ_GETDELIM invocations from here...
10189         * modules/getdelim (configure.ac): ... to here.
10190         (Depends-on): Fix condition.
10191
10192 2011-05-08  Bruno Haible  <bruno@clisp.org>
10193
10194         getcwd: Move AC_LIBOBJ invocations to module description.
10195         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10196         invocations from here...
10197         * modules/getcwd (configure.ac): ... to here.
10198
10199 2011-05-08  Bruno Haible  <bruno@clisp.org>
10200
10201         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10202         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10203         here...
10204         * modules/getcwd-lgpl (configure.ac): ... to here.
10205
10206 2011-05-07  Bruno Haible  <bruno@clisp.org>
10207
10208         crypto/gc: Move AC_LIBOBJ invocations to module description.
10209         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10210         * modules/crypto/gc (configure.ac): ... to here.
10211
10212 2011-05-07  Bruno Haible  <bruno@clisp.org>
10213
10214         fwriting: Move AC_LIBOBJ invocations to module description.
10215         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10216         here...
10217         * modules/fwriting (configure.ac): ... to here.
10218
10219 2011-05-07  Bruno Haible  <bruno@clisp.org>
10220
10221         fwritable: Move AC_LIBOBJ invocations to module description.
10222         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10223         here...
10224         * modules/fwritable (configure.ac): ... to here.
10225
10226 2011-05-07  Bruno Haible  <bruno@clisp.org>
10227
10228         futimens: Move AC_LIBOBJ invocations to module description.
10229         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10230         here...
10231         * modules/futimens (configure.ac): ... to here.
10232
10233 2011-05-07  Bruno Haible  <bruno@clisp.org>
10234
10235         ftruncate: Move AC_LIBOBJ invocations to module description.
10236         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10237         gl_PREREQ_FTRUNCATE invocations from here...
10238         * modules/ftruncate (configure.ac): ... to here.
10239
10240 2011-05-07  Bruno Haible  <bruno@clisp.org>
10241
10242         fsync: Move AC_LIBOBJ invocations to module description.
10243         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10244         invocations from here...
10245         * modules/fsync (configure.ac): ... to here.
10246
10247 2011-05-07  Bruno Haible  <bruno@clisp.org>
10248
10249         fsusage: Move AC_LIBOBJ invocations to module description.
10250         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10251         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10252         * modules/fsusage (configure.ac): ... to here.
10253
10254 2011-05-07  Bruno Haible  <bruno@clisp.org>
10255
10256         freopen: Move AC_LIBOBJ invocations to module description.
10257         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10258         invocations from here...
10259         * modules/freopen (configure.ac): ... to here.
10260
10261 2011-05-07  Bruno Haible  <bruno@clisp.org>
10262
10263         free: Move AC_LIBOBJ invocations to module description.
10264         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10265         invocations from here...
10266         * modules/free (configure.ac): ... to here.
10267
10268 2011-05-07  Bruno Haible  <bruno@clisp.org>
10269
10270         freadable: Move AC_LIBOBJ invocations to module description.
10271         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10272         here...
10273         * modules/freadable (configure.ac): ... to here.
10274
10275 2011-05-07  Bruno Haible  <bruno@clisp.org>
10276
10277         fpurge: Move AC_LIBOBJ invocations to module description.
10278         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10279         invocations from here...
10280         * modules/fpurge (configure.ac): ... to here.
10281
10282 2011-05-07  Bruno Haible  <bruno@clisp.org>
10283
10284         fpending: Move AC_LIBOBJ invocations to module description.
10285         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10286         gl_FUNC_FPENDING.
10287         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10288         invocations from here...
10289         * modules/fpending (configure.ac): ... to here.
10290
10291 2011-05-07  Bruno Haible  <bruno@clisp.org>
10292
10293         fopen: Move AC_LIBOBJ invocations to module description.
10294         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10295         invocations from here...
10296         * modules/fopen (configure.ac): ... to here.
10297
10298 2011-05-07  Bruno Haible  <bruno@clisp.org>
10299
10300         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10301         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10302         gl_FUNC_FNMATCH_POSIX.
10303         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10304         invocations from here...
10305         * modules/fnmatch (configure.ac): ... to here.
10306         * modules/fnmatch-gnu (configure.ac): ... and here.
10307
10308 2011-05-07  Bruno Haible  <bruno@clisp.org>
10309
10310         flock: Move AC_LIBOBJ invocations to module description.
10311         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10312         invocations from here...
10313         * modules/flock (configure.ac): ... to here.
10314
10315 2011-05-07  Bruno Haible  <bruno@clisp.org>
10316
10317         fileblocks: Move AC_LIBOBJ invocations to module description.
10318         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10319         gl_PREREQ_FILEBLOCKS invocations from here...
10320         * modules/fileblocks (configure.ac): ... to here.
10321
10322 2011-05-06  Bruno Haible  <bruno@clisp.org>
10323
10324         fflush: Move AC_LIBOBJ invocations to module description.
10325         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10326         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10327         invocations from here...
10328         * modules/fflush (configure.ac): ... to here.
10329
10330 2011-05-06  Bruno Haible  <bruno@clisp.org>
10331
10332         fdopendir: Move AC_LIBOBJ invocations to module description.
10333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10334         here...
10335         * modules/fdopendir (configure.ac): ... to here.
10336         (Depends-on): Improve conditions.
10337
10338 2011-05-06  Bruno Haible  <bruno@clisp.org>
10339
10340         _Exit: Move AC_LIBOBJ invocations to module description.
10341         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10342         invocations from here...
10343         * modules/_Exit (configure.ac): ... to here.
10344
10345 2011-05-21  Bruno Haible  <bruno@clisp.org>
10346
10347         euidaccess: Respect rules for use of AC_LIBOBJ.
10348         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10350         from here...
10351         * modules/euidaccess (configure.ac): ... to here.
10352
10353 2011-05-06  Bruno Haible  <bruno@clisp.org>
10354
10355         error: Move AC_LIBOBJ invocations to module description.
10356         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10357         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10358         invocations from here...
10359         * modules/error (configure.ac): ... to here.
10360
10361 2011-05-06  Bruno Haible  <bruno@clisp.org>
10362
10363         duplocale: Move AC_LIBOBJ invocations to module description.
10364         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10365         gl_PREREQ_DUPLOCALE invocations from here...
10366         * modules/duplocale (configure.ac): ... to here.
10367
10368 2011-05-05  Bruno Haible  <bruno@clisp.org>
10369
10370         dirfd: Move AC_LIBOBJ invocations to module description.
10371         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10372         gl_FUNC_DIRFD.
10373         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10374         here...
10375         * modules/dirfd (configure.ac): ... to here.
10376         (Depends-on): Fix condition.
10377
10378 2011-05-05  Bruno Haible  <bruno@clisp.org>
10379
10380         chown: Respect rules for use of AC_LIBOBJ.
10381         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10382         * modules/chown (configure.ac): ... to here.
10383
10384 2011-05-05  Bruno Haible  <bruno@clisp.org>
10385
10386         chdir-long: Move AC_LIBOBJ invocations to module description.
10387         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10388         gl_PREREQ_CHDIR_LONG invocations from here...
10389         * modules/chdir-long (configure.ac): ... to here.
10390
10391 2011-05-05  Bruno Haible  <bruno@clisp.org>
10392
10393         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10394         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10395         from here...
10396         * modules/canonicalize-lgpl (configure.ac): ... to here.
10397
10398 2011-05-05  Bruno Haible  <bruno@clisp.org>
10399
10400         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10401         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10402         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10403         REPLACE_CALLOC.
10404         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10405         * modules/calloc-gnu (configure.ac): Likewise.
10406
10407 2011-05-05  Bruno Haible  <bruno@clisp.org>
10408
10409         btowc: Move AC_LIBOBJ invocations to module description.
10410         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10411         invocations from here...
10412         * modules/btowc (configure.ac): ... to here.
10413
10414 2011-05-21  Bruno Haible  <bruno@clisp.org>
10415
10416         atexit: Move AC_LIBOBJ invocations to module description.
10417         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10418         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10419         here...
10420         * modules/atexit (configure.ac): ... to here.
10421
10422 2011-05-05  Bruno Haible  <bruno@clisp.org>
10423
10424         atoll: Move AC_LIBOBJ invocations to module description.
10425         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10426         invocations from here...
10427         * modules/atoll (configure.ac): ... to here.
10428
10429 2011-05-05  Bruno Haible  <bruno@clisp.org>
10430
10431         argz: Move AC_LIBOBJ invocations to module description.
10432         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10433         * modules/argz (configure.ac): ... to here.
10434
10435 2011-05-05  Bruno Haible  <bruno@clisp.org>
10436
10437         alphasort: Move AC_LIBOBJ invocations to module description.
10438         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10439         gl_PREREQ_ALPHASORT invocations from here...
10440         * modules/alphasort (configure.ac): ... to here.
10441
10442 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10443
10444         verify: new macro verify_expr; verify_true deprecated
10445         * NEWS: Mention this.
10446         * doc/verify.texi (Compile-time Assertions): Document this.
10447         * lib/verify.h (verify_true): Deprecate.
10448         (verify_expr): New macro.
10449         * tests/test-verify.c (function): Test verify_expr.
10450
10451 2011-06-14  Jim Meyering  <meyering@redhat.com>
10452
10453         init.sh: give more portable redirection-related advice in a comment
10454         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10455         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10456         for lots of discussion.  Stefano Lattarini suggested the solution
10457         of putting "9>&2" after the command.  Reported by Bruno Haible.
10458
10459 2011-06-13  Bruno Haible  <bruno@clisp.org>
10460
10461         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10462         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10463         'none'.
10464
10465 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10466
10467         ftoastr: use strtof only if HAVE_STRTOF
10468         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10470         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10471         * modules/ftoastr (configure.ac): Check for strtof.
10472
10473 2011-06-13  Bruno Haible  <bruno@clisp.org>
10474
10475         gnulib-tool: Addendum to 2011-06-08 commit.
10476         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10477         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10478
10479 2011-06-13  Bruno Haible  <bruno@clisp.org>
10480
10481         fseeko: Provide a non-inline replacement of fseek().
10482         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10483         * modules/fseeko (Depends-on): Add fseek.
10484         * modules/fseek (License): Change to LGPLv2+.
10485
10486 2011-06-13  Bruno Haible  <bruno@clisp.org>
10487
10488         ftello: Provide a non-inline replacement of ftell().
10489         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10490         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10491         not have ftello() (such as on mingw).
10492         * modules/ftello (Depends-on): Add ftell.
10493         * modules/ftell (License): Change to LGPLv2+.
10494
10495 2011-05-07  Bruno Haible  <bruno@clisp.org>
10496
10497         ftell: Move AC_LIBOBJ invocations to module description.
10498         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10499         * modules/ftell (configure.ac): ... to here.
10500
10501 2011-05-07  Bruno Haible  <bruno@clisp.org>
10502
10503         ftello: Respect rules for use of AC_LIBOBJ.
10504         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10505         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10506         here...
10507         * modules/ftello (configure.ac): ... to here.
10508
10509 2011-05-07  Bruno Haible  <bruno@clisp.org>
10510
10511         fseeko: Simplify.
10512         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10513         (gl_FUNC_FSEEKO): Inline it here.
10514
10515 2011-05-07  Bruno Haible  <bruno@clisp.org>
10516
10517         fseek: Move AC_LIBOBJ invocations to module description.
10518         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10519         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10520         * modules/fseek (configure.ac): ... to here.
10521
10522 2011-05-07  Bruno Haible  <bruno@clisp.org>
10523
10524         fseek: Respect rules for use of AC_LIBOBJ.
10525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10526         here...
10527         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10528
10529 2011-05-07  Bruno Haible  <bruno@clisp.org>
10530
10531         fseeko: Respect rules for use of AC_LIBOBJ.
10532         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10533         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10534         here...
10535         * modules/fseeko (configure.ac): ... to here.
10536
10537 2011-06-13  Bruno Haible  <bruno@clisp.org>
10538
10539         gnulib-tool: Allow comments in the 'Depends-on' section.
10540         * doc/gnulib.texi (Module description): Mention comment syntax in the
10541         Depends-on section.
10542         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10543
10544 2011-06-13  Bruno Haible  <bruno@clisp.org>
10545
10546         file-set.h: guard __attibute__ use, now that it's not always defined
10547         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10548         versions that support it.  This fixes a coreutils build failure with
10549         the vendor cc on HP-UX 11.31.
10550
10551 2011-06-12  Bruno Haible  <bruno@clisp.org>
10552
10553         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10554         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10555         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10556         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10557         (acl, aclsort): New declarations.
10558         (aclv_nontrivial): New declaration.
10559         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10560         (file_has_acl): Read also the second kind of HP-UX ACLs.
10561         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10562         kind of HP-UX ACLs if the first kind fails.
10563         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10564         second kind of HP-UX ACLs.
10565         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10566         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10567         agree.
10568         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10569         hpuxjfs.
10570         Handle hpuxjfs.
10571         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10572         hpuxjfs.
10573         Handle hpuxjfs.
10574         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10575         (func_test_same_acls): Use both lsacl and getacl.
10576         Handle hpuxjfs.
10577         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10578         (func_test_same_acls): Use both lsacl and getacl.
10579         Handle hpuxjfs.
10580
10581 2011-06-12  Bruno Haible  <bruno@clisp.org>
10582
10583         acl: Complete the 2010-08-10 fix.
10584         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10585         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10586         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10587         explicitly.
10588         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10589         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10590
10591 2011-06-12  Bruno Haible  <bruno@clisp.org>
10592
10593         spawn-pipe tests: Comments.
10594         * tests/test-spawn-pipe-child.c (main): Update comment.
10595         Reported by James Youngman <jay@gnu.org>.
10596
10597 2011-06-11  James Youngman  <jay@gnu.org>
10598
10599         New module 'stat-size'.
10600         * modules/stat-size: New module.  Provides macros for accessing
10601         file size information in instances of struct stat.  Depends on the
10602         fileblocks module because it calls st_blocks.
10603         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10604         * doc/gnulib.texi: Include stat-size.texi.
10605         * doc/stat-size.texi: Documentation for this module.
10606         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10607         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10608         AC_STRUCT_ST_BLOCKS.
10609
10610 2011-06-09  Bruno Haible  <bruno@clisp.org>
10611
10612         thread: Support pthreads-win32.
10613         * lib/glthread/thread.h (gl_thread_self): Define differently on
10614         pthreads-win32.
10615         (gl_null_thread): New declaration.
10616         (gl_thread_self_pointer): New macro.
10617         * lib/glthread/thread.c (gl_null_thread): New constant.
10618         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10619         gl_thread_self.
10620         * tests/test-tls.c: Likewise.
10621         Suggested by Paul Eggert. Reported by Eric Blake.
10622
10623 2011-06-09  Bruno Haible  <bruno@clisp.org>
10624
10625         thread: Fix confusion between NULL and 0.
10626         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10627         Reported by Paul Eggert.
10628
10629 2011-06-09  Bruno Haible  <bruno@clisp.org>
10630
10631         spawn-pipe tests: Avoid test failure on HP-UX 11.
10632         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10633         is closed.
10634
10635 2011-06-09  Bruno Haible  <bruno@clisp.org>
10636
10637         acl tests: Fix compilation error on HP-UX 11.
10638         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10639
10640 2011-06-09  Bruno Haible  <bruno@clisp.org>
10641
10642         rmdir: Avoid test failure on HP-UX 10.20.
10643         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10644         EEXIST.
10645
10646 2011-06-08  Eric Blake  <eblake@redhat.com>
10647
10648         perror: fix test on mingw
10649         * modules/perror-tests (Depends-on): Add dup2.
10650
10651         strerror_r-posix: fix on MacOS
10652         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10654         logic bug.
10655         * lib/strerror_r.c (strerror_r): Fix the bug.
10656         * lib/strerror.c (strerror): Likewise.
10657         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10658         problem.
10659         * doc/posix-functions/strerror.texi (strerror): Likewise.
10660         * doc/posix-functions/perror.texi (perror): Likewise.
10661         * tests/test-strerror.c (main): Enhance test.
10662         * tests/test-strerror_r.c (main): Likewise.
10663
10664 2011-06-08  Bruno Haible  <bruno@clisp.org>
10665
10666         gnulib-tool: Better isolation between different gnulib-tool invocations.
10667         * gnulib-tool: New option --witness-c-macro.
10668         (witness_c_macro): New variable.
10669         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10670         AM_CPPFLAGS define it as a C macro.
10671         (func_emit_tests_Makefile_am): Likewise.
10672         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10673         read it from there.
10674         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10675         m4_define, not AC_DEFUN.
10676         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10677         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10678         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10679         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10680         s|...|...|, to substitute the values of the GNULIB_* module indicator
10681         variables.
10682         * modules/dirent (Makefile.am): Likewise.
10683         * modules/fcntl-h (Makefile.am): Likewise.
10684         * modules/iconv-h (Makefile.am): Likewise.
10685         * modules/langinfo (Makefile.am): Likewise.
10686         * modules/locale (Makefile.am): Likewise.
10687         * modules/math (Makefile.am): Likewise.
10688         * modules/netdb (Makefile.am): Likewise.
10689         * modules/poll-h (Makefile.am): Likewise.
10690         * modules/pty (Makefile.am): Likewise.
10691         * modules/search (Makefile.am): Likewise.
10692         * modules/signal (Makefile.am): Likewise.
10693         * modules/spawn (Makefile.am): Likewise.
10694         * modules/stdio (Makefile.am): Likewise.
10695         * modules/stdlib (Makefile.am): Likewise.
10696         * modules/string (Makefile.am): Likewise.
10697         * modules/sys_ioctl (Makefile.am): Likewise.
10698         * modules/sys_select (Makefile.am): Likewise.
10699         * modules/sys_socket (Makefile.am): Likewise.
10700         * modules/sys_stat (Makefile.am): Likewise.
10701         * modules/sys_times (Makefile.am): Likewise.
10702         * modules/sys_utsname (Makefile.am): Likewise.
10703         * modules/sys_wait (Makefile.am): Likewise.
10704         * modules/termios (Makefile.am): Likewise.
10705         * modules/time (Makefile.am): Likewise.
10706         * modules/unistd (Makefile.am): Likewise.
10707         * modules/wchar (Makefile.am): Likewise.
10708
10709 2011-06-08  Eric Blake  <eblake@redhat.com>
10710
10711         strerror: simplify replacement
10712         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10713         * modules/strerror (configure.ac): No prereqs needed here...
10714         * modules/strerror-override (configure.ac): ...but this needs it.
10715         (Files): Add file for needed prereq macro.
10716
10717 2011-06-08  Bruno Haible  <bruno@clisp.org>
10718
10719         strerror_r-posix: Tweaks.
10720         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10721         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10722         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10723         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10724         (gl_FUNC_STRERROR_R): ... to here.
10725         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10726
10727 2011-06-07  Eric Blake  <eblake@redhat.com>
10728
10729         perror: document fixed bugs
10730         * doc/posix-functions/perror.texi (perror): Document recent
10731         patches.
10732
10733 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10734
10735         stat-time: get_stat_birthtime failure is better-defined
10736         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10737         return a timestamp whose tv_sec and tv_nsec values are both -1.
10738         Previously, the spec said only that the tv_nsec value was negative.
10739         This upward-compatible change simplifies GNU tar a bit.
10740
10741 2011-06-07  Eric Blake  <eblake@redhat.com>
10742
10743         strerror_r-posix: work around cygwin 1.7.9
10744         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10745         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10746         bug without replacing strerror_r.
10747         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10748         strerror_r is buggy, but without requiring strerror_r compilation.
10749         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10750
10751         test-perror: relax test to ignore cygwin bug
10752         * tests/test-perror2.c (main): Relax test on requiring detection
10753         of stream errors, and use unbuffered stream.
10754         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10755         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10756         * doc/posix-functions/fputc.texi (fputc): Likewise.
10757         * doc/posix-functions/fputs.texi (fputs): Likewise.
10758         * doc/posix-functions/fputws.texi (fputws): Likewise.
10759         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10760         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10761         * doc/posix-functions/getopt.texi (getopt): Likewise.
10762         * doc/posix-functions/perror.texi (perror): Likewise.
10763         * doc/posix-functions/printf.texi (printf): Likewise.
10764         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10765         * doc/posix-functions/psignal.texi (psignal): Likewise.
10766         * doc/posix-functions/putc.texi (putc): Likewise.
10767         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10768         Likewise.
10769         * doc/posix-functions/putchar.texi (putchar): Likewise.
10770         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10771         Likewise.
10772         * doc/posix-functions/puts.texi (puts): Likewise.
10773         * doc/posix-functions/putwc.texi (putwc): Likewise.
10774         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10775         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10776         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10777         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10778         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10779         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10780         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10781         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10782
10783 2011-05-22  Bruno Haible  <bruno@clisp.org>
10784
10785         strerror: Move AC_LIBOBJ invocations to module description.
10786         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10787         gl_PREREQ_STRERROR invocations from here...
10788         * modules/strerror (configure.ac): ... to here.
10789
10790 2011-05-21  Bruno Haible  <bruno@clisp.org>
10791
10792         perror: Use common idiom.
10793         * modules/perror (configure.ac): Reorder statements.
10794
10795 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10796
10797         tests: fix usage message in 'mktempd_'
10798         * tests/init.sh (mktempd_): In the usage message, use literal
10799         'mktempd_', not '$ME' (which is even undefined), as the name of
10800         the subroutine.
10801
10802 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10803
10804         tests init: new function 'fatal_', for hard errors
10805         Before this patch, the only way offered by tests/init.sh to
10806         properly signal a hard error was the `framework_failure_'
10807         function.  But the error message issued by that function,
10808         as its name would suggest, refers to a set-up failure in the
10809         testsuite, while hard errors can obviously also be due to
10810         other reasons.  The best way to fix this inconsistency is to
10811         introduce a new function with a more general error message.
10812         * tests/init.sh (fatal_): New function.
10813
10814 2011-06-06  Eric Blake  <eblake@redhat.com>
10815
10816         canonicalize-lgpl: use common idiom
10817         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10818         over newer POSIX -Rf.
10819         Reported by Bruno Haible.
10820
10821         canonicalize-lgpl: work around AIX realpath bug
10822         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10823         * doc/posix-functions/realpath.texi (realpath): Document it.
10824         Reported by Bruno Haible.
10825
10826         strerror: work around FreeBSD bug
10827         * lib/strerror.c (strerror): Special case 0.
10828         Reported by Bruno Haible.
10829
10830         strerror-override: avoid bloating errno module
10831         * modules/errno (Files, configure.ac): Move replacement strings...
10832         * modules/strerror-override: ...to new module.
10833         * modules/strerror (Depends-on): Add strerror-override.
10834         * modules/strerror_r-posix (Depends-on): Likewise.
10835         * MODULES.html.sh: Document new module.
10836         Reported by Bruno Haible.
10837
10838 2011-06-06  Bruno Haible  <bruno@clisp.org>
10839
10840         spawn-pipe tests: Rename program.
10841         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10842         * tests/test-spawn-pipe-child.c: Update comment.
10843         * tests/test-spawn-pipe.sh: Update.
10844         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10845
10846         spawn-pipe tests: Link the child program only against libc.
10847         * tests/test-spawn-pipe-child.c: New file, extracted from
10848         tests/test-spawn-pipe.c.
10849         (main): Expect only one argument.
10850         (is_open): New function, copied from tests/test-pipe.c.
10851         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10852         (child_main): Remove function.
10853         (test_pipe): Pass only one argument to the child program.
10854         (main): Remove child process code. Expect the child program's name as
10855         first argument.
10856         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10857         argument.
10858         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10859         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10860         test-spawn-pipe-child against no libraries.
10861
10862 2011-06-06  Bruno Haible  <bruno@clisp.org>
10863
10864         careadlinkat: Avoid mismatch between ssize_t and int.
10865         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10866         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10867
10868 2011-06-06  Jim Meyering  <meyering@redhat.com>
10869
10870         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10871         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10872         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10873
10874 2011-06-05  Bruno Haible  <bruno@clisp.org>
10875
10876         ansi-c++-opt: Interoperability with libtool.
10877         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10878         set the variable to "no", not to ":".
10879         * NEWS: Mention the change.
10880
10881 2011-06-05  Bruno Haible  <bruno@clisp.org>
10882
10883         acl: Fix test failure on AIX 7.
10884         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10885         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10886
10887 2011-06-05  Bruno Haible  <bruno@clisp.org>
10888
10889         pipe-filter-ii: Fix test failure on AIX and IRIX.
10890         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10891         with EAGAIN, retry with a smaller buffer size.
10892
10893 2011-06-05  Bruno Haible  <bruno@clisp.org>
10894
10895         localename: Fix link dependencies.
10896         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10897         * modules/localename-tests (Makefile.am): Link test-localename with
10898         $(LIBTHREAD).
10899
10900 2011-06-05  Bruno Haible  <bruno@clisp.org>
10901
10902         error: Avoid gcc warning.
10903         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10904
10905 2011-06-05  Bruno Haible  <bruno@clisp.org>
10906
10907         unsetenv: Avoid gcc warning.
10908         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10909
10910 2011-06-05  Bruno Haible  <bruno@clisp.org>
10911
10912         setenv: Avoid gcc warning.
10913         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10914
10915 2011-06-05  Bruno Haible  <bruno@clisp.org>
10916
10917         sys_select: Ensure memset is declared also on AIX 7.
10918         * lib/sys_select.in.h: Include <string.h> also on AIX.
10919         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10920         self-contained also on AIX 7.1.
10921
10922 2011-06-04  Jim Meyering  <meyering@redhat.com>
10923
10924         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10925         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10926         function name, "error".
10927         (_gl_translatable_diag_func_re): New configurable variable.
10928
10929 2011-06-04  Bruno Haible  <bruno@clisp.org>
10930
10931         getopt: Avoid gcc warning.
10932         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10933
10934 2011-06-04  Bruno Haible  <bruno@clisp.org>
10935
10936         strerror_r: Fix comments.
10937         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10938         commit.
10939
10940 2011-06-04  Bruno Haible  <bruno@clisp.org>
10941
10942         perror: Fix compilation error.
10943         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10944         Undefine fprintf, not sprintf.
10945         * modules/perror (Depends-on): Remove intprops, verify.
10946
10947 2011-06-04  Bruno Haible  <bruno@clisp.org>
10948
10949         setlocale: Enable replacement on Cygwin 1.5.
10950         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10951         Cygwin 1.5.x.
10952         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10953         LC_CTYPE category also exists on Cygwin 1.5.x.
10954
10955 2011-06-04  Bruno Haible  <bruno@clisp.org>
10956
10957         strerror-override: Don't disable symbol renamings.
10958         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10959         * lib/strerror-override.c: Include config.h.
10960         (strerror_override): Don't undefine.
10961
10962 2011-06-03  Bruno Haible  <bruno@clisp.org>
10963
10964         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10965         * lib/localename.h: Update copyright header.
10966         * lib/localename.c: Likewise.
10967         * lib/relocatable.h: Likewise.
10968         * lib/relocatable.c: Likewise.
10969
10970 2011-06-02  Bruno Haible  <bruno@clisp.org>
10971
10972         doc: Fix a module name.
10973         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10974
10975 2011-06-02  Bruno Haible  <bruno@clisp.org>
10976
10977         pipe2: Remove dependency on 'nonblocking' module.
10978         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10979         O_NONBLOCK is defined by gnulib.
10980         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10981         is zero.
10982         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10983         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10984         defined by gnulib.
10985         (get_nonblocking_flag): New function.
10986         (main): Test O_NONBLOCK flag only if it is nonzero.
10987         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10988
10989 2011-06-03  Jim Meyering  <meyering@redhat.com>
10990
10991         maint: three new prohibit-header-without-use rules
10992         Prohibit use of cloexec.h, posixver.h, same.h without use.
10993         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10994         (sc_prohibit_posixver_without_use): Likewise.
10995         (sc_prohibit_same_without_use): Likewise.
10996
10997 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10998
10999         allocator: 'die' routine is now given requested size
11000         * lib/allocator.h (struct allocator.die): New size arg.
11001         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11002         If the actual problem is an ssize_t limitation, not a size_t or
11003         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11004
11005 2011-06-01  Eric Blake  <eblake@redhat.com>
11006
11007         strerror: drop strerror_r dependency
11008         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11009         * lib/strerror-override.c (strerror_override): ...to new file.
11010         * lib/strerror-override.h: Add prototype.
11011         * lib/strerror-impl.h: Delete.
11012         * lib/strerror.c (strerror): New implementation.
11013         * modules/errno (Files): Add new files.
11014         (configure.ac): Compile new file as appropriate.
11015         * modules/strerror (Files): Drop unused file.
11016         (Depends-on): Drop strerror_r-posix.
11017         * MODULES.html.sh: Document strerror_r-posix.
11018         Requested by Sam Steingold.
11019
11020         perror: call strerror_r directly
11021         * modules/perror (Files): Drop strerror-impl.h.
11022         * lib/perror.c (perror): Use our own stack buffer, rather than
11023         calling a wrapper that uses static storage.
11024         * doc/posix-functions/perror.texi (perror): Document a limitation
11025         of our replacement.
11026
11027         strerror_r: fix includes for FreeBSD
11028         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11029         since we use abort on some platforms.
11030         Reported by Matthias Bolte.
11031
11032 2011-05-31  Bruno Haible  <bruno@clisp.org>
11033
11034         Fix link errors in tests: openat-die uses gettext-h.
11035         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11036         against $(LIBINTL).
11037         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11038         against $(LIBINTL).
11039         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11040         $(LIBINTL).
11041         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11042         against $(LIBINTL).
11043         * modules/linkat-tests (Makefile.am): Link test-linkat against
11044         $(LIBINTL).
11045         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11046         $(LIBINTL).
11047         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11048         against $(LIBINTL).
11049         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11050         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11051         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11052         $(LIBINTL).
11053         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11054         $(LIBINTL).
11055         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11056         $(LIBINTL).
11057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11058
11059 2011-05-31  Bruno Haible  <bruno@clisp.org>
11060
11061         Fix link errors in tests: wait-process uses gettext-h.
11062         * modules/nonblocking-pipe-tests (Makefile.am): Set
11063         test_nonblocking_pipe_main_LDADD.
11064         * modules/nonblocking-socket-tests (Makefile.am): Link
11065         test-nonblocking-socket-main against $(LIBINTL).
11066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11067
11068 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11069
11070         assert-h: work around 'verify' incompatibility
11071         * lib/verify.h: Use @...@ directives, not ifdef.
11072         * modules/assert-h (assert.h): Implement the directives.
11073         (assert.h): Substitute the symbol-prefix more consistently.
11074
11075 2011-05-29  Jim Meyering  <meyering@redhat.com>
11076
11077         trim: remove three superfluous assignments
11078         * lib/trim.c (trim2): Remove three superfluous assignments
11079         and correct brace positioning.
11080
11081 2011-05-29  Bruno Haible  <bruno@clisp.org>
11082
11083         wctype-h: Avoid namespace pollution on Solaris 2.6.
11084         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11085         identifiers.
11086         * doc/posix-headers/wctype.texi: Mention the problem.
11087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11088
11089 2011-05-28  Jim Meyering  <meyering@redhat.com>
11090
11091         parse-datetime.y: accommodate -Wstrict-overflow
11092         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11093         placate -Wstrict-overflow.
11094
11095         trim: avoid a warning from -O2 -Wstrict-overflow
11096         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11097
11098 2011-05-29  Bruno Haible  <bruno@clisp.org>
11099
11100         gnulib-tool: Fix bug in yesterday's commit.
11101         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11102         twice.
11103
11104 2011-05-29  Bruno Haible  <bruno@clisp.org>
11105
11106         Allow multiple gnulib generated include files to be combined.
11107         * gnulib-tool (func_compute_include_guard_prefix): New function.
11108         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11109         ${gl_include_guard_prefix} references.
11110         (func_import, func_create_testdir): Invoke
11111         func_compute_include_guard_prefix.
11112         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11113         * lib/ctype.in.h: Likewise.
11114         * lib/dirent.in.h: Likewise.
11115         * lib/errno.in.h: Likewise.
11116         * lib/fcntl.in.h: Likewise.
11117         * lib/float.in.h: Likewise.
11118         * lib/getopt.in.h: Likewise.
11119         * lib/iconv.in.h: Likewise.
11120         * lib/langinfo.in.h: Likewise.
11121         * lib/locale.in.h: Likewise.
11122         * lib/math.in.h: Likewise.
11123         * lib/netdb.in.h: Likewise.
11124         * lib/netinet_in.in.h: Likewise.
11125         * lib/poll.in.h: Likewise.
11126         * lib/pthread.in.h: Likewise.
11127         * lib/pty.in.h: Likewise.
11128         * lib/sched.in.h: Likewise.
11129         * lib/se-selinux.in.h: Likewise.
11130         * lib/search.in.h: Likewise.
11131         * lib/signal.in.h: Likewise.
11132         * lib/spawn.in.h: Likewise.
11133         * lib/stdarg.in.h: Likewise.
11134         * lib/stddef.in.h: Likewise.
11135         * lib/stdint.in.h: Likewise.
11136         * lib/stdio.in.h: Likewise.
11137         * lib/stdlib.in.h: Likewise.
11138         * lib/string.in.h: Likewise.
11139         * lib/strings.in.h: Likewise.
11140         * lib/sys_file.in.h: Likewise.
11141         * lib/sys_ioctl.in.h: Likewise.
11142         * lib/sys_select.in.h: Likewise.
11143         * lib/sys_socket.in.h: Likewise.
11144         * lib/sys_stat.in.h: Likewise.
11145         * lib/sys_time.in.h: Likewise.
11146         * lib/sys_times.in.h: Likewise.
11147         * lib/sys_uio.in.h: Likewise.
11148         * lib/sys_utsname.in.h: Likewise.
11149         * lib/sys_wait.in.h: Likewise.
11150         * lib/sysexits.in.h: Likewise.
11151         * lib/termios.in.h: Likewise.
11152         * lib/time.in.h: Likewise.
11153         * lib/unistd.in.h: Likewise.
11154         * lib/wchar.in.h: Likewise.
11155         * lib/wctype.in.h: Likewise.
11156         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11157         * modules/ctype (Makefile.am): Likewise.
11158         * modules/dirent (Makefile.am): Likewise.
11159         * modules/errno (Makefile.am): Likewise.
11160         * modules/fcntl-h (Makefile.am): Likewise.
11161         * modules/float (Makefile.am): Likewise.
11162         * modules/getopt-posix (Makefile.am): Likewise.
11163         * modules/iconv-h (Makefile.am): Likewise.
11164         * modules/langinfo (Makefile.am): Likewise.
11165         * modules/locale (Makefile.am): Likewise.
11166         * modules/math (Makefile.am): Likewise.
11167         * modules/netdb (Makefile.am): Likewise.
11168         * modules/netinet_in (Makefile.am): Likewise.
11169         * modules/poll-h (Makefile.am): Likewise.
11170         * modules/pthread (Makefile.am): Likewise.
11171         * modules/pty (Makefile.am): Likewise.
11172         * modules/sched (Makefile.am): Likewise.
11173         * modules/search (Makefile.am): Likewise.
11174         * modules/selinux-h (Makefile.am): Likewise.
11175         * modules/signal (Makefile.am): Likewise.
11176         * modules/spawn (Makefile.am): Likewise.
11177         * modules/stdarg (Makefile.am): Likewise.
11178         * modules/stddef (Makefile.am): Likewise.
11179         * modules/stdint (Makefile.am): Likewise.
11180         * modules/stdio (Makefile.am): Likewise.
11181         * modules/stdlib (Makefile.am): Likewise.
11182         * modules/string (Makefile.am): Likewise.
11183         * modules/strings (Makefile.am): Likewise.
11184         * modules/sys_file (Makefile.am): Likewise.
11185         * modules/sys_ioctl (Makefile.am): Likewise.
11186         * modules/sys_select (Makefile.am): Likewise.
11187         * modules/sys_socket (Makefile.am): Likewise.
11188         * modules/sys_stat (Makefile.am): Likewise.
11189         * modules/sys_time (Makefile.am): Likewise.
11190         * modules/sys_times (Makefile.am): Likewise.
11191         * modules/sys_uio (Makefile.am): Likewise.
11192         * modules/sys_utsname (Makefile.am): Likewise.
11193         * modules/sys_wait (Makefile.am): Likewise.
11194         * modules/sysexits (Makefile.am): Likewise.
11195         * modules/termios (Makefile.am): Likewise.
11196         * modules/time (Makefile.am): Likewise.
11197         * modules/unistd (Makefile.am): Likewise.
11198         * modules/wchar (Makefile.am): Likewise.
11199         * modules/wctype-h (Makefile.am): Likewise.
11200         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11201
11202 2011-05-29  Bruno Haible  <bruno@clisp.org>
11203
11204         assert-h: Allow multiple gnulib generated replacements to coexist.
11205         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11206
11207 2011-05-29  Bruno Haible  <bruno@clisp.org>
11208
11209         argp: Allow coexistence with strerror_r-posix module.
11210         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11211         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11212         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11213         not the glibc signature.
11214
11215 2011-05-28  Bruno Haible  <bruno@clisp.org>
11216
11217         gnulib-tool: Alternative structure of testdirs, similar to --import.
11218         * gnulib-tool: New option --single-configure.
11219         (func_usage): Document it.
11220         (single_configure): New variable.
11221         (func_modules_transitive_closure_separately,
11222         func_modules_transitive_closure_separately,
11223         func_determine_use_libtests, func_modules_add_dummy_separately,
11224         func_modules_to_filelist_separately): New functions, extracted from
11225         func_import.
11226         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11227         (func_import): Use the new functions.
11228         (func_create_testdir): Set final_modules. Handle $single_configure =
11229         true case.
11230
11231 2011-05-28  Bruno Haible  <bruno@clisp.org>
11232
11233         getloadavg: Remove an unreliable safety check.
11234         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11235         getloadavg.c is in place.
11236         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11237         Reported by Sam Steingold <sds@gnu.org>.
11238
11239 2011-05-28  Bruno Haible  <bruno@clisp.org>
11240
11241         doc: Cleanup yet another file produced by texinfo.tex.
11242         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11243
11244 2011-05-28  Bruno Haible  <bruno@clisp.org>
11245
11246         Finish the conditional dependencies mechanism.
11247         * gnulib-tool: New option --no-conditional-dependencies.
11248         (func_usage): Document it. Don't mark --conditional-dependencies as
11249         experimental.
11250         (cond_dependencies): The possible values can now be true, false, empty.
11251         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11252         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11253         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11254
11255 2011-05-28  Bruno Haible  <bruno@clisp.org>
11256
11257         doc: Use a recent texinfo.tex.
11258         * doc/Makefile (tex_opts): New variable.
11259         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11260
11261 2011-05-28  Jim Meyering  <meyering@redhat.com>
11262
11263         intprops.h: adjust comment to match code change
11264         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11265         only once, it *may* have side effects.  Also fix an unrelated typo.
11266         (_GL_INT_SIGNED): Likewise.
11267
11268 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11269
11270         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11271
11272 2011-05-26  Bruno Haible  <bruno@clisp.org>
11273
11274         mbsrchr: Avoid collision with system function on Interix.
11275         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11276         Reported by Markus Duft <mduft@gentoo.org>.
11277
11278 2011-05-15  James Youngman  <jay@gnu.org>
11279
11280         getopt: for ambiguous options, enumerate the possibilities.
11281         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11282         the ambiguous options when an ambiguous prefix is given. This was
11283         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11284         glibc change was
11285         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11286
11287 2011-05-25  Eric Blake  <eblake@redhat.com>
11288
11289         getcwd: work around mingw bug
11290         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11291         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11292         Reported by Matthias Bolte.
11293
11294 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11295
11296         test-intprops: disable -Wtype-limits diagnostics
11297         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11298         diagnostics.  Otherwise, the integer overflow macros generate many
11299         diagnostics.  Reported by Jim Meyering in
11300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11301
11302         intprops: shorten, to pacify gcc -Woverlength-strings
11303         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11304         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11305         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11306         likely to run afoul of C compiler limits for string constant lengths.
11307         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11308
11309 2011-05-24  Eric Blake  <eblake@redhat.com>
11310
11311         docs: document recently fixed glibc printf bug
11312         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11313         * doc/posix-functions/printf.texi (printf): Likewise.
11314         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11315         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11316
11317         closein-tests: convert to init.sh
11318         * modules/closein-tests (Files): Add init.sh
11319         * tests/test-closein.sh Use it.
11320
11321         yesno-tests: convert to init.sh
11322         * modules/yesno-tests (Files): Add init.sh.
11323         * tests/test-yesno.sh: Use it.
11324
11325         atexit-tests: ensure reliable exit status
11326         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11327         Reported by Bruno Haible.
11328
11329 2011-05-24  Bruno Haible  <bruno@clisp.org>
11330
11331         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11332         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11333         gl_PREREQ_STRERROR_R invocations from here...
11334         * modules/strerror_r-posix (configure.ac): ... to here.
11335
11336 2011-05-24  Eric Blake  <eblake@redhat.com>
11337
11338         strerror_r: fix missing header
11339         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11340
11341         strerror_r: fix AIX test failures
11342         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11343         ERANGE failure.
11344
11345         strerror_r: fix Solaris test failures
11346         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11347         failures.
11348         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11349
11350         strerror_r: enforce POSIX recommendations
11351         * lib/strerror_r.c (safe_copy): New helper method.
11352         (strerror_r): Guarantee a non-empty string.
11353         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11354         recent POSIX rulings and to match our strerror guarantees.
11355         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11356
11357 2011-05-24  Jim Meyering  <meyering@redhat.com>
11358
11359         test-perror2.c: avoid warning about unused variable
11360         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11361
11362 2011-05-24  Eric Blake  <eblake@redhat.com>
11363
11364         perror: avoid spurious test failure on HP-UX
11365         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11366
11367         tests: fix logic bug in init.sh
11368         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11369         shell.
11370
11371 2011-05-24  Jim Meyering  <meyering@redhat.com>
11372
11373         utimensat: do not reference an out-of-scope buffer
11374         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11375         declared in an inner scope, yet "times" would be dereferenced outside
11376         the scope in which "ts" was valid.
11377         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11378         of ts[2] "out/up", so that the use of aliased "times" (via
11379         "times = ts;") does not end up referencing an out-of-scope "ts"
11380
11381         opendir-safer.c: don't clobber errno; don't close negative FD
11382         * lib/opendir-safer.c (opendir_safer):
11383         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11384         file descriptor, and more importantly, don't clobber the
11385         offending errno value with EINVAL.  Before, upon failure
11386         of dup_safer, we would pass the negative file descriptor to
11387         fdopendir, which would clobber errno.
11388
11389 2011-05-23  Bruno Haible  <bruno@clisp.org>
11390
11391         idcache: Fix module description.
11392         * modules/idcache (Include): Set to "idcache.h".
11393
11394 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11395
11396         gnulib-tool: fix portability problem with MacOS sed
11397         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11398         before the "}".  Problem reported by Leo in
11399         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11400         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11401         sed_extract_condition1, sed_extract_condition2.
11402
11403 2011-05-23  Bruno Haible  <bruno@clisp.org>
11404
11405         hash: Simplify autoconf macro.
11406         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11407
11408 2011-05-23  Bruno Haible  <bruno@clisp.org>
11409
11410         getugroups: Fix module description.
11411         * modules/getugroups (Include): Set to "getugroups.h".
11412
11413 2011-05-23  Bruno Haible  <bruno@clisp.org>
11414
11415         linkat: Simplify autoconf macro.
11416         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11417
11418 2011-05-23  Bruno Haible  <bruno@clisp.org>
11419             Eric Blake  <eblake@redhat.com>
11420
11421         linkat, renameat: Update dependencies.
11422         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11423         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11424         symlinkat.
11425
11426 2011-05-23  Jim Meyering  <meyering@redhat.com>
11427
11428         maint.mk: more tight_scope improvements
11429         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11430         (_gl_TS_headers): Define only in if-0'd block.
11431         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11432         sometimes we must *not* use it.  Adjust uses accordingly.
11433         (sc_tight_scope): Use much simpler grep-based test to determine
11434         whether we skip this rule.
11435
11436         maint.mk: generalize/improve the tight-scope rule
11437         * top/maint.mk: Emit a warning when the test is skipped.
11438         (_gl_TS_dir): Add $(srcdir)/ prefix.
11439         (_gl_TS_function_match): Simplify, rather than trying
11440         to enumerate common types.  Otherwise, it would fail to match an
11441         "extern unsigned char const *" declaration in idutils.
11442         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11443         a way to support use of that type of macro.
11444         (_gl_TS_var_match): Simplify regexp.
11445         (_gl_TS_obj_files): New configurable variable.
11446         (_gl_TS_headers): Likewise.
11447
11448 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11449
11450         verify: fix bug when gnulib <assert.h> is also included
11451         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11452         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11453         Perhaps there's a better way, but this fixes the immediate problem.
11454         Problem reported by Bruno Haible in
11455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11456
11457 2011-05-22  Bruno Haible  <bruno@clisp.org>
11458
11459         xgetcwd: Simplify autoconf macro.
11460         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11461
11462 2011-05-22  Bruno Haible  <bruno@clisp.org>
11463
11464         New module 'mktime-internal'.
11465         * modules/mktime-internal: New file.
11466         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11467         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11468         mktime_internal as a C macro if libc has __mktime_internal.
11469         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11470         conditions.
11471         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11472
11473 2011-05-22  Bruno Haible  <bruno@clisp.org>
11474
11475         timegm: Correct mktime replacement statements.
11476         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11477         defining mktime as a C macro. This completes a 2009-07-28 commit.
11478
11479 2011-05-22  Bruno Haible  <bruno@clisp.org>
11480
11481         timegm: Simplify autoconf macro.
11482         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11483
11484 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11485
11486         clock-time: change to LGPLv2+.
11487         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11488         BSD-like but we have no mark for that; this is good enough for now.
11489
11490 2011-05-21  Bruno Haible  <bruno@clisp.org>
11491
11492         strerror_r: Fix comments.
11493         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11494
11495 2011-05-21  Bruno Haible  <bruno@clisp.org>
11496
11497         relocatable-prog-wrapper: Fix possible link error.
11498         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11499         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11500         (gl_FUNC_SETENV): ... to here.
11501         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11502         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11503
11504 2011-05-21  Bruno Haible  <bruno@clisp.org>
11505
11506         relocatable-prog-wrapper: Assume strerror() exists.
11507         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11508         m4/strerror.m4.
11509         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11510         * lib/relocwrapper.c: Remove mention of strerror module.
11511         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11512         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11513         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11514         C macro.
11515
11516 2011-05-21  Bruno Haible  <bruno@clisp.org>
11517
11518         select: Simplify replacement idiom.
11519         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11520         Win32 platforms.
11521         * lib/sys_select.in.h (select): Simplify accordingly.
11522         * modules/select (Depends-on): Likewise.
11523
11524 2011-05-21  Bruno Haible  <bruno@clisp.org>
11525
11526         mkdir-p: Simplify autoconf macro.
11527         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11528         gl_FUNC_LCHOWN.
11529
11530 2011-05-21  Eric Blake  <eblake@redhat.com>
11531
11532         strerror_r: avoid clobbering strerror on cygwin
11533         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11534         fall back instead to sys_errlist.
11535         * modules/strerror (configure.ac): Add witness.
11536         * tests/test-strerror_r.c (main): Enhance test.
11537         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11538         * tests/test-perror2.c (main): Free memory before exit.
11539
11540 2011-05-21  Bruno Haible  <bruno@clisp.org>
11541
11542         mkdtemp: Use gnulib naming conventions.
11543         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11544         * modules/mkdtemp (configure.ac): Update.
11545
11546 2011-05-20  Eric Blake  <eblake@redhat.com>
11547
11548         strerror_r: avoid corrupting errno on Solaris
11549         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11550         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11551
11552         strerror_r: avoid compiler warning
11553         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11554
11555         strerror_r: simplify AIX code
11556         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11557
11558         test-perror: avoid spurious failure on FreeBSD
11559         * modules/perror-tests (Depends-on): Add strerror, now that
11560         strerror_r no longer pulls it in.
11561
11562 2011-05-20  Bruno Haible  <bruno@clisp.org>
11563
11564         strerror_r-posix: Remove unused dependencies.
11565         * modules/strerror_r-posix (Depends-on): Remove strerror.
11566         Reported by Eric Blake.
11567
11568 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11569
11570         intprops: remove assumption about A|B representation
11571         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11572         is a valid integer if both A and B are.  Although this is true for
11573         all known practical hosts, the C standard doesn't guarantee it,
11574         and the code need not assume it.  Also, this change may work around
11575         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11577
11578 2011-05-20  Eric Blake  <eblake@redhat.com>
11579
11580         perror: work around FreeBSD bug
11581         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11582         is broken.  Move AC_LIBOBJ...
11583         * modules/perror (configure.ac): Here.
11584         * doc/posix-functions/perror.texi (perror): Document this.
11585         * tests/test-perror2.c (main): Enhance test.
11586
11587         test-perror: check for strerror interactions
11588         * tests/macros.h (STREQ): Add macro.
11589         * modules/perror-tests (Files): Add second test.
11590         * tests/test-perror2.c (main): New file.
11591         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11592
11593         test-perror: rewrite to use init script
11594         * modules/perror-tests (Files): Add init.sh.
11595         * tests/test-perror.sh: Use temporary directory.
11596
11597 2011-05-20  Jim Meyering  <meyering@redhat.com>
11598
11599         maint: replace misused "a" with "an"
11600         * doc/intprops.texi: "a integer"
11601         * doc/regex.texi: "a explanation"
11602         * lib/alignof.h: "a object"
11603         * lib/argmatch.h: "a explanation"
11604         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11605         * lib/stdint.in.h: "a integer"
11606         * lib/userspec.c: "a owner"
11607         * doc/gnulib.texi: Fix "a idea", and reword.
11608
11609 2011-05-19  Jim Meyering  <meyering@redhat.com>
11610
11611         maint: correct misuse of "a" and "an"
11612         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11613         * lib/argp-help.c: "an docum...": s/an/a/
11614         * lib/argp-parse.c: "An vector": s/An/A/
11615         * lib/execute.c: "an native": s/an/a/
11616         * lib/spawn-pipe.c: Likewise.
11617         * lib/gc.h: "an Gc_rc": s/an/a/
11618         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11619         * lib/fts.c: "an stat.st_dev": s/an/a/
11620
11621 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11622
11623         intprops-tests: work around HP-UX 11.23 cc bug with constants
11624         * tests/test-intprops.c (VERIFY): New macro.
11625         (main): Use it, instead of verify, to work around the compiler bug; see
11626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11627
11628         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11629         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11630         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11631         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11632         (_GL_REMAINDER_OVERFLOW): Use it.
11633
11634         intprops-tests: revert unsigned part of previous change
11635         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11636         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11637         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11639
11640 2011-05-19  Bruno Haible  <bruno@clisp.org>
11641
11642         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11643         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11644         strerror_r() returned without filling the buffer.
11645         Reported by Eric Blake.
11646
11647 2011-05-19  Eric Blake  <eblake@redhat.com>
11648
11649         strerror_r: guarantee unchanged errno
11650         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11651         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11652         failure.
11653         * tests/test-strerror_r.c (main): Enhance test.
11654
11655 2011-05-19  Bruno Haible  <bruno@clisp.org>
11656
11657         strerror_r: Reorder #if blocks.
11658         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11659         for consistency with the previous commit.
11660
11661 2011-05-19  Bruno Haible  <bruno@clisp.org>
11662
11663         perror: Avoid clobbering the strerror buffer when possible.
11664         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11665         * lib/strerror.c: Include it.
11666         * modules/strerror (Files): Add lib/strerror-impl.h.
11667         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11668         (my_strerror): New function, defined through lib/strerror-impl.h.
11669         (perror): Use it instead of strerror.
11670         * modules/perror (Files): Add lib/strerror-impl.h.
11671         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11672
11673 2011-05-19  Eric Blake  <eblake@redhat.com>
11674
11675         strerror_r: fix on newer cygwin
11676         * lib/strerror_r.c (strerror_r): Cygwin now has
11677         __xpg_strerror_r, use it.
11678
11679 2011-05-19  Bruno Haible  <bruno@clisp.org>
11680
11681         strerror_r: Avoid clobbering the strerror buffer when possible.
11682         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11683         (sys_nerr, sys_errlist): New declarations.
11684         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11685         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11686         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11687
11688 2011-05-19  Bruno Haible  <bruno@clisp.org>
11689
11690         strerror_r: Fix test failure on mingw.
11691         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11692         EXTEND_STRERROR_R.
11693         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11694         macros from errno.in.h instead.
11695
11696 2011-05-19  Eric Blake  <eblake@redhat.com>
11697
11698         strerror: relax test for Solaris
11699         * tests/test-strerror.c (main): Permit Solaris behavior.
11700         * tests/test-strerror_r.c (main): Likewise.
11701
11702         strerror: enforce POSIX ruling on strerror(0)
11703         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11705         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11706         * doc/posix-functions/strerror.texi (strerror): Document it.
11707         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11708         * tests/test-strerror.c (main): Strengthen test.
11709         * tests/test-strerror_r.c (main): Likewise.
11710
11711 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11712
11713         intprop-tests: port to older and more-pedantic compilers
11714         * modules/intprops-tests (Files): Add tests/macros.h.
11715         * tests/test-intprops.c: Include macros.h.
11716         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11717         it's no longer documented to expand to an integer constant expression.
11718         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11719         argument is floating point, as it's no longer documented to expand
11720         to an integer constant expression in that case.
11721         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11722         compiler bugs reported by Bruno Haible.  See
11723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11724         (U0, U1): New constants, to work around the same bugs.  Also,
11725         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11726
11727         intprops: work around C compiler bugs
11728         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11729         bug in Sun C 5.11 2010/08/13 and other compilers; see
11730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11731
11732         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11733         * doc/intprops.texi (Integer Type Determination): Fix
11734         documentation for TYPE_IS_INTEGER: it returns an constant
11735         expression, not an integer constant expression.  Fix doc for
11736         TYPE_SIGNED: it returns an integer constant expression only if its
11737         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11738         hardly worth documented that way....)
11739
11740 2011-05-18  Bruno Haible  <bruno@clisp.org>
11741
11742         strerror_r: Avoid clobbering the strerror buffer when possible.
11743         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11744         Handle gnulib defined errno values here. When strerror() returns NULL
11745         or an empty string, return EINVAL.
11746         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11747         gnulib defined errno values here.
11748         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11749
11750 2011-05-18  Eric Blake  <eblake@redhat.com>
11751
11752         fnmatch: avoid compiler warning
11753         * lib/fnmatch_loop.c (FCT): Use correct type.
11754         Reported by Matthias Bolte.
11755
11756 2011-05-13  Jim Meyering  <meyering@redhat.com>
11757
11758         maint.mk: three new prohibit_<HDR>_without_use rules
11759         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11760         (sc_prohibit_stdio-safer_without_use): Likewise.
11761         (sc_prohibit_xfreopen_without_use): Likewise.
11762
11763 2011-05-17  Jim Meyering  <meyering@redhat.com>
11764
11765         announce-gen: fail if the NEWS delta is empty
11766         If there's nothing noteworthy in NEWS, then either you forgot
11767         or you shouldn't be releasing.
11768         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11769
11770 2011-05-17  Pádraig Brady <P@draigBrady.com>
11771
11772         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11773         reserved symbols starting with double underscore from the check.
11774
11775 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11776
11777         intprops: add doc
11778         * doc/intprops.texi: New file, documenting intprops.
11779         * doc/gnulib.texi (Particular Modules): Include it.
11780
11781         verify: add doc to gnulib manual and fix example
11782         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11783         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11784         (Compile-time Assertions): Fix example so it can't overflow.
11785
11786 2011-05-17  Jim Meyering  <meyering@redhat.com>
11787
11788         warnings.m4: don't usurp save_CPPFLAGS variable name
11789         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11790
11791         doc: fix typo
11792         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11793
11794 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11795             Bruno Haible  <bruno@clisp.org>
11796
11797         doc: Tweak recent change.
11798         * README (Portability guidelines): Tweak new text.
11799         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11800         Interix 6.1.
11801
11802 2011-05-16  Eric Blake  <eblake@redhat.com>
11803
11804         inttypes: avoid autoconf warning
11805         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11806         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11807
11808 2011-05-16  Sam Steingold <sds@gnu.org>
11809         and Eric Blake  <eblake@redhat.com>
11810
11811         vc-list-files: accept multiple directory operands
11812         * build-aux/vc-list-files: Iterate over all remaining operands.
11813
11814 2011-05-16  Bruno Haible  <bruno@clisp.org>
11815
11816         Fix confusion regarding deprecated modules.
11817         * modules/calloc (Status, Notice): Mark module as deprecated, not
11818         obsolete.
11819         * modules/fnmatch-posix (Status, Notice): Likewise.
11820         * modules/getdate (Status, Notice): Likewise.
11821         * modules/getopt (Status, Notice): Likewise.
11822         * modules/malloc (Status, Notice): Likewise.
11823         * modules/pipe (Status, Notice): Likewise.
11824         * modules/realloc (Status, Notice): Likewise.
11825         * modules/rename-dest-slash (Status, Notice): Likewise.
11826         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11827         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11828         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11829         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11830         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11831
11832 2011-05-16  Bruno Haible  <bruno@clisp.org>
11833
11834         doc: List the target platforms.
11835         * doc/gnulib-intro.texi (Target Platforms): New section.
11836         * doc/gnulib.texi (Introduction): Update menu.
11837         * README (Portability guidelines): Refer to the new section. Update
11838         statement about oldest supported environment. Remove rationale why
11839         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11840         unportable C89 function.
11841         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11842         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11843
11844 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11845
11846         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11847
11848 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11849
11850         intprops-tests: new module
11851         * modules/intprops-tests, tests/test-intprops.c: New files.
11852
11853         intprops: add safe, portable integer overflow checking
11854         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11855         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11856         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11857         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11858         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11859         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11860         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11861         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11862         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11863         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11864         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11865
11866 2011-05-12  James Youngman  <jay@gnu.org>
11867
11868         Add a test for glibc's Bugzilla bug #12378.
11869         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11870         doesn't allow the literal matching of a lone "[" (which is
11871         required by POSIX).
11872         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11873
11874 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11875
11876         Sync glibc change fixing Bugzilla bug #12378.
11877         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11878         beginning and fall back to matching as normal character if the
11879         string ends before the matching ']' is found.  This is what POSIX
11880         requires.
11881
11882 2011-05-13  Eric Blake  <eblake@redhat.com>
11883
11884         getcwd-lgpl: relax test for FreeBSD
11885         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11886         issue.
11887         * tests/test-getcwd-lgpl.c (main): Relax test.
11888         Reported by Matthias Bolte.
11889
11890 2011-05-11  Eric Blake  <eblake@redhat.com>
11891
11892         test-fflush: silence compiler warning
11893         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11894
11895 2011-05-11  Bruno Haible  <bruno@clisp.org>
11896
11897         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11898         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11899         * modules/canonicalize (Depends-on): Add 'nocrash'.
11900         * modules/canonicalize-lgpl (Depends-on): Likewise.
11901         * doc/posix-functions/realpath.texi: Update platforms list.
11902         Reported by Ryan Schmidt <ryandesign@macports.org>.
11903
11904 2011-05-11  Bruno Haible  <bruno@clisp.org>
11905
11906         group-member: Declare function in <unistd.h>.
11907         * lib/unistd.in.h (group_member): New declaration.
11908         * lib/group-member.h: Remove file.
11909         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11910         * tests/test-unistd-c++.cc: Check signature of group_member.
11911         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11912         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11913         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11914         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11915         HAVE_GROUP_MEMBER.
11916         * modules/group-member (Files): Remove lib/group-member.h.
11917         (Depends-on): Add unistd. Specify conditions.
11918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11919         (Include): Change to <unistd.h>.
11920         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11921         HAVE_GROUP_MEMBER.
11922         * NEWS: Mention the change.
11923         * lib/euidaccess.c: Don't include group-member.h.
11924
11925 2011-05-11  Bruno Haible  <bruno@clisp.org>
11926
11927         group-member: Document module.
11928         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11929         module.
11930
11931 2011-05-11  Bruno Haible  <bruno@clisp.org>
11932
11933         fclose: Fix mistake earlier today.
11934         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11935
11936 2011-05-11  Eric Blake  <eblake@redhat.com>
11937
11938         fclose: preserve fflush errors
11939         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11940         Reported by Jim Meyering.
11941
11942         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11943         * build-aux/bootstrap (check_versions): When no specific version
11944         is required, merely check that the app produces an exit status
11945         that indicates its existence.
11946
11947         maint.mk: drop redundant check
11948         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11949         the same but better.
11950
11951 2011-05-11  Bruno Haible  <bruno@clisp.org>
11952
11953         fclose: Fix possible link error.
11954         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11955         unregister_shadow_fd. Improve comments.
11956         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11957         Eric Blake.
11958
11959 2011-05-11  Jim Meyering  <meyering@redhat.com>
11960
11961         maint.mk: improve "can not" detection and generalize rule name
11962         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11963         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11964         Use the same technique as in sc_prohibit_doubled_word, so that
11965         we recognize "can not" also when the words are separated by a newline.
11966         Suggested by Eric Blake.
11967         (perl_filename_lineno_text_): Define.  Factored out of...
11968         (prohibit_doubled_word_): ...here.  Use the new definition.
11969         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11970         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11971         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11972
11973 2011-05-10  Eric Blake  <eblake@redhat.com>
11974
11975         fclose: avoid double close race when possible
11976         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11977         all but WINDOWS_SOCKETS.
11978
11979 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11980
11981         openat: correct new comment
11982         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11983
11984 2011-05-10  Jim Meyering  <meyering@redhat.com>
11985
11986         openat: add comments
11987         * lib/openat-proc.c (openat_proc_name): Add comments,
11988         mostly from Eric Blake.
11989
11990 2011-05-09  Eric Blake  <eblake@redhat.com>
11991
11992         openat: reduce syscalls in first probe of /proc
11993         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11994         be a directory.  Simplify the probe for .. bugs.
11995         * modules/openat (Depends-on): Drop same-inode.
11996         Reported by Bastien ROUCARIES.
11997
11998 2011-05-09  Jim Meyering  <meyering@redhat.com>
11999
12000         maint.mk: change semantics/name of tight_scope variables
12001         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12002         Rename variables to align with semantics that make them more useful.
12003
12004         maint.mk: tweak new rule's name not to impinge
12005         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12006         (sc_tight_scope): Use new rule name rather than $@-0.
12007
12008         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12009         * top/maint.mk (sc_tight_scope): New rule.
12010         (sc_tight_scope-0): New rule, ifdef'd out.
12011         (_gl_TS_dir): Default.
12012         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12013         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12014
12015 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12016
12017         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12018         Haible <bruno@clisp.org>.
12019
12020 2011-05-08  Bruno Haible  <bruno@clisp.org>
12021
12022         Comments.
12023         * m4/isnanf.m4: Add comment.
12024         * m4/isnanl.m4: Likewise.
12025
12026 2011-05-08  Bruno Haible  <bruno@clisp.org>
12027
12028         glob: Remove obsolete macro.
12029         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12030
12031 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12032
12033         intprops: Sun C 5.11 supports __typeof__
12034         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12035         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12036         which is new.
12037         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12038
12039         intprops: switch to usual gnulib indenting and naming
12040         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12041         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12042
12043         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12044
12045 2011-05-08  Jim Meyering  <meyering@redhat.com>
12046
12047         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12048         * top/maint.mk (release-prep): Use make's --no-print-directory
12049         option when generating the announcement.  This eliminates the
12050         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12051         generated announcement template.
12052
12053 2011-05-08  Bruno Haible  <bruno@clisp.org>
12054
12055         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12056         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12057         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12058
12059 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12060
12061         ignore-value, verify: Omit include files from lib_SOURCES.
12062         * modules/ignore-value, modules/verify (Makefile.am):
12063         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12064         that leads Automake to duplicate use of am__objects_... variables
12065         in Makefile.in.  See
12066         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12067
12068 2011-05-07  Bruno Haible  <bruno@clisp.org>
12069
12070         fclose: Simplify autoconf macro.
12071         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12072         defined.
12073
12074 2011-05-07  Bruno Haible  <bruno@clisp.org>
12075
12076         canonicalize-lgpl: Fix autoconf macro ordering bug.
12077         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12078         gl_STDLIB_H_DEFAULTS.
12079
12080 2011-05-06  Eric Blake  <eblake@redhat.com>
12081
12082         maintainer-makefile: make sc_po_check easier to tune
12083         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12084         to probe for strings, such as an alternate location for gnulib.
12085
12086         fclose: guarantee behavior on seekable stdin
12087         * modules/fclose (Depends-on): Add fflush.
12088         * doc/posix-functions/fclose.texi (fclose): Document this.
12089         * tests/test-fclose.c (main): Make test for this unconditional.
12090
12091 2011-05-06  Bruno Haible  <bruno@clisp.org>
12092
12093         fflush, fpurge: Relicense under LGPLv2+.
12094         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12095         * modules/fpurge (License): Likewise.
12096         With permission from Eric Blake and Jim Meyering.
12097         Suggested by Eric Blake.
12098
12099 2011-05-06  Karl Berry  <karl@gnu.org>
12100
12101         * MODULES.html.sh (func_all_modules): remove exit.
12102
12103 2011-05-06  Jim Meyering  <meyering@redhat.com>
12104
12105         maint.mk: use info-gnu@ as the default only for a stable release
12106         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12107         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12108         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12110
12111 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12112
12113         assert-h: new module, which supports C1X-style static_assert
12114         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12115         * lib/verify.h: Revamp so that this can be copied into assert.h,
12116         while retaining the ability to use it standalone as before.
12117         Rename private identifiers so as not to encroach on the
12118         standard C namespace, since this is now used by assert.h.
12119         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12120         the old verify_true.
12121         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12122         the old verify_true.  Use _GL_VERIFY_TYPE.
12123         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12124         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12125         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12126         defined when this file is copied into the replacement assert.h.
12127         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12128         and _Static_assert is not built in.
12129         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12130         defined, and use the new macros mentioned above.
12131         * doc/posix-headers/assert.texi: Document this.
12132
12133 2011-05-05  Bruno Haible  <bruno@clisp.org>
12134
12135         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12136         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12137         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12138         gl_REPLACE_FCLOSE here.
12139         * modules/fflush (Depends-on): Remove fclose.
12140         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12141         combination with module 'fclose'.
12142
12143 2011-05-05  Bruno Haible  <bruno@clisp.org>
12144
12145         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12146         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12147         gl_FUNC_FFLUSH.
12148         (gl_FUNC_FFLUSH): Use it.
12149         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12150         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12151         gl_REPLACE_FSEEKO here.
12152
12153 2011-05-05  Bruno Haible  <bruno@clisp.org>
12154
12155         tzset: Relicense under LGPL.
12156         * modules/tzset (License): Change to LGPL.
12157         No agreement needed; it's a no-op.
12158
12159         strtoimax, strtoumax: Relicense under LGPL.
12160         * modules/strtoimax (License): Change to LGPL.
12161         * modules/strtoumax (License): Likewise.
12162         With permission from Jim Meyering, Paul Eggert:
12163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12165
12166         getgroups: Relicense under LGPL.
12167         * modules/getgroups (License): Change to LGPL.
12168         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12172
12173         nanosleep: Relicense under LGPL.
12174         * modules/nanosleep (License): Change to LGPL.
12175         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12176         Haible:
12177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12181
12182         futimens: Relicense under LGPL.
12183         * modules/futimens (License): Change to LGPL.
12184         With permission from Eric Blake:
12185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12186
12187         fflush: Relicense under LGPL.
12188         * modules/fflush (License): Change to LGPL.
12189         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12193
12194         tmpfile: Relicense under LGPL.
12195         * modules/tmpfile (License): Change to LGPL.
12196         With permission from Ben Pfaff:
12197         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12198
12199         isfinite: Relicense under LGPL.
12200         * modules/isfinite (License): Change to LGPL.
12201         With permission from Ben Pfaff, Bruno Haible:
12202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12204
12205         acosl..tanl: Relicense under LGPL.
12206         * modules/acosl (License): Change to LGPL.
12207         * modules/asinl (License): Likewise.
12208         * modules/atanl (License): Likewise.
12209         * modules/cosl (License): Likewise.
12210         * modules/expl (License): Likewise.
12211         * modules/logl (License): Likewise.
12212         * modules/sinl (License): Likewise.
12213         * modules/sqrtl (License): Likewise.
12214         * modules/tanl (License): Likewise.
12215         Source code originally from glibc and Paolo Bonzini. Agreements:
12216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12218
12219 2011-05-05  Bruno Haible  <bruno@clisp.org>
12220
12221         signal: Define sighandler_t.
12222         * lib/signal.in.h (sighandler_t): New type.
12223         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12224         whether sighandler_t is defined.
12225         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12226         * modules/signal (Depends-on): Add extensions.
12227         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12228         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12229         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12230
12231 2011-05-05  Eric Blake  <eblake@redhat.com>
12232
12233         maint: remove useless REPLACE_*_H macros
12234         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12235         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12236         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12237         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12238         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12239         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12240         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12241         * m4/btowc.m4: Update callers.
12242         * m4/dirfd.m4: Likewise.
12243         * m4/duplocale.m4: Likewise.
12244         * m4/fchdir.m4: Likewise.
12245         * m4/fdopendir.m4: Likewise.
12246         * m4/inet_ntop.m4: Likewise.
12247         * m4/inet_pton.m4: Likewise.
12248         * m4/ioctl.m4: Likewise.
12249         * m4/mbrlen.m4: Likewise.
12250         * m4/mbrtowc.m4: Likewise.
12251         * m4/mbsinit.m4: Likewise.
12252         * m4/mbsnrtowcs.m4: Likewise.
12253         * m4/mbsrtowcs.m4: Likewise.
12254         * m4/poll.m4: Likewise.
12255         * m4/setlocale.m4: Likewise.
12256         * m4/wcrtomb.m4: Likewise.
12257         * m4/wcsnrtombs.m4: Likewise.
12258         * m4/wcsrtombs.m4: Likewise.
12259         * m4/wctob.m4: Likewise.
12260         * m4/wcwidth.m4: Likewise.
12261         * modules/posix_spawn: Likewise.
12262         * modules/posix_spawn_file_actions_addclose: Likewise.
12263         * modules/posix_spawn_file_actions_adddup2: Likewise.
12264         * modules/posix_spawn_file_actions_addopen: Likewise.
12265         * modules/posix_spawn_file_actions_destroy: Likewise.
12266         * modules/posix_spawn_file_actions_init: Likewise.
12267         * modules/posix_spawnattr_destroy: Likewise.
12268         * modules/posix_spawnattr_getflags: Likewise.
12269         * modules/posix_spawnattr_getpgroup: Likewise.
12270         * modules/posix_spawnattr_getschedparam: Likewise.
12271         * modules/posix_spawnattr_getschedpolicy: Likewise.
12272         * modules/posix_spawnattr_getsigdefault: Likewise.
12273         * modules/posix_spawnattr_getsigmask: Likewise.
12274         * modules/posix_spawnattr_init: Likewise.
12275         * modules/posix_spawnattr_setflags: Likewise.
12276         * modules/posix_spawnattr_setpgroup: Likewise.
12277         * modules/posix_spawnattr_setschedparam: Likewise.
12278         * modules/posix_spawnattr_setschedpolicy: Likewise.
12279         * modules/posix_spawnattr_setsigdefault: Likewise.
12280         * modules/posix_spawnattr_setsigmask: Likewise.
12281         * modules/posix_spawnp: Likewise.
12282
12283 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12284
12285         Add option to do-release-commit-and-tag to specify branch.
12286         * build-aux/do-release-commit-and-tag: Add --branch.
12287
12288 2011-05-03  Bruno Haible  <bruno@clisp.org>
12289
12290         Avoid unnecessary compilation units, through conditional dependencies.
12291         * modules/accept (Depends-on): Add conditions to the dependencies.
12292         * modules/acosl (Depends-on): Likewise.
12293         * modules/argz (Depends-on): Likewise.
12294         * modules/asinl (Depends-on): Likewise.
12295         * modules/atanl (Depends-on): Likewise.
12296         * modules/atoll (Depends-on): Likewise.
12297         * modules/bind (Depends-on): Likewise.
12298         * modules/btowc (Depends-on): Likewise.
12299         * modules/canonicalize-lgpl (Depends-on): Likewise.
12300         * modules/ceil (Depends-on): Likewise.
12301         * modules/ceilf (Depends-on): Likewise.
12302         * modules/ceill (Depends-on): Likewise.
12303         * modules/chdir-long (Depends-on): Likewise.
12304         * modules/chown (Depends-on): Likewise.
12305         * modules/close (Depends-on): Likewise.
12306         * modules/connect (Depends-on): Likewise.
12307         * modules/cosl (Depends-on): Likewise.
12308         * modules/dirfd (Depends-on): Likewise.
12309         * modules/dprintf (Depends-on): Likewise.
12310         * modules/dprintf-posix (Depends-on): Likewise.
12311         * modules/error (Depends-on): Likewise.
12312         * modules/euidaccess (Depends-on): Likewise.
12313         * modules/expl (Depends-on): Likewise.
12314         * modules/faccessat (Depends-on): Likewise.
12315         * modules/fchdir (Depends-on): Likewise.
12316         * modules/fclose (Depends-on): Likewise.
12317         * modules/fcntl (Depends-on): Likewise.
12318         * modules/fdopendir (Depends-on): Likewise.
12319         * modules/fflush (Depends-on): Likewise.
12320         * modules/floor (Depends-on): Likewise.
12321         * modules/floorf (Depends-on): Likewise.
12322         * modules/floorl (Depends-on): Likewise.
12323         * modules/fnmatch (Depends-on): Likewise.
12324         * modules/fopen (Depends-on): Likewise.
12325         * modules/fprintf-posix (Depends-on): Likewise.
12326         * modules/frexp (Depends-on): Likewise.
12327         * modules/frexp-nolibm (Depends-on): Likewise.
12328         * modules/frexpl (Depends-on): Likewise.
12329         * modules/frexpl-nolibm (Depends-on): Likewise.
12330         * modules/fseek (Depends-on): Likewise.
12331         * modules/fsusage (Depends-on): Likewise.
12332         * modules/ftell (Depends-on): Likewise.
12333         * modules/ftello (Depends-on): Likewise.
12334         * modules/futimens (Depends-on): Likewise.
12335         * modules/getcwd (Depends-on): Likewise.
12336         * modules/getcwd-lgpl (Depends-on): Likewise.
12337         * modules/getdelim (Depends-on): Likewise.
12338         * modules/getdomainname (Depends-on): Likewise.
12339         * modules/getgroups (Depends-on): Likewise.
12340         * modules/gethostname (Depends-on): Likewise.
12341         * modules/getline (Depends-on): Likewise.
12342         * modules/getlogin_r (Depends-on): Likewise.
12343         * modules/getopt-posix (Depends-on): Likewise.
12344         * modules/getpeername (Depends-on): Likewise.
12345         * modules/getsockname (Depends-on): Likewise.
12346         * modules/getsockopt (Depends-on): Likewise.
12347         * modules/getsubopt (Depends-on): Likewise.
12348         * modules/getusershell (Depends-on): Likewise.
12349         * modules/glob (Depends-on): Likewise.
12350         * modules/grantpt (Depends-on): Likewise.
12351         * modules/iconv_open (Depends-on): Likewise.
12352         * modules/iconv_open-utf (Depends-on): Likewise.
12353         * modules/inet_ntop (Depends-on): Likewise.
12354         * modules/inet_pton (Depends-on): Likewise.
12355         * modules/ioctl (Depends-on): Likewise.
12356         * modules/isapipe (Depends-on): Likewise.
12357         * modules/isfinite (Depends-on): Likewise.
12358         * modules/isinf (Depends-on): Likewise.
12359         * modules/lchown (Depends-on): Likewise.
12360         * modules/ldexpl (Depends-on): Likewise.
12361         * modules/link (Depends-on): Likewise.
12362         * modules/linkat (Depends-on): Likewise.
12363         * modules/listen (Depends-on): Likewise.
12364         * modules/logl (Depends-on): Likewise.
12365         * modules/lstat (Depends-on): Likewise.
12366         * modules/mbrlen (Depends-on): Likewise.
12367         * modules/mbrtowc (Depends-on): Likewise.
12368         * modules/mbsinit (Depends-on): Likewise.
12369         * modules/mbsnrtowcs (Depends-on): Likewise.
12370         * modules/mbsrtowcs (Depends-on): Likewise.
12371         * modules/mbtowc (Depends-on): Likewise.
12372         * modules/memcmp (Depends-on): Likewise.
12373         * modules/mkdir (Depends-on): Likewise.
12374         * modules/mkdtemp (Depends-on): Likewise.
12375         * modules/mkfifo (Depends-on): Likewise.
12376         * modules/mkfifoat (Depends-on): Likewise.
12377         * modules/mknod (Depends-on): Likewise.
12378         * modules/mkostemp (Depends-on): Likewise.
12379         * modules/mkostemps (Depends-on): Likewise.
12380         * modules/mkstemp (Depends-on): Likewise.
12381         * modules/mkstemps (Depends-on): Likewise.
12382         * modules/mktime (Depends-on): Likewise.
12383         * modules/nanosleep (Depends-on): Likewise.
12384         * modules/open (Depends-on): Likewise.
12385         * modules/openat (Depends-on): Likewise.
12386         * modules/perror (Depends-on): Likewise.
12387         * modules/poll (Depends-on): Likewise.
12388         * modules/popen (Depends-on): Likewise.
12389         * modules/posix_spawn (Depends-on): Likewise.
12390         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12391         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12392         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12393         * modules/posix_spawnp (Depends-on): Likewise.
12394         * modules/pread (Depends-on): Likewise.
12395         * modules/printf-posix (Depends-on): Likewise.
12396         * modules/ptsname (Depends-on): Likewise.
12397         * modules/putenv (Depends-on): Likewise.
12398         * modules/pwrite (Depends-on): Likewise.
12399         * modules/readline (Depends-on): Likewise.
12400         * modules/readlink (Depends-on): Likewise.
12401         * modules/readlinkat (Depends-on): Likewise.
12402         * modules/recv (Depends-on): Likewise.
12403         * modules/recvfrom (Depends-on): Likewise.
12404         * modules/regex (Depends-on): Likewise.
12405         * modules/remove (Depends-on): Likewise.
12406         * modules/rename (Depends-on): Likewise.
12407         * modules/renameat (Depends-on): Likewise.
12408         * modules/rmdir (Depends-on): Likewise.
12409         * modules/round (Depends-on): Likewise.
12410         * modules/roundf (Depends-on): Likewise.
12411         * modules/roundl (Depends-on): Likewise.
12412         * modules/rpmatch (Depends-on): Likewise.
12413         * modules/select (Depends-on): Likewise.
12414         * modules/send (Depends-on): Likewise.
12415         * modules/sendto (Depends-on): Likewise.
12416         * modules/setenv (Depends-on): Likewise.
12417         * modules/setlocale (Depends-on): Likewise.
12418         * modules/setsockopt (Depends-on): Likewise.
12419         * modules/shutdown (Depends-on): Likewise.
12420         * modules/sigaction (Depends-on): Likewise.
12421         * modules/signbit (Depends-on): Likewise.
12422         * modules/sigprocmask (Depends-on): Likewise.
12423         * modules/sinl (Depends-on): Likewise.
12424         * modules/sleep (Depends-on): Likewise.
12425         * modules/snprintf (Depends-on): Likewise.
12426         * modules/snprintf-posix (Depends-on): Likewise.
12427         * modules/socket (Depends-on): Likewise.
12428         * modules/sprintf-posix (Depends-on): Likewise.
12429         * modules/sqrtl (Depends-on): Likewise.
12430         * modules/stat (Depends-on): Likewise.
12431         * modules/strchrnul (Depends-on): Likewise.
12432         * modules/strdup-posix (Depends-on): Likewise.
12433         * modules/strerror (Depends-on): Likewise.
12434         * modules/strerror_r-posix (Depends-on): Likewise.
12435         * modules/strndup (Depends-on): Likewise.
12436         * modules/strnlen (Depends-on): Likewise.
12437         * modules/strptime (Depends-on): Likewise.
12438         * modules/strsep (Depends-on): Likewise.
12439         * modules/strsignal (Depends-on): Likewise.
12440         * modules/strstr-simple (Depends-on): Likewise.
12441         * modules/strtod (Depends-on): Likewise.
12442         * modules/strtoimax (Depends-on): Likewise.
12443         * modules/strtok_r (Depends-on): Likewise.
12444         * modules/strtoumax (Depends-on): Likewise.
12445         * modules/symlink (Depends-on): Likewise.
12446         * modules/symlinkat (Depends-on): Likewise.
12447         * modules/tanl (Depends-on): Likewise.
12448         * modules/tcgetsid (Depends-on): Likewise.
12449         * modules/tmpfile (Depends-on): Likewise.
12450         * modules/trunc (Depends-on): Likewise.
12451         * modules/truncf (Depends-on): Likewise.
12452         * modules/truncl (Depends-on): Likewise.
12453         * modules/uname (Depends-on): Likewise.
12454         * modules/unlink (Depends-on): Likewise.
12455         * modules/unlockpt (Depends-on): Likewise.
12456         * modules/unsetenv (Depends-on): Likewise.
12457         * modules/usleep (Depends-on): Likewise.
12458         * modules/utimensat (Depends-on): Likewise.
12459         * modules/vasprintf (Depends-on): Likewise.
12460         * modules/vdprintf (Depends-on): Likewise.
12461         * modules/vdprintf-posix (Depends-on): Likewise.
12462         * modules/vfprintf-posix (Depends-on): Likewise.
12463         * modules/vprintf-posix (Depends-on): Likewise.
12464         * modules/vsnprintf (Depends-on): Likewise.
12465         * modules/vsnprintf-posix (Depends-on): Likewise.
12466         * modules/vsprintf-posix (Depends-on): Likewise.
12467         * modules/wcrtomb (Depends-on): Likewise.
12468         * modules/wcscasecmp (Depends-on): Likewise.
12469         * modules/wcscspn (Depends-on): Likewise.
12470         * modules/wcsdup (Depends-on): Likewise.
12471         * modules/wcsncasecmp (Depends-on): Likewise.
12472         * modules/wcsnrtombs (Depends-on): Likewise.
12473         * modules/wcspbrk (Depends-on): Likewise.
12474         * modules/wcsrtombs (Depends-on): Likewise.
12475         * modules/wcsspn (Depends-on): Likewise.
12476         * modules/wcsstr (Depends-on): Likewise.
12477         * modules/wcstok (Depends-on): Likewise.
12478         * modules/wcswidth (Depends-on): Likewise.
12479         * modules/wctob (Depends-on): Likewise.
12480         * modules/wctomb (Depends-on): Likewise.
12481         * modules/wctype (Depends-on): Likewise.
12482         * modules/wcwidth (Depends-on): Likewise.
12483         * modules/write (Depends-on): Likewise.
12484
12485 2011-05-03  Bruno Haible  <bruno@clisp.org>
12486
12487         Support for conditional dependencies.
12488         * doc/gnulib.texi (Module description): Document the syntax of
12489         conditional dependencies.
12490         * gnulib-tool: New option --conditional-dependencies.
12491         (func_usage): Document it.
12492         (cond_dependencies): New variable.
12493         (func_get_automake_snippet_conditional,
12494         func_get_automake_snippet_unconditional): New functions, extracted from
12495         func_get_automake_snippet.
12496         (func_get_automake_snippet): Use them.
12497         (sed_first_32_chars): New variable.
12498         (func_module_shellfunc_name): New function.
12499         (func_module_shellvar_name): New function.
12500         (func_module_conditional_name): New function.
12501         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12502         func_cond_module_condition): New functions.
12503         (func_modules_transitive_closure): Add support for conditional
12504         dependencies.
12505         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12506         conditional automake snippet in an automake conditional.
12507         (func_emit_autoconf_snippets): Emit shell functions that contain the
12508         code for conditional modules.
12509         (func_import, func_create_testdir): Update specification.
12510
12511 2011-05-03  Eric Blake  <eblake@redhat.com>
12512
12513         test-getaddrinfo: report error information
12514         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12515
12516 2011-05-03  Jim Meyering  <meyering@redhat.com>
12517
12518         bootstrap: avoid build failure when $GZIP is set
12519         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12520         program name.  If defined at all, it is supposed to list gzip options.
12521         Reported by Alan Curry in http://debbugs.gnu.org/8609
12522
12523 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12524
12525         readme-release: new module with release instructions
12526         * modules/readme-release: New module.
12527         * top/README-release: New file, from coreutils, grep, diffutils.
12528         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12529
12530 2011-05-02  Eric Blake  <eblake@redhat.com>
12531
12532         fflush: also replace fclose when fixing fflush
12533         * modules/fflush (Depends-on): Add fclose.
12534         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12535         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12536         memstreams with no backing fd.
12537         * doc/posix-functions/fclose.texi (fclose): Document the use of
12538         fflush module to fix the bug.
12539         * tests/test-fclose.c (main): Relax test when fclose is used in
12540         isolation.
12541
12542         fclose: add some tests
12543         * modules/fclose-tests: New test module.
12544         * tests/test-fclose.c: New file.
12545         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12546
12547         fclose: reduced dependencies
12548         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12549         simpler lseek.
12550         * lib/fclose.c (rpl_fclose): Likewise.
12551         Reported by Simon Josefsson.
12552
12553         exit: drop remaining clients
12554         * modules/argmatch (Depends-on): Replace exit with stdlib.
12555         * modules/copy-file (Depends-on): Likewise.
12556         * modules/execute (Depends-on): Likewise.
12557         * modules/exitfail (Depends-on): Likewise.
12558         * modules/obstack (Depends-on): Likewise.
12559         * modules/pagealign_alloc (Depends-on): Likewise.
12560         * modules/pipe-filter-gi (Depends-on): Likewise.
12561         * modules/pipe-filter-ii (Depends-on): Likewise.
12562         * modules/savewd (Depends-on): Likewise.
12563         * modules/spawn-pipe (Depends-on): Likewise.
12564         * modules/wait-process (Depends-on): Likewise.
12565         * modules/xsetenv (Depends-on): Likewise.
12566         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12567         * modules/git-merge-changelog (Depends-on): Likewise.
12568         * modules/long-options (Depends-on): Likewise.
12569         * modules/pt_chown (Depends-on): Likewise.
12570         * modules/sysexits (Depends-on): Likewise.
12571
12572         freading: relax license from LGPLv3+ to LGPLv2+
12573         * modules/freading (License): Relax LGPL version.
12574
12575 2011-05-02  Bruno Haible  <bruno@clisp.org>
12576
12577         fchdir: Remove unused dependencies.
12578         * modules/fchdir (Depends-on): Remove include_next.
12579
12580 2011-05-02  Bruno Haible  <bruno@clisp.org>
12581
12582         gnulib-tool: Refactor.
12583         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12584         from func_emit_autoconf_snippets.
12585         (func_emit_autoconf_snippets): Use it.
12586
12587 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12588
12589         * NEWS: Document removal of 'exit'.
12590         * modules/exit: Remove file.
12591
12592 2011-05-01  Bruno Haible  <bruno@clisp.org>
12593
12594         Update DEPENDENCIES.
12595         * DEPENDENCIES (gettext): Recommend the newest release.
12596         Reported by Simon Josefsson.
12597
12598 2011-05-01  Bruno Haible  <bruno@clisp.org>
12599
12600         gnulib-tool: Reduce code duplication.
12601         * gnulib-tool (func_emit_autoconf_snippets): New function.
12602         (func_import, func_create_testdir): Use it.
12603
12604 2011-04-30  Eric Blake  <eblake@redhat.com>
12605
12606         fclose: don't fail on non-seekable input stream
12607         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12608         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12609         since fflush is allowed to fail in that case.
12610
12611 2011-04-30  Bruno Haible  <bruno@clisp.org>
12612
12613         dup3: cleanup
12614         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12615
12616 2011-04-30  Bruno Haible  <bruno@clisp.org>
12617
12618         netdb: Make it work in C++ mode.
12619         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12620         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12621         module.
12622         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12623         gl_MODULE_INDICATOR_FOR_TESTS.
12624         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12625         * modules/netdb-c++-tests: New file.
12626         * tests/test-netdb-c++.cc: New file.
12627
12628 2011-04-30  Bruno Haible  <bruno@clisp.org>
12629
12630         New modules 'vfscanf', 'vscanf'.
12631         * modules/vfscanf: New file.
12632         * modules/vscanf: New file.
12633         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12634         here.
12635         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12636         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12637
12638 2011-04-30  Bruno Haible  <bruno@clisp.org>
12639
12640         passfd: Add comments.
12641         * lib/passfd.c: Add comments about platforms.
12642
12643 2011-04-30  Bruno Haible  <bruno@clisp.org>
12644
12645         sys_uio: Make <sys/uio.h> self-contained.
12646         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12647         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12648
12649 2011-04-30  Bruno Haible  <bruno@clisp.org>
12650
12651         sys_socket: Ensure 'struct iovec' definition.
12652         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12653         <sys/socket.h>.
12654         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12655
12656 2011-04-30  Bruno Haible  <bruno@clisp.org>
12657
12658         sys_uio: Protect definition of 'struct iovec'.
12659         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12660         it as a C struct.
12661
12662 2011-04-30  Bruno Haible  <bruno@clisp.org>
12663
12664         manywarnings: fix indentation
12665         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12666
12667 2011-04-30  Pádraig Brady <P@draigBrady.com>
12668
12669         manywarnings: add -Wno-missing-field-initializers if needed.
12670         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12671         option if it's needed to allow initialization with { 0, }
12672
12673 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12674
12675         announce-gen: cosmetic improvement
12676         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12677
12678 2011-04-29  Jim Meyering  <meyering@redhat.com>
12679
12680         vc-list-files: indent with spaces, not TABs
12681         * build-aux/vc-list-files: Convert leading TABs to spaces,
12682         to match the style of most other files in gnulib.
12683
12684         announce-gen: indent with spaces, not TABs
12685         * build-aux/announce-gen: Convert all TABs to spaces, to match
12686         the style of most other files in gnulib.
12687
12688 2011-04-29  Eric Blake  <eblake@redhat.com>
12689
12690         quotearg: avoid uninitialized variable use
12691         * lib/quotearg.c (quoting_options_from_style): Initialize
12692         remaining fields, and ensure that custom styles are only used via
12693         quoting_options rather than quoting_style.
12694
12695 2011-04-29  Jim Meyering  <meyering@redhat.com>
12696
12697         maint.mk: remove unused VC-tag variable
12698         * top/maint.mk (VC-tag): Remove unused variable.
12699
12700 2011-04-29  Bruno Haible  <bruno@clisp.org>
12701
12702         netdb: fix gai_strerror replacements
12703         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12704         * modules/netdb: Substitute it.
12705
12706 2011-04-29  Jim Meyering  <meyering@redhat.com>
12707
12708         test-getcwd.c: avoid new set-but-not-used warning
12709         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12710         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12711         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12712         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12713
12714         test-hash.c: avoid a new shadowing warning
12715         * tests/test-hash.c (main): Don't shadow "dup".
12716
12717 2011-04-28  Eric Blake  <eblake@redhat.com>
12718
12719         getaddrinfo: fix gai_strerror signature
12720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12721         and work around mingw with UNICODE defined.
12722         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12723         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12724         * modules/netdb (Makefile.am): Substitute it.
12725         * lib/netdb.in.h (gai_strerror): Declare replacement.
12726         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12727         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12728         the fix.
12729
12730         getsockopt: avoid compiler warning
12731         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12732         Reported by Matthias Bolte.
12733
12734         tests: drop unused link dependency
12735         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12736         * modules/dirent-safer-tests (Makefile.am): Likewise.
12737         * modules/fdopendir-tests (Makefile.am): Likewise.
12738         * modules/mkfifoat-tests (Makefile.am): Likewise.
12739         * modules/openat-safer-tests (Makefile.am): Likewise.
12740         * modules/openat-tests (Makefile.am): Likewise.
12741         * modules/readlinkat-tests (Makefile.am): Likewise.
12742         * modules/symlinkat-tests (Makefile.am): Likewise.
12743         * modules/linkat-tests (Makefile.am): Likewise.
12744         (Depends-on): Switch to filenamecat-lgpl.
12745         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12746         LIBINTL.
12747         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12748         * tests/test-linkat.c (main): Don't require xalloc.
12749
12750         hash, mgetgroups: drop xalloc dependency
12751         * lib/hash.c (includes): Adjust includes.
12752         * lib/mgetgroups.c (includes): Likewise.
12753         (xgetgroups): Move...
12754         * lib/xgetgroups.c: ...to new file.
12755         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12756         * modules/xgetgroups: New file, split from...
12757         * modules/mgetgroups: ...here.
12758         (Depends-on): Add xalloc-oversized.
12759         * modules/hash (Depends-on): Likewise.
12760         * modules/hash-tests (Depends-on): Drop xalloc.
12761         (test_hash_LDADD): Drop unused library.
12762         * tests/test-hash.c (main): Break xalloc dependency.
12763         (includes): Drop unused include.
12764
12765         xalloc-oversized: new module
12766         * modules/xalloc-oversized: New module.
12767         * modules/xalloc (Depends-on): Add it.
12768         * lib/xalloc.h (xalloc_oversized): Move...
12769         * lib/xalloc-oversized.h: ...into new file.
12770
12771         utimecmp: drop dependency on xmalloc
12772         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12773         due to memory pressure.
12774         * modules/utimecmp (Depends-on): Drop xalloc.
12775
12776 2011-04-27  Eric Blake  <eblake@redhat.com>
12777
12778         getcwd: fix mingw bugs
12779         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12780         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12781         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12782
12783 2011-04-27  Bruno Haible  <bruno@clisp.org>
12784
12785         mkstemps: Ensure declaration on MacOS X 10.5.
12786         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12787         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12788         MacOS X.
12789
12790 2011-04-27  Bruno Haible  <bruno@clisp.org>
12791
12792         mkstemp: More documentation.
12793         * doc/posix-functions/mkstemp.texi: Document header file problem on
12794         MacOS X.
12795
12796 2011-04-27  Bruno Haible  <bruno@clisp.org>
12797
12798         mkstemp: Tweak configure message when cross-compiling.
12799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12800         result as a guess.
12801
12802 2011-04-27  Bruno Haible  <bruno@clisp.org>
12803
12804         clean-temp: Clarify what it does.
12805         * lib/clean-temp.h: Add more comments.
12806         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12807         module.
12808         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12809         * doc/glibc-functions/mkstemps.texi: Likewise.
12810         * doc/glibc-functions/mkostemps.texi: Likewise.
12811
12812 2011-04-27  Eric Blake  <eblake@redhat.com>
12813
12814         fchdir: avoid extra chdir and fix test
12815         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12816         getcwd-lgpl.
12817         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12818         have to be canonical.
12819         (canonicalize_file_name): Drop unused macro.
12820         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12821
12822         filenamecat-lgpl: fix licence
12823         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12824         when it was first created.
12825
12826         linkat, renameat: add missing dependency
12827         * modules/linkat (Depends-on): Require getcwd-lgpl.
12828         * modules/renameat (Depends-on): Likewise.
12829
12830         tests: reduce dependencies
12831         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12832         * tests/test-renameat.c (main): Likewise.
12833         * modules/linkat-tests (Depends-on): Relax dependency.
12834         * modules/renameat-tests (Depends-on): Likewise.
12835         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12836         dependency explicit.
12837
12838         save-cwd: reduce default dependency
12839         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12840         * lib/save-cwd.c: Update comments.
12841         * NEWS: Document the semantic change.
12842
12843         getcwd: enhance tests
12844         * tests/test-getcwd-lgpl.c: New file, taken from...
12845         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12846         repeat long path stress tests from m4 probe.
12847         * modules/getcwd-lgpl-tests: New module.
12848         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12849         * m4/getcwd-abort-bug.m4: Update comment.
12850         * m4/getcwd-path-max.m4: Likewise.
12851
12852         getcwd-lgpl: new module
12853         * modules/getcwd-lgpl: New module.
12854         * lib/getcwd-lgpl.c: New file.
12855         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12856         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12857         * modules/getcwd (configure.ac): Set C witness.
12858         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12859
12860         getcwd: tweak comments
12861         * m4/getcwd-abort-bug.m4: Fix comments.
12862         * m4/getcwd-path-max.m4: Likewise.
12863         * m4/getcwd.m4: Likewise.
12864
12865 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12866         and Eric Blake  <eblake@redhat.com>
12867
12868         mkstemp: replace if system version uses wrong permissions
12869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12870         read/write mode bits set in file created by mkstemp.
12871         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12872
12873 2011-04-27  Eric Blake  <eblake@redhat.com>
12874
12875         passfd: avoid compiler warning
12876         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12877         Reported by Laine Stump.
12878
12879 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12880
12881         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12882         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12883
12884 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12885         and Eric Blake  <eblake@redhat.com>
12886
12887         mkstemp: mention clean-temp module
12888         * lib/mkstemp.c: Add comment.
12889         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12890
12891 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12892
12893         inttypes: also provide default values for 32-bit tests
12894         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12895         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12896
12897 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12898
12899         strtoumax: remove dependency on strtoimax
12900         This is like the strtoull change of yesterday.
12901         * modules/strtoumax (Files): Add lib/strtoimax.c.
12902         (Depends-on): Remove strtoimax and add verify.
12903
12904         inttypes-incomplete: new module
12905         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12906         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12907         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12908         of gl_INTTYPES_H.
12909         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12910         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12911         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12912         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12913         * modules/strtoumax, modules/xstrtol (Depends-on):
12914         Depend on inttypes-incomplete, not inttypes.
12915         * modules/inttypes-incomplete: New module, containing the contents
12916         of the old modules/inttypes module, except that the Files: section
12917         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12918         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12919         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12920         (Depends-on): Depend only on inttypes-incomplete.
12921         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12922
12923         inttypes: omit now-redundant strtoimax and strtoumax work
12924         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12925         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12926
12927         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12928         This supports apps that need pointers to strtoimax and strtoumax,
12929         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12930         nonexistent functions.  See
12931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12932         et seq.
12933         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12934         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12935         a macro.
12936         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12937
12938 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12939
12940         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12941
12942 2011-04-25  Bruno Haible  <bruno@clisp.org>
12943
12944         strtol, strtoul: Mark modules as obsolete.
12945         * modules/strtol (Status, Notice): New sections.
12946         * modules/strtoul (Status, Notice): New sections.
12947
12948 2011-04-25  Bruno Haible  <bruno@clisp.org>
12949
12950         strtod: Remove check for strtod, unless supporting old platforms.
12951         * modules/strtod-obsolete: New file.
12952         * m4/strtod-obsolete.m4: New file.
12953         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12954         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12955         * modules/strtod (Depends-on): Add strtod-obsolete.
12956         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12957
12958 2011-04-25  Bruno Haible  <bruno@clisp.org>
12959
12960         strcase: Make module obsolete.
12961         * modules/strcase (Status, Notice): New sections.
12962
12963 2011-04-25  Bruno Haible  <bruno@clisp.org>
12964
12965         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12966         * modules/dup2-obsolete: New file.
12967         * m4/dup2-obsolete.m4: New file.
12968         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12969         gl_FUNC_DUP2_OBSOLETE is not also defined.
12970         * modules/dup2 (Depends-on): Add dup2-obsolete.
12971         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12972
12973 2011-04-25  Bruno Haible  <bruno@clisp.org>
12974
12975         strnlen: Avoid memchr related link error on old obsolete platforms.
12976         * modules/memchr-obsolete: New file.
12977         * m4/memchr-obsolete.m4: New file.
12978         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12979         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12980         * modules/memchr (Depends-on): Add memchr-obsolete.
12981         * modules/strnlen (Depends-on): Likewise.
12982         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12983
12984 2011-04-25  Jim Meyering  <meyering@redhat.com>
12985
12986         maint.mk: makefile_at_at_check extend and clean up
12987         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12988         in addition to */Makefile.am.
12989         Exempt legitimate uses of @VAR@ notation, e.g.,
12990         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12991         Remove obsolete coreutils-specific comment.
12992         Prompted by discussion here:
12993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12994
12995 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12996
12997         strtoul: remove dependency on strtol
12998         This is so that 'configure' need not check for strtol merely because
12999         the application needs strtoul.
13000         * modules/strtoul (Files): Add lib/strtol.c.
13001         (Depends-on): Remove strtol.
13002
13003         strtoull: remove dependency on strtoul
13004         This is like the strtoll change.
13005         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13006         (Depends-on): Remove strtoul.
13007
13008         strtoll: remove dependency on strtol
13009         This is so that 'configure' need not check for strtol merely because
13010         the application needs strtoll.
13011         * modules/strtoll (Files): Add lib/strtol.c.
13012         (Depends-on): Remove strtol.
13013
13014 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13015
13016         inttypes: Move some configure check to module 'imaxdiv'.
13017         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13018         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13019         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13020
13021 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13022
13023         inttypes: Move some configure check to module 'imaxabs'.
13024         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13025         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13026         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13027
13028 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13029
13030         inttypes: Remove configure tests that are not needed since 2009-12-31.
13031         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13032         gl_cv_header_working_inttypes_h.
13033
13034 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13035
13036         * modules/strnlen (Depends-on): Remove memchr.
13037         The strnlen implementation doesn't need the memchr module's fixes; see
13038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13039
13040         strtol: remove dependency on wchar
13041         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13042         * modules/strtol (Depends-on): Remove wchar.
13043
13044 2011-04-21  Eric Blake  <eblake@redhat.com>
13045
13046         passfd: fix test regression on Linux
13047         * modules/passfd-tests (configure.ac): Correct socketpair check.
13048
13049         passfd: speed up configure and drop unused code
13050         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13051         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13052         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13053         Instead of probing at configure for unix_scm_rights_bsd44_way,
13054         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13055         check to a struct member probe.
13056         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13057         (sendfd, recvfd): Update preprocessor checks.
13058         * modules/passfd (Files): Reflect rename, and drop unused file.
13059         (Depends-on): Drop unused dependency.
13060
13061         passfd: allow compilation on mingw
13062         * modules/sys_socket (Depends-on): Add sys_uio.
13063         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13064         iovec and a minimal struct msghdr.
13065         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13066         * tests/test-sys_socket.c (main): Enhance test.
13067         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13068         guaranteed to provide what we need.
13069         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13070         * modules/passfd-tests (Depends-on): Add sys_wait.
13071         * tests/test-passfd.c (main): Skip test on mingw, for now.
13072         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13073         partial 'struct msghdr' implementation.
13074
13075         sys_uio: new module
13076         * modules/sys_uio: New module.
13077         * modules/sys_uio-tests: Likewise.
13078         * lib/sys_uio.in.h: New file.
13079         * m4/sys_uio_h.m4: Likewise.
13080         * tests/test-sys_uio.c: Likewise.
13081         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13082         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13083
13084 2011-04-20  Jim Meyering  <meyering@redhat.com>
13085
13086         useless-if-before-free: avoid false-positive
13087         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13088         disjunct so that it too requires a terminating ";".  Without that,
13089         this script would identify as useless one statement from gcc that
13090         was not:
13091           if (aligned_ptr)
13092             free (((void **) aligned_ptr) [-1]);
13093
13094 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13095
13096         doc: update users.txt.
13097         * users.txt: Add barcode.
13098
13099 2011-04-19  Bruno Haible  <bruno@clisp.org>
13100
13101         ioctl: Remove link dependency on native Windows.
13102         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13103         (gl_close_fn, gl_ioctl_fn): New types.
13104         (struct fd_hook): Renamed from struct close_hook. Change type of
13105         private_close_fn field. Add private_ioctl_fn field.
13106         (close_hook_fn): Add parameter for primary close method.
13107         (execute_close_hooks, execute_all_close_hooks): Likewise.
13108         (ioctl_hook_fn): New type.
13109         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13110         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13111         argument.
13112         (unregister_fd_hook): Renamed from unregister_close_hook.
13113         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13114         Don't include <unistd.h>.
13115         (close): Remove undef.
13116         (anchor): Update.
13117         (execute_close_hooks): Add argument for primary close method.
13118         (execute_all_close_hooks): Likewise.
13119         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13120         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13121         argument. Allow each argument to be NULL.
13122         (unregister_fd_hook): Renamed from unregister_close_hook.
13123         * lib/close.c (rpl_close): Pass 'close' function pointer to
13124         execute_all_close_hooks.
13125         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13126         (primary_ioctl): New function.
13127         (ioctl): Don't call ioctlsocket here. Instead, call
13128         execute_all_ioctl_hooks.
13129         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13130         close method.
13131         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13132         (fd_sockets_hook): Renamed from close_sockets_hook.
13133         (gl_sockets_startup, gl_sockets_cleanup): Update.
13134         * modules/fd-hook: Renamed from modules/close-hook. Update.
13135         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13136         * modules/sockets (Depends-on): Likewise.
13137         * modules/ioctl (Depends-on): Add fd-hook.
13138         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13139         GNULIB_SOCKET.
13140
13141 2011-04-19  Bruno Haible  <bruno@clisp.org>
13142
13143         Move the support of O_NONBLOCK in open() to the 'open' module.
13144         * modules/nonblocking (Depends-on): Remove 'open'.
13145         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13146         gl_cv_have_open_O_NONBLOCK.
13147         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13148         O_NONBLOCK support.
13149         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13150
13151 2011-04-17  Bruno Haible  <bruno@clisp.org>
13152
13153         pipe2: Simplify code.
13154         * lib/pipe2.c (pipe2): Reduce code duplication.
13155
13156 2011-04-17  Bruno Haible  <bruno@clisp.org>
13157
13158         nonblocking: Add comment.
13159         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13160
13161 2011-04-17  Bruno Haible  <bruno@clisp.org>
13162
13163         nonblocking: Add tests for sockets.
13164         * tests/test-nonblocking-socket.sh: New file.
13165         * tests/test-nonblocking-socket-main.c: New file.
13166         * tests/test-nonblocking-socket-child.c: New file.
13167         * tests/test-nonblocking-socket.h: New file.
13168         * tests/socket-server.h: New file.
13169         * tests/socket-client.h: New file.
13170         * modules/nonblocking-socket-tests: New file.
13171         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13172
13173 2011-04-17  Bruno Haible  <bruno@clisp.org>
13174
13175         nonblocking: Add tests for pipes.
13176         * tests/test-nonblocking-pipe.sh: New file.
13177         * tests/test-nonblocking-pipe-main.c: New file.
13178         * tests/test-nonblocking-pipe-child.c: New file.
13179         * tests/test-nonblocking-pipe.h: New file.
13180         * tests/test-nonblocking-writer.h: New file.
13181         * tests/test-nonblocking-reader.h: New file.
13182         * tests/test-nonblocking-misc.h: New file.
13183         * modules/nonblocking-pipe-tests: New file.
13184         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13185
13186 2011-04-16  Bruno Haible  <bruno@clisp.org>
13187
13188         gettext: Clarify the needed programmer actions.
13189         * modules/gettext (Notice): New field.
13190         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13191
13192 2011-04-16  Bruno Haible  <bruno@clisp.org>
13193
13194         strchrnul: Tweak last commit.
13195         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13196         bug.
13197         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13198         as in _GL_FUNCDECL_SYS.
13199         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13200         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13201
13202 2011-04-15  Eric Blake  <eblake@redhat.com>
13203
13204         strchrnul: work around cygwin bug
13205         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13206         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13208         * modules/string (Makefile.am): Substitute it.
13209         * lib/string.in.h (strchrnul): Use it.
13210
13211 2011-04-15  Bruno Haible  <bruno@clisp.org>
13212
13213         Don't require lib/stdio-write.c when only module 'stdio' is used.
13214         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13215         invocation.
13216         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13217
13218 2011-04-14  Bruno Haible  <bruno@clisp.org>
13219
13220         Support non-blocking pipe I/O in read() on native Windows.
13221         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13222         (read): New declaration.
13223         * lib/read.c: New file.
13224         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13225         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13226         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13227         vscanf): New declarations.
13228         * lib/stdio-read.c: New file.
13229         * m4/read.m4: New file.
13230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13231         REPLACE_READ.
13232         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13233         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13234         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13235         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13236         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13237         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13238         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13239         * modules/read: New file.
13240         * modules/nonblocking (Files): Add lib/stdio-read.c.
13241         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13242         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13243         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13244         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13245         * modules/pread (Depends-on): Add read.
13246         * modules/safe-read (Depends-on): Likewise.
13247         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13248         gets, scanf, vfscanf, vscanf): Verify signatures.
13249         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13250         problem with non-blocking pipes.
13251         * doc/posix-functions/fgetc.texi: Likewise.
13252         * doc/posix-functions/fgets.texi: Likewise.
13253         * doc/posix-functions/fread.texi: Likewise.
13254         * doc/posix-functions/fscanf.texi: Likewise.
13255         * doc/posix-functions/getc.texi: Likewise.
13256         * doc/posix-functions/getchar.texi: Likewise.
13257         * doc/posix-functions/gets.texi: Likewise.
13258         * doc/posix-functions/scanf.texi: Likewise.
13259         * doc/posix-functions/vfscanf.texi: Likewise.
13260         * doc/posix-functions/vscanf.texi: Likewise.
13261
13262 2011-04-14  Bruno Haible  <bruno@clisp.org>
13263
13264         Support non-blocking pipe I/O in write() on native Windows.
13265         * lib/write.c (rpl_write): Split a write request that failed merely
13266         because the byte count was larger than the pipe buffer's size.
13267         * doc/posix-functions/write.texi: Mention the problem with large byte
13268         counts.
13269
13270 2011-04-14  Bruno Haible  <bruno@clisp.org>
13271
13272         wchar: Ensure that wchar_t gets defined on uClibc.
13273         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13274         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13275
13276 2011-04-13  Bruno Haible  <bruno@clisp.org>
13277
13278         safe-write, full-read: Avoid unnecessary compilation units.
13279         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13280         (Depends-on): Remove safe-read. Add ssize_t.
13281         * modules/full-read (Files): Add lib/full-write.c.
13282         (Depends-on): Add full-write.
13283
13284 2011-04-13  Bruno Haible  <bruno@clisp.org>
13285
13286         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13287         * modules/pwrite (Depends-on): Add 'write'.
13288
13289 2011-04-13  Bruno Haible  <bruno@clisp.org>
13290
13291         Support non-blocking pipe I/O in write() on native Windows.
13292         * lib/unistd.in.h (write): Enable replacement also if
13293         GNULIB_UNISTD_H_NONBLOCKING is 1.
13294         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13295         (rpl_write): When failing to write on a non-blocking pipe, change
13296         errno from ENOSPC to EAGAIN.
13297         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13298         putchar, puts, vfprintf, vprintf): Enable replacement also if
13299         GNULIB_STDIO_H_NONBLOCKING is 1.
13300         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13301         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13302         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13303         CALL_WITH_SIGPIPE_EMULATION.
13304         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13305         * m4/nonblocking.m4: New file.
13306         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13307         for non-blocking I/O support.
13308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13309         GNULIB_UNISTD_H_NONBLOCKING.
13310         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13311         required for non-blocking I/O support.
13312         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13313         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13314         lib/stdio-write.c, m4/asm-underscore.m4.
13315         (Depends-on): Add stdio, unistd.
13316         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13317         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13318         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13319         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13320         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13321         problem with non-blocking pipes.
13322         * doc/posix-functions/fputc.texi: Likewise.
13323         * doc/posix-functions/fputs.texi: Likewise.
13324         * doc/posix-functions/fwrite.texi: Likewise.
13325         * doc/posix-functions/printf.texi: Likewise.
13326         * doc/posix-functions/putc.texi: Likewise.
13327         * doc/posix-functions/putchar.texi: Likewise.
13328         * doc/posix-functions/puts.texi: Likewise.
13329         * doc/posix-functions/vfprintf.texi: Likewise.
13330         * doc/posix-functions/vprintf.texi: Likewise.
13331         * doc/posix-functions/write.texi: Likewise.
13332
13333 2011-04-10  Jim Meyering  <meyering@redhat.com>
13334
13335         maint.mk: prohibit doubled words
13336         Detect them also when they're separated by a newline.
13337         There are 3 ways to customize it:
13338           - disable the test on a per file basis, as usual with rules using
13339             $(VC_LIST_EXCEPT)
13340           - replace the default doubled-word-selecting regexp (affects all files)
13341           - ignore a particular file-vs-doubled-word match
13342         I nearly used that last one to ignore the "is is" match in
13343         coreutils' NEWS file, since the text was "ls -is is ..."
13344         To do that, I would have added this line to cfg.mk:
13345           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13346         but it would have ignored any "is is" match in NEWS.
13347         Low probability, but still...
13348         Instead, I changed the text, slightly:
13349           -  ls -is is now consistent with ls -lis in ignoring values returned
13350           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13351         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13352         (prohibit_doubled_word_): Define.
13353         (sc_prohibit_doubled_word): New rule.
13354         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13355
13356 2011-04-10  Jim Meyering  <meyering@redhat.com>
13357
13358         maint: fix doubled-word typo in comment
13359         * m4/gethostname.m4: s/is is/it is/
13360         * m4/getdomainname.m4: Likewise.
13361
13362 2011-04-10  Jim Meyering  <meyering@redhat.com>
13363
13364         maint: remove doubled word: s/it it/it/
13365         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13366
13367 2011-04-10  Jim Meyering  <meyering@redhat.com>
13368
13369         maint.mk: remove useless semicolon and backslash
13370         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13371         semicolon and backslash.
13372
13373 2011-04-10  Bruno Haible  <bruno@clisp.org>
13374
13375         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13376         * modules/stdint-tests (Depends-on): Add wchar.
13377
13378 2011-04-10  Jim Meyering  <meyering@redhat.com>
13379
13380         maint: remove doubled words in comments, e.g., s/a a/a/
13381         * lib/strptime.c (day_of_the_week): s/the the/the/
13382         * tests/test-chown.h (test_chown): s/a a/a/
13383
13384         test-chown.h: correct a cast
13385         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13386         when the destination is a stat.st_gid.
13387
13388 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13389
13390         getaddrinfo: Fix test for sa_len member.
13391         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13392         include <sys/types.h> before <sys/socket.h>.
13393
13394 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13395
13396         maint: change "can not" to "cannot"
13397         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13398         boundaries.
13399
13400 2011-04-09  Jim Meyering  <meyering@redhat.com>
13401
13402         maint: change "a a" to "a"
13403         * tests/test-lchown.h (test_lchown): s/a a/a/
13404
13405         maint.mk: prohibit \<the the\>
13406         * top/maint.mk (sc_prohibit_the_the): New rule.
13407
13408         maint: fix "the the" in comment
13409         * lib/count-one-bits.h: s/the the/the/
13410
13411         maint: change "can not" to "cannot"
13412         But do not change the occurrences in maintain.texi or in
13413         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13414         * doc/gnulib-tool.texi: s/can not/cannot/
13415         * doc/posix-functions/accept.texi (accept): Likewise.
13416         * doc/posix-functions/socket.texi (socket): Likewise.
13417         * lib/mbrtowc.c: Likewise.
13418
13419         maint.mk: prohibit use of "can not"
13420         * top/maint.mk (sc_prohibit_can_not): New rule.
13421         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13422
13423 2011-04-09  Bruno Haible  <bruno@clisp.org>
13424
13425         careadlinkat: Guard against misuse of careadlinkatcwd.
13426         * lib/careadlinkat.c: Include <stdlib.h>.
13427         (careadlinkatcwd): Check that the fd argument is as expected.
13428
13429 2011-04-09  Bruno Haible  <bruno@clisp.org>
13430
13431         careadlinkat: Use common coding style.
13432         * lib/careadlinkat.c: Move gnulib includes after system includes.
13433
13434 2011-04-09  Bruno Haible  <bruno@clisp.org>
13435
13436         careadlinkat: Clarify specification.
13437         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13438         (careadlinkatcwd): Add comment.
13439         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13440
13441 2011-04-09  Bruno Haible  <bruno@clisp.org>
13442
13443         areadlinkat: Avoid link error on many platforms.
13444         * modules/areadlinkat (Depends-on): Add areadlink.
13445
13446 2011-04-09  Bruno Haible  <bruno@clisp.org>
13447
13448         allocator, careadlinkat: Fix double-inclusion guard.
13449         * lib/allocator.h: Fix double-inclusion guard.
13450         * lib/careadlinkat.h: Likewise.
13451
13452 2011-04-09  Bruno Haible  <bruno@clisp.org>
13453
13454         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13455         * lib/relocwrapper.c: Update dependencies hierarchy.
13456         * build-aux/install-reloc: Update list of files to be compiled.
13457         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13458         lib/allocator.[hc].
13459
13460 2011-04-08  Eric Blake  <eblake@redhat.com>
13461
13462         strftime: silence gnulib-tool warning
13463         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13464
13465 2011-04-08  Bruno Haible  <bruno@clisp.org>
13466
13467         verify: Fix syntax error with GCC 4.6 in C++ mode.
13468         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13469         (HAVE_STATIC_ASSERT): New macro.
13470         (verify_true, verify): Use 'static_assert' if it is supported and
13471         '_Static_assert' is not supported.
13472
13473 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         allocator: New module.
13476         * modules/allocator, lib/allocator.c: New files.
13477         * lib/allocator.h (stdlib_allocator): New decl.
13478         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13479         Remove.  Do not include <stdlib.h>.
13480         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13481         * modules/careadlinkat (Files): Remove lib/allocator.h.
13482         (Depends-on): Add allocator.
13483
13484         stdlib: let modules use system malloc, realloc
13485         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13486         if !_GL_USE_STDLIB_ALLOC.
13487         (malloc, realloc): Limit this change to a smaller scope.
13488
13489         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13490         (malloc, realloc): Don't #undef; no longer needed.
13491         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13492         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13493         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13494         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13495         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13496         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13497         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13498         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13499
13500         careadlinkat: rename members to avoid problem
13501         * lib/allocator.h (struct allocator): Rename members from
13502         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13503         and realloc are #define'd.  Reported by Eric Blake in
13504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13505         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13506
13507 2011-04-08  Eric Blake  <eblake@redhat.com>
13508
13509         nonblocking: reduce dependency
13510         * tests/test-nonblocking.c: Only test sockets when in use.
13511         * modules/nonblocking-tests (Depends-on): Drop socket.
13512         (Makefile.am): Link even if sockets are not present.
13513         * modules/pipe2-tests (Makefile.am): Likewise.
13514         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13515
13516         pipe2: fix O_NONBLOCK support on mingw
13517         * modules/pipe2 (Depends-on): Add nonblocking.
13518         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13519         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13520         * tests/test-nonblocking.c (main): Likewise.
13521         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13522
13523         fcntl-h: fix O_ACCMODE on cygwin
13524         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13525         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13526
13527         pipe-filter: drop O_NONBLOCK workarounds
13528         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13529         * modules/pipe-filter-ii (Depends-on): Likewise.
13530         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13531
13532         nonblocking: provide O_NONBLOCK for mingw
13533         * modules/nonblocking (Depends-on): Add open.
13534         (configure.ac): Set new witness macro.
13535         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13536         * modules/fcntl-h (Makefile.am): Substitute it.
13537         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13538         nonblocking module is in use.
13539         * lib/nonblocking.c: Adjust portability test.
13540         * lib/open.c (open): Don't let native open see gnulib flag.
13541         * tests/test-fcntl-h.c (main): Enhance test.
13542         * tests/test-open.h (test_open): Likewise.
13543         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13544
13545         careadlinkat: fix compilation error on mingw
13546         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13547         within struct allocator.
13548
13549 2011-04-06  Eric Blake  <eblake@redhat.com>
13550
13551         binary-io: relicense under LGPLv2+
13552         * modules/binary-io (License): Relax to LGPLv2+.
13553         Requested for libvirt, and required by pipe2.
13554
13555 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13556
13557         verify: use _Static_assert if available
13558         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13559         (verify_true, verify): Use it if available.  This generates better
13560         diagnostics with GCC 4.6.0 and later.
13561
13562 2011-04-05  Bruno Haible  <bruno@clisp.org>
13563
13564         Remove leftover generated .h files after config.status changed.
13565
13566         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13567         GL_GENERATE_ALLOCA_H.
13568         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13569         GL_GENERATE_ALLOCA_H evaluates to false.
13570
13571         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13572         GL_GENERATE_ARGZ_H.
13573         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13574         evaluates to false.
13575
13576         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13577         GL_GENERATE_BYTESWAP_H.
13578         * modules/byteswap (Makefile.am): Remove byteswap.h if
13579         GL_GENERATE_BYTESWAP_H evaluates to false.
13580
13581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13582         GL_GENERATE_ERRNO_H.
13583         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13584         evaluates to false.
13585
13586         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13587         GL_GENERATE_FLOAT_H.
13588         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13589         evaluates to false.
13590
13591         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13592         GL_GENERATE_FNMATCH_H.
13593         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13594         GL_GENERATE_FNMATCH_H evaluates to false.
13595
13596         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13597         GL_GENERATE_GLOB_H.
13598         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13599         evaluates to false.
13600
13601         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13602         automake conditional GL_GENERATE_ICONV_H.
13603         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13604         evaluates to false.
13605
13606         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13607         GL_GENERATE_NETINET_IN_H.
13608         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13609         GL_GENERATE_NETINET_IN_H evaluates to false.
13610
13611         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13612         conditional GL_GENERATE_PTHREAD_H.
13613         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13614         * modules/pthread (Makefile.am): Remove pthread.h if
13615         GL_GENERATE_PTHREAD_H evaluates to false.
13616
13617         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13618         GL_GENERATE_SCHED_H.
13619         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13620         evaluates to false.
13621
13622         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13623         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13624         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13625         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13626
13627         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13628         GL_GENERATE_STDARG_H.
13629         * modules/stdarg (Makefile.am): Remove stdarg.h if
13630         GL_GENERATE_STDARG_H evaluates to false.
13631
13632         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13633         GL_GENERATE_STDBOOL_H.
13634         * modules/stdbool (Makefile.am): Remove stdbool.h if
13635         GL_GENERATE_STDBOOL_H evaluates to false.
13636
13637         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13638         conditional GL_GENERATE_STDDEF_H.
13639         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13640         * modules/stddef (Makefile.am): Remove stddef.h if
13641         GL_GENERATE_STDDEF_H evaluates to false.
13642
13643         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13644         GL_GENERATE_STDINT_H.
13645         * modules/stdint (Makefile.am): Remove stdint.h if
13646         GL_GENERATE_STDINT_H evaluates to false.
13647
13648         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13649         GL_GENERATE_SYSEXITS_H.
13650         * modules/sysexits (Makefile.am): Remove sysexits.h if
13651         GL_GENERATE_SYSEXITS_H evaluates to false.
13652
13653         Reported by Karl Berry and Ralf Wildenhues.
13654
13655 2011-04-05  Bruno Haible  <bruno@clisp.org>
13656
13657         Ensure to rebuild generated .h files when config.status has changed.
13658         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13659         config.status.
13660         * modules/ctype (Makefile.am): Likewise.
13661         * modules/dirent (Makefile.am): Likewise.
13662         * modules/errno (Makefile.am): Likewise.
13663         * modules/fcntl-h (Makefile.am): Likewise.
13664         * modules/float (Makefile.am): Likewise.
13665         * modules/getopt-posix (Makefile.am): Likewise.
13666         * modules/glob (Makefile.am): Likewise.
13667         * modules/iconv-h (Makefile.am): Likewise.
13668         * modules/inttypes (Makefile.am): Likewise.
13669         * modules/langinfo (Makefile.am): Likewise.
13670         * modules/locale (Makefile.am): Likewise.
13671         * modules/math (Makefile.am): Likewise.
13672         * modules/netdb (Makefile.am): Likewise.
13673         * modules/netinet_in (Makefile.am): Likewise.
13674         * modules/poll-h (Makefile.am): Likewise.
13675         * modules/pthread (Makefile.am): Likewise.
13676         * modules/pty (Makefile.am): Likewise.
13677         * modules/sched (Makefile.am): Likewise.
13678         * modules/search (Makefile.am): Likewise.
13679         * modules/selinux-h (Makefile.am): Likewise.
13680         * modules/signal (Makefile.am): Likewise.
13681         * modules/spawn (Makefile.am): Likewise.
13682         * modules/stdarg (Makefile.am): Likewise.
13683         * modules/stdbool (Makefile.am): Likewise.
13684         * modules/stddef (Makefile.am): Likewise.
13685         * modules/stdint (Makefile.am): Likewise.
13686         * modules/stdio (Makefile.am): Likewise.
13687         * modules/stdlib (Makefile.am): Likewise.
13688         * modules/string (Makefile.am): Likewise.
13689         * modules/strings (Makefile.am): Likewise.
13690         * modules/sys_file (Makefile.am): Likewise.
13691         * modules/sys_ioctl (Makefile.am): Likewise.
13692         * modules/sys_select (Makefile.am): Likewise.
13693         * modules/sys_socket (Makefile.am): Likewise.
13694         * modules/sys_stat (Makefile.am): Likewise.
13695         * modules/sys_time (Makefile.am): Likewise.
13696         * modules/sys_times (Makefile.am): Likewise.
13697         * modules/sys_utsname (Makefile.am): Likewise.
13698         * modules/sys_wait (Makefile.am): Likewise.
13699         * modules/sysexits (Makefile.am): Likewise.
13700         * modules/termios (Makefile.am): Likewise.
13701         * modules/time (Makefile.am): Likewise.
13702         * modules/unistd (Makefile.am): Likewise.
13703         * modules/wchar (Makefile.am): Likewise.
13704         * modules/wctype-h (Makefile.am): Likewise.
13705         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13706
13707 2011-04-05  Bruno Haible  <bruno@clisp.org>
13708
13709         pipe2: Relicense under LGPLv2+.
13710         * modules/pipe2 (License): Change to LGPLv2+.
13711         Requested by Eric Blake, for libvirt.
13712
13713 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13714
13715         bootstrap: compute gnulib_extra_files after updating build_aux
13716         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13717         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13718
13719 2011-04-05  Eric Blake  <eblake@redhat.com>
13720
13721         bootstrap: preserve git whitelist item sorting
13722         * build-aux/bootstrap (sort_patterns): New function.
13723         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13724
13725 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13726
13727         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13728         sc_space_tab check.
13729
13730 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13731
13732         areadlink, areadlinkat: rewrite in terms of careadlinkat
13733         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13734         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13735         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13736         (malloc, realloc): Remove #undefs.
13737         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13738         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13739         readlink, ssize_t, stdint, unistd.
13740         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13741         areadlink, stdint.
13742
13743         careadlinkat: new module
13744         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13745         * modules/careadlinkat: New files, written by me with
13746         a review and feedback from Ben Pfaff in
13747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13748
13749 2011-04-01  Bruno Haible  <bruno@clisp.org>
13750
13751         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13752         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13753         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13754         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13755         Reported by Bruce Korb <bruce.korb@gmail.com>.
13756
13757 2011-04-01  Bruno Haible  <bruno@clisp.org>
13758
13759         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13760         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13761         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13762         * modules/wcpcpy (Depends-on): Add extensions.
13763         * modules/wcpncpy (Depends-on): Likewise.
13764         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13765         systems.
13766         * doc/posix-functions/wcpncpy.texi: Likewise.
13767         * doc/posix-functions/wcwidth.texi: Likewise.
13768
13769 2011-03-31  Eric Blake  <eblake@redhat.com>
13770
13771         nonblocking: fix mingw test failures
13772         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13773         non-blocking flag on regular file.
13774         (get_nonblocking_flag): Set errno on invalid fd.
13775         * tests/test-nonblocking.c (main): Avoid test failure on
13776         directories if fchdir is not active.
13777         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13778
13779 2011-03-31  Bruno Haible  <bruno@clisp.org>
13780
13781         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13782         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13783         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13784         Reported by Simon Josefsson <simon@josefsson.org>.
13785
13786 2011-03-31  Bruno Haible  <bruno@clisp.org>
13787         and Eric Blake  <eblake@redhat.com>
13788
13789         nonblocking: new module
13790         * modules/nonblocking: New module.
13791         * modules/nonblocking-tests: Likewise.
13792         * lib/nonblocking.h: New file.
13793         * lib/nonblocking.c: Likewise.
13794         * tests/test-nonblocking.c: New test.
13795         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13796
13797 2011-03-30  Bruno Haible  <bruno@clisp.org>
13798
13799         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13800         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13801         instead of 'printf' format for GCC >= 4.4.
13802         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13803         (fprintf, printf, vfprintf, vprintf): Declare with
13804         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13805         the system's vfprintf() function.
13806         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13807
13808 2011-03-30  Eric Blake  <eblake@redhat.com>
13809
13810         passfd: fix scoping bug
13811         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13812         before sendmsg/recvmsg.
13813
13814         passfd: standardize coding conventions
13815         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13816         can be learned at compile time.
13817         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13818         ifdefs.
13819         (sendfd, recvfd): Follow gnulib code conventions.
13820
13821         passfd: fix incorrect sendmsg arguments
13822         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13823         incorrect msg_controllen value.
13824         * modules/passfd-tests (Depends-on): Check for alarm.
13825         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13826         Reported by Bastien ROUCARIES.
13827
13828 2011-03-30  Bruno Haible  <bruno@clisp.org>
13829
13830         c-strcasestr: Relicense under LGPLv2+.
13831         * modules/c-strcasestr (License): Change to LGPLv2+.
13832         Requested by Eric Blake, for libvirt.
13833
13834 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13835
13836         * users.txt: Add libidn2.  Fix libtasn1 link.
13837
13838 2011-03-30  Jim Meyering  <meyering@redhat.com>
13839
13840         tests: readlink* ("",... fails with EINVAL on newer kernels
13841         readlink and readlinkat have typically failed with ENOENT for
13842         the invalid, empty file name,  "".  However, with the advent
13843         of linux-2.6.39, they fail with EINVAL.
13844         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13845         when operating on the empty file name.
13846         * tests/test-readlink.h (test_readlink): Likewise.
13847
13848 2011-03-29  Bruno Haible  <bruno@clisp.org>
13849
13850         Relicense some modules under LGPLv2+, for libidn2.
13851         * modules/array-mergesort (License): Change to LGPLv2+.
13852         * modules/c-strcaseeq (License): Likewise.
13853         * modules/striconveh (License): Likewise.
13854         * modules/striconveha (License): Likewise.
13855         * modules/uniconv/base (License): Likewise.
13856         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13857         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13858         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13859         * modules/unictype/base (License): Likewise.
13860         * modules/unictype/bidiclass-of (License): Likewise.
13861         * modules/unictype/category-M (License): Likewise.
13862         * modules/unictype/category-none (License): Likewise.
13863         * modules/unictype/category-of (License): Likewise.
13864         * modules/unictype/category-test (License): Likewise.
13865         * modules/unictype/category-test-withtable (License): Likewise.
13866         * modules/unictype/combining-class (License): Likewise.
13867         * modules/unictype/joiningtype-of (License): Likewise.
13868         * modules/unictype/scripts (License): Likewise.
13869         * modules/uninorm/base (License): Likewise.
13870         * modules/uninorm/canonical-decomposition (License): Likewise.
13871         * modules/uninorm/composition (License): Likewise.
13872         * modules/uninorm/decompose-internal (License): Likewise.
13873         * modules/uninorm/decomposition-table (License): Likewise.
13874         * modules/uninorm/nfc (License): Likewise.
13875         * modules/uninorm/nfd (License): Likewise.
13876         * modules/uninorm/u32-normalize (License): Likewise.
13877         * modules/unistr/base (License): Likewise.
13878         * modules/unistr/u32-cpy (License): Likewise.
13879         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13880         * modules/unistr/u32-to-u8 (License): Likewise.
13881         * modules/unistr/u32-uctomb (License): Likewise.
13882         * modules/unistr/u8-check (License): Likewise.
13883         * modules/unistr/u8-mblen (License): Likewise.
13884         * modules/unistr/u8-mbtouc (License): Likewise.
13885         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13886         * modules/unistr/u8-mbtoucr (License): Likewise.
13887         * modules/unistr/u8-prev (License): Likewise.
13888         * modules/unistr/u8-strlen (License): Likewise.
13889         * modules/unistr/u8-to-u32 (License): Likewise.
13890         * modules/unistr/u8-uctomb (License): Likewise.
13891         * modules/unitypes (License): Likewise.
13892         Requested by Simon Josefsson.
13893
13894 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13895
13896         lib-symbol-visibility: Add a notice.
13897         * modules/lib-symbol-visibility (Notice): New field.
13898
13899 2011-03-29  Bruno Haible  <bruno@clisp.org>
13900
13901         getaddrinfo: Doc fix.
13902         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13903         section "fixed in Gnulib".
13904
13905 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13906
13907         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13908         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13909
13910 2011-03-26  Bruno Haible  <bruno@clisp.org>
13911
13912         unictype/property-byname: Reduce the number of load-time relocations.
13913         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13914         (UC_PROPERTY_INDEX_*): New enumeration values.
13915         (uc_property_byname): Convert an index from the lookup table to an
13916         uc_property_t.
13917         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13918         values.
13919
13920 2011-03-26  Bruno Haible  <bruno@clisp.org>
13921
13922         unictype/property-byname: Allow omitted word separators and aliases.
13923         * lib/unictype/pr_byname.gperf: Add property names without word
13924         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13925         for 'space'.
13926
13927 2011-03-26  Bruno Haible  <bruno@clisp.org>
13928
13929         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13930         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13931         also hyphens to space.
13932         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13933         without spaces.
13934         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13935
13936 2011-03-26  Bruno Haible  <bruno@clisp.org>
13937
13938         unictype/joiningtype-byname: Recognize long names as well.
13939         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13940         a long name.
13941         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13942         unictype/joiningtype_byname.h.
13943         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13944         * lib/unictype/joiningtype_byname.gperf: New file.
13945         * modules/unictype/joiningtype-byname (Files): Add
13946         lib/unictype/joiningtype_byname.gperf.
13947         (Depends-on): Add gperf.
13948         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13949         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13950         long names.
13951
13952         Tests for module 'unictype/joiningtype-longname'.
13953         * modules/unictype/joiningtype-longname-tests: New file.
13954         * tests/unictype/test-joiningtype_longname.c: New file.
13955
13956         New module 'unictype/joiningtype-longname'.
13957         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13958         * lib/unictype/joiningtype_longname.c: New file.
13959         * modules/unictype/joiningtype-longname: New file.
13960         * modules/unictype/joiningtype-all (Depends-on): Add
13961         unictype/joiningtype-longname.
13962
13963 2011-03-26  Bruno Haible  <bruno@clisp.org>
13964
13965         unictype/bidiclass-byname: Recognize long names as well.
13966         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13967         name.
13968         * lib/unictype/bidi_byname.c: Include <string.h>,
13969         unictype/bidi_byname.h.
13970         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13971         * lib/unictype/bidi_byname.gperf: New file.
13972         * modules/unictype/bidiclass-byname (Files): Add
13973         lib/unictype/bidi_byname.gperf.
13974         (Depends-on): Add gperf.
13975         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13976         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13977         long names.
13978
13979         Tests for module 'unictype/bidiclass-longname'.
13980         * modules/unictype/bidiclass-longname-tests: New file.
13981         * tests/unictype/test-bidi_longname.c: New file.
13982
13983         New module 'unictype/bidiclass-longname'.
13984         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13985         * lib/unictype/bidi_longname.c: New file.
13986         * modules/unictype/bidiclass-longname: New file.
13987         * modules/unictype/bidiclass-all (Depends-on): Add
13988         unictype/bidiclass-longname.
13989
13990 2011-03-26  Bruno Haible  <bruno@clisp.org>
13991
13992         unictype/bidi*: Rename modules.
13993         * modules/unictype/bidiclass-all: Renamed from
13994         modules/unictype/bidicategory-all.
13995         * modules/unictype/bidiclass-name: Renamed from
13996         modules/unictype/bidiclass-name.
13997         (Description): Update.
13998         * modules/unictype/bidiclass-name-tests: Renamed from
13999         modules/unictype/bidicategory-name-tests.
14000         * modules/unictype/bidiclass-byname: Renamed from
14001         modules/unictype/bidicategory-byname.
14002         (Description): Update.
14003         * modules/unictype/bidiclass-byname-tests: Renamed from
14004         modules/unictype/bidicategory-byname-tests.
14005         * modules/unictype/bidiclass-of: Renamed from
14006         modules/unictype/bidicategory-of.
14007         (Description): Update.
14008         * modules/unictype/bidiclass-of-tests: Renamed from
14009         modules/unictype/bidicategory-of-tests.
14010         * modules/unictype/bidiclass-test: Renamed from
14011         modules/unictype/bidicategory-test.
14012         (Description): Update.
14013         * modules/unictype/bidiclass-test-tests: Renamed from
14014         modules/unictype/bidicategory-test-tests.
14015         * modules/unictype/bidicategory-all: New file, a simple redirection.
14016         * modules/unictype/bidicategory-name: Likewise.
14017         * modules/unictype/bidicategory-byname: Likewise.
14018         * modules/unictype/bidicategory-of: Likewise.
14019         * modules/unictype/bidicategory-test: Likewise.
14020         * modules/unictype/property-bidi-* (Dependencies): Update.
14021         * lib/unictype/bidi_*.c: Update comment.
14022
14023 2011-03-26  Bruno Haible  <bruno@clisp.org>
14024
14025         unictype/bidi*: Rename functions, part 2.
14026         * modules/unictype/bidicategory-name (configure.ac): Update required
14027         libunistring version.
14028         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14029
14030 2011-03-25  Bruno Haible  <bruno@clisp.org>
14031
14032         New module 'unictype/combining-class-all'.
14033         * modules/unictype/combining-class-all: New file.
14034
14035         Tests for module 'unictype/combining-class-byname'.
14036         * modules/unictype/combining-class-byname-tests: New file.
14037         * tests/unictype/test-combiningclass_byname.c: New file.
14038
14039         New module 'unictype/combining-class-byname'.
14040         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14041         * lib/unictype/combiningclass_byname.c: New file.
14042         * lib/unictype/combiningclass_byname.gperf: New file.
14043         * modules/unictype/combining-class-byname: New file.
14044
14045         Tests for module 'unictype/combining-class-longname'.
14046         * modules/unictype/combining-class-longname-tests: New file.
14047         * tests/unictype/test-combiningclass_longname.c: New file.
14048
14049         New module 'unictype/combining-class-longname'.
14050         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14051         * lib/unictype/combiningclass_longname.c: New file.
14052         * modules/unictype/combining-class-longname: New file.
14053
14054         Tests for module 'unictype/combining-class-name'.
14055         * modules/unictype/combining-class-name-tests: New file.
14056         * tests/unictype/test-combiningclass_name.c: New file.
14057
14058         New module 'unictype/combining-class-name'.
14059         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14060         * lib/unictype/combiningclass_name.c: New file.
14061         * modules/unictype/combining-class-name: New file.
14062
14063 2011-03-25  Bruno Haible  <bruno@clisp.org>
14064
14065         unictype/combining-class: Rename source files.
14066         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14067         of unictype/combining.h.
14068         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14069         Update.
14070         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14071         * modules/unictype/combining-class (Description): Fix.
14072         (Files, Makefile.am): Update.
14073         * tests/unictype/test-combiningclass.c: Renamed from
14074         tests/unictype/test-combining.c.
14075         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14076
14077 2011-03-25  Bruno Haible  <bruno@clisp.org>
14078
14079         unictype: Update list of canonical combining classes.
14080         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14081
14082 2011-03-25  Bruno Haible  <bruno@clisp.org>
14083
14084         unictype/category-byname: Recognize long names as well.
14085         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14086         a long name.
14087         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14088         unictype/categ_byname.h.
14089         (UC_CATEGORY_INDEX_*): New enumeration values.
14090         (uc_general_category_byname): Use uc_general_category_lookup and
14091         convert from index to value.
14092         * lib/unictype/categ_byname.gperf: New file.
14093         * modules/unictype/category-byname (Files): Add
14094         lib/unictype/categ_byname.gperf.
14095         (Depends-on): Add gperf.
14096         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14097         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14098         long names.
14099
14100         Tests for module 'unictype/category-longname'.
14101         * modules/unictype/category-longname-tests: New file.
14102         * tests/unictype/test-categ_longname.c: New file.
14103
14104         New module 'unictype/category-longname'.
14105         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14106         * lib/unictype/categ_longname.c: New file.
14107         * modules/unictype/category-longname: New file.
14108         * modules/unictype/category-all (Depends-on): Add it.
14109
14110 2011-03-25  Bruno Haible  <bruno@clisp.org>
14111
14112         Tests for module 'unictype/category-LC'.
14113         * modules/unictype/category-LC-tests: New file.
14114         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14115
14116         New module 'unictype/category-LC'.
14117         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14118         (UC_CATEGORY_LC): New declaration.
14119         (UC_CASED_LETTER): New macro.
14120         * lib/gen-uni-tables.c (is_category_LC): New function.
14121         (output_categories): Also handle category LC.
14122         (UC_CATEGORY_MASK_LC): New enumeration value.
14123         (general_category_byname): Also handle category LC.
14124         * lib/unictype/categ_LC.c: New file.
14125         * lib/unictype/categ_LC.h: New file, automatically generated.
14126         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14127         category LC.
14128         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14129         * modules/unictype/category-LC: New file.
14130         * modules/unictype/category-byname (Depends-on): Add
14131         unictype/category-LC.
14132         * modules/unictype/category-all (Depends-on): Likewise.
14133
14134 2011-03-25  Eric Blake  <eblake@redhat.com>
14135
14136         xmalloc: revert yesterday's regression
14137         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14138         realloc's underlying behavior (allowing allocation of zero-size
14139         objects, especially if malloc-gnu is also in use).
14140
14141 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14142
14143         maint.mk: add missing version to VC-tag
14144         * top/maint.mk: git tag was missing actual tag name; add it.
14145
14146         valgrind: do leak checking, and exit with code 1 on error (not 0)
14147         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14148         to VALGRIND.
14149
14150 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14151
14152         posix-modules: say what it does.
14153         * posix-modules: Add a line to the --help output saying what it does.
14154
14155 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14156
14157         xmalloc: Do not leak if underlying realloc is C99 compatible.
14158         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14159         This avoids a leak on C99-based systems.  See
14160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14161
14162 2011-03-24  Eric Blake  <eblake@redhat.com>
14163
14164         realloc: document portability problem
14165         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14166         passing 0 size to realloc.
14167
14168 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14169
14170         doc: update users.txt
14171         * users.txt: Add cvsps, tmpwatch
14172
14173 2011-03-23  Matt Rice  <ratmice@gmail.com>
14174
14175         doc: update users.txt
14176         * users.txt: Add gdb.
14177
14178 2011-03-23  Jim Meyering  <meyering@redhat.com>
14179
14180         doc: update users.txt
14181         Looking through matches up to the following URL (there are still
14182         several more pages), I found several projects that use gnulib:
14183         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14184         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14185         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14186
14187 2011-03-22  Bruno Haible  <bruno@clisp.org>
14188
14189         unictype/bidi*: Rename functions.
14190         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14191         uc_bidi_class, uc_is_bidi_class): New declarations.
14192         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14193         uc_bidi_category_byname.
14194         (uc_bidi_category_byname): New function.
14195         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14196         u_bidi_category_name.
14197         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14198         (uc_bidi_category_name): New function.
14199         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14200         uc_bidi_category.
14201         (uc_bidi_category): New function.
14202         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14203         uc_is_bidi_category. Invoke uc_bidi_class.
14204         (uc_is_bidi_category): New function.
14205         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14206         instead of uc_bidi_category_byname.
14207         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14208         instead of uc_bidi_category_name.
14209         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14210         uc_bidi_category.
14211         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14212         instead of uc_is_bidi_category.
14213
14214 2011-03-21  Bruno Haible  <bruno@clisp.org>
14215
14216         New module 'unictype/joininggroup-all'.
14217         * modules/unictype/joininggroup-all: New file.
14218
14219         Tests for module 'unictype/joininggroup-of'.
14220         * modules/unictype/joininggroup-of-tests: New file.
14221         * tests/unictype/test-joininggroup_of.c: New file.
14222         * tests/unictype/test-joininggroup_of.h: New file, automatically
14223         generated by gen-uni-tables.
14224
14225         New module 'unictype/joininggroup-of'.
14226         * modules/unictype/joininggroup-of: New file.
14227         * lib/unictype/joininggroup_of.c: New file.
14228         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14229         gen-uni-tables.
14230
14231         Tests for module 'unictype/joininggroup-byname'.
14232         * modules/unictype/joininggroup-byname-tests: New file.
14233         * tests/unictype/test-joininggroup_byname.c: New file.
14234
14235         New module 'unictype/joininggroup-byname'.
14236         * modules/unictype/joininggroup-byname: New file.
14237         * lib/unictype/joininggroup_byname.c: New file.
14238         * lib/unictype/joininggroup_byname.gperf: New file.
14239
14240         Tests for module 'unictype/joininggroup-name'.
14241         * modules/unictype/joininggroup-name-tests: New file.
14242         * tests/unictype/test-joininggroup_name.c: New file.
14243
14244         New module 'unictype/joininggroup-name'.
14245         * modules/unictype/joininggroup-name: New file.
14246         * lib/unictype/joininggroup_name.c: New file.
14247         * lib/unictype/joininggroup_name.h: New file.
14248
14249         New module 'unictype/joiningtype-all'.
14250         * modules/unictype/joiningtype-all: New file.
14251
14252         Tests for module 'unictype/joiningtype-of'.
14253         * modules/unictype/joiningtype-of-tests: New file.
14254         * tests/unictype/test-joiningtype_of.c: New file.
14255         * tests/unictype/test-joiningtype_of.h: New file, automatically
14256         generated by gen-uni-tables.
14257
14258         New module 'unictype/joiningtype-of'.
14259         * modules/unictype/joiningtype-of: New file.
14260         * lib/unictype/joiningtype_of.c: New file.
14261         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14262         gen-uni-tables.
14263
14264         Tests for module 'unictype/joiningtype-byname'.
14265         * modules/unictype/joiningtype-byname-tests: New file.
14266         * tests/unictype/test-joiningtype_byname.c: New file.
14267
14268         New module 'unictype/joiningtype-byname'.
14269         * modules/unictype/joiningtype-byname: New file.
14270         * lib/unictype/joiningtype_byname.c: New file.
14271
14272         Tests for module 'unictype/joiningtype-name'.
14273         * modules/unictype/joiningtype-name-tests: New file.
14274         * tests/unictype/test-joiningtype_name.c: New file.
14275
14276         New module 'unictype/joiningtype-name'.
14277         * modules/unictype/joiningtype-name: New file.
14278         * lib/unictype/joiningtype_name.c: New file.
14279
14280         unictype: Add support for Arabic shaping properties.
14281         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14282         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14283         declarations.
14284         (UC_JOINING_GROUP_*): New enumeration values.
14285         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14286         declarations.
14287         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14288         (unicode_joining_type): New variable.
14289         (UC_JOINING_GROUP_*): New enumeration values.
14290         (unicode_joining_group): New variable.
14291         (fill_arabicshaping, joining_type_as_c_identifier,
14292         output_joining_type_test, output_joining_type,
14293         joining_group_as_c_identifier, output_joining_group_test,
14294         output_joining_group): New functions.
14295         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14296         fill_arabicshaping and output_joining_type_test, output_joining_type,
14297         output_joining_group_test, output_joining_group.
14298         Reported by Simon Josefsson.
14299
14300 2011-03-21  Jim Meyering  <meyering@redhat.com>
14301
14302         strftime: fix a bug in yesterday's change
14303         * lib/strftime.c (add): Accommodate width's initial value of -1.
14304         Otherwise, nstrftime would copy uninitialized data into
14305         the result buffer.
14306
14307 2011-03-21  Jim Meyering  <meyering@redhat.com>
14308
14309         tests: add strftime-tests module
14310         * tests/test-strftime.c: New file.
14311         * modules/strftime-tests: New module.
14312
14313 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14314
14315         strftime: don't assume a byte count fits in 'int'
14316         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14317         found this problem by static analysis, using gcc -Wstrict-overflow
14318         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14319         on an integer overflow having undefined behavior, but it turns out
14320         that the argument is a size, which might not fit in 'int' anyway,
14321
14322 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14323
14324         stdio: don't require ignore_value around fwrite
14325
14326         This patch works around libc bug 11959
14327         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14328         Without this patch, applications must often write
14329         ignore_value (fwrite (...)) even though the ignore_value is
14330         not helpful here.  It's common to write many objects, using
14331         fwrite/printf/etc., and then use ferror to detect output error.
14332
14333         I considered making this patch optional, but decided against it,
14334         because libc is obviously being inconsistent here: there is no
14335         reason libc should insist that user code must inspect fwrite
14336         return's value without also insisting that it inspect printf's,
14337         putchar's, etc.  If user code wants to have a strict style where
14338         all these functions' values are checked (so that ferror need not
14339         be checked), we could add support for that style in a new gnulib
14340         module, but in the meantime it's better to be consistent and to
14341         support common usage.
14342
14343         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14344         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14345         that we are compiling in checking mode, and if not C++, and
14346         if not already wrapping fwrite for some other reason.
14347         (fwrite): #define to rpl_fwrite if the latter is defined.
14348
14349 2011-03-20  Bruno Haible  <bruno@clisp.org>
14350
14351         verror: Fix compilation error introduced on 2011-02-13.
14352         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14353         instead of __attribute__.
14354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14355
14356 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14357             Bruno Haible  <bruno@clisp.org>
14358
14359         socklen: do not depend on sys_socket
14360         While trying to modify Emacs to use gnulib's socklen module,
14361         I discovered a circular dependency: socklen depends on sys_socket
14362         and vice versa.  Emacs can use socklen, but it does not need
14363         sys_socket because it has its own substitute for sys/socket.h.
14364         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14365         gl_TYPE_SOCKLEN_T.
14366         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14367         gl_PREREQ_SYS_H_SOCKET.
14368         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14369         gl_PREREQ_SYS_H_SOCKET.
14370         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14371         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14372         * modules/socklen (Depends-on): Do not depend on sys_socket.
14373         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14374
14375 2011-03-20  Jim Meyering  <meyering@redhat.com>
14376
14377         maint.mk: sort file names *after* new transformation
14378         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14379         prefix would have led to an unwarranted failure in GNU parted.
14380         Sort after that transformation.
14381
14382 2011-03-19  Jim Meyering  <meyering@redhat.com>
14383
14384         maint.mk: fix po-file syntax-check rule
14385         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14386         Patch by Bruno Haible.
14387
14388 2011-03-19  Bruno Haible  <bruno@clisp.org>
14389
14390         socklen: Update comment.
14391         * m4/socklen.m4: Update comment about platforms.
14392
14393 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14394             Bruno Haible  <bruno@clisp.org>
14395
14396         inet_ntop, inet_pton: Simplify.
14397         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14398         documented to provide socklen_t and we already depend on sys_socket.
14399         * modules/inet_pton (Depends-on): Likewise.
14400         * lib/arpa_inet.in.h: Adjust comment.
14401
14402 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14403             Bruno Haible  <bruno@clisp.org>
14404
14405         netdb: Simplify.
14406         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14407         documented to provide socklen_t and we already depend on sys_socket.
14408         * lib/netdb.in.h: Adjust comment.
14409
14410 2011-03-19  Bruno Haible  <bruno@clisp.org>
14411
14412         sys_socket, netdb: Document problem with socklen_t.
14413         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14414         platforms.
14415         * doc/posix-headers/netdb.texi: Likewise.
14416
14417 2011-03-18  Eric Blake  <eblake@redhat.com>
14418
14419         maint.mk: let po check work in VPATH build
14420         * top/maint.mk (po_file): Allow cfg.mk override.
14421         (sc_po_check): Allow VPATH use.
14422         Reported by Jiri Denemark.
14423
14424 2011-03-16  Jim Meyering  <meyering@redhat.com>
14425
14426         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14427         Before, you would have had to create one .x-sc_ file per rule in order
14428         to exempt offending files.  Now, you may instead use a Make variable --
14429         usually defined in cfg.mk -- whose name identifies the affected rule.
14430         * top/maint.mk (_sc_excl): Define.
14431         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14432         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14433
14434 2011-03-13  Bruno Haible  <bruno@clisp.org>
14435
14436         ignore-value tests: Avoid warnings.
14437         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14438         empty for gcc < 3.4.
14439
14440 2011-03-13  Bruno Haible  <bruno@clisp.org>
14441
14442         passfd: Fix link error on Solaris.
14443         * modules/passfd (Description): Correct.
14444         (Depends-on): Add socketlib.
14445         (Link): New section.
14446         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14447
14448 2011-03-13  Bruno Haible  <bruno@clisp.org>
14449
14450         passfd: Fix link error on AIX 5.2.
14451         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14452
14453 2011-03-13  Bruno Haible  <bruno@clisp.org>
14454
14455         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14456         * lib/sys_socket.in.h: Include <stddef.h>.
14457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14458         CMSG_FIRSTHDR. Remove unused variable.
14459
14460 2011-03-13  Bruno Haible  <bruno@clisp.org>
14461
14462         passfd: Fix compilation error on OpenBSD.
14463         * lib/passfd.c: Include <sys/uio.h>.
14464
14465 2011-03-13  Bruno Haible  <bruno@clisp.org>
14466
14467         passfd test: Fix warnings.
14468         * tests/test-passfd.c: Include <sys/wait.h>.
14469         (main): Fix typo.
14470
14471 2011-03-13  Bruno Haible  <bruno@clisp.org>
14472
14473         passfd module, part 4, tweaks.
14474         * tests/test-passfd.c: Reorder includes.
14475         (main): Fix perror and printf calls.
14476
14477 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14478
14479         passfd module, part 4.
14480         * modules/passfd-tests: New file.
14481         * tests/test-passfd.c: New file.
14482
14483 2011-03-13  Jim Meyering  <meyering@redhat.com>
14484
14485         Makefile: rely on GNU make; derive syntax-check rule names
14486         Rather than requiring that each sc_ rule be listed as a dependent
14487         of "check", use features of GNU make to derive the list.
14488         * Makefile (syntax-check-rules): Define.
14489         (check): Depend on the new variable, not the hard-coded list.
14490
14491 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14492             Bruno Haible  <bruno@clisp.org>
14493
14494         passfd module, part 3.
14495         * lib/passfd.h (recvfd): Add a flags argument.
14496         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14497         (recvfd): Add a flags argument.
14498         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14499         exists.
14500         * modules/passfd (Depends-on): Add cloexec.
14501         Suggested by Eric Blake.
14502
14503 2011-03-13  Bruno Haible  <bruno@clisp.org>
14504
14505         passfd module, part 2, tweaks.
14506         * modules/passfd (Files): Reorder.
14507         (Depends-on): Remove errno.
14508         (Include): Remove <sys/socket.h>, <sys/un.h>.
14509         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14510         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14511         specification header. Include <sys/socket.h> always. Don't include
14512         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14513         (sendfd): Clarify that it sets errno when it fails.
14514         (recvfd): Fix specification.
14515
14516 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14517
14518         passfd module, part 2.
14519         * modules/passfd: New file.
14520         * lib/passfd.h: New file.
14521         * lib/passfd.c: New file.
14522
14523 2011-03-12  Bruno Haible  <bruno@clisp.org>
14524
14525         wcswidth, mbswidth: Avoid integer overflow.
14526         * lib/wcswidth.c: Include <limits.h>.
14527         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14528         * lib/mbswidth.c: Include <limits.h>.
14529         (mbsnwidth): Avoid 'int' overflow.
14530         Reported by Jim Meyering.
14531
14532 2011-03-12  Bruno Haible  <bruno@clisp.org>
14533
14534         futimens, utimensat: Avoid endless recursion on Solaris 10.
14535         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14536         Solaris.
14537         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14538         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14539
14540 2011-03-11  Jim Meyering  <meyering@redhat.com>
14541
14542         maint.mk: relax a regexp to accommodate other formatting styles
14543         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14544         between "ngettext" and the following "(".
14545
14546 2011-03-11  Pádraig Brady <P@draigBrady.com>
14547
14548         maint.mk: suppress a false positive warning
14549         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14550         diagnostics are marked with ngettext.
14551
14552 2011-03-10  Eric Blake  <eblake@redhat.com>
14553
14554         wchar: add explicit dependencies, for Tru64
14555         * modules/mbmemcasecoll (Depends-on): Add wchar.
14556         * modules/mbtowc (Depends-on): Likewise.
14557         * modules/vasnprintf (Depends-on): Likewise.
14558         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14559         * modules/wctomb (Depends-on): Likewise.
14560         Reported by Peter O'Gorman.
14561
14562 2011-03-08  Bruno Haible  <bruno@clisp.org>
14563
14564         passfd module, part 1, tweaks.
14565         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14566         Improve indentation. Improve AC_MSG_CHECKING messages.
14567         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14568         gl_SOCKET_FAMILIES.
14569
14570 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14571
14572         passfd module, part 1.
14573         * m4/afunix.m4: New file.
14574         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14575         sockets.
14576
14577 2011-03-08  Bruno Haible  <bruno@clisp.org>
14578
14579         regex-quote: New API.
14580         * lib/regex-quote.h: Include <stdbool.h>.
14581         (struct regex_quote_spec): New type.
14582         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14583         New declarations.
14584         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14585         'const struct regex_quote_spec *' argument.
14586         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14587         (pcre_special): New constant.
14588         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14589         New functions.
14590         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14591         'const struct regex_quote_spec *' argument.
14592         * modules/regex-quote (Depends-on): Add stdbool.
14593         * tests/test-regex-quote.c (check): Update for new API. Add test for
14594         anchored results.
14595         * NEWS: Mention the API change.
14596         Reported by Reuben Thomas and Eric Blake.
14597
14598 2011-03-06  Bruno Haible  <bruno@clisp.org>
14599
14600         regex-quote: Fix creation of POSIX extended regular expressions.
14601         * lib/regex-quote.c (ere_special): Add grouping and alternation
14602         operators.
14603
14604 2011-03-05  Bruno Haible  <bruno@clisp.org>
14605
14606         doc: Improve doc regarding autopoint vs. gnulib.
14607         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14608         disable autopoint while running autoreconf.
14609         Suggested by Ralf Wildenhues.
14610
14611 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14612
14613         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14614         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14615
14616 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14617
14618         parse-duration: remove xalloc.h dependency
14619         * lib/parse-duration.c (parse_period): handle NULL return from
14620         strdup instead of calling xstrdup().
14621         * modules/parse-duration: remove "xalloc" dependency
14622
14623 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14624
14625         bootstrap: honor m4_base when running aclocal
14626         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14627
14628 2011-03-02  Jim Meyering  <meyering@redhat.com>
14629
14630         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14631         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14632         on request from Matt Booth.
14633
14634 2011-03-01  Eric Blake  <eblake@redhat.com>
14635
14636         test-link: work on Hurd
14637         * tests/test-link.h (test_link): Hurd rejects linking directories
14638         with EISDIR instead of the POSIX-mandated EPERM.
14639
14640 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14641
14642         stdio: simplify by moving files to printf-posix, sigpipe
14643         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14644         since this symbol is needed only if printf is replaced.
14645         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14646         Require gl_ASM_SYMBOL_PREFIX.
14647         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14648         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14649         (Depends-on): Add 'raise'.
14650         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14651         * modules/stdio (Files): Remove lib/stdio-write.c,
14652         m4/asm-underscore.m4.
14653         (Depends-on): Remove 'raise'.
14654
14655         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14656         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14657         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14658         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14659
14660 2011-02-28  Bruno Haible  <bruno@clisp.org>
14661
14662         localcharset: Assume ANSI C behaviour of free().
14663         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14664         calling free().
14665         Suggested by Simon Josefsson <simon@josefsson.org>.
14666
14667 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14668             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14669             Bruno Haible  <bruno@clisp.org>  (tiny change)
14670
14671         On Cygwin, use /proc file system instead of win32 API.
14672         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14673         Win32 file names.
14674         (DllMain): Simplify by removing Cygwin specific code.
14675         (find_shared_library_fullname): Use Linux specific implementation also
14676         for Cygwin.
14677         (get_shared_library_fullname): Update accordingly.
14678         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14679         Win32 file names.
14680         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14681         Cygwin specific code.
14682
14683 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14684             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14685
14686         Fix OpenMP flag detection for various Fortran compilers.
14687         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14688         OpenMP-conditional compilation construct, to force compile
14689         failure with missing OpenMP flag.
14690         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14691
14692 2011-02-25  Eric Blake  <eblake@redhat.com>
14693
14694         strstr: expand test coverage
14695         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14696         compilation.
14697         * tests/test-memmem.c (main): Duplicate tests.
14698         * tests/test-strcasestr.c (main): Likewise.
14699         * tests/test-c-strcasestr.c (main): Likewise.
14700
14701 2011-02-25  Jim Meyering  <meyering@redhat.com>
14702
14703         maint.mk: detect missing-NL-at-EOF, too
14704         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14705         it also detects when a file lacks a newline at EOF.
14706         (require_exactly_one_NL_at_EOF_): Renamed from
14707         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14708         since people may well have .x-sc_... file names tied to the
14709         existing name.  Suggested by Eric Blake.
14710
14711 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14712
14713         dirname: move m4/dos.m4 functionality into lib/dosname.h
14714
14715         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14716         extracts symbols from it, puts them into config.h; but it's much
14717         easier to use the symbols directly.  filename.h already does this,
14718         but it disagrees with dos.m4 in some respects.  This patch
14719         introduces a different include file dosname.h that packages up
14720         dos.m4, and then later we can work on merging filename.h and
14721         dosname.h.  Applications that need only the easy-to-configure
14722         symbols should consider including dosname.h rather than dirname.h.
14723         * NEWS: Mention incompatible changes.
14724         * m4/dos.m4: Remove.
14725         * lib/dosname.h, modules/dosname: New files.
14726         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14727         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14728         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14729         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14730         Include dosname.h, not dirname.h.
14731         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14732         Include dosname.h, for definitions of symbols like ISSLASH
14733         that used to be in config.h.
14734         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14735         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14736         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14737         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14738         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14739         * modules/rmdir (Files): Likewise.
14740         * modules/stat (Files): Likewise.
14741         * modules/unlink (Files): Likewise.
14742         * modules/dirname-lgpl (Depends-on): Add dosname.
14743         * modules/lstat (Depends-on): Likewise.
14744         * modules/openat (Depends-on): Likewise.
14745         * modules/rmdir (Depends-on): Likewise.
14746         * modules/savewd (Depends-on): Likewise.
14747         * modules/stat (Depends-on): Likewise.
14748         * modules/unlink (Depends-on): Likewise.
14749         * modules/openat (Depends-on): Remove dirname-lgpl.
14750         * modules/savewd (Depends-on): Likewise.
14751         * tests/test-dirname.c: Do not use removed symbols like
14752         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14753         the remaining symbols, e.g., ISSLASH ('\\').
14754
14755 2011-02-25  Eric Blake  <eblake@redhat.com>
14756
14757         strstr: revert patches that introduced bug and pessimization
14758         * lib/str-two-way.h: Add another reference.
14759         (two_way_short_needle, two_way_long_needle): Revert changes from
14760         2011-02-24; they pessimize search speed.
14761         (critical_factorization): Partially revert changes from
14762         2010-06-22; they violate the requirement that the left half of the
14763         needle be smaller than the period of the needle.
14764
14765 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14766
14767         filenamecat: remove unnecessary dependency on dirname-lgpl
14768         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14769         is no direct dependency, just an indirect one via filenamecat-lgpl.
14770
14771         remove: remove unnecessary use of m4/dos.m4
14772         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14773         * modules/remove (FILES): Remove m4/dos.m4.
14774
14775         * lib/openat-proc.c: Don't include dirname.h; not needed.
14776
14777         backupfile: remove unnecessary use of m4/dos.m4
14778         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14779         of its symbols are used by the backupfile code.  backupfile.c does
14780         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14781         for the rare case of programs that want all their backup file
14782         names to live within 8+3 limits, and dos.m4 doesn't address that.
14783         * modules/backupfile (Files): Remove m4/dos.m4.
14784
14785 2011-02-24  Jim Meyering  <meyering@redhat.com>
14786
14787         strstr: fix a bug whereby strstr would mistakenly return NULL
14788         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14789         in period calculation.
14790         (two_way_long_needle): Likewise.
14791         The original problem was reported by Mike Stump in
14792         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14793         Ralf Wildenhues provided the short needle and haystack.
14794         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14795         Add a more involved test to trigger the bug in two_way_long_needle.
14796
14797 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14798
14799         gnulib-tool: remove use of bold display in help screen
14800         * gnulib-tool (func_usage): Do not use bold display anymore in the
14801         help screen.  That was just meant to be a temporary emphasis for a
14802         backward-incompatible change.
14803
14804 2011-02-23  Bruno Haible  <bruno@clisp.org>
14805
14806         Fix misindentation of preprocessor directives.
14807         * lib/argp-namefrob.h: Reindent preprocessor directives.
14808         * lib/getopt_int.h (struct _getopt_data): Likewise.
14809         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14810         * lib/vasnprintf.c (decode_long_double): Likewise.
14811         * tests/test-argmatch.c: Insert blank lines, for clarity.
14812         * tests/test-exclude.c: Likewise.
14813
14814 2011-02-22  Bruno Haible  <bruno@clisp.org>
14815
14816         ioctl: Fix for MacOS X in 64-bit mode.
14817         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14818         value.
14819         Suggested by Eric Blake.
14820         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14821
14822 2011-02-22  Jim Meyering  <meyering@redhat.com>
14823
14824         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14825         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14826         in lib/.
14827
14828 2011-02-22  Eric Blake  <eblake@redhat.com>
14829
14830         maint: avoid any CDPATH issue
14831         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14832
14833         maint: adjust cpp indentation for my modules, as well
14834         * Makefile (sc_cpp_indent_check): Add my name.
14835         * lib/fbufmode.c: Filter through cppi.
14836         * lib/fpurge.c: Likewise.
14837         * lib/freadable.c: Likewise.
14838         * lib/freading.c: Likewise.
14839         * lib/fwritable.c: Likewise.
14840         * lib/fwriting.c: Likewise.
14841         * lib/sigaction.c: Likewise.
14842
14843 2011-02-22  Jim Meyering  <meyering@redhat.com>
14844
14845         maint: adjust cpp indentation to reflect nesting depth
14846         I.e., in a block of code that begins with an unnested "#if",
14847         put one space between the "#" in column 1 and following token.
14848         For example,
14849         -#include <sys/vfs.h>
14850         +# include <sys/vfs.h>
14851         Do this only in .c files that are part of a module I maintain.
14852         * lib/linkat.c: Filter through cppi.
14853         * lib/nanosleep.c: Likewise.
14854         * lib/openat.c: Likewise.
14855         * lib/openat-die.c: Likewise.
14856         * lib/dup3.c: Likewise.
14857         * lib/fchownat.c: Likewise.
14858         * lib/flock.c: Likewise.
14859         * lib/fsync.c: Likewise.
14860         * lib/fts.c: Likewise.
14861         * lib/getpass.c: Likewise.
14862         * lib/gettimeofday.c: Likewise.
14863         * lib/userspec.c: Likewise.
14864         * Makefile (sc_cpp_indent_check): New rule, to check this.
14865
14866 2011-02-22  Bruno Haible  <bruno@clisp.org>
14867
14868         New module 'wctomb'.
14869         * lib/stdlib.in.h (wctomb): New declaration.
14870         * lib/wctomb.c: New file.
14871         * lib/wctomb-impl.h: New file.
14872         * m4/wctomb.m4: New file.
14873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14874         REPLACE_WCTOMB.
14875         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14876         REPLACE_WCTOMB.
14877         * modules/wctomb: New file.
14878         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14879         * doc/posix-functions/wctomb.texi: Mention the new module.
14880         * modules/wctob (Depends-on): Add wctomb.
14881
14882 2011-02-22  Bruno Haible  <bruno@clisp.org>
14883
14884         New module 'mbtowc'.
14885         * lib/stdlib.in.h (mbtowc): New declaration.
14886         * lib/mbtowc.c: New file.
14887         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14888         * m4/mbtowc.m4: New file.
14889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14890         REPLACE_MBTOWC.
14891         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14892         REPLACE_MBTOWC.
14893         * modules/mbtowc: New file.
14894         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14895         * doc/posix-functions/mbtowc.texi: Mention the new module.
14896         * modules/btowc (Depends-on): Add mbtowc.
14897
14898 2011-02-22  Bruno Haible  <bruno@clisp.org>
14899
14900         wcrtomb: Add more tests for native Windows platforms.
14901         * tests/test-wcrtomb-w32-1.sh: New file.
14902         * tests/test-wcrtomb-w32-2.sh: New file.
14903         * tests/test-wcrtomb-w32-3.sh: New file.
14904         * tests/test-wcrtomb-w32-4.sh: New file.
14905         * tests/test-wcrtomb-w32-5.sh: New file.
14906         * tests/test-wcrtomb-w32.c: New file.
14907         * modules/wcrtomb-tests (Files): Add them.
14908         (Makefile.am): Arrange to run these tests.
14909         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14910         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14911
14912 2011-02-20  Bruno Haible  <bruno@clisp.org>
14913
14914         wcrtomb: Enhance test.
14915         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14916
14917 2011-02-20  Bruno Haible  <bruno@clisp.org>
14918
14919         mbrtowc: Tiny optimization.
14920         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14921
14922 2011-02-20  Jim Meyering  <meyering@redhat.com>
14923
14924         test-exclude.c: remove unmatched #endif
14925         * tests/test-exclude.c: Remove stray #endif, left over from
14926         the change of a week ago.
14927
14928 2011-02-19  Jim Meyering  <meyering@redhat.com>
14929
14930         git-version-gen: skip "-dirty" check when appropriate
14931         * build-aux/git-version-gen: Don't run any git commands when the
14932         version string comes from .tarball-version.  Prior to this, we
14933         would run git update-index --refresh even from a just-unpacked
14934         tarball directory, and that could affect a .git/ directory in a
14935         parent of the build directory.  Reported by Mike Frysinger.
14936
14937 2011-02-19  Bruno Haible  <bruno@clisp.org>
14938
14939         unictype/property-byname: Reduce the size of the 'data' segment.
14940         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14941
14942 2011-02-19  Bruno Haible  <bruno@clisp.org>
14943
14944         unictype/scripts: Reduce the size of the 'data' segment.
14945         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14946         '%pic'.
14947         * lib/unictype/scripts_byname.gperf: Regenerated.
14948
14949 2011-02-19  Bruno Haible  <bruno@clisp.org>
14950
14951         stdint: Update documentation.
14952         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14953
14954 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14955
14956         stdint: omit redundant check for wchar.h
14957         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14958         always tests whether wchar.h exists, so remove the now-redundant test.
14959
14960 2011-02-18  Bruno Haible  <bruno@clisp.org>
14961
14962         stdint: Cut dependency to module 'wchar'.
14963         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14964         include the necessary prerequisites.
14965         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14966         * modules/stdint (Depends-on): Remove wchar.
14967         (Makefile.am): Substitute HAVE_WCHAR_H.
14968         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14969
14970 2011-02-18  Eric Blake  <eblake@redhat.com>
14971
14972         longlong: skip, rather than fail, on cross-compilation
14973         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14974         when cross-compiling; regression from 2011-02-16.
14975
14976 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14977
14978         * NEWS: Mention 2011-02-08 change to stdlib.
14979
14980 2011-02-17  Bruno Haible  <bruno@clisp.org>
14981
14982         getloadavg: Add comments about platforms.
14983         * m4/getloadavg.m4: Add comment.
14984         * lib/getloadavg.c: Likewise.
14985
14986 2011-02-17  Bruno Haible  <bruno@clisp.org>
14987
14988         getloadavg: Fix link error on Solaris 2.6.
14989         * modules/getloadavg (Link): New section.
14990         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14991         linking test-getloadavg.
14992         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14993         getloadavg.
14994
14995 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14996
14997         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14998         It was 'int', but this doesn't match the IRIX 6.5 manual.
14999         Suggested by Bruno Haible in
15000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15001
15002 2011-02-17  Bruno Haible  <bruno@clisp.org>
15003
15004         havelib: Fix comments.
15005         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15006         change.
15007
15008 2011-02-17  Bruno Haible  <bruno@clisp.org>
15009
15010         havelib: Update config.rpath.
15011         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15012
15013 2011-02-17  Bruno Haible  <bruno@clisp.org>
15014
15015         getloadavg test: Add some plausibility checks.
15016         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15017         is improbable.
15018
15019 2011-02-16  Eric Blake  <eblake@redhat.com>
15020
15021         maintainer-makefile: make syntax-check a no-op from tarballs
15022         * top/maint.mk (no-vc-detected): New rule.
15023         (local-checks-available): Use it to avoid hanging if someone tries
15024         'make syntax-check' from a tarball.  Also append to any non-syntax
15025         checks already defined in cfg.mk.
15026
15027 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15028
15029         longlong: tune, particularly for common case of c99
15030
15031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15032         or running anything if c99, or if unsigned long long int does not
15033         work.  In either case, we know the answer without further tests.
15034         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15035         it at most once, and use its results for both long long int and
15036         unsigned long long int.  This is more likely to be efficient in
15037         the common case where the program wants to check for both long
15038         long int and unsigned long long int.
15039         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15040         since the answer is already known.
15041
15042 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15043
15044         getloadavg: set errno
15045         * lib/getloadavg.c: Set errno when returning -1.  If no other
15046         error number looks appropriate, set it to ENOSYS if the getloadavg
15047         looks like it can't possibly ever work, ENOTSUP otherwise.
15048         Suggested by Bruno Haible in
15049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15050
15051         getloadavg: trim unused parts and speed up 'configure'
15052         * NEWS: Document this.
15053         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15054         always compiled if getloadavg is absent.
15055         Move test code to ...
15056         * tests/test-getloadavg.c: New file, containing previous
15057         contents of test from lib/getloadavg.c.  It also contains
15058         suggestions by Bruno Haible in
15059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15060         * modules/getloadavg-tests: New file.
15061         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15062         Do tests in the same order as they're needed for getloadavg.c.
15063         Omit setgid-related tests that generate symbols KMEM_GROUP,
15064         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15065         Do only the tests that are needed to see whether the system has
15066         getloadavg, moving the other tests into ...
15067         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15068         NLIST_NAME_UNION; nobody should be using it.  Do not define
15069         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15070         relevant, as the user of this module shouldn't care how getloadavg
15071         is implemented.
15072
15073         getloadavg: omit unused var
15074         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15075
15076 2011-02-15  Jim Meyering  <meyering@redhat.com>
15077
15078         doc: update users.txt
15079         * users.txt: Update iwhd's URL.
15080
15081 2011-02-13  Bruno Haible  <bruno@clisp.org>
15082
15083         Consistent macro naming for macros that use GCC __attribute__.
15084         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15085         _ATTRIBUTE_NONNULL_.
15086         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15087         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15088         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15089         ATTRIBUTE_DEPRECATED.
15090         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15091         ATTRIBUTE_NORETURN.
15092         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15093         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15094         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15095         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15096         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15097         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15098         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15099         ATTRIBUTE_SENTINEL.
15100         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15101         ATTRIBUTE_RETURN_CHECK.
15102         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15103         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15104         ATTRIBUTE_NORETURN.
15105         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15106         Reported by Paul Eggert.
15107
15108 2011-02-13  Bruno Haible  <bruno@clisp.org>
15109
15110         Don't interfere with a program's definition of __attribute__.
15111         * lib/argp.h (__attribute__): Remove definition.
15112         (_GL_ATTRIBUTE_FORMAT): New macro.
15113         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15114         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15115         (_GL_ATTRIBUTE_FORMAT): New macro.
15116         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15117         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15118         GCC 3 or newer.
15119         * lib/error.h (__attribute__): Remove definition.
15120         (_GL_ATTRIBUTE_FORMAT): New macro.
15121         (error, error_at_line): Use it.
15122         * lib/hash.h (__attribute__): Remove definition.
15123         (ATTRIBUTE_WUR): Update definition. Define always.
15124         * lib/openat.h (__attribute__): Remove definition.
15125         (ATTRIBUTE_NORETURN): Update definition. Define always.
15126         * lib/sigpipe-die.h (__attribute__): Remove definition.
15127         (ATTRIBUTE_NORETURN): Update definition. Define always.
15128         * lib/vasnprintf.h (__attribute__): Remove definition.
15129         (_GL_ATTRIBUTE_FORMAT): New macro.
15130         (asnprintf, vasnprintf): Use it.
15131         * lib/xalloc.h (__attribute__): Remove definition.
15132         (ATTRIBUTE_NORETURN): Update definition. Define always.
15133         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15134         * lib/xmemdup0.h (__attribute__): Remove definition.
15135         (ATTRIBUTE_NORETURN): Update definition. Define always.
15136         * lib/xprintf.h (__attribute__): Remove definition.
15137         (_GL_ATTRIBUTE_FORMAT): New macro.
15138         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15139         * lib/xstrtol.h (__attribute__): Remove definition.
15140         (ATTRIBUTE_NORETURN): Update definition. Define always.
15141         * lib/xvasprintf.h (__attribute__): Remove definition.
15142         (_GL_ATTRIBUTE_FORMAT): New macro.
15143         (xasprintf, xvasprintf): Use it.
15144         * tests/test-argmatch.c (__attribute__): Remove definition.
15145         (ATTRIBUTE_NORETURN): Update definition. Define always.
15146         * tests/test-exclude.c (__attribute__): Remove definition.
15147         (ATTRIBUTE_NORETURN): Update definition. Define always.
15148         Reported by Paul Eggert.
15149
15150 2011-02-13  Bruno Haible  <bruno@clisp.org>
15151
15152         mbrtowc: Add more tests for native Windows platforms.
15153         * tests/test-mbrtowc-w32-1.sh: New file.
15154         * tests/test-mbrtowc-w32-2.sh: New file.
15155         * tests/test-mbrtowc-w32-3.sh: New file.
15156         * tests/test-mbrtowc-w32-4.sh: New file.
15157         * tests/test-mbrtowc-w32-5.sh: New file.
15158         * tests/test-mbrtowc-w32.c: New file.
15159         * modules/mbrtowc-tests (Files): Add them.
15160         (Makefile.am): Arrange to run these tests.
15161         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15162         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15163
15164 2011-02-13  Bruno Haible  <bruno@clisp.org>
15165
15166         mbrtowc: Work around native Windows bug.
15167         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15168         guess when no suitable locale for testing was found.
15169         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15170
15171 2011-02-13  Bruno Haible  <bruno@clisp.org>
15172
15173         mbsinit: Work around mingw bug.
15174         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15175         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15176         Windows.
15177         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15178
15179 2011-02-13  Bruno Haible  <bruno@clisp.org>
15180
15181         mbsinit: Don't crash for a NULL argument.
15182         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15183         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15184
15185 2011-02-13  Bruno Haible  <bruno@clisp.org>
15186
15187         Don't interfere with a program's definition of __attribute__.
15188         * lib/stdio.in.h (__attribute__): Remove definition.
15189         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15190         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15191         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15192         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15193         * lib/string.in.h (__attribute__): Remove definition.
15194         Reported by Paul Eggert.
15195
15196 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15197
15198         stdlib: don't get in the way of non-GCC __attribute__
15199         See thread starting at
15200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15201         Revert previous stdlib change, installing the following instead:
15202         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15203         to get in the way of a non-GCC compiler that supports __attribute__.
15204         (_GL_ATTRIBUTE_RETURN): New macro.
15205         (_Exit): Use it instead of __attribute__.
15206
15207 2011-02-12  Bruno Haible  <bruno@clisp.org>
15208
15209         quotearg test: Avoid test failure on mingw.
15210         * tests/test-quotearg.sh: Convert the locale identifier from native
15211         Windows syntax to Unix syntax.
15212
15213 2011-02-12  Bruno Haible  <bruno@clisp.org>
15214
15215         setlocale: Prefer gnulib's override over libintl's override.
15216         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15217         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15218         GNULIB_defined_setlocale is set.
15219
15220 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15221
15222         stdlib: support non-GCC __attribute__
15223
15224         Fix a serious and tricky problem encountered when attempting to
15225         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15226         5.5, but it crashed due to memory corruption on Solaris 10 with
15227         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15228         bits that are otherwise zero.  This tagging is optional inside
15229         Emacs but is preferred and is used when __attribute__ ((__aligned
15230         (8))) works, as it does with both recent-enough GCC and with Sun C
15231         5.11.  However, Sun C 5.11 is not GCC and does not #define
15232         __GNUC__ and __GNUC_MINOR__.
15233
15234         When I added the getloadavg module to Emacs, it brought in
15235         stdlib.in.h, which contained this fragment:
15236
15237            #ifndef __attribute__
15238            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15239            #  define __attribute__(Spec)   /* empty */
15240            # endif
15241            #endif
15242
15243         When files that include <stdlib.h> were compiled with Sun C 5.11,
15244         the above code disabled __attribute__ ((__aligned (8))), which
15245         caused variables to not be properly aligned, which eventually led
15246         to the pointer corruption mentioned above.  (This was a bit hard
15247         to diagnose, unfortunately.)
15248
15249         Several "#define __attribute__(X) /* empty */" code snippets need
15250         to be eradicated from Gnulib to work with non-GCC compilers that
15251         support __attribute__.  The Autoconf way to do this is to test for
15252         each kind of attribute that we want support for, and selectively
15253         enable that in source code.
15254
15255         Fix this problem just for stdlib.h, by adding a test for the
15256         __noreturn__ attribute, and change stdlib.in.h to use that test
15257         when needed.  This technique can be easily generalized to the
15258         other *.in.h files and attributes, and a similar technique can be
15259         used for *.h and *.c files.  This patch is enough to solve the
15260         problem for Emacs + getloadavg, and I thought I'd publish it for
15261         feedback before undertaking further, similar fixes in other
15262         modules.
15263
15264         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15265         because it's not needed for stdlib.h.  It merely substitutes the
15266         value directly into stdlib.h.  We may well need to #define it, or
15267         similar symbols, for other modules, but it's nice to also have an
15268         option to not #define it for applications like Emacs that do not
15269         need it.
15270
15271         * lib/stdlib.in.h (__attribute__): Do not #define.
15272         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15273         be defined only if the _Exit module is also used.
15274         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15276         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15277         platforms.
15278         * modules/_Exit (Files): Add m4/attribute.m4.
15279         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15280         * m4/attribute.m4: New file.
15281
15282 2011-02-12  Bruno Haible  <bruno@clisp.org>
15283
15284         wcsrtombs: Work around bug on native Windows.
15285         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15286         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15287         instead of len.
15288         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15289
15290 2011-02-12  Bruno Haible  <bruno@clisp.org>
15291
15292         mbsrtowcs: Work around bug on native Windows.
15293         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15294         against mingw bug.
15295         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15296
15297 2011-02-12  Bruno Haible  <bruno@clisp.org>
15298
15299         Avoid setlocale bugs in tests.
15300         * modules/btowc (Dependencies): Add setlocale.
15301         * modules/c-strcase (Dependencies): Likewise.
15302         * modules/mbmemcasecmp (Dependencies): Likewise.
15303         * modules/mbmemcasecoll (Dependencies): Likewise.
15304         * modules/mbrtowc (Dependencies): Likewise.
15305         * modules/mbscasecmp (Dependencies): Likewise.
15306         * modules/mbscasestr (Dependencies): Likewise.
15307         * modules/mbschr (Dependencies): Likewise.
15308         * modules/mbscspn (Dependencies): Likewise.
15309         * modules/mbsinit (Dependencies): Likewise.
15310         * modules/mbsncasecmp (Dependencies): Likewise.
15311         * modules/mbsnrtowcs (Dependencies): Likewise.
15312         * modules/mbspbrk (Dependencies): Likewise.
15313         * modules/mbspcasecmp (Dependencies): Likewise.
15314         * modules/mbsrchr (Dependencies): Likewise.
15315         * modules/mbsrtowcs (Dependencies): Likewise.
15316         * modules/mbsspn (Dependencies): Likewise.
15317         * modules/mbsstr (Dependencies): Likewise.
15318         * modules/nl_langinfo (Dependencies): Likewise.
15319         * modules/quotearg (Dependencies): Likewise.
15320         * modules/unicase/locale-language (Dependencies): Likewise.
15321         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15322         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15323         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15324         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15325         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15326         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15327         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15328         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15329         * modules/vasnprintf-posix (Dependencies): Likewise.
15330         * modules/wcrtomb (Dependencies): Likewise.
15331         * modules/wcsnrtombs (Dependencies): Likewise.
15332         * modules/wcsrtombs (Dependencies): Likewise.
15333
15334 2011-02-12  Bruno Haible  <bruno@clisp.org>
15335
15336         setlocale: Workaround native Windows bug.
15337         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15338         succeeds but sets LC_CTYPE to "C", report a failure.
15339         * tests/test-setlocale2.sh: New file.
15340         * tests/test-setlocale2.c: New file.
15341         * modules/setlocale-tests (Files): Add the new files.
15342         (Makefile.am): Enable test-setlocale2.sh test.
15343         * doc/posix-functions/setlocale.texi: Mention workaround.
15344
15345 2011-02-11  Bruno Haible  <bruno@clisp.org>
15346
15347         Tests for module 'setlocale'.
15348         * modules/setlocale-tests: New file.
15349         * tests/test-setlocale1.sh: New file.
15350         * tests/test-setlocale1.c: New file.
15351
15352         New module 'setlocale'.
15353         * lib/locale.in.h (setlocale): New declaration.
15354         * lib/setlocale.c: New file, based on
15355         gettext/gettext-runtime/intl/setlocale.c.
15356         * m4/setlocale.m4: New file.
15357         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15358         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15359         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15360         REPLACE_SETLOCALE.
15361         * modules/setlocale: New file.
15362         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15363         * doc/posix-functions/setlocale.texi: Mention the new module.
15364
15365 2011-02-11  Bruno Haible  <bruno@clisp.org>
15366
15367         Prepare for locale dependent tests on mingw.
15368         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15369         because it has the wrong locale encoding.
15370         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15371         French_France.1252 instead of "fr".
15372         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15373         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15374         because it has the wrong locale encoding.
15375         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15376         native Windows, try Turkish_Turkey.65001.
15377         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15378         Chinese_China.54936.
15379
15380         Prepare for locale dependent tests on mingw.
15381         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15382         differently.
15383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15384         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15385         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15387
15388 2011-02-11  Eric Blake  <eblake@redhat.com>
15389
15390         strptime: avoid compiler warnings
15391         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15392         compiler warnings about dead code.
15393         Reported by Daniel P. Berrange.
15394
15395 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15396
15397         doc: update users.txt
15398         * users.txt: Add rcs.
15399
15400 2011-02-10  John W. Eaton  <jwe@gnu.org>
15401
15402         doc: update users.txt
15403         * users.txt: Add octave.
15404
15405 2011-02-10  Jim Meyering  <meyering@redhat.com>
15406
15407         doc: update users.txt
15408         * users.txt: Add iwhd.
15409
15410 2011-02-09  Bruno Haible  <bruno@clisp.org>
15411
15412         gnulib-tool: Make copyright notice adjustment more robust.
15413         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15414         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15415         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15416         License".
15417         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15418
15419 2011-02-06  Bruno Haible  <bruno@clisp.org>
15420
15421         New module 'towctrans'.
15422         * modules/towctrans: New file.
15423         * lib/wctype.in.h (towctrans): New declaration.
15424         * lib/towctrans.c: New file.
15425         * lib/towctrans-impl.h: New file.
15426         * m4/towctrans.m4: New file.
15427         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15428         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15429         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15430         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15431         * doc/posix-functions/towctrans.texi: Mention the new module.
15432
15433 2011-02-06  Bruno Haible  <bruno@clisp.org>
15434
15435         New module 'wctrans'.
15436         * modules/wctrans: New file.
15437         * lib/wctype.in.h (wctrans): New declaration.
15438         * lib/wctrans.c: New file.
15439         * lib/wctrans-impl.h: New file.
15440         * m4/wctrans.m4: New file.
15441         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15442         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15443         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15444         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15445         * doc/posix-functions/wctrans.texi: Mention the new module.
15446
15447 2011-02-06  Bruno Haible  <bruno@clisp.org>
15448
15449         New module 'iswctype'.
15450         * modules/iswctype: New file.
15451         * lib/wctype.in.h (iswctype): New declaration.
15452         * lib/iswctype.c: New file.
15453         * lib/iswctype-impl.h: New file.
15454         * m4/iswctype.m4: New file.
15455         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15456         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15457         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15458         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15459         * doc/posix-functions/iswctype.texi: Mention the new module and the
15460         HP-UX 11.00 problem.
15461
15462 2011-02-06  Bruno Haible  <bruno@clisp.org>
15463
15464         New module 'wctype'.
15465         * modules/wctype: Change to represent the wctype() substitute.
15466         * lib/wctype.in.h (wctype): New declaration.
15467         * lib/wctype.c: New file.
15468         * lib/wctype-impl.h: New file.
15469         * m4/wctype.m4: New file.
15470         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15471         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15472         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15473         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15474         * doc/posix-functions/wctype.texi: Mention the new module and the
15475         HP-UX 11.00 problem.
15476
15477 2011-02-06  Bruno Haible  <bruno@clisp.org>
15478
15479         wctype-h: Ensure wctype_t and wctrans_t are defined.
15480         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15481         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15482         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15483         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15484         HAVE_WCTRANS_T.
15485         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15486
15487 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15488
15489         flock: fix license typo
15490
15491         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15492         omitted.
15493
15494 2011-02-08  Bruno Haible  <bruno@clisp.org>
15495
15496         Split large sed scripts, for HP-UX sed.
15497         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15498         to avoid HP-UX limit of 99 commands, in the near future.
15499         * modules/stdlib (Makefile.am): Likewise.
15500         * modules/unistd (Makefile.am): Likewise.
15501         * modules/wchar (Makefile.am): Likewise.
15502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15503         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15505
15506 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15507             Bruno Haible  <bruno@clisp.org>
15508
15509         stdlib: improve random_r modularization
15510         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15511         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15512         you also need the random_r module to get this material right.
15513         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15514         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15515         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15516
15517 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15518
15519         stdlib: don't depend on stdint
15520         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15521         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15522         be independent of whether stdint.h is needed.
15523         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15524         here, instead of ...
15525         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15526         struct random_data should be using the random_r module, not just
15527         the stdlib module (which wouldn't make sense: what package needs
15528         just struct random_data without also needing random_r?).
15529         * modules/stdlib (Depends-on): Remove stdint.
15530
15531         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15532         See the thread rooted at
15533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15534         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15535         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15536         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15537         __VMS)); previously it was always included (via fcntl--.h).
15538         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15539         hand; this is good enough for load averages.  Also, do not use
15540         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15541         flags directly if available and don't bother otherwise.  (Packages
15542         that need the extra reliability should use the modules that define
15543         these flags on older platforms that lack them.)
15544         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15545         fcntl-safer.
15546
15547 2011-02-08  Jim Meyering  <meyering@redhat.com>
15548
15549         di-set.h, ino-map.h: add multiple-inclusion guard
15550         Technically, the guard is required only for ino-map.h, due to its
15551         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15552         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15553         * lib/ino-map.h: Likewise.
15554
15555 2011-02-06  Bruno Haible  <bruno@clisp.org>
15556
15557         iswblank: Ensure declaration on glibc systems.
15558         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15559         * modules/iswblank (Dependencies): Add 'extensions'.
15560         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15561
15562 2011-02-06  Bruno Haible  <bruno@clisp.org>
15563
15564         New module 'iswblank'.
15565         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15566         * modules/iswblank: New file.
15567         * modules/wctype-h (Files): Remove lib/iswblank.c.
15568         (Makefile.am): Substitute GNULIB_ISWBLANK.
15569         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15570         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15571         (gl_WCTYPE_H_DEFAULTS): New macro.
15572         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15573         * modules/iswblank-tests: New file.
15574         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15575         * tests/test-wctype-h.c (main): Remove iswblank tests.
15576         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15577         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15578         of 'wctype-h'.
15579         * NEWS: Mention the change.
15580         * modules/mbchar (Depends-on): Add iswblank.
15581
15582 2011-02-08  Bruno Haible  <bruno@clisp.org>
15583
15584         di-set tests: Refactor.
15585         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15586         unnecessary includes.
15587         (ASSERT): Remove macro.
15588         (main): Make C90 compliant by avoiding variable declaration after
15589         statement.
15590         * modules/di-set-tests (Files): Add tests/macros.h.
15591
15592 2011-02-08  Bruno Haible  <bruno@clisp.org>
15593
15594         ino-map tests: Refactor.
15595         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15596         unnecessary includes.
15597         (ASSERT): Remove macro.
15598         (main): Make C90 compliant by avoiding variable declaration after
15599         statement.
15600         * modules/ino-map-tests (Files): Add tests/macros.h.
15601
15602 2011-02-08  Jim Meyering  <meyering@redhat.com>
15603
15604         di-set: add "const" to a cast
15605         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15606         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15607
15608 2011-02-06  Bruno Haible  <bruno@clisp.org>
15609
15610         Rename module 'wctype' to 'wctype-h'.
15611         * modules/wctype-h: Renamed from modules/wctype.
15612         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15613         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15614         (Files, Depends-on, Makefile.am): Update.
15615         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15616         (Files, Makefile.am): Update.
15617         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15618         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15619         * doc/posix-headers/wctype.texi: Update.
15620         * doc/posix-functions/iswalnum.texi: Update.
15621         * doc/posix-functions/iswalpha.texi: Update.
15622         * doc/posix-functions/iswblank.texi: Update.
15623         * doc/posix-functions/iswcntrl.texi: Update.
15624         * doc/posix-functions/iswdigit.texi: Update.
15625         * doc/posix-functions/iswgraph.texi: Update.
15626         * doc/posix-functions/iswlower.texi: Update.
15627         * doc/posix-functions/iswprint.texi: Update.
15628         * doc/posix-functions/iswpunct.texi: Update.
15629         * doc/posix-functions/iswspace.texi: Update.
15630         * doc/posix-functions/iswupper.texi: Update.
15631         * doc/posix-functions/iswxdigit.texi: Update.
15632         * doc/posix-functions/towlower.texi: Update.
15633         * doc/posix-functions/towupper.texi: Update.
15634         * NEWS: Mention the change.
15635         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15636         * modules/mbchar (Dependencies): Likewise.
15637         * modules/mbswidth (Dependencies): Likewise.
15638         * modules/quotearg (Dependencies): Likewise.
15639         * modules/regex (Dependencies): Likewise.
15640         * modules/wcscasecmp (Dependencies): Likewise.
15641         * modules/wcsncasecmp (Dependencies): Likewise.
15642         * modules/wcwidth (Dependencies): Likewise.
15643
15644 2011-02-06  Bruno Haible  <bruno@clisp.org>
15645
15646         New module 'wcswidth'.
15647         * modules/wcswidth: New file.
15648         * lib/wchar.in.h (wcswidth): New declaration.
15649         * lib/wcswidth.c: New file.
15650         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15651         * m4/wcswidth.m4: New file.
15652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15654         REPLACE_WCSWIDTH.
15655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15656         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15657         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15658         * doc/posix-functions/wcswidth.texi: Mention the new module.
15659
15660 2011-02-06  Bruno Haible  <bruno@clisp.org>
15661
15662         New module 'wcstok'.
15663         * modules/wcstok: New file.
15664         * lib/wchar.in.h (wcstok): New declaration.
15665         * lib/wcstok.c: New file.
15666         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15667         * m4/wcstok.m4: New file.
15668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15671         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15672         * doc/posix-functions/wcstok.texi: Mention the new module.
15673
15674 2011-02-06  Bruno Haible  <bruno@clisp.org>
15675
15676         New module 'wcsstr'.
15677         * modules/wcsstr: New file.
15678         * lib/wchar.in.h (wcsstr): New declaration.
15679         * lib/wcsstr.c: New file.
15680         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15681         * m4/wcsstr.m4: New file.
15682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15685         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15686         * doc/posix-functions/wcsstr.texi: Mention the new module.
15687
15688 2011-02-06  Bruno Haible  <bruno@clisp.org>
15689
15690         New module 'wcspbrk'.
15691         * modules/wcspbrk: New file.
15692         * lib/wchar.in.h (wcspbrk): New declaration.
15693         * lib/wcspbrk.c: New file.
15694         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15695         * m4/wcspbrk.m4: New file.
15696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15699         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15700         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15701
15702 2011-02-06  Bruno Haible  <bruno@clisp.org>
15703
15704         New module 'wcsspn'.
15705         * modules/wcsspn: New file.
15706         * lib/wchar.in.h (wcsspn): New declaration.
15707         * lib/wcsspn.c: New file.
15708         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15709         * m4/wcsspn.m4: New file.
15710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15713         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15714         * doc/posix-functions/wcsspn.texi: Mention the new module.
15715
15716 2011-02-06  Bruno Haible  <bruno@clisp.org>
15717
15718         New module 'wcscspn'.
15719         * modules/wcscspn: New file.
15720         * lib/wchar.in.h (wcscspn): New declaration.
15721         * lib/wcscspn.c: New file.
15722         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15723         * m4/wcscspn.m4: New file.
15724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15727         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15728         * doc/posix-functions/wcscspn.texi: Mention the new module.
15729
15730 2011-02-06  Bruno Haible  <bruno@clisp.org>
15731
15732         New module 'wcsrchr'.
15733         * modules/wcsrchr: New file.
15734         * lib/wchar.in.h (wcsrchr): New declaration.
15735         * lib/wcsrchr.c: New file.
15736         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15737         * m4/wcsrchr.m4: New file.
15738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15741         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15742         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15743
15744 2011-02-06  Bruno Haible  <bruno@clisp.org>
15745
15746         New module 'wcschr'.
15747         * modules/wcschr: New file.
15748         * lib/wchar.in.h (wcschr): New declaration.
15749         * lib/wcschr.c: New file.
15750         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15751         * m4/wcschr.m4: New file.
15752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15755         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15756         * doc/posix-functions/wcschr.texi: Mention the new module.
15757
15758 2011-02-06  Bruno Haible  <bruno@clisp.org>
15759
15760         New module 'wcsdup'.
15761         * modules/wcsdup: New file.
15762         * lib/wchar.in.h (wcsdup): New declaration.
15763         * lib/wcsdup.c: New file.
15764         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15765         * m4/wcsdup.m4: New file.
15766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15769         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15770         * doc/posix-functions/wcsdup.texi: Mention the new module.
15771
15772 2011-02-06  Bruno Haible  <bruno@clisp.org>
15773
15774         New module 'wcsxfrm'.
15775         * modules/wcsxfrm: New file.
15776         * lib/wchar.in.h (wcsxfrm): New declaration.
15777         * lib/wcsxfrm.c: New file.
15778         * lib/wcsxfrm-impl.h: New file.
15779         * m4/wcsxfrm.m4: New file.
15780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15783         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15784         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15785
15786 2011-02-06  Bruno Haible  <bruno@clisp.org>
15787
15788         New module 'wcscoll'.
15789         * modules/wcscoll: New file.
15790         * lib/wchar.in.h (wcscoll): New declaration.
15791         * lib/wcscoll.c: New file.
15792         * lib/wcscoll-impl.h: New file.
15793         * m4/wcscoll.m4: New file.
15794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15797         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15798         * doc/posix-functions/wcscoll.texi: Mention the new module.
15799
15800 2011-02-06  Bruno Haible  <bruno@clisp.org>
15801
15802         New module 'wcsncasecmp'.
15803         * modules/wcsncasecmp: New file.
15804         * lib/wchar.in.h (wcsncasecmp): New declaration.
15805         * lib/wcsncasecmp.c: New file.
15806         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15807         * m4/wcsncasecmp.m4: New file.
15808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15811         HAVE_WCSNCASECMP.
15812         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15813         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15814
15815 2011-02-06  Bruno Haible  <bruno@clisp.org>
15816
15817         New module 'wcscasecmp'.
15818         * modules/wcscasecmp: New file.
15819         * lib/wchar.in.h (wcscasecmp): New declaration.
15820         * lib/wcscasecmp.c: New file.
15821         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15822         * m4/wcscasecmp.m4: New file.
15823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15826         HAVE_WCSCASECMP.
15827         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15828         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15829
15830 2011-02-05  Bruno Haible  <bruno@clisp.org>
15831
15832         New module 'wcsncmp'.
15833         * modules/wcsncmp: New file.
15834         * lib/wchar.in.h (wcsncmp): New declaration.
15835         * lib/wcsncmp.c: New file.
15836         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15837         * m4/wcsncmp.m4: New file.
15838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15841         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15842         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15843
15844 2011-02-05  Bruno Haible  <bruno@clisp.org>
15845
15846         New module 'wcscmp'.
15847         * modules/wcscmp: New file.
15848         * lib/wchar.in.h (wcscmp): New declaration.
15849         * lib/wcscmp.c: New file.
15850         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15851         * m4/wcscmp.m4: New file.
15852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15855         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15856         * doc/posix-functions/wcscmp.texi: Mention the new module.
15857
15858 2011-02-05  Bruno Haible  <bruno@clisp.org>
15859
15860         New module 'wcsncat'.
15861         * modules/wcsncat: New file.
15862         * lib/wchar.in.h (wcsncat): New declaration.
15863         * lib/wcsncat.c: New file.
15864         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15865         * m4/wcsncat.m4: New file.
15866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15869         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15870         * doc/posix-functions/wcsncat.texi: Mention the new module.
15871
15872 2011-02-05  Bruno Haible  <bruno@clisp.org>
15873
15874         New module 'wcscat'.
15875         * modules/wcscat: New file.
15876         * lib/wchar.in.h (wcscat): New declaration.
15877         * lib/wcscat.c: New file.
15878         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15879         * m4/wcscat.m4: New file.
15880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15883         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15884         * doc/posix-functions/wcscat.texi: Mention the new module.
15885
15886 2011-02-05  Bruno Haible  <bruno@clisp.org>
15887
15888         New module 'wcpncpy'.
15889         * modules/wcpncpy: New file.
15890         * lib/wchar.in.h (wcpncpy): New declaration.
15891         * lib/wcpncpy.c: New file.
15892         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15893         * m4/wcpncpy.m4: New file.
15894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15896         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15897         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15898         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15899
15900 2011-02-05  Bruno Haible  <bruno@clisp.org>
15901
15902         New module 'wcsncpy'.
15903         * modules/wcsncpy: New file.
15904         * lib/wchar.in.h (wcsncpy): New declaration.
15905         * lib/wcsncpy.c: New file.
15906         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15907         * m4/wcsncpy.m4: New file.
15908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15911         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15912         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15913
15914 2011-02-05  Bruno Haible  <bruno@clisp.org>
15915
15916         New module 'wcpcpy'.
15917         * modules/wcpcpy: New file.
15918         * lib/wchar.in.h (wcpcpy): New declaration.
15919         * lib/wcpcpy.c: New file.
15920         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15921         * m4/wcpcpy.m4: New file.
15922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15924         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15925         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15926         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15927
15928 2011-02-05  Bruno Haible  <bruno@clisp.org>
15929
15930         New module 'wcscpy'.
15931         * modules/wcscpy: New file.
15932         * lib/wchar.in.h (wcscpy): New declaration.
15933         * lib/wcscpy.c: New file.
15934         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15935         * m4/wcscpy.m4: New file.
15936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15939         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15940         * doc/posix-functions/wcscpy.texi: Mention the new module.
15941
15942 2011-02-05  Bruno Haible  <bruno@clisp.org>
15943
15944         New module 'wcsnlen'.
15945         * modules/wcsnlen: New file.
15946         * lib/wchar.in.h (wcsnlen): New declaration.
15947         * lib/wcsnlen.c: New file.
15948         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15949         * m4/wcsnlen.m4: New file.
15950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15953         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15954         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15955
15956 2011-02-05  Bruno Haible  <bruno@clisp.org>
15957
15958         New module 'wcslen'.
15959         * modules/wcslen: New file.
15960         * lib/wchar.in.h (wcslen): New declaration.
15961         * lib/wcslen.c: New file.
15962         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15963         * m4/wcslen.m4: New file.
15964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15967         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15968         * doc/posix-functions/wcslen.texi: Mention the new module.
15969
15970 2011-02-05  Bruno Haible  <bruno@clisp.org>
15971
15972         New module 'wmemset'.
15973         * modules/wmemset: New file.
15974         * lib/wchar.in.h (wmemset): New declaration.
15975         * lib/wmemset.c: New file.
15976         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15977         * m4/wmemset.m4: New file.
15978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15980         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15981         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15982         * doc/posix-functions/wmemset.texi: Mention the new module.
15983
15984 2011-02-05  Bruno Haible  <bruno@clisp.org>
15985
15986         New module 'wmemmove'.
15987         * modules/wmemmove: New file.
15988         * lib/wchar.in.h (wmemmove): New declaration.
15989         * lib/wmemmove.c: New file.
15990         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15991         * m4/wmemmove.m4: New file.
15992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15994         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15995         HAVE_WMEMMOVE.
15996         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15997         * doc/posix-functions/wmemmove.texi: Mention the new module.
15998
15999 2011-02-05  Bruno Haible  <bruno@clisp.org>
16000
16001         New module 'wmemcpy'.
16002         * modules/wmemcpy: New file.
16003         * lib/wchar.in.h (wmemcpy): New declaration.
16004         * lib/wmemcpy.c: New file.
16005         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16006         * m4/wmemcpy.m4: New file.
16007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16009         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16010         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16011         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16012
16013 2011-02-05  Bruno Haible  <bruno@clisp.org>
16014
16015         New module 'wmemcmp'.
16016         * modules/wmemcmp: New file.
16017         * lib/wchar.in.h (wmemcmp): New declaration.
16018         * lib/wmemcmp.c: New file.
16019         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16020         * m4/wmemcmp.m4: New file.
16021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16023         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16024         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16025         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16026
16027 2011-02-07  Jim Meyering  <meyering@redhat.com>
16028
16029         di-set, ino-map: new modules, from coreutils
16030         * lib/di-set.c: New file.
16031         * lib/di-set.h: Likewise.
16032         * lib/ino-map.c: Likewise.
16033         * lib/ino-map.h: Likewise.
16034         * modules/di-set: Likewise.
16035         * modules/di-set-tests: Likewise.
16036         * modules/ino-map: Likewise.
16037         * modules/ino-map-tests: Likewise.
16038         * tests/test-di-set.c: Likewise.
16039         * tests/test-ino-map.c: Likewise.
16040
16041 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16042
16043         getloadavg: merge minor changes from Emacs
16044
16045         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16046         (getloadavg): Use memset, not bzero.
16047
16048         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16049         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16050         clash (bug#86).
16051
16052 2010-11-14  Bruno Haible  <bruno@clisp.org>
16053
16054         Allow multiple gnulib generated replacements to coexist.
16055         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16056         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16057         * lib/langinfo.in.h (nl_item): Likewise.
16058         * lib/math.in.h (_NaN, NAN): Likewise.
16059         * lib/netdb.in.h (struct addrinfo): Likewise.
16060         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16061         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16062         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16063         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16064         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16065         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16066         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16067         pthread_mutexattr_init, pthread_mutexattr_settype,
16068         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16069         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16070         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16071         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16072         * lib/sched.in.h (struct sched_param): Likewise.
16073         * lib/se-selinux.in.h (security_class_t, security_context_t,
16074         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16075         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16076         lsetfilecon, fsetfilecon, security_check_context,
16077         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16078         Likewise.
16079         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16080         Likewise.
16081         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16082         _gl_function_taking_int_returning_void_t, union sigval,
16083         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16084         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16085         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16086         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16087         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16088         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16089         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16090         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16091         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16092         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16093         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16094         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16095         socklen_t, rpl_fd_isset): Likewise.
16096         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16097         * lib/sys_time.in.h (struct timeval): Likewise.
16098         * lib/sys_times.in.h (struct tms): Likewise.
16099         * lib/sys_utsname.in.h (struct utsname):
16100         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16101         * lib/unistd.in.h (getpagesize): Likewise.
16102         * lib/wchar.in.h (mbstate_t): Likewise.
16103         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16104         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16105         towlower, towupper): Likewise.
16106         Reported by Sam Steingold <sds@gnu.org>.
16107
16108 2011-02-05  Eric Blake  <eblake@redhat.com>
16109
16110         unsetenv: work around Haiku issues
16111         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16112         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16113
16114 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16115
16116         libposix: avoid calling error() within libposix
16117         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16118         is defined.
16119
16120 2011-02-05  Eric Blake  <eblake@redhat.com>
16121
16122         strerror_r-posix: port to cygwin
16123         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16124         implementation.
16125         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16126         * tests/test-strerror_r.c (main): Fix test.
16127         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16128         issue.
16129
16130 2011-02-05  Bruno Haible  <bruno@clisp.org>
16131
16132         New module 'wmemchr'.
16133         * modules/wmemchr: New file.
16134         * lib/wchar.in.h (wmemchr): New declaration.
16135         * lib/wmemchr.c: New file.
16136         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16137         * m4/wmemchr.m4: New file.
16138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16140         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16141         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16142         * doc/posix-functions/wmemchr.texi: Mention the new module.
16143
16144 2011-02-04  Eric Blake  <eblake@redhat.com>
16145
16146         fdopendir: detect FreeBSD bug
16147         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16148         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16149
16150 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16151
16152         stdbool: do not define HAVE_STDBOOL_H
16153         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16154         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16155         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16156         imported from the latest Autoconf git.  It was motivated by Emacs,
16157         which uses gnulib but does not need HAVE_STDBOOL_H.
16158
16159 2011-02-04  Bruno Haible  <bruno@clisp.org>
16160
16161         wcsnrtombs: Prepare for new module wwcsnrtombs.
16162         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16163         * lib/wcsnrtombs.c: Include it.
16164         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16165
16166         wcsrtombs: Prepare for new module wwcsrtombs.
16167         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16168         * lib/wcsrtombs.c: Include it.
16169         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16170
16171         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16172         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16173         * lib/mbsnrtowcs.c: Include it.
16174         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16175
16176         mbsrtowcs: Prepare for new module mbsrtowwcs.
16177         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16178         * lib/mbsrtowcs.c: Include it.
16179         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16180
16181 2011-02-04  Bruno Haible  <bruno@clisp.org>
16182
16183         vasnprintf: Reduce use of malloc for small format strings.
16184         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16185         (arguments): Add room for the first 7 arguments.
16186         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16187         (char_directives, u8_directives, u16_directives, u32_directives): Add
16188         room for the first 7 directives.
16189         * lib/printf-parse.c: Include <string.h>.
16190         (PRINTF_PARSE): Change memory handling code so that it uses the first
16191         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16192         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16193         Reported by Pádraig Brady <P@draigbrady.com>.
16194
16195 2011-01-31  Eric Blake  <eblake@redhat.com>
16196
16197         dup2: work around Haiku bug
16198         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16199         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16200         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16201         * tests/test-dup2.c (main): Enhance test.
16202
16203 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16204
16205         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16206         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16207         declared by eglibc 2.11.2.
16208         * lib/stdio.in.h: Likewise.
16209
16210 2011-01-31  Eric Blake  <eblake@redhat.com>
16211
16212         ignore-value: add missing test dependency
16213         * tests/test-ignore-value.c: Revert previous change; stdio.h
16214         provides off_t.
16215         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16216
16217 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16218
16219         mktime: clarify long_int width checking
16220         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16221         the top level, to make it clearer that the assumption about
16222         long_int width is being checked.  See
16223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16224
16225 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16226
16227         ignore-value: Fix self-test.
16228         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16229
16230 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16231
16232         TYPE_MAXIMUM: avoid theoretically undefined behavior
16233         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16234         negative number, which the C Standard says has undefined behavior.
16235         In practice this is not a problem, but might as well do it by the book.
16236         Reported by Rich Felker and Eric Blake; see
16237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16238         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16239         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16241         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16242         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16243         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16244
16245         mktime: #undef mktime before #defining it
16246         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16247
16248         mktime: systematically normalize tm_isdst comparisons
16249         * lib/mktime.c (isdst_differ): New function.
16250         (__mktime_internal): Use it systematically for all isdst comparisons.
16251         This completes the fix for libc BZ #6723, and removes the need for
16252         normalizing tm_isdst.  See
16253         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16254         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16255
16256         mktime: fix some integer overflow issues and sidestep the rest
16257
16258         This was prompted by a bug report by Benjamin Lindner for MinGW
16259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16260         His bug is due to signed integer overflow (0 - INT_MIN), and I
16261         I scanned through mktime.c looking for other integer overflow
16262         problems, fixing all the bugs I found.
16263
16264         Although the C Standard says the resulting code is still not safe
16265         in the presence of integer overflow, in practice it should be good
16266         enough for all real-world two's-complement implementations, except
16267         for debugging environments that deliberately trap on integer
16268         overflow (e.g., gcc -ftrapv).
16269
16270         * lib/mktime.c (WRAPV): New macro.
16271         (SHR): Also check that long_int and time_t shift right in the
16272         usual way, before using the fast-but-unportable method.
16273         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16274         used.  The code already assumed two's complement, so there's
16275         no need to test for alternatives.  All uses removed.
16276         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16277         the C standard.  Problem reported by Rich Felker in
16278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16279         (twos_complement_arithmetic): Also check long_int and time_t.
16280         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16281         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16282         (__mktime_internal): Avoid integer overflow with unary subtraction
16283         in two instances where -1 - X is an adequate replacement for -X,
16284         since the calculations are approximate.
16285
16286 2011-01-29  Eric Blake  <eblake@redhat.com>
16287
16288         mktime: avoid infinite loop
16289         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16290         type; behavior is still undefined but portable to all known targets.
16291         Reported by Rich Felker.
16292
16293 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16294
16295         rename, unlink, same-inode: Relicense.
16296         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16297         * modules/unlink (License): Likewise.
16298         * modules/same-inode (License): Likewise.
16299
16300 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16301
16302         mktime: avoid problems on NetBSD 5 / i386
16303         * lib/mktime.c (long_int): New type.  This works around a problem
16304         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16305         but time_t is 64 bits, and where I expect the existing code is
16306         wrong in some cases.
16307         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16308         (ydhms_diff): Bring back the compile-time check for wide-enough
16309         year and yday.
16310
16311         mktime: fix misspelling in comment
16312         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16313         This merges all recent glibc changes of importance.
16314
16315 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16316
16317         move-if-change: cope with concurrent mv of identical file.
16318         * build-aux/move-if-change (CMPPROG): Accept environment
16319         variable as an override for `cmp'.
16320         (usage): Document CMPPROG.
16321         Adjust comparison to drop stdout.  Cope with failure of mv if
16322         the target file exists and is identical to the source, for
16323         parallel builds.
16324         Report from H.J. Lu against binutils in PR binutils/12283.
16325
16326 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16327
16328         * users.txt: Mention sharutils.
16329
16330 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16331
16332         * users.txt: Mention OATH Toolkit.
16333
16334 2011-01-27  Bruno Haible  <bruno@clisp.org>
16335
16336         Prepare for supporting FreeBSD 10.
16337         * build-aux/config.libpath: Remove handling of freebsd1*.
16338
16339 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16340
16341         Prepare for supporting FreeBSD 10.
16342         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16343         match FreeBSD 10.0.
16344
16345 2011-01-27  Bruno Haible  <bruno@clisp.org>
16346
16347         vma-iter, get-rusage-as: Add OpenBSD support.
16348         * modules/vma-iter (configure.ac): Test for mquery.
16349         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16350         * lib/vma-iter.c: Include <sys/mman.h>.
16351         (vma_iterate): Add an implementation based on mquery().
16352         * lib/resource-ext.h (get_rusage_as): Update comments.
16353         * lib/get-rusage-as.c: Likewise.
16354         * lib/get-rusage-data.c: Likewise.
16355
16356 2011-01-26  Karl Berry  <karl@gnu.org>
16357
16358         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16359         variables to make it easier to override the makeinfo program used.
16360
16361 2011-01-26  Eric Blake  <eblake@redhat.com>
16362
16363         fcntl: work around Haiku F_DUPFD bugs
16364         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16365         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16366         cloexec bit on duplication.
16367         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16368
16369 2011-01-26  Bruno Haible  <bruno@clisp.org>
16370
16371         Enable memory leak tests on AIX.
16372         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16373         * tests/test-fprintf-posix3.c (main): Likewise.
16374
16375 2011-01-26  Bruno Haible  <bruno@clisp.org>
16376
16377         Tests for module 'get-rusage-data'.
16378         * modules/get-rusage-data-tests: New file.
16379         * tests/test-get-rusage-data.c: New file.
16380
16381         New module 'get-rusage-data'.
16382         * lib/resource-ext.h (get_rusage_data): New declaration.
16383         * lib/get-rusage-data.c: New file.
16384         * modules/get-rusage-data: New file.
16385
16386 2011-01-25  Bruno Haible  <bruno@clisp.org>
16387
16388         get-rusage-as: Allow for easier testing.
16389         * lib/resource-ext.h (get_rusage_as): Add comment.
16390         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16391         (main): New function for interactive testing.
16392
16393 2011-01-25  Bruno Haible  <bruno@clisp.org>
16394
16395         vma-iter: Treat Haiku like BeOS.
16396         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16397         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16398
16399 2011-01-25  Eric Blake  <eblake@redhat.com>
16400
16401         c-stack: fix regression on cygwin when libsigsegv is present
16402         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16403
16404 2011-01-24  Bruno Haible  <bruno@clisp.org>
16405
16406         vma-iter: Avoid empty intervals.
16407         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16408         on an empty interval.
16409
16410 2011-01-24  Jim Meyering  <meyering@redhat.com>
16411
16412         u64: remove unnecessary #include
16413         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16414
16415 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16416
16417         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16418         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16419
16420 2011-01-23  Bruno Haible  <bruno@clisp.org>
16421
16422         New module 'vma-iter'.
16423         * lib/vma-iter.h: New file.
16424         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16425         * modules/vma-iter: New file.
16426         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16427         for get_rusage_as_via_iterator.
16428         (vma_iterate_callback): New function.
16429         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16430         * modules/get-rusage-as (Depends-on): Add vma-iter.
16431
16432 2011-01-23  Bruno Haible  <bruno@clisp.org>
16433
16434         uninorm: Tweak includes.
16435         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16436         Reported by Jim Meyering.
16437
16438 2011-01-23  Bruno Haible  <bruno@clisp.org>
16439
16440         get-rusage-as: Improve on NetBSD.
16441         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16442         /proc, like on FreeBSD.
16443
16444 2011-01-23  Jim Meyering  <meyering@redhat.com>
16445
16446         xreadlink.h: remove unnecessary #include
16447         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16448
16449         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16450         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16451
16452 2011-01-23  Bruno Haible  <bruno@clisp.org>
16453
16454         get-rusage-as: Fix bug.
16455         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16456         original limit when aborting the first loop.
16457
16458 2011-01-23  Bruno Haible  <bruno@clisp.org>
16459
16460         wctype: Ensure valid C syntax.
16461         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16462         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16463
16464 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16465
16466         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16468         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16469         as they are needed only for configure's test case.
16470         This removes two unnecessary symbols from config.h.
16471
16472         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16473         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16475         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16476         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16477         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16478         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16479         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16480         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16481         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16482         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16483         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16484         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16485         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16486         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16487         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16488         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16489         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16490
16491 2011-01-21  Eric Blake  <eblake@redhat.com>
16492
16493         maintainer-makefile: work with older git for submodule check
16494         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16495         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16496         Reported by Matthias Bolte.
16497
16498         bootstrap: minor portability fixes
16499         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16500         (usage): Omit leading capital and trailing . on help phrases, per
16501         GNU Coding Standards.
16502         (check_versions, top level): Prefix messages with script name.
16503
16504 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16505
16506         bootstrap: support --no-git option
16507         * build-aux/bootstrap: Add --no-git option, to be used when
16508         --gnulib-srcdir points to the exact desired checkout.
16509
16510 2011-01-21  Eric Blake  <eblake@redhat.com>
16511
16512         strerror_r-posix: work with glibc 2.13
16513         * lib/strerror_r.c (strerror_r): Fix return type.
16514
16515 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16516             Bruno Haible  <bruno@clisp.org>
16517
16518         uN_strstr: New unit tests.
16519         * modules/unistr/u8-strstr-tests: New file.
16520         * modules/unistr/u16-strstr-tests: New file.
16521         * modules/unistr/u32-strstr-tests: New file.
16522         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16523         * tests/unistr/test-u8-strstr.c: New file.
16524         * tests/unistr/test-u16-strstr.c: New file.
16525         * tests/unistr/test-u32-strstr.c: New file.
16526
16527 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16528             Bruno Haible  <bruno@clisp.org>
16529
16530         Make uN_strstr functions O(n) worst-case.
16531         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16532         16-bit and 32-bit unit cases, use the unibyte algorithm from
16533         lib/mbsstr.c.
16534         * lib/unistr/u8-strstr.c: Include <string.h>.
16535         (UNIT_IS_UINT8_T): New macro.
16536         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16537         (U_STRLEN, U_STRNLEN): New macros.
16538         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16539         (U_STRLEN, U_STRNLEN): New macros.
16540         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16541         (configure.ac): Update required libunistring version.
16542         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16543         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16544         malloca.
16545         (configure.ac): Update required libunistring version.
16546         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16547         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16548         malloca.
16549         (configure.ac): Update required libunistring version.
16550
16551 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16552             Bruno Haible  <bruno@clisp.org>
16553
16554         Prepare for faster uN_strstr functions.
16555         * lib/str-kmp.h: Support definable UNITs.
16556         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16557         needle_len argument.
16558         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16559         * lib/mbscasestr.c (mbscasestr): Likewise.
16560
16561 2011-01-21  Pádraig Brady <P@draigBrady.com>
16562
16563         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16564         * tests/test-malloca.c (main): Unset the environment variable
16565         to greatly speed up the test.
16566         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16567         * modules/malloca-tests: Depend on unsetenv.
16568
16569 2011-01-21  Pádraig Brady <P@draigBrady.com>
16570
16571         ignore-value: remove stdint dependency
16572         * lib/ignore-value.h: Remove <stdint.h>
16573         * modules/ignore-value: Remove stdint dependency.
16574
16575 2011-01-21  Jim Meyering  <meyering@redhat.com>
16576
16577         maint.mk: adjust variable name to be consistent with other gl_ vars
16578         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16579         to be lower case.
16580
16581 2011-01-20  Jim Meyering  <meyering@redhat.com>
16582
16583         maint.mk: make "check" depend on public-submodule-commit by default
16584         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16585
16586 2011-01-20  Bruno Haible  <bruno@clisp.org>
16587
16588         mbfile, mbiter: Complete change from 2008-12-21.
16589         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16590         * m4/mbiter.m4 (gl_MBITER): Likewise.
16591
16592 2011-01-20  Jim Meyering  <meyering@redhat.com>
16593
16594         init.sh: insert space between each function name and "()"
16595         * tests/init.sh: Make it a little easier to see that a function's
16596         name is "warn_", and not "warn" when looking at the first part of
16597         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16598
16599 2011-01-20  Jim Meyering  <meyering@redhat.com>
16600
16601         mountlist: clean up code formatting
16602         * lib/mountlist.c (read_file_system_list): Split a long line,
16603         correct bracing style, use NULL in place of "(struct statfs *)0",
16604         don't parenthesize return value, add spaces around "=" and after
16605         ";-in-for-stmt".
16606
16607 2011-01-14  Markus Duft <mduft@gentoo.org>
16608
16609         mountlist: add support for Interix
16610         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16611         Apply statvfs to all entries of /dev/fs.
16612         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16613         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16614
16615 2011-01-20  Jim Meyering  <meyering@redhat.com>
16616
16617         maint.mk: improve the public-submodule-commit rule
16618         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16619         to suppress printing of its commands... unless V=1.
16620         Add git submodule's --quiet option to suppress printing of e.g.,
16621         "Entering gnulib" output.
16622         "cd" into $(srcdir) before running git submodule.
16623
16624 2011-01-20  Bruno Haible  <bruno@clisp.org>
16625
16626         include_next: Fix bug introduced on 2011-01-18.
16627         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16628         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16629         ac_cv_header_... variable if the second argument is not 'check'.
16630         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16631         gl_NEXT_HEADERS_INTERNAL.
16632
16633 2011-01-20  Bruno Haible  <bruno@clisp.org>
16634
16635         Allow the user to avoid the GNULIB_TEST_* macros.
16636         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16637         Suggested by Paul Eggert.
16638
16639 2011-01-14  Jim Meyering  <meyering@redhat.com>
16640
16641         bootstrap: avoid failure when there is no .gitmodules file
16642         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16643         has been assigned to, even when its value is the empty string.
16644         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16645         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16646         Reported by John W. Eaton <jwe@gnu.org>.
16647
16648 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         assume <ctype.h>, ..., <time.h> exist
16651         For years gnulib has been assuming the existence of the headers
16652         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16653         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16654         them, since they don't appear to be needed.
16655         * README (Portability guidelines): Document this.
16656         * lib/flock.c: Assume <fcntl.h> exists.
16657         * lib/regex_internal.h: Assume <locale.h> exists.
16658         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16659         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16660         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16661         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16662         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16663         * m4/regex.m4 (gl_REGEX): Likewise.
16664         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16665         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16666         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16667         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16668         * tests/test-argp.c: Likewise.
16669         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16670
16671         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16672         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16673         AA_APPLE_UNIVERSAL_BUILD.  See
16674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16675         * NEWS: Document this.
16676
16677 2011-01-19  Eric Blake  <eblake@redhat.com>
16678
16679         c-stack: assume stack overflow if SA_SIGINFO unsupported
16680         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16681         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16682         sigaction will work.
16683         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16684         behavior match Linux.
16685         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16686
16687         stdbool-tests: accomodate Haiku
16688         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16689
16690         binary-io: fix O_TEXT on Haiku
16691         * modules/binary-io (Depends-on): Add fcntl-h.
16692         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16693         than blindly undefining O_TEXT.
16694         Reported by Scott McCreary.
16695
16696 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16697
16698         include_next: do not check for standard headers like stddef.h
16699
16700         I found this problem when modifying Emacs to use gnulib.
16701         I noticed that it added HAVE_STDDEF_H to config.h, even though
16702         gnulib always assumes <stddef.h> exists as per README and this
16703         symbol is unnecessary.
16704         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16705         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16706         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16707         faster for headers like stddef.h that are known to exist.
16708         (gl_CHECK_NEXT_HEADERS): Use it.
16709         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16710         rather than gl_CHECK_NEXT_HEADERS.
16711         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16712         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16713
16714 2011-01-18  Eric Blake  <eblake@redhat.com>
16715
16716         ansi-c++-opt: skip C++ dependency style if C++ is unused
16717         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16718         tests when we know C++ compilation is not desired.
16719         Reported by Scott McCreary.
16720
16721 2011-01-18  Bruno Haible  <bruno@clisp.org>
16722
16723         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16724         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16725         (main): Perform test also when getrlimit and setrlimit don't exist or
16726         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16727         limiting the address space size using setrlimit, compare the address
16728         space size before and after the the test.
16729         * tests/test-dprintf-posix2.c: Likewise.
16730         * tests/test-fprintf-posix3.sh: Update skip messages.
16731         * tests/test-dprintf-posix2.sh: Likewise.
16732         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16733         * modules/dprintf-posix-tests (Depends-on): Likewise.
16734         Reported by Bruce Korb <bkorb@gnu.org> and
16735         Gary V. Vaughan <gary@gnu.org>.
16736
16737 2011-01-18  Bruno Haible  <bruno@clisp.org>
16738
16739         get-rusage-as: Improvement for Cygwin.
16740         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16741         areas that are merely reserved.
16742
16743 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16744
16745         strftime: remove dependencies on multibyte modules
16746
16747         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16748         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16749         only if __osf__ is defined, and I suspect OSF doesn't need these
16750         other modules.  If my guess is wrong, we'll need to come up with a
16751         variant of strftime that doesn't need the multibyte modules.
16752
16753         I discovered this problem when attempting modify Emacs to use the
16754         strftime module.  With the previous gnulib, this caused Emacs to
16755         need 31 new files, ranging from lib/config.charset to
16756         m4/wint_t.m4.  This was overkill and I expect would be offputting
16757         to the Emacs maintainers.  After this change, only 6 new files are
16758         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16759         stdbool.m4, and tm_gmtoff.m4.
16760
16761         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16762         Suggested by Bruno Haible in
16763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16764         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16765         and do not check for wchar.h.
16766         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16767         (Depends-on): Remove mbrlen, mbsinit, wchar.
16768
16769 2011-01-18  Bruno Haible  <bruno@clisp.org>
16770
16771         Tests for module 'get-rusage-as'.
16772         * modules/get-rusage-as-tests: New file.
16773         * tests/test-get-rusage-as.c: New file.
16774
16775         New module 'get-rusage-as'.
16776         * modules/get-rusage-as: New file.
16777         * lib/resource-ext.h: New file.
16778         * lib/get-rusage-as.c: New file.
16779
16780 2011-01-17  Eric Blake  <eblake@redhat.com>
16781
16782         sigaction: relax license from LGPLv3+ to LGPLv2+
16783         * modules/sigaction (License): Relax to LGPLv2+.
16784
16785 2011-01-14  Bruno Haible  <bruno@clisp.org>
16786
16787         filemode: Make function declarations usable in C++ mode.
16788         * lib/filemode.h: Enclose function declarations in extern "C" block.
16789         Reported by John W. Eaton <jwe@gnu.org>.
16790
16791 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16792
16793         save-cwd: no longer include "xgetcwd.h"
16794         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16795         This avoids a compilation failure in projects that use save-cwd
16796         without also using the xgetcwd module.
16797
16798 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16799
16800         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16801         This is so that a program like Emacs, which needs only dtoastr,
16802         does not have to bother with distributing and compiling ftoastr
16803         and ldtoastr.
16804         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16805         * modules/dtoastr, modules/ldtoastr: New files.
16806         * modules/ftoastr: Now works just for 'float'.
16807         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16808         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16809         dtoastr.c, ldtoastr.c.
16810
16811 2011-01-11  Jim Meyering  <meyering@redhat.com>
16812
16813         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16814         There is no need to work around the lack of the fchdir function,
16815         since gnulib can now provide a replacement when required.
16816         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16817         * modules/save-cwd (Depends-on): Add fchdir.
16818
16819 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16820
16821         openat, save-cwd: avoid xmalloc
16822
16823         This removes a direct (but undocumented) dependency of openat on
16824         xalloc, along with an indirect dependency via save-cwd.  It also
16825         removes a dependency of save-cwd on xgetcwd, and thereby
16826         indirectly on xalloc.  This change causes the openat substitute
16827         to fall back on save_cwd when memory is tight, and for save_cwd to
16828         fail instead of dying when memory is tight, but that's good enough.
16829         Problem and initial idea for fix reported by Bastien Roucaries in
16830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16831
16832         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16833         xalloc.h (for xmalloc).
16834         (openat_proc_name): Use malloc, not xmalloc.
16835         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16836         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16837
16838         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16839         This avoids heap allocation for file names whose lengths are in
16840         the range 512..1023, with the upper bound increasing to at most
16841         4031 depending on the platform's PATH_MAX.  (We do not want
16842         pathmax.h here as it might supply a non-constant PATH_MAX.)
16843         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16844         Perhaps they should be moved to malloca.h?
16845         (OPENAT_BUFFER_SIZE): Use them.
16846
16847 2011-01-10  Bruno Haible  <bruno@clisp.org>
16848
16849         doc: Update users.txt.
16850         * users.txt: Add recutils.
16851
16852 2011-01-09  Karl Berry  <karl@gnu.org>
16853
16854         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16855
16856         * doc/configmake.texi: New file.
16857         * doc/gnulib.texi: Include it.
16858         * modules/configmake: Move documentation from here.
16859
16860 2011-01-09  Bruno Haible  <bruno@clisp.org>
16861
16862         Update to Unicode 6.0.0.
16863         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16864         (get_lbp): Update for Unicode 6.0.0.
16865         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16866         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16867         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16868         U+11001, U+11038..U+11046. Remove U+06DE.
16869         (uc_width): Fix bounds of planes.
16870         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16871         lib/uniwidth/width.c.
16872         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16873         trailing whitespace removed.
16874         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16875         without comments, but with the original copyright notice.
16876         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16877         * lib/unicase/ignorable.h: Likewise.
16878         * lib/unicase/tocasefold.h: Likewise.
16879         * lib/unicase/tolower.h: Likewise.
16880         * lib/unicase/totitle.h: Likewise.
16881         * lib/unicase/toupper.h: Likewise.
16882         * lib/unictype/bidi_of.h: Likewise.
16883         * lib/unictype/blocks.h: Likewise.
16884         * lib/unictype/categ_C.h: Likewise.
16885         * lib/unictype/categ_Cn.h: Likewise.
16886         * lib/unictype/categ_L.h: Likewise.
16887         * lib/unictype/categ_Ll.h: Likewise.
16888         * lib/unictype/categ_Lm.h: Likewise.
16889         * lib/unictype/categ_Lo.h: Likewise.
16890         * lib/unictype/categ_Lu.h: Likewise.
16891         * lib/unictype/categ_M.h: Likewise.
16892         * lib/unictype/categ_Mc.h: Likewise.
16893         * lib/unictype/categ_Me.h: Likewise.
16894         * lib/unictype/categ_Mn.h: Likewise.
16895         * lib/unictype/categ_N.h: Likewise.
16896         * lib/unictype/categ_Nd.h: Likewise.
16897         * lib/unictype/categ_No.h: Likewise.
16898         * lib/unictype/categ_P.h: Likewise.
16899         * lib/unictype/categ_Po.h: Likewise.
16900         * lib/unictype/categ_S.h: Likewise.
16901         * lib/unictype/categ_Sc.h: Likewise.
16902         * lib/unictype/categ_Sk.h: Likewise.
16903         * lib/unictype/categ_Sm.h: Likewise.
16904         * lib/unictype/categ_So.h: Likewise.
16905         * lib/unictype/categ_of.h: Likewise.
16906         * lib/unictype/combining.h: Likewise.
16907         * lib/unictype/ctype_alnum.h: Likewise.
16908         * lib/unictype/ctype_alpha.h: Likewise.
16909         * lib/unictype/ctype_graph.h: Likewise.
16910         * lib/unictype/ctype_lower.h: Likewise.
16911         * lib/unictype/ctype_print.h: Likewise.
16912         * lib/unictype/ctype_punct.h: Likewise.
16913         * lib/unictype/ctype_upper.h: Likewise.
16914         * lib/unictype/decdigit.h: Likewise.
16915         * lib/unictype/digit.h: Likewise.
16916         * lib/unictype/numeric.h: Likewise.
16917         * lib/unictype/pr_alphabetic.h: Likewise.
16918         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16919         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16920         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16921         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16922         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16923         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16924         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16925         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16926         * lib/unictype/pr_case_ignorable.h: Likewise.
16927         * lib/unictype/pr_cased.h: Likewise.
16928         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16929         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16930         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16931         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16932         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16933         * lib/unictype/pr_combining.h: Likewise.
16934         * lib/unictype/pr_composite.h: Likewise.
16935         * lib/unictype/pr_currency_symbol.h: Likewise.
16936         * lib/unictype/pr_decimal_digit.h: Likewise.
16937         * lib/unictype/pr_deprecated.h: Likewise.
16938         * lib/unictype/pr_format_control.h: Likewise.
16939         * lib/unictype/pr_grapheme_base.h: Likewise.
16940         * lib/unictype/pr_grapheme_extend.h: Likewise.
16941         * lib/unictype/pr_grapheme_link.h: Likewise.
16942         * lib/unictype/pr_id_continue.h: Likewise.
16943         * lib/unictype/pr_id_start.h: Likewise.
16944         * lib/unictype/pr_ideographic.h: Likewise.
16945         * lib/unictype/pr_lowercase.h: Likewise.
16946         * lib/unictype/pr_math.h: Likewise.
16947         * lib/unictype/pr_numeric.h: Likewise.
16948         * lib/unictype/pr_other_alphabetic.h: Likewise.
16949         * lib/unictype/pr_other_id_continue.h: Likewise.
16950         * lib/unictype/pr_other_math.h: Likewise.
16951         * lib/unictype/pr_punctuation.h: Likewise.
16952         * lib/unictype/pr_sentence_terminal.h: Likewise.
16953         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16954         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16955         * lib/unictype/pr_unified_ideograph.h: Likewise.
16956         * lib/unictype/pr_uppercase.h: Likewise.
16957         * lib/unictype/pr_xid_continue.h: Likewise.
16958         * lib/unictype/pr_xid_start.h: Likewise.
16959         * lib/unictype/scripts.h: Likewise.
16960         * lib/unictype/scripts_byname.gperf: Likewise.
16961         * lib/unictype/sy_java_ident.h: Likewise.
16962         * lib/unigbrk/gbrkprop.h: Likewise.
16963         * lib/unilbrk/lbrkprop1.h: Likewise.
16964         * lib/unilbrk/lbrkprop2.h: Likewise.
16965         * lib/uninorm/decomposition-table2.h: Likewise.
16966         * lib/uniwbrk/wbrkprop.h: Likewise.
16967         * tests/unicase/test-cased.c: Likewise.
16968         * tests/unicase/test-ignorable.c: Likewise.
16969         * tests/unicase/test-uc_tolower.c: Likewise.
16970         * tests/unicase/test-uc_totitle.c: Likewise.
16971         * tests/unicase/test-uc_toupper.c: Likewise.
16972         * tests/unictype/test-categ_C.c: Likewise.
16973         * tests/unictype/test-categ_Cn.c: Likewise.
16974         * tests/unictype/test-categ_L.c: Likewise.
16975         * tests/unictype/test-categ_Ll.c: Likewise.
16976         * tests/unictype/test-categ_Lm.c: Likewise.
16977         * tests/unictype/test-categ_Lo.c: Likewise.
16978         * tests/unictype/test-categ_Lu.c: Likewise.
16979         * tests/unictype/test-categ_M.c: Likewise.
16980         * tests/unictype/test-categ_Mc.c: Likewise.
16981         * tests/unictype/test-categ_Me.c: Likewise.
16982         * tests/unictype/test-categ_Mn.c: Likewise.
16983         * tests/unictype/test-categ_N.c: Likewise.
16984         * tests/unictype/test-categ_Nd.c: Likewise.
16985         * tests/unictype/test-categ_No.c: Likewise.
16986         * tests/unictype/test-categ_P.c: Likewise.
16987         * tests/unictype/test-categ_Po.c: Likewise.
16988         * tests/unictype/test-categ_S.c: Likewise.
16989         * tests/unictype/test-categ_Sc.c: Likewise.
16990         * tests/unictype/test-categ_Sk.c: Likewise.
16991         * tests/unictype/test-categ_Sm.c: Likewise.
16992         * tests/unictype/test-categ_So.c: Likewise.
16993         * tests/unictype/test-ctype_alnum.c: Likewise.
16994         * tests/unictype/test-ctype_alpha.c: Likewise.
16995         * tests/unictype/test-ctype_graph.c: Likewise.
16996         * tests/unictype/test-ctype_lower.c: Likewise.
16997         * tests/unictype/test-ctype_print.c: Likewise.
16998         * tests/unictype/test-ctype_punct.c: Likewise.
16999         * tests/unictype/test-ctype_upper.c: Likewise.
17000         * tests/unictype/test-decdigit.h: Likewise.
17001         * tests/unictype/test-digit.h: Likewise.
17002         * tests/unictype/test-numeric.h: Likewise.
17003         * tests/unictype/test-pr_alphabetic.c: Likewise.
17004         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17005         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17006         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17007         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17008         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17009         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17010         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17011         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17012         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17013         * tests/unictype/test-pr_cased.c: Likewise.
17014         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17015         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17016         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17017         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17018         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17019         * tests/unictype/test-pr_combining.c: Likewise.
17020         * tests/unictype/test-pr_composite.c: Likewise.
17021         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17022         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17023         * tests/unictype/test-pr_deprecated.c: Likewise.
17024         * tests/unictype/test-pr_format_control.c: Likewise.
17025         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17026         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17027         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17028         * tests/unictype/test-pr_id_continue.c: Likewise.
17029         * tests/unictype/test-pr_id_start.c: Likewise.
17030         * tests/unictype/test-pr_ideographic.c: Likewise.
17031         * tests/unictype/test-pr_lowercase.c: Likewise.
17032         * tests/unictype/test-pr_math.c: Likewise.
17033         * tests/unictype/test-pr_numeric.c: Likewise.
17034         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17035         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17036         * tests/unictype/test-pr_other_math.c: Likewise.
17037         * tests/unictype/test-pr_punctuation.c: Likewise.
17038         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17039         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17040         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17041         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17042         * tests/unictype/test-pr_uppercase.c: Likewise.
17043         * tests/unictype/test-pr_xid_continue.c: Likewise.
17044         * tests/unictype/test-pr_xid_start.c: Likewise.
17045         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17046         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17047         changes.
17048         * lib/unictype/categ_Cc.h: Likewise.
17049         * lib/unictype/categ_Cf.h: Likewise.
17050         * lib/unictype/categ_Co.h: Likewise.
17051         * lib/unictype/categ_Cs.h: Likewise.
17052         * lib/unictype/categ_Lt.h: Likewise.
17053         * lib/unictype/categ_Nl.h: Likewise.
17054         * lib/unictype/categ_Pc.h: Likewise.
17055         * lib/unictype/categ_Pd.h: Likewise.
17056         * lib/unictype/categ_Pe.h: Likewise.
17057         * lib/unictype/categ_Pf.h: Likewise.
17058         * lib/unictype/categ_Pi.h: Likewise.
17059         * lib/unictype/categ_Ps.h: Likewise.
17060         * lib/unictype/categ_Z.h: Likewise.
17061         * lib/unictype/categ_Zl.h: Likewise.
17062         * lib/unictype/categ_Zp.h: Likewise.
17063         * lib/unictype/categ_Zs.h: Likewise.
17064         * lib/unictype/ctype_blank.h: Likewise.
17065         * lib/unictype/ctype_cntrl.h: Likewise.
17066         * lib/unictype/ctype_digit.h: Likewise.
17067         * lib/unictype/ctype_space.h: Likewise.
17068         * lib/unictype/ctype_xdigit.h: Likewise.
17069         * lib/unictype/mirror.h: Likewise.
17070         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17071         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17072         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17073         * lib/unictype/pr_bidi_control.h: Likewise.
17074         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17075         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17076         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17077         * lib/unictype/pr_bidi_pdf.h: Likewise.
17078         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17079         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17080         * lib/unictype/pr_dash.h: Likewise.
17081         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17082         * lib/unictype/pr_diacritic.h: Likewise.
17083         * lib/unictype/pr_extender.h: Likewise.
17084         * lib/unictype/pr_hex_digit.h: Likewise.
17085         * lib/unictype/pr_hyphen.h: Likewise.
17086         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17087         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17088         * lib/unictype/pr_ignorable_control.h: Likewise.
17089         * lib/unictype/pr_iso_control.h: Likewise.
17090         * lib/unictype/pr_join_control.h: Likewise.
17091         * lib/unictype/pr_left_of_pair.h: Likewise.
17092         * lib/unictype/pr_line_separator.h: Likewise.
17093         * lib/unictype/pr_logical_order_exception.h: Likewise.
17094         * lib/unictype/pr_non_break.h: Likewise.
17095         * lib/unictype/pr_not_a_character.h: Likewise.
17096         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17097         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17098         * lib/unictype/pr_other_id_start.h: Likewise.
17099         * lib/unictype/pr_other_lowercase.h: Likewise.
17100         * lib/unictype/pr_other_uppercase.h: Likewise.
17101         * lib/unictype/pr_paired_punctuation.h: Likewise.
17102         * lib/unictype/pr_paragraph_separator.h: Likewise.
17103         * lib/unictype/pr_pattern_syntax.h: Likewise.
17104         * lib/unictype/pr_pattern_white_space.h: Likewise.
17105         * lib/unictype/pr_private_use.h: Likewise.
17106         * lib/unictype/pr_quotation_mark.h: Likewise.
17107         * lib/unictype/pr_radical.h: Likewise.
17108         * lib/unictype/pr_soft_dotted.h: Likewise.
17109         * lib/unictype/pr_space.h: Likewise.
17110         * lib/unictype/pr_titlecase.h: Likewise.
17111         * lib/unictype/pr_variation_selector.h: Likewise.
17112         * lib/unictype/pr_white_space.h: Likewise.
17113         * lib/unictype/pr_zero_width.h: Likewise.
17114         * lib/unictype/sy_c_ident.h: Likewise.
17115         * lib/unictype/sy_c_whitespace.h: Likewise.
17116         * lib/unictype/sy_java_whitespace.h: Likewise.
17117         * lib/uninorm/composition-table.gperf: Likewise.
17118         * lib/uninorm/decomposition-table1.h: Likewise.
17119         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17120         LB8.
17121         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17122         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17123         * modules/unictype/*: Bump version number of expected libunistring
17124         version.
17125
17126 2011-01-09  Bruno Haible  <bruno@clisp.org>
17127
17128         Update to Unicode 5.2.0.
17129         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17130         trailing whitespace removed.
17131
17132 2011-01-09  Bruno Haible  <bruno@clisp.org>
17133
17134         New Unicode character properties, from Unicode 5.2.0.
17135         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17136         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17137         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17138         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17139         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17140         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17141         uc_is_property_cased, uc_is_property_case_ignorable,
17142         uc_is_property_changes_when_lowercased,
17143         uc_is_property_changes_when_uppercased,
17144         uc_is_property_changes_when_titlecased,
17145         uc_is_property_changes_when_casefolded,
17146         uc_is_property_changes_when_casemapped): New declarations.
17147         * lib/unictype/pr_byname.gperf: Add the new properties.
17148         * modules/unictype/property-byname (Depends-on): Depend on the new
17149         properties modules.
17150         * modules/unictype/property-all (Depends-on): Likewise.
17151         * MODULES.html.sh (Unicode string functions): Add
17152         unictype/property-case-ignorable, unictype/property-cased,
17153         unictype/property-changes-when-casefolded,
17154         unictype/property-changes-when-casemapped,
17155         unictype/property-changes-when-lowercased,
17156         unictype/property-changes-when-titlecased,
17157         unictype/property-changes-when-uppercased.
17158
17159         New module 'unictype/property-changes-when-casemapped'.
17160         * modules/unictype/property-changes-when-casemapped: New file.
17161         * lib/unictype/pr_changes_when_casemapped.c: New file.
17162         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17163         generated by gen-uni-tables.
17164         * modules/unictype/property-changes-when-casemapped-tests: New file.
17165         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17166         automatically generated by gen-uni-tables.
17167
17168         New module 'unictype/property-changes-when-casefolded'.
17169         * modules/unictype/property-changes-when-casefolded: New file.
17170         * lib/unictype/pr_changes_when_casefolded.c: New file.
17171         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17172         generated by gen-uni-tables.
17173         * modules/unictype/property-changes-when-casefolded-tests: New file.
17174         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17175         automatically generated by gen-uni-tables.
17176
17177         New module 'unictype/property-changes-when-titlecased'.
17178         * modules/unictype/property-changes-when-titlecased: New file.
17179         * lib/unictype/pr_changes_when_titlecased.c: New file.
17180         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17181         generated by gen-uni-tables.
17182         * modules/unictype/property-changes-when-titlecased-tests: New file.
17183         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17184         automatically generated by gen-uni-tables.
17185
17186         New module 'unictype/property-changes-when-uppercased'.
17187         * modules/unictype/property-changes-when-uppercased: New file.
17188         * lib/unictype/pr_changes_when_uppercased.c: New file.
17189         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17190         generated by gen-uni-tables.
17191         * modules/unictype/property-changes-when-uppercased-tests: New file.
17192         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17193         automatically generated by gen-uni-tables.
17194
17195         New module 'unictype/property-changes-when-lowercased'.
17196         * modules/unictype/property-changes-when-lowercased: New file.
17197         * lib/unictype/pr_changes_when_lowercased.c: New file.
17198         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17199         generated by gen-uni-tables.
17200         * modules/unictype/property-changes-when-lowercased-tests: New file.
17201         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17202         automatically generated by gen-uni-tables.
17203
17204         New module 'unictype/property-case-ignorable'.
17205         * modules/unictype/property-case-ignorable: New file.
17206         * lib/unictype/pr_case_ignorable.c: New file.
17207         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17208         by gen-uni-tables.
17209         * modules/unictype/property-case-ignorable-tests: New file.
17210         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17211         generated by gen-uni-tables.
17212
17213         New module 'unictype/property-cased'.
17214         * modules/unictype/property-cased: New file.
17215         * lib/unictype/pr_cased.c: New file.
17216         * lib/unictype/pr_cased.h: New file, automatically generated by
17217         gen-uni-tables.
17218         * modules/unictype/property-cased-tests: New file.
17219         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17220         gen-uni-tables.
17221
17222 2011-01-09  Bruno Haible  <bruno@clisp.org>
17223
17224         Update to Unicode 5.2.0.
17225         * lib/gen-uni-tables.c (output_predicate, output_category,
17226         output_combclass, output_bidi_category, output_decimal_digit_test,
17227         output_decimal_digit, output_digit_test, output_digit,
17228         output_numeric_test, output_numeric, output_mirror, output_scripts,
17229         output_scripts_byname, output_blocks, output_ident_category): Fix
17230         comment header.
17231         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17232         get_wbp.
17233         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17234         items.
17235         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17236         Changes_When_Lowercased, Changes_When_Uppercased,
17237         Changes_When_Titlecased, Changes_When_Casefolded,
17238         Changes_When_Casemapped.
17239         (is_property_alphabetic, is_property_default_ignorable_code_point):
17240         Update for Unicode 5.2.0.
17241         (is_property_cased, is_property_case_ignorable,
17242         is_property_changes_when_lowercased,
17243         is_property_changes_when_uppercased,
17244         is_property_changes_when_titlecased,
17245         is_property_changes_when_casefolded,
17246         is_property_changes_when_casemapped): New functions.
17247         (output_properties): Output also the properties cased, case_ignorable,
17248         changes_when_lowercased, changes_when_uppercased,
17249         changes_when_titlecased, changes_when_casefolded,
17250         changes_when_casemapped.
17251         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17252         Unicode TR#11 revision 17 -> 19.
17253         (LBP_CP): New enumeration value.
17254         (LBP_*): Adjust values accordingly.
17255         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17256         TR#14 revision 22 -> 24.
17257         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17258         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17259         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17260         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17261         is_WBP_MIDLETTER.
17262         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17263         the code1 and code2 of each composition rule.
17264         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17265         * lib/unicase/ignorable.h: Likewise.
17266         * lib/unicase/tocasefold.h: Likewise.
17267         * lib/unicase/tolower.h: Likewise.
17268         * lib/unicase/totitle.h: Likewise.
17269         * lib/unicase/toupper.h: Likewise.
17270         * lib/unictype/bidi_of.h: Likewise.
17271         * lib/unictype/blocks.h: Likewise.
17272         * lib/unictype/categ_C.h: Likewise.
17273         * lib/unictype/categ_Cf.h: Likewise.
17274         * lib/unictype/categ_Cn.h: Likewise.
17275         * lib/unictype/categ_L.h: Likewise.
17276         * lib/unictype/categ_Ll.h: Likewise.
17277         * lib/unictype/categ_Lm.h: Likewise.
17278         * lib/unictype/categ_Lo.h: Likewise.
17279         * lib/unictype/categ_Lu.h: Likewise.
17280         * lib/unictype/categ_M.h: Likewise.
17281         * lib/unictype/categ_Mc.h: Likewise.
17282         * lib/unictype/categ_Mn.h: Likewise.
17283         * lib/unictype/categ_N.h: Likewise.
17284         * lib/unictype/categ_Nd.h: Likewise.
17285         * lib/unictype/categ_Nl.h: Likewise.
17286         * lib/unictype/categ_No.h: Likewise.
17287         * lib/unictype/categ_P.h: Likewise.
17288         * lib/unictype/categ_Pd.h: Likewise.
17289         * lib/unictype/categ_Po.h: Likewise.
17290         * lib/unictype/categ_S.h: Likewise.
17291         * lib/unictype/categ_Sc.h: Likewise.
17292         * lib/unictype/categ_So.h: Likewise.
17293         * lib/unictype/categ_of.h: Likewise.
17294         * lib/unictype/combining.h: Likewise.
17295         * lib/unictype/ctype_alnum.h: Likewise.
17296         * lib/unictype/ctype_alpha.h: Likewise.
17297         * lib/unictype/ctype_graph.h: Likewise.
17298         * lib/unictype/ctype_lower.h: Likewise.
17299         * lib/unictype/ctype_print.h: Likewise.
17300         * lib/unictype/ctype_punct.h: Likewise.
17301         * lib/unictype/ctype_upper.h: Likewise.
17302         * lib/unictype/decdigit.h: Likewise.
17303         * lib/unictype/digit.h: Likewise.
17304         * lib/unictype/numeric.h: Likewise.
17305         * lib/unictype/pr_alphabetic.h: Likewise.
17306         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17307         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17308         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17309         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17310         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17311         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17312         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17313         * lib/unictype/pr_combining.h: Likewise.
17314         * lib/unictype/pr_composite.h: Likewise.
17315         * lib/unictype/pr_currency_symbol.h: Likewise.
17316         * lib/unictype/pr_dash.h: Likewise.
17317         * lib/unictype/pr_decimal_digit.h: Likewise.
17318         * lib/unictype/pr_deprecated.h: Likewise.
17319         * lib/unictype/pr_diacritic.h: Likewise.
17320         * lib/unictype/pr_extender.h: Likewise.
17321         * lib/unictype/pr_grapheme_base.h: Likewise.
17322         * lib/unictype/pr_grapheme_extend.h: Likewise.
17323         * lib/unictype/pr_grapheme_link.h: Likewise.
17324         * lib/unictype/pr_id_continue.h: Likewise.
17325         * lib/unictype/pr_id_start.h: Likewise.
17326         * lib/unictype/pr_ideographic.h: Likewise.
17327         * lib/unictype/pr_ignorable_control.h: Likewise.
17328         * lib/unictype/pr_logical_order_exception.h: Likewise.
17329         * lib/unictype/pr_lowercase.h: Likewise.
17330         * lib/unictype/pr_numeric.h: Likewise.
17331         * lib/unictype/pr_other_alphabetic.h: Likewise.
17332         * lib/unictype/pr_punctuation.h: Likewise.
17333         * lib/unictype/pr_sentence_terminal.h: Likewise.
17334         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17335         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17336         * lib/unictype/pr_unified_ideograph.h: Likewise.
17337         * lib/unictype/pr_uppercase.h: Likewise.
17338         * lib/unictype/pr_xid_continue.h: Likewise.
17339         * lib/unictype/pr_xid_start.h: Likewise.
17340         * lib/unictype/pr_zero_width.h: Likewise.
17341         * lib/unictype/scripts.h: Likewise.
17342         * lib/unictype/scripts_byname.gperf: Likewise.
17343         * lib/unictype/sy_java_ident.h: Likewise.
17344         * lib/unigbrk/gbrkprop.h: Likewise.
17345         * lib/unilbrk/lbrkprop1.h: Likewise.
17346         * lib/unilbrk/lbrkprop2.h: Likewise.
17347         * lib/unilbrk/lbrktables.h: Likewise.
17348         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17349         LBP_CP. Implement rule LB30.
17350         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17351         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17352         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17353         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17354         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17355         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17356         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17357         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17358         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17359         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17360         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17361         bits instead of 16 bits in the code1 and code2 of each composition
17362         rule.
17363         (uc_composition): Update for Unicode 5.2.0.
17364         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17365         * lib/uninorm/decomposition-table2.h: Likewise.
17366         * lib/uniwbrk/wbrkprop.h: Likewise.
17367         * tests/unicase/test-cased.c: Likewise.
17368         * tests/unicase/test-ignorable.c: Likewise.
17369         * tests/unicase/test-uc_tolower.c: Likewise.
17370         * tests/unicase/test-uc_totitle.c: Likewise.
17371         * tests/unicase/test-uc_toupper.c: Likewise.
17372         * tests/unictype/test-categ_C.c: Likewise.
17373         * tests/unictype/test-categ_Cf.c: Likewise.
17374         * tests/unictype/test-categ_Cn.c: Likewise.
17375         * tests/unictype/test-categ_L.c: Likewise.
17376         * tests/unictype/test-categ_Ll.c: Likewise.
17377         * tests/unictype/test-categ_Lm.c: Likewise.
17378         * tests/unictype/test-categ_Lo.c: Likewise.
17379         * tests/unictype/test-categ_Lu.c: Likewise.
17380         * tests/unictype/test-categ_M.c: Likewise.
17381         * tests/unictype/test-categ_Mc.c: Likewise.
17382         * tests/unictype/test-categ_Mn.c: Likewise.
17383         * tests/unictype/test-categ_N.c: Likewise.
17384         * tests/unictype/test-categ_Nd.c: Likewise.
17385         * tests/unictype/test-categ_Nl.c: Likewise.
17386         * tests/unictype/test-categ_No.c: Likewise.
17387         * tests/unictype/test-categ_P.c: Likewise.
17388         * tests/unictype/test-categ_Pd.c: Likewise.
17389         * tests/unictype/test-categ_Po.c: Likewise.
17390         * tests/unictype/test-categ_S.c: Likewise.
17391         * tests/unictype/test-categ_Sc.c: Likewise.
17392         * tests/unictype/test-categ_So.c: Likewise.
17393         * tests/unictype/test-ctype_alnum.c: Likewise.
17394         * tests/unictype/test-ctype_alpha.c: Likewise.
17395         * tests/unictype/test-ctype_graph.c: Likewise.
17396         * tests/unictype/test-ctype_lower.c: Likewise.
17397         * tests/unictype/test-ctype_print.c: Likewise.
17398         * tests/unictype/test-ctype_punct.c: Likewise.
17399         * tests/unictype/test-ctype_upper.c: Likewise.
17400         * tests/unictype/test-decdigit.h: Likewise.
17401         * tests/unictype/test-digit.h: Likewise.
17402         * tests/unictype/test-numeric.h: Likewise.
17403         * tests/unictype/test-pr_alphabetic.c: Likewise.
17404         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17405         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17406         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17407         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17408         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17409         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17410         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17411         * tests/unictype/test-pr_combining.c: Likewise.
17412         * tests/unictype/test-pr_composite.c: Likewise.
17413         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17414         * tests/unictype/test-pr_dash.c: Likewise.
17415         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17416         * tests/unictype/test-pr_deprecated.c: Likewise.
17417         * tests/unictype/test-pr_diacritic.c: Likewise.
17418         * tests/unictype/test-pr_extender.c: Likewise.
17419         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17420         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17421         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17422         * tests/unictype/test-pr_id_continue.c: Likewise.
17423         * tests/unictype/test-pr_id_start.c: Likewise.
17424         * tests/unictype/test-pr_ideographic.c: Likewise.
17425         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17426         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17427         * tests/unictype/test-pr_lowercase.c: Likewise.
17428         * tests/unictype/test-pr_numeric.c: Likewise.
17429         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17430         * tests/unictype/test-pr_punctuation.c: Likewise.
17431         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17432         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17433         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17434         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17435         * tests/unictype/test-pr_uppercase.c: Likewise.
17436         * tests/unictype/test-pr_xid_continue.c: Likewise.
17437         * tests/unictype/test-pr_xid_start.c: Likewise.
17438         * tests/unictype/test-pr_zero_width.c: Likewise.
17439         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17440         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17441         changed behaviour: line breaking is now disallowed between a letter
17442         or '=' and '('.
17443         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17444         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17445         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17446         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17447         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17448         lib/uniwidth/width.c.
17449         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17450         without comments, but with the original copyright notice.
17451         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17452         changes.
17453         * lib/unictype/categ_Cc.h: Likewise.
17454         * lib/unictype/categ_Co.h: Likewise.
17455         * lib/unictype/categ_Cs.h: Likewise.
17456         * lib/unictype/categ_Lt.h: Likewise.
17457         * lib/unictype/categ_Me.h: Likewise.
17458         * lib/unictype/categ_Pc.h: Likewise.
17459         * lib/unictype/categ_Pe.h: Likewise.
17460         * lib/unictype/categ_Pf.h: Likewise.
17461         * lib/unictype/categ_Pi.h: Likewise.
17462         * lib/unictype/categ_Ps.h: Likewise.
17463         * lib/unictype/categ_Sk.h: Likewise.
17464         * lib/unictype/categ_Sm.h: Likewise.
17465         * lib/unictype/categ_Z.h: Likewise.
17466         * lib/unictype/categ_Zl.h: Likewise.
17467         * lib/unictype/categ_Zp.h: Likewise.
17468         * lib/unictype/categ_Zs.h: Likewise.
17469         * lib/unictype/ctype_blank.h: Likewise.
17470         * lib/unictype/ctype_cntrl.h: Likewise.
17471         * lib/unictype/ctype_digit.h: Likewise.
17472         * lib/unictype/ctype_space.h: Likewise.
17473         * lib/unictype/ctype_xdigit.h: Likewise.
17474         * lib/unictype/mirror.h: Likewise.
17475         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17476         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17477         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17478         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17479         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17480         * lib/unictype/pr_bidi_control.h: Likewise.
17481         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17482         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17483         * lib/unictype/pr_bidi_pdf.h: Likewise.
17484         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17485         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17486         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17487         * lib/unictype/pr_format_control.h: Likewise.
17488         * lib/unictype/pr_hex_digit.h: Likewise.
17489         * lib/unictype/pr_hyphen.h: Likewise.
17490         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17491         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17492         * lib/unictype/pr_iso_control.h: Likewise.
17493         * lib/unictype/pr_join_control.h: Likewise.
17494         * lib/unictype/pr_left_of_pair.h: Likewise.
17495         * lib/unictype/pr_line_separator.h: Likewise.
17496         * lib/unictype/pr_math.h: Likewise.
17497         * lib/unictype/pr_non_break.h: Likewise.
17498         * lib/unictype/pr_not_a_character.h: Likewise.
17499         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17500         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17501         * lib/unictype/pr_other_id_continue.h: Likewise.
17502         * lib/unictype/pr_other_id_start.h: Likewise.
17503         * lib/unictype/pr_other_lowercase.h: Likewise.
17504         * lib/unictype/pr_other_math.h: Likewise.
17505         * lib/unictype/pr_other_uppercase.h: Likewise.
17506         * lib/unictype/pr_paired_punctuation.h: Likewise.
17507         * lib/unictype/pr_paragraph_separator.h: Likewise.
17508         * lib/unictype/pr_pattern_syntax.h: Likewise.
17509         * lib/unictype/pr_pattern_white_space.h: Likewise.
17510         * lib/unictype/pr_private_use.h: Likewise.
17511         * lib/unictype/pr_quotation_mark.h: Likewise.
17512         * lib/unictype/pr_radical.h: Likewise.
17513         * lib/unictype/pr_soft_dotted.h: Likewise.
17514         * lib/unictype/pr_space.h: Likewise.
17515         * lib/unictype/pr_titlecase.h: Likewise.
17516         * lib/unictype/pr_variation_selector.h: Likewise.
17517         * lib/unictype/pr_white_space.h: Likewise.
17518         * lib/unictype/sy_c_ident.h: Likewise.
17519         * lib/unictype/sy_c_whitespace.h: Likewise.
17520         * lib/unictype/sy_java_whitespace.h: Likewise.
17521         * modules/uni*/*: Bump version number of expected libunistring version.
17522         Reported by Simon Josefsson.
17523
17524 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17525
17526         useless-if-before-free: fix typo in --help and make the internal,
17527         automatic version date update process work once again.
17528         --help output contained a NUL character instead of the
17529         backslash-zero that was intended.  Also, the "must lie within
17530         the first 8 lines" line is on line 9, and hence not getting
17531         automatically updated.
17532         * build-aux/useless-if-before-free: Fix the former by adding a
17533         backslash, and the latter by condensing the three lines of what-it-does
17534         to a single line, leaving one line of slack for the future.
17535
17536 2011-01-09  Bruno Haible  <bruno@clisp.org>
17537
17538         uniwidth/width: Fix width of U+1D173..U+1D17A.
17539         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17540         symbolic_width, output_width_property_test): New functions.
17541         (main): Invoke output_nonspacing_property, output_width_property_test.
17542         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17543         U+1D173..U+1D17A.
17544         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17545         1.
17546         * modules/uniwidth/*: Bump version number of expected libunistring
17547         version.
17548         * modules/unilbrk/*: Likewise.
17549
17550 2011-01-08  Bruno Haible  <bruno@clisp.org>
17551
17552         uninorm tests: Preserve copyright of Unicode data file.
17553         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17554         Mention modifications.
17555
17556 2011-01-08  Bruno Haible  <bruno@clisp.org>
17557
17558         gen-uni-tables: Prepare for Unicode 5.2.0.
17559         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17560         (debug_output_lbp, output_lbp): Update.
17561
17562 2011-01-08  Bruno Haible  <bruno@clisp.org>
17563
17564         unilbrk: Clarify gen-uni-tables.c code.
17565         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17566         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17567         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17568
17569 2011-01-07  Bruno Haible  <bruno@clisp.org>
17570
17571         strtod: Restore errno when successfully parsing Infinity or NaN.
17572         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17573         restore the original errno.
17574
17575 2011-01-07  Bruno Haible  <bruno@clisp.org>
17576
17577         remove test: Avoid failure on HP-UX 11.
17578         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17579
17580 2011-01-07  Bruno Haible  <bruno@clisp.org>
17581
17582         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17583         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17584         error code.
17585
17586 2011-01-07  Pádraig Brady <P@draigBrady.com>
17587
17588         ignore-value: fixup comments, and add Eric Blake
17589         as an author since he rewrote the macros.
17590         * lib/ignore-value.h (ignore_value):  State that
17591         we now support aggregates.  Also specify exactly
17592         when the GCC warn_unused_result feature was added.
17593
17594 2011-01-06  Eric Blake  <eblake@redhat.com>
17595
17596         ignore-value: support aggregate types
17597         * lib/ignore-value.h (ignore_value): Provide separate gcc
17598         definition.
17599         * modules/ignore-value-tests: New test module.
17600         * tests/test-ignore-value.c: New test.
17601
17602         maint.mk: improve sc_prohibit_strcmp regex
17603         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17604         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17605         definition of STRNEQ.
17606
17607         signal: work around Haiku issue with SIGBUS
17608         * lib/siglist.h: Add comment.
17609         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17610         strsignal's favoring of SIGSEGV.
17611         * tests/test-signal.c (main): Avoid test failure.
17612         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17613         Reported by Scott McCreary.
17614
17615         maint.mk: add pre-release check to ensure submodule commits are public
17616         * top/maint.mk (public-submodule-commit): New rule.
17617         (submodule-checks): New variable.
17618         (alpha beta stable): Depend on the variable.
17619
17620 2011-01-05  Pádraig Brady <P@draigBrady.com>
17621         and Jim Meyering  <meyering@redhat.com>
17622
17623         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17624         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17625         (ATTRIBUTE_DEPRECATED): Define.
17626         (_ignore_case): New function.
17627         (ignore_value): New macro, to replace the old function.
17628         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17629         * modules/ignore-value (Depends-on): Add stdint.
17630
17631 2011-01-04  Eric Blake  <eblake@redhat.com>
17632
17633         doc: regenerate INSTALL
17634         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17635         @firstparagraphindent support, now that autoconf dropped it.
17636         (INSTALL_PRELUDE): Reinstate old macro.
17637         * doc/install.texi: Resync from autoconf.
17638         * doc/INSTALL: Reflect recent autoconf update.
17639         * doc/INSTALL.ISO: Likewise.
17640         * doc/INSTALL.UTF-8: Likewise.
17641         Reported by Karl Berry.
17642
17643 2011-01-04  Bruce Korb  <address@hidden>
17644
17645         git-version-gen: avoid a sub-shell
17646         * build-aux/git-version-gen: Redirect stderr in `...` via
17647         "exec 2>...", rather than via an added sub-shell.
17648
17649 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17650
17651         git-version-gen: use (...) rather than sh -c '...'
17652         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17653         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17654
17655 2011-01-03  Jim Meyering  <meyering@redhat.com>
17656
17657         git-version-gen: convert leading TABs to spaces
17658         * build-aux/git-version-gen: Expand leading TABs.
17659
17660         git-version-gen: handle failed "git rev-list"
17661         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17662         from git and proceeding as if it had succeeded but printed no SHA1
17663         checksums, suppress the diagnostic and handle the failure.
17664         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17665
17666         git-version-gen: include command name in one more diagnostic
17667         * build-aux/git-version-gen: When the required .tarball-version file
17668         was missing or unreadable, you might see the diagnostic from "cat",
17669         but no trace of the name of the invoking script.  Now, you still see
17670         the diagnostic from cat, but also get one from "git-version-gen: ".
17671         Inspired by a patch from Bruce Korb.
17672
17673         update-copyright: adjust test to match changed code
17674         * tests/test-update-copyright.sh: Change test's expected output
17675         to match new actual output.
17676
17677 2011-01-02  Bruno Haible  <bruno@clisp.org>
17678
17679         getlogin_r: Avoid test failure on HP-UX 11.
17680         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17681         ERANGE when the second argument is zero.
17682         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17683         portability problem.
17684
17685 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17686
17687         * build-aux/update-copyright: doc Simon's changes
17688
17689 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17690
17691         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17692         environment variable.
17693
17694 2011-01-02  Bruno Haible  <bruno@clisp.org>
17695
17696         unigbrk: Avoid gcc warnings.
17697         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17698         unused variable.
17699         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17700         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17701         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17702         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17703         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17704         Change type of first argument to 'const char *'.
17705         (main): Remove unused variable.
17706         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17707         type of first argument to 'const char *'.
17708         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17709         Likewise.
17710         (main): Change type of variable 's'.
17711         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17712         to 'int'.
17713
17714 2011-01-02  Bruno Haible  <bruno@clisp.org>
17715
17716         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17717         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17718         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17719         bug.
17720         * lib/pwrite.c: Undo 2010-12-31 patch.
17721         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17722
17723 2011-01-02  Bruno Haible  <bruno@clisp.org>
17724
17725         pread: Fix test whether it works.
17726         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17727
17728 2011-01-02  Bruno Haible  <bruno@clisp.org>
17729
17730         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17731         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17732         ends in "6". Don't require a specific month name. Try also the locale
17733         names found on HP-UX 11 and Solaris 7.
17734
17735 2011-01-02  Bruno Haible  <bruno@clisp.org>
17736
17737         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17738         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17739         C linkage.
17740         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17741
17742 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17743
17744         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17745         for consistency, since the "cluster" term is not used elsewhere.
17746         * lib/unigbrk.in.h: Update name.
17747         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17748         * lib/unigbrk/u16-grapheme-next.c: Update name.
17749         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17750         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17751         * lib/unigbrk/u32-grapheme-next.c: Update name.
17752         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17753         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17754         * lib/unigbrk/u8-grapheme-next.c: Update name.
17755         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17756         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17757         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17758         Suggested by Bruno Haible.
17759
17760 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17761
17762         Remove module 'u8-grapheme-len' as too redundant with
17763         'u8-grapheme-next'.
17764         * modules/unigbrk/u8-grapheme-len: Delete file.
17765         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17766         * lib/unigbrk.in.h: Remove prototype for deleted function.
17767         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17768         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17769
17770         Remove module 'u16-grapheme-len' as too redundant with
17771         'u16-grapheme-next'.
17772         * modules/unigbrk/u16-grapheme-len: Delete file.
17773         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17774         * lib/unigbrk.in.h: Remove prototype for deleted function.
17775         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17776         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17777
17778         Remove module 'u32-grapheme-len' as too redundant with
17779         'u32-grapheme-next'.
17780         * modules/unigbrk/u32-grapheme-len: Delete file.
17781         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17782         * lib/unigbrk.in.h: Remove prototype for deleted function.
17783         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17784         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17785
17786         Suggested by Bruno Haible.
17787
17788 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17789
17790         * unigbrk.in.h: Fix typo: "ben" => "been".
17791         Reported by Bruno Haible.
17792
17793 2011-01-01  Jim Meyering  <meyering@redhat.com>
17794
17795         maint: update almost all copyright ranges to include 2011
17796         Run the new "make update-copyright" rule.
17797
17798 2011-01-01  Jim Meyering  <meyering@redhat.com>
17799
17800         maint: update-copyright: exempt doc/INSTALL*
17801         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17802         since they are generated.  Suggested by Bruno Haible.
17803
17804 2011-01-01  Jim Meyering  <meyering@redhat.com>
17805
17806         maint: refine the update-copyright rule
17807         * Makefile (update-copyright): Also exclude any file that includes
17808         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17809         code that merely generates the comment.
17810
17811 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17812
17813         New module 'u8-grapheme-len'.
17814         * modules/unigbrk/u8-grapheme-len: New file.
17815         * modules/unigbrk/u8-grapheme-len-tests: New file.
17816         * lib/unigbrk.in.h: Add prototype for new function.
17817         * lib/unigbrk/u8-grapheme-len.c: New file.
17818         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17819
17820         New module 'u16-grapheme-len'.
17821         * modules/unigbrk/u16-grapheme-len: New file.
17822         * modules/unigbrk/u16-grapheme-len-tests: New file.
17823         * lib/unigbrk.in.h: Add prototype for new function.
17824         * lib/unigbrk/u16-grapheme-len.c: New file.
17825         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17826
17827         New module 'u32-grapheme-len'.
17828         * modules/unigbrk/u32-grapheme-len: New file.
17829         * modules/unigbrk/u32-grapheme-len-tests: New file.
17830         * lib/unigbrk.in.h: Add prototype for new function.
17831         * lib/unigbrk/u32-grapheme-len.c: New file.
17832         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17833
17834         New module 'u8-grapheme-next'.
17835         * modules/unigbrk/u8-grapheme-next: New file.
17836         * modules/unigbrk/u8-grapheme-next-tests: New file.
17837         * lib/unigbrk.in.h: Add prototype for new function.
17838         * lib/unigbrk/u8-grapheme-next.c: New file.
17839         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17840
17841         New module 'u16-grapheme-next'.
17842         * modules/unigbrk/u16-grapheme-next: New file.
17843         * modules/unigbrk/u16-grapheme-next-tests: New file.
17844         * lib/unigbrk.in.h: Add prototype for new function.
17845         * lib/unigbrk/u16-grapheme-next.c: New file.
17846         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17847
17848         New module 'u32-grapheme-next'.
17849         * modules/unigbrk/u32-grapheme-next: New file.
17850         * modules/unigbrk/u32-grapheme-next-tests: New file.
17851         * lib/unigbrk.in.h: Add prototype for new function.
17852         * lib/unigbrk/u32-grapheme-next.c: New file.
17853         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17854
17855         New module 'u8-grapheme-prev'.
17856         * modules/unigbrk/u8-grapheme-prev: New file.
17857         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17858         * lib/unigbrk.in.h: Add prototype for new function.
17859         * lib/unigbrk/u8-grapheme-prev.c: New file.
17860         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17861
17862         New module 'u16-grapheme-prev'.
17863         * modules/unigbrk/u16-grapheme-prev: New file.
17864         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17865         * lib/unigbrk.in.h: Add prototype for new function.
17866         * lib/unigbrk/u16-grapheme-prev.c: New file.
17867         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17868
17869         New module 'u32-grapheme-prev'.
17870         * modules/unigbrk/u32-grapheme-prev: New file.
17871         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17872         * lib/unigbrk.in.h: Add prototype for new function.
17873         * lib/unigbrk/u32-grapheme-prev.c: New file.
17874         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17875
17876         New module 'u8-grapheme-breaks'.
17877         * modules/unigbrk/u8-grapheme-breaks: New file.
17878         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17879         * lib/unigbrk.in.h: Add prototype for new function.
17880         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17881         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17882
17883         New module 'u16-grapheme-breaks'.
17884         * modules/unigbrk/u16-grapheme-breaks: New file.
17885         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17886         * lib/unigbrk.in.h: Add prototype for new function.
17887         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17888         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17889
17890         New module 'u32-grapheme-breaks'.
17891         * modules/unigbrk/u32-grapheme-breaks: New file.
17892         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17893         * lib/unigbrk.in.h: Add prototype for new function.
17894         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17895         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17896
17897         New module 'ulc-grapheme-breaks'.
17898         * modules/unigbrk/ulc-grapheme-breaks: New file.
17899         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17900         * m4/locale-ar.m4: New file.
17901         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17902         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17903         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17904
17905 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17906
17907         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17908         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17909         modified how this file was generated before I initially submitted
17910         the module, but failed to regenerate it.  This meant that several
17911         of the level2 entries were wrong.
17912         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17913         Remove the division-by-2 that is folded into the table now that
17914         gbrkprop.h has been regenerated properly.  Now -1 entries are
17915         handled correctly.
17916
17917         New module 'unigbrk/uc-gbrk-prop-tests'.
17918         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17919         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17920         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17921         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17922
17923 2011-01-01  Bruno Haible  <bruno@clisp.org>
17924
17925         Avoid use of hexadecimal escapes.
17926         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17927         instead of hexadecimal escapes.
17928
17929 2011-01-01  Jim Meyering  <meyering@redhat.com>
17930
17931         maint: new rule to update copyright year ranges
17932         * Makefile (update-copyright): New rule.
17933
17934         maint: indent with TABs in Makefile
17935         * Makefile: Expand leading sequences of spaces to TABs
17936
17937         version-etc: update the copyright year it reports
17938         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17939
17940 2010-12-31  Bruno Haible  <bruno@clisp.org>
17941
17942         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17943         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17944         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17945         zero.
17946
17947 2010-12-31  Bruno Haible  <bruno@clisp.org>
17948
17949         pwrite: Work around HP-UX 11.11 bug.
17950         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17951         works and set REPLACE_PWRITE if not.
17952         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17953         function.
17954         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17955
17956 2010-12-31  Bruno Haible  <bruno@clisp.org>
17957
17958         pread: Work around HP-UX 11 bugs.
17959         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17960         and set REPLACE_PREAD if not.
17961         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17962
17963 2010-12-31  Eric Blake  <eblake@redhat.com>
17964
17965         nl_langinfo: fix YESEXPR on Irix 6.5
17966         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17967         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17968         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17969         it.
17970
17971 2010-12-31  Bruno Haible  <bruno@clisp.org>
17972
17973         iconv: Document HP-UX 11 bug.
17974         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17975
17976 2010-12-31  Bruno Haible  <bruno@clisp.org>
17977
17978         ldexpl: Fix link error on HP-UX 11.
17979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17980         LDEXPL_LIBM, using $ISNANL_LIBM.
17981
17982 2010-12-31  Eric Blake  <eblake@redhat.com>
17983
17984         ftello: avoid compilation failure with SunStudio c89
17985         * lib/ftello.c (ftello): Use lseek, not llseek.
17986
17987         tests: avoid failing coreutils tests on cygwin
17988         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17989         (create_exe_shims_): Return 0 when skipping.
17990
17991 2010-12-31  Bruno Haible  <bruno@clisp.org>
17992
17993         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17994         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17995
17996 2010-12-31  Bruno Haible  <bruno@clisp.org>
17997
17998         waitpid: Fix link error in C++ mode.
17999         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18000
18001 2010-12-31  Bruno Haible  <bruno@clisp.org>
18002
18003         isnan: Use GCC built-ins when possible.
18004         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18005         __builtin_isnan.
18006         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18007         (isnan): Define using GCC built-ins for GCC >= 4.0.
18008
18009 2010-12-31  Bruno Haible  <bruno@clisp.org>
18010
18011         isnand: Fix mistake.
18012         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18013         __builtin_isnand.
18014
18015 2010-12-31  Bruno Haible  <bruno@clisp.org>
18016
18017         open: Avoid C++ error on HP-UX 11.
18018         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18019
18020 2010-12-31  Bruno Haible  <bruno@clisp.org>
18021
18022         time_r: Add missing declarations on HP-UX 11.
18023         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18024         instead of HAVE_LOCALTIME_R.
18025         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18026         HAVE_LOCALTIME_R always.
18027         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18028         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18029         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18030         HAVE_LOCALTIME_R.
18031         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18032         * doc/posix-functions/localtime_r.texi: Likewise.
18033
18034 2010-12-29  Eric Blake  <eblake@redhat.com>
18035
18036         mountlist: tweak previous commit
18037         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18038         Reported by Paul Eggert.
18039
18040         mountlist: fix local drive detection on cygwin
18041         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18042         that works for cygwin.
18043
18044 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18045
18046         ftoastr, snprintf: ftoastr + snprintf module
18047         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18048         since the snprintf module now should be good enough here.
18049         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18050         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18051         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18052         GNULIB_SNPRINTF only for the test directory, and the latter
18053         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18054         seems to suffice by itself.
18055
18056 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18057
18058         alloca: one step towards thread-safety
18059         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18060         need for a static variable.  All callers changed.  This does not
18061         make the alloca replacement thread-safe, but it's one step.
18062
18063         tests: minor indenting change
18064         * tests/init.sh: Sync from coreutils housekeeping patch
18065         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18066         to keep lines within 80 columns.
18067
18068 2010-12-28  Jim Meyering  <meyering@redhat.com>
18069
18070         regex: don't infloop on persistent failing calloc
18071         * lib/regexec.c (build_trtable): Return failure indication upon
18072         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18073         In glibc, this was fixed for version 2.13:
18074         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18075
18076 2010-12-28  Bruno Haible  <bruno@clisp.org>
18077             Paul Eggert <eggert@cs.ucla.edu>
18078
18079         linkat: Make implementation robust against system behaviour variations.
18080         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18081         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18082         way, and to -2 if it needs a generic runtime test.
18083         * lib/linkat.c (solaris_optimized_link_immediate,
18084         solaris_optimized_link_follow): New functions.
18085         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18086         (check_same_link): Use it.
18087
18088 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18089
18090         New module 'unigbrk/base'.
18091         * modules/unigbrk/base: New file.
18092         * lib/unigbrk.in.h: New file.
18093
18094         New module 'unigbrk/uc-gbrk-prop'.
18095         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18096         * modules/unigbrk/uc-gbrk-prop: New file.
18097         * lib/unigbrk/gbrkprop.h: New file.
18098         * lib/unigbrk/uc-gbrk-prop.c: New file.
18099
18100         New module 'unigbrk/uc-is-grapheme-break'.
18101         * modules/unigbrk/uc-is-grapheme-break: New file.
18102         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18103         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18104         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18105         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18106         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18107
18108         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18109
18110 2010-12-27  Bruno Haible  <bruno@clisp.org>
18111
18112         linkat test: Avoid failure on Solaris 11 2010-11.
18113         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18114
18115 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18116
18117         utimens: work around glibc rounding bug on more platforms
18118         * lib/utimens.c (fdutimens): Work around rounding bug even if
18119         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18121
18122 2010-12-27  Bruno Haible  <bruno@clisp.org>
18123
18124         select tests: Improve comments.
18125         * tests/test-select.c (do_select): Add comments.
18126
18127 2010-12-27  Bruno Haible  <bruno@clisp.org>
18128
18129         select tests: Safer way of handling timeout.
18130         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18131         at every invocation.
18132
18133 2010-12-27  Bruno Haible  <bruno@clisp.org>
18134
18135         select tests: Use 'bool' where appropriate.
18136         * tests/test-select.c (connect_to_socket): Change argument type to
18137         'bool'.
18138
18139 2010-12-27  Bruno Haible  <bruno@clisp.org>
18140
18141         select tests: Use existing modules.
18142         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18143         (configure.ac): Don't test for unistd.h.
18144         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18145         declared in <unistd.h>.
18146
18147 2010-12-27  Bruno Haible  <bruno@clisp.org>
18148
18149         mbrtowc: Work around a Solaris 7 bug.
18150         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18151         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18152         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18153         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18154         MBRTOWC_NULL_ARG1_BUG.
18155         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18156         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18157         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18158         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18159
18160 2010-12-27  Jim Meyering  <meyering@redhat.com>
18161
18162         read-file.c: tweak syntax
18163         * lib/read-file.c (fread_file): Remove space after "*" in function
18164         definitions.
18165
18166 2010-12-27  Bruno Haible  <bruno@clisp.org>
18167
18168         times test: Avoid gcc warnings on OSF/1.
18169         * tests/test-times.c (main): Cast printf arguments from clock_t to
18170         'long int'.
18171
18172 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18173
18174         utimens: work around glibc rounding bug on older Linux kernels
18175         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18176         on Linux with a glibc whose utimes might not work, then work
18177         around a longstanding glibc bug involving rounding rather than
18178         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18180
18181 2010-12-26  Bruno Haible  <bruno@clisp.org>
18182
18183         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18184         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18185         _GL_CXXALIAS_SYS.
18186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18187
18188 2010-12-26  Bruno Haible  <bruno@clisp.org>
18189
18190         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18191         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18192         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18193         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18194         looking for the declaration.
18195         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18196         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18197         problem.
18198         * doc/posix-functions/inet_pton.texi: Likewise.
18199
18200 2010-12-26  Bruno Haible  <bruno@clisp.org>
18201
18202         arpa_inet: Use the common idioms with C++ support.
18203         * lib/arpa_inet.in.h: Include c++defs.h.
18204         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18205         support.
18206         * modules/arpa_inet (Depends-on): Add c++defs.
18207         (Makefile.am): Substitute the contents of c++defs.h.
18208         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18209         * modules/arpa_inet-c++-tests: New file.
18210         * tests/test-arpa_inet-c++.cc: New file.
18211
18212 2010-12-25  Bruno Haible  <bruno@clisp.org>
18213
18214         Fix more C++ link errors on Solaris 8.
18215         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18216         $(LIB_EACCESS).
18217         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18218         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18219         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18220         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18221         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18222
18223 2010-12-25  Bruno Haible  <bruno@clisp.org>
18224
18225         printf-posix: Fix link error when a non-GCC compiler is used.
18226         * lib/stdio.in.h (printf): When not using GCC, override printf
18227         correctly.
18228         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18229
18230 2010-12-25  Bruno Haible  <bruno@clisp.org>
18231
18232         strerror_r-posix: Update doc.
18233         * doc/posix-functions/strerror_r.texi: Update doc about the return
18234         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18235
18236 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18237
18238         utimens: simplify the logic of the previous change
18239         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18240         This should not affect whether the test succeeds or fails.
18241
18242         utimens: configure better on hosts with NFS clock skew
18243         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18244         uses the clock of the local host.  It might use the clock of the
18245         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18247
18248 2010-12-25  Bruno Haible  <bruno@clisp.org>
18249
18250         ptsname test: Avoid failure on Solaris.
18251         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18252         open a pseudo-terminal; don't use BSD-style ptys.
18253         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18254
18255 2010-12-25  Bruno Haible  <bruno@clisp.org>
18256
18257         ptsname: Avoid ERANGE failure on some systems.
18258         * lib/ptsname.c (buffer): Increase size.
18259
18260 2010-12-25  Bruno Haible  <bruno@clisp.org>
18261
18262         rename, renameat: Avoid test failures at NFS mounted locations.
18263         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18264         so that subsequent mkdir calls succeed.
18265
18266 2010-12-25  Bruno Haible  <bruno@clisp.org>
18267
18268         iswblank: Fix C++ link error on Solaris 8.
18269         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18270         _GL_FUNCDECL_SYS.
18271
18272 2010-12-25  Bruno Haible  <bruno@clisp.org>
18273
18274         unistd: Fix C++ link error on Solaris 8.
18275         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18276
18277 2010-12-25  Bruno Haible  <bruno@clisp.org>
18278
18279         readlink doc: Mention an old glibc bug.
18280         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18281
18282 2010-12-25  Bruno Haible  <bruno@clisp.org>
18283
18284         fcntl-h: Fix for use of C++ on glibc systems.
18285         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18286         also on glibc systems in C++ mode.
18287         Reported by Gary V. Vaughan <gary@gnu.org>.
18288
18289 2010-12-25  Bruno Haible  <bruno@clisp.org>
18290
18291         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18292         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18293
18294 2010-12-25  Bruno Haible  <bruno@clisp.org>
18295
18296         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18297         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18298         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18299         test whether truncl works according to ISO C 99 with IEC 60559.
18300         * m4/truncl-ieee.m4: New file.
18301         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18302         m4/signbit.m4.
18303         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18304
18305 2010-12-25  Bruno Haible  <bruno@clisp.org>
18306
18307         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18308         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18309         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18310         test whether ceill works according to ISO C 99 with IEC 60559.
18311         * m4/ceill-ieee.m4: New file.
18312         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18313         m4/signbit.m4.
18314         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18315
18316 2010-12-25  Bruno Haible  <bruno@clisp.org>
18317
18318         Ensure all prerequisites of <wchar.h> are included.
18319         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18320         before <wchar.h>.
18321         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18322         gl_MBRLEN_NUL_RETVAL): Likewise.
18323         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18324         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18325         AC_FUNC_MBRTOWC): Likewise.
18326         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18327         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18328         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18329         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18330         Likewise.
18331         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18332         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18333         (gl_WCHAR_H): Improve comments.
18334         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18335
18336 2010-12-25  Bruno Haible  <bruno@clisp.org>
18337
18338         strtok_r: Fix C syntax error in autoconf macro.
18339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18340         characters in test program.
18341
18342 2010-12-24  Bruno Haible  <bruno@clisp.org>
18343
18344         ceil, trunc, round: Fix gcc warnings.
18345         * lib/ceil.c (MIN): Undefine before redefining.
18346         * lib/trunc.c (MIN): Likewise.
18347         * lib/round.c (MIN): Likewise.
18348         Include <math.h> first.
18349
18350 2010-12-24  Bruno Haible  <bruno@clisp.org>
18351
18352         select tests: Avoid failures on OSF/1 5.1.
18353         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18354         failure of closing the last socket; it may fail with ECONNRESET.
18355
18356 2010-12-24  Eric Blake  <eblake@redhat.com>
18357
18358         stdint: avoid HP-UX 10.20 preprocessor bug
18359         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18360         than #if.
18361         * tests/test-floor2.c (main): Likewise.
18362         Reported by Peter O'Gorman.
18363
18364         pipe: make obsoletion transition easier
18365         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18366         * modules/pipe (Files): Include revived file.
18367         (Include): Drop reference, to mirror getdate's behavior.
18368
18369 2010-12-24  Bruno Haible  <bruno@clisp.org>
18370
18371         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18372         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18373         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18374         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18375
18376 2010-12-24  Bruno Haible  <bruno@clisp.org>
18377
18378         gethostname: Ensure declaration on NonStop Kernel.
18379         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18381
18382 2010-12-24  Bruno Haible  <bruno@clisp.org>
18383
18384         sys_select: Ensure all necessary types on NonStop Kernel.
18385         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18386         include <sys/time.h>.
18387         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18388         NonStop Kernel.
18389         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18390
18391 2010-12-24  Bruno Haible  <bruno@clisp.org>
18392
18393         sys_select: Remove unneeded include.
18394         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18395         have <sys/select.h>.
18396
18397 2010-12-24  Bruno Haible  <bruno@clisp.org>
18398
18399         gethostname: Provide a fallback for HOST_NAME_MAX.
18400         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18401         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18402         instead.
18403         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18404
18405 2010-12-24  Bruno Haible  <bruno@clisp.org>
18406
18407         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18408         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18409         (SA_RESTART): Likewise.
18410         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18411
18412 2010-12-24  Bruno Haible  <bruno@clisp.org>
18413
18414         signal: Define NSIG.
18415         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18416         * tests/test-signal.c (nsig): New variable.
18417         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18418
18419 2010-12-24  Bruno Haible  <bruno@clisp.org>
18420
18421         rename, renameat: Avoid test failures on OSF/1 5.1.
18422         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18423         alternative error codes.
18424         * tests/test-renameat.c (main): Likewise.
18425
18426 2010-12-24  Bruno Haible  <bruno@clisp.org>
18427
18428         *printf: Detect large precisions bug on Solaris 10/SPARC.
18429         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18430         by Paul Eggert.
18431         * tests/test-snprintf-posix.h (test_function): Add this test code here
18432         too.
18433         * tests/test-sprintf-posix.h (test_function): Likewise.
18434         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18435         * tests/test-vasprintf-posix.c (test_function): Likewise.
18436         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18437         around by gnulib.
18438         * doc/posix-functions/printf.texi: Likewise.
18439         * doc/posix-functions/snprintf.texi: Likewise.
18440         * doc/posix-functions/sprintf.texi: Likewise.
18441         * doc/posix-functions/vfprintf.texi: Likewise.
18442         * doc/posix-functions/vprintf.texi: Likewise.
18443         * doc/posix-functions/vsnprintf.texi: Likewise.
18444         * doc/posix-functions/vsprintf.texi: Likewise.
18445         * doc/posix-functions/dprintf.texi: Undo last commit.
18446         * doc/posix-functions/vdprintf.texi: Likewise.
18447
18448 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18449
18450         tests: port test-fdutimensat.c to Solaris 8
18451         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18452         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18453         On Solaris 8, it fails with errno == ENOSYS, because there is no
18454         futimens (so it can't use the fd), and there is no lutimens (so it
18455         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18456
18457         vsnprintf: make more consistent with snprintf; doc fixes
18458
18459         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18460         the byte count return problem was promoted from the snprintf-posix
18461         to the snprintf module.
18462         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18463         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18464         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18465         * tests/test-snprintf.c (main): Check the byte count returned.
18466         * tests/test-vsnprintf.c (main): Likewise.
18467
18468 2010-12-23  Eric Blake  <eblake@redhat.com>
18469
18470         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18471         * modules/sigpipe (License): Relax license.
18472
18473 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18474
18475         doc: document Solaris printf bug with large float precisions
18476         * doc/posix-functions/dprintf.texi (dprintf):
18477         * doc/posix-functions/fprintf.texi (fprintf):
18478         * doc/posix-functions/printf.texi (printf):
18479         * doc/posix-functions/snprintf.texi (snprintf):
18480         * doc/posix-functions/sprintf.texi (sprintf):
18481         * doc/posix-functions/vdprintf.texi (vdprintf):
18482         * doc/posix-functions/vfprintf.texi (vfprintf):
18483         * doc/posix-functions/vprintf.texi (vprintf):
18484         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18485         * doc/posix-functions/vsprintf.texi (vsprintf):
18486         Mention that these functions mishandle large floating point
18487         precisions on Solaris 10.  The same bug is also present in Solaris
18488         8, and I assume earlier.  This causes "cd gnulib-tests; make
18489         check" to fail on Solaris 8 (and I assume, later) when building
18490         the latest coreutils, in test-vasprintf-posix's call to
18491         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18492         the wide flavors (e.g., wprintf) so this patch just updates the
18493         documentation for the narrow ones.
18494
18495         test-posixtm.c: add two tests
18496         * tests/test-posixtm.c: Add two tests, to highlight the
18497         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18498         around this bug; this is merely to document it.
18499
18500 2010-12-22  Bruno Haible  <bruno@clisp.org>
18501
18502         getlogin_r: Work around portability problem on OSF/1.
18503         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18504         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18505         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18506         test for a truncated result.
18507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18508         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18509         * modules/getlogin_r (Depends-on): Add memchr.
18510         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18511
18512 2010-12-22  Bruno Haible  <bruno@clisp.org>
18513
18514         ptsname: Avoid test failure on OSF/1 5.1.
18515         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18516         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18517         (same_slave): New function.
18518         (main): Use it to compare ptsname's result with the expected file name.
18519
18520 2010-12-22  Bruno Haible  <bruno@clisp.org>
18521
18522         Port extended stdio modules to HP NonStop Kernel.
18523         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18524         macros.
18525         * lib/fbufmode.c: Update comments.
18526         * lib/fflush.c: Likewise.
18527         * lib/fpurge.c: Likewise.
18528         * lib/freadable.c: Likewise.
18529         * lib/freadahead.c: Likewise.
18530         * lib/freading.c: Likewise.
18531         * lib/freadptr.c: Likewise.
18532         * lib/freadseek.c: Likewise.
18533         * lib/fseeko.c: Likewise.
18534         * lib/fseterr.c: Likewise.
18535         * lib/fwritable.c: Likewise.
18536         * lib/fwriting.c: Likewise.
18537         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18538
18539 2010-12-22  Bruno Haible  <bruno@clisp.org>
18540
18541         ttyname_r: Work around bug on OSF/1 5.1.
18542         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18543         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18544         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18545         present.
18546         * lib/ttyname_r.c (ttyname_r): Update comments.
18547
18548 2010-12-22  Bruno Haible  <bruno@clisp.org>
18549
18550         round: Implement result sign according to IEEE 754.
18551         * lib/round.c (MIN, MINUS_ZERO): New macros.
18552         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18553         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18554         * tests/test-round-ieee.c (main): Likewise.
18555         * tests/test-roundl-ieee.c (main): Likewise.
18556
18557         trunc: Implement result sign according to IEEE 754.
18558         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18559         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18560         * tests/test-trunc2.c: Include minus-zero.h.
18561         (MINUS_ZERO): New macro.
18562         (trunc_reference): Keep in sync with lib/trunc.c.
18563         * tests/test-truncf2.c: Include minus-zero.h.
18564         (MINUS_ZERO): New macro.
18565         (truncf_reference): Keep in sync with lib/trunc.c.
18566         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18567         * tests/test-trunc-ieee.c (main): Likewise.
18568         * tests/test-truncl-ieee.c (main): Likewise.
18569
18570         ceil: Implement result sign according to IEEE 754.
18571         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18572         (FUNC): Return -0.0 for -1 < x < 0.
18573         * tests/test-ceil2.c: Include minus-zero.h.
18574         (MINUS_ZERO): New macro.
18575         (ceil_reference): Keep in sync with lib/ceil.c.
18576         * tests/test-ceilf2.c: Include minus-zero.h.
18577         (MINUS_ZERO): New macro.
18578         (ceilf_reference): Keep in sync with lib/ceil.c.
18579         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18580         * tests/test-ceil-ieee.c (main): Likewise.
18581         * tests/test-ceill-ieee.c (main): Likewise.
18582
18583         floor: Implement result sign according to IEEE 754.
18584         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18585         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18586         * tests/test-floorf2.c (floorf_reference): Likewise.
18587         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18588         * tests/test-floor-ieee.c (main): Likewise.
18589         * tests/test-floorl-ieee.c (main): Likewise.
18590
18591 2010-12-22  Bruno Haible  <bruno@clisp.org>
18592
18593         getaddrinfo: Update doc.
18594         * doc/posix-functions/gai_strerror.texi: Return type is also different
18595         on AIX and HP-UX.
18596
18597 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18598
18599         getaddrinfo, inet_ntop: Update doc for Solaris.
18600         * doc/posix-functions/gai_strerror.texi: Return type is also an
18601         issue on Solaris 9 and earlier.
18602         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18603         on Solaris 10 and earlier.
18604
18605 2010-12-21  Bruno Haible  <bruno@clisp.org>
18606
18607         New module 'roundl-ieee'.
18608         * modules/roundl-ieee: New file.
18609         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18610         test whether roundl works according to ISO C 99 with IEC 60559.
18611         * m4/roundl-ieee.m4: New file.
18612         * modules/roundl-ieee-tests: New file.
18613         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18614         * tests/test-roundl.c (main): Remove signbit tests.
18615         * modules/roundl-tests (Depends-on): Remove signbit.
18616         * doc/posix-functions/roundl.texi: Mention the new module.
18617
18618 2010-12-21  Bruno Haible  <bruno@clisp.org>
18619
18620         New module 'truncl-ieee'.
18621         * modules/truncl-ieee: New file.
18622         * modules/truncl-ieee-tests: New file.
18623         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18624         * tests/test-truncl.c (main): Remove signbit tests.
18625         * modules/truncl-tests (Depends-on): Remove signbit.
18626         * doc/posix-functions/truncl.texi: Mention the new module.
18627
18628 2010-12-21  Bruno Haible  <bruno@clisp.org>
18629
18630         New module 'ceill-ieee'.
18631         * modules/ceill-ieee: New file.
18632         * modules/ceill-ieee-tests: New file.
18633         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18634         * tests/test-ceill.c (main): Remove signbit tests.
18635         * modules/ceill-tests (Depends-on): Remove signbit.
18636         * doc/posix-functions/ceill.texi: Mention the new module.
18637
18638 2010-12-21  Bruno Haible  <bruno@clisp.org>
18639
18640         New module 'floorl-ieee'.
18641         * modules/floorl-ieee: New file.
18642         * modules/floorl-ieee-tests: New file.
18643         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18644         * tests/test-floorl.c (main): Remove signbit tests.
18645         * modules/floorl-tests (Depends-on): Remove signbit.
18646         * doc/posix-functions/floorl.texi: Mention the new module.
18647
18648 2010-12-21  Bruno Haible  <bruno@clisp.org>
18649
18650         New module 'round-ieee'.
18651         * modules/round-ieee: New file.
18652         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18653         whether round works according to ISO C 99 with IEC 60559.
18654         * m4/round-ieee.m4: New file.
18655         * modules/round-ieee-tests: New file.
18656         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18657         * tests/test-round1.c (main): Remove signbit tests.
18658         * modules/round-tests (Depends-on): Remove 'signbit'.
18659         * doc/posix-functions/round.texi: Mention the new module.
18660
18661 2010-12-21  Bruno Haible  <bruno@clisp.org>
18662
18663         New module 'trunc-ieee'.
18664         * modules/trunc-ieee: New file.
18665         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18666         whether trunc works according to ISO C 99 with IEC 60559.
18667         * m4/trunc-ieee.m4: New file.
18668         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18670         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18671         * modules/trunc-ieee-tests: New file.
18672         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18673         * tests/test-trunc1.c (main): Remove signbit tests.
18674         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18675         * doc/posix-functions/trunc.texi: Mention the new module.
18676
18677 2010-12-21  Bruno Haible  <bruno@clisp.org>
18678
18679         New module 'ceil-ieee'.
18680         * modules/ceil-ieee: New file.
18681         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18682         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18683         ISO C 99 with IEC 60559.
18684         * m4/ceil-ieee.m4: New file.
18685         * modules/ceil (Files): Add lib/ceil.c.
18686         (Depends-on): Add 'float'.
18687         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18688         * lib/math.in.h (ceil): New declaration.
18689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18690         REPLACE_CEIL.
18691         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18692         * modules/ceil-ieee-tests: New file.
18693         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18694         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18695         * doc/posix-functions/ceil.texi: Mention the new module.
18696
18697 2010-12-21  Bruno Haible  <bruno@clisp.org>
18698
18699         New module 'floor-ieee'.
18700         * modules/floor-ieee: New file.
18701         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18702         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18703         ISO C 99 with IEC 60559.
18704         * m4/floor-ieee.m4: New file.
18705         * modules/floor (Files): Add lib/floor.c.
18706         (Depends-on): Add 'float'.
18707         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18708         * lib/math.in.h (floor): New declaration.
18709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18710         REPLACE_FLOOR.
18711         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18712         * modules/floor-ieee-tests: New file.
18713         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18714         * tests/test-math-c++.cc: Check the signature of 'floor'.
18715         * doc/posix-functions/floor.texi: Mention the new module.
18716
18717 2010-12-21  Bruno Haible  <bruno@clisp.org>
18718
18719         New module 'roundf-ieee'.
18720         * modules/roundf-ieee: New file.
18721         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18722         test whether roundf works according to ISO C 99 with IEC 60559.
18723         * m4/roundf-ieee.m4: New file.
18724         * modules/roundf-ieee-tests: New file.
18725         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18726         * tests/test-roundf1.c (main): Remove signbit tests.
18727         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18728         * doc/posix-functions/roundf.texi: Mention the new module.
18729
18730 2010-12-21  Bruno Haible  <bruno@clisp.org>
18731
18732         New module 'truncf-ieee'.
18733         * modules/truncf-ieee: New file.
18734         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18735         test whether truncf works according to ISO C 99 with IEC 60559.
18736         * m4/truncf-ieee.m4: New file.
18737         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18739         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18740         * modules/truncf-ieee-tests: New file.
18741         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18742         * tests/test-truncf1.c (main): Remove signbit tests.
18743         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18744         * doc/posix-functions/truncf.texi: Mention the new module.
18745
18746 2010-12-21  Bruno Haible  <bruno@clisp.org>
18747
18748         New module 'ceilf-ieee'.
18749         * modules/ceilf-ieee: New file.
18750         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18751         test whether ceilf works according to ISO C 99 with IEC 60559.
18752         * m4/ceilf-ieee.m4: New file.
18753         * modules/ceilf-ieee-tests: New file.
18754         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18755         * tests/test-ceilf1.c (main): Remove signbit tests.
18756         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18757         * doc/posix-functions/ceilf.texi: Mention the new module.
18758
18759 2010-12-21  Bruno Haible  <bruno@clisp.org>
18760
18761         New module 'floorf-ieee'.
18762         * modules/floorf-ieee: New file.
18763         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18764         test whether floorf works according to ISO C 99 with IEC 60559.
18765         * m4/floorf-ieee.m4: New file.
18766         * modules/floorf-ieee-tests: New file.
18767         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18768         * tests/test-floorf1.c (main): Remove signbit tests.
18769         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18770         * doc/posix-functions/floorf.texi: Mention the new module.
18771
18772 2010-12-21  Bruno Haible  <bruno@clisp.org>
18773
18774         Support for minus zero in autoconf macros.
18775         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18776         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18777         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18778         * tests/minus-zero.h: Update comments.
18779
18780 2010-12-21  Bruno Haible  <bruno@clisp.org>
18781
18782         Tests for module 'ceil'.
18783         * modules/ceil-tests: New file.
18784         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18785         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18786
18787 2010-12-21  Bruno Haible  <bruno@clisp.org>
18788
18789         Tests for module 'floor'.
18790         * modules/floor-tests: New file.
18791         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18792         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18793
18794 2010-12-21  Bruno Haible  <bruno@clisp.org>
18795
18796         math: Fix indentation.
18797         * lib/math.in.h (floorf): Fix indentation.
18798
18799 2010-12-21  Bruno Haible  <bruno@clisp.org>
18800
18801         Fix cross-compilation guesses on Solaris.
18802         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18803         not match "solaris2.10".
18804         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18805         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18806         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18807
18808 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18809
18810         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18811         This fixes a problem observed with the latest coreutils snapshot
18812         that caused a test to fail on Solaris 8.  src/csplit.c's call
18813         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18814         earlier, instead of returning the number of bytes that would have
18815         been generated; this causes csplit to incorrectly report memory
18816         exhaustion.
18817         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18818         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18819         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18820         comments to match.
18821         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18822         Fix typo in matching older versions of Solaris: "solaris2.10"
18823         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18824         only for guessing while cross-compiling.
18825         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18826
18827 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18828
18829         ftoastr: fix comment again
18830         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18831         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18832         Also, simplify example a bit by using flags = 0.
18833
18834 2010-12-20  Bruno Haible  <bruno@clisp.org>
18835
18836         round*, trunc*: Update documentation regarding glibc.
18837         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18838         * doc/posix-functions/round.texi: Likewise.
18839         * doc/posix-functions/roundl.texi: Likewise.
18840         * doc/posix-functions/truncf.texi: Likewise.
18841         * doc/posix-functions/trunc.texi: Likewise.
18842         * doc/posix-functions/truncl.texi: Likewise.
18843
18844 2010-12-20  Bruno Haible  <bruno@clisp.org>
18845
18846         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18847         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18848         * doc/posix-functions/round.texi: Likewise.
18849         * doc/posix-functions/roundl.texi: Likewise.
18850
18851 2010-12-20  Bruno Haible  <bruno@clisp.org>
18852
18853         ttyname_r: Add missing declaration on HP-UX 11.
18854         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18855         HAVE_TTYNAME_R.
18856         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18857         declared. Set HAVE_TTYNAME_R always.
18858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18859         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18860         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18861         HAVE_TTYNAME_R.
18862         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18863
18864 2010-12-20  Bruno Haible  <bruno@clisp.org>
18865
18866         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18867         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18868         * doc/posix-functions/getlogin_r.texi: Likewise.
18869         * tests/test-getlogin.c: Include <errno.h>.
18870         (main): Avoid test failure on HP-UX 11.11.
18871         * tests/test-getlogin_r.c (main): Likewise.
18872
18873 2010-12-20  Bruno Haible  <bruno@clisp.org>
18874
18875         getlogin_r: Add missing declaration on HP-UX 11.
18876         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18877         declared also when it exists as a function.
18878         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18879
18880 2010-12-20  Bruno Haible  <bruno@clisp.org>
18881
18882         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18883         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18884         through wcrtomb.
18885
18886 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18887
18888         ftoastr: fix comment
18889         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18890         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18891
18892 2010-12-19  Bruno Haible  <bruno@clisp.org>
18893
18894         isnan: Ensure it is a macro.
18895         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18896         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18897         Solaris.
18898
18899 2010-12-19  Bruno Haible  <bruno@clisp.org>
18900
18901         ldexpl test: Fix link error on OSF/1 5.1.
18902         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18903
18904 2010-12-19  Bruno Haible  <bruno@clisp.org>
18905
18906         wctype: Make it work in C++ mode on OSF/1 5.1.
18907         * lib/wctype.in.h (iswblank): Declare but not define here.
18908         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18909         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18910         * modules/wctype (Files): Add lib/iswblank.c.
18911
18912 2010-12-19  Bruno Haible  <bruno@clisp.org>
18913
18914         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18915         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18916         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18917
18918 2010-12-19  Bruno Haible  <bruno@clisp.org>
18919
18920         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18921         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18922         _POSIX_PII_SOCKET.
18923         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18924         * doc/posix-functions/recvfrom.texi: Likewise.
18925         * doc/posix-functions/send.texi: Likewise.
18926         * doc/posix-functions/sendto.texi: Likewise.
18927
18928 2010-12-19  Bruno Haible  <bruno@clisp.org>
18929
18930         tcgetsid: Add missing declaration on OSF/1 5.1.
18931         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18932         HAVE_TCGETSID.
18933         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18934         Don't set HAVE_TCGETSID.
18935         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18936         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18937         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18938         HAVE_TCGETSID.
18939         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18940
18941 2010-12-19  Bruno Haible  <bruno@clisp.org>
18942
18943         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18944         * lib/stdio.in.h: During the include_next statement, let recursive
18945         includes of this file include only the system header file.
18946
18947 2010-12-19  Bruno Haible  <bruno@clisp.org>
18948
18949         iconv_open: Fix regression from 2010-12-04.
18950         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18951         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18952
18953 2010-12-19  Bruno Haible  <bruno@clisp.org>
18954
18955         stdbool test: Avoid a gcc warning.
18956         * tests/test-stdbool.c (main): Fail if e1 is false.
18957         Reported by Jim Meyering.
18958
18959 2010-12-19  Jim Meyering  <meyering@redhat.com>
18960
18961         setenv: restore to working order
18962         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18963         mistakenly removed.
18964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18965         HAVE_SETENV.
18966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18967         HAVE_SETENV.
18968
18969 2010-12-19  Bruno Haible  <bruno@clisp.org>
18970
18971         Document some different function declarations on OSF/1 5.1.
18972         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18973         * doc/posix-functions/inet_ntop.texi: Likewise.
18974         * doc/posix-functions/gethostname.texi: Likewise.
18975         * lib/unistd.in.h (gethostname): Update comment.
18976
18977 2010-12-19  Bruno Haible  <bruno@clisp.org>
18978
18979         doc: Mention vasprintf-posix module.
18980         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18981         the 'vasprintf-posix' module.
18982         * doc/glibc-functions/vasprintf.texi: Likewise.
18983
18984 2010-12-19  Bruno Haible  <bruno@clisp.org>
18985
18986         unsetenv: Add missing declaration on OSF/1 5.1.
18987         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18988         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18989         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18991         not HAVE_UNSETENV.
18992         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18993         HAVE_UNSETENV.
18994         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18995
18996 2010-12-19  Bruno Haible  <bruno@clisp.org>
18997
18998         setenv: Add missing declaration on OSF/1 5.1.
18999         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19000         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19001         declared. Don't set HAVE_SETENV.
19002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19003         not HAVE_SETENV.
19004         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19005         HAVE_SETENV.
19006         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19007
19008 2010-12-19  Bruno Haible  <bruno@clisp.org>
19009
19010         nl_langinfo tests: Avoid gcc warning.
19011         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19012
19013 2010-12-19  Bruno Haible  <bruno@clisp.org>
19014
19015         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19016         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19017         _GL_CXXALIAS_SYS.
19018
19019 2010-12-19  Bruno Haible  <bruno@clisp.org>
19020
19021         stdbool: Relax test.
19022         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19023         address to 'bool' work in static initializer, for compilers other than
19024         GCC.
19025
19026 2010-12-19  Bruno Haible  <bruno@clisp.org>
19027
19028         ftello: Add missing declaration on OSF/1 5.1.
19029         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19030         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19032         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19033         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19034
19035 2010-12-19  Bruno Haible  <bruno@clisp.org>
19036
19037         fseeko: Add missing declaration on OSF/1 5.1.
19038         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19041         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19042         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19043
19044 2010-12-19  Bruno Haible  <bruno@clisp.org>
19045
19046         fchdir: Add missing declaration on OSF/1 5.1.
19047         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19050         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19051         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19052
19053 2010-12-19  Bruno Haible  <bruno@clisp.org>
19054
19055         relocatable-prog-wrapper: Separate from relocatable-prog.
19056         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19057         uninstall-relocwrapper rule here.
19058         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19059         Reported by Ian Beckwith <ianb@erislabs.net>.
19060
19061 2010-12-19  Bruno Haible  <bruno@clisp.org>
19062
19063         unistr/u8-mbsnlen: Add missing dependency.
19064         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19065         Reported by Ian Beckwith <ianb@erislabs.net>.
19066
19067 2010-12-19  Bruno Haible  <bruno@clisp.org>
19068
19069         iconv: Make it possible again to use this module without 'iconv-h'.
19070         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19071         if it is not defined.
19072         Reported by Ian Beckwith <ianb@erislabs.net>.
19073
19074 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19075
19076         acl: port to Solaris 8 when copying from tmpfs to ufs
19077         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19078         error number.  Problem observed on Solaris 8 with latest
19079         coreutils, with "mv A B", where A is on a tmpfs file system and B
19080         is on a ufs file system.  This caused coreutils' mv/part-symlink
19081         test to fail.
19082
19083         tests: set fail=0 at start
19084         * tests/init.sh (setup_): Move fail=0 initialization here ...
19085         (mktempd_): ... from here, so that tests can rely on fail being
19086         set to 0 initially.  This fixes a problem in coreutils; see:
19087         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19088
19089 2010-12-18  Bruno Haible  <bruno@clisp.org>
19090
19091         memmem-simple: Stylistic changes.
19092         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19093         Fix preprocessor directive indentation.
19094
19095 2010-12-15  Pádraig Brady <P@draigBrady.com>
19096
19097         memmem, memmem-simple: reorganize and expand empty needle check
19098         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19099         functional checks to memmem-simple so that one has a fully functional
19100         memmem by using just this module.
19101         Restrict the performance only check to the memmem module.
19102         Also expand the empty needle check to ensure the correct
19103         pointer is returned, not just a non NULL pointer.
19104         * doc/glibc-functions/memmem.texi: Rearrange the portability
19105         documentation to correlate with the rearranged checks.
19106         Clarify exactly how the memmem and memmem-simple modules
19107         relate to each other.
19108
19109 2010-12-15  Pádraig Brady <P@draigBrady.com>
19110             Bruno Haible  <bruno@clisp.org>
19111
19112         Improve cross-compilation guesses for uClibc.
19113         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19114         that uClibc does not have the glibc bug.
19115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19116         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19117
19118 2010-12-14  Eric Blake  <eblake@redhat.com>
19119
19120         configmake: provide fallbacks for oldest supported autotools
19121         * m4/configmake.m4: New file.
19122         * modules/configmake (Files): Ship it.
19123         (configure.ac): Use it to guarantee fallbacks.
19124
19125 2010-12-13  Pádraig Brady <P@draigBrady.com>
19126
19127         read-file: Improve handling of large files
19128         * lib/read-file.c (fread_file): Minimize realloc()s
19129         for regular files, and better manage sizes around SIZE_MAX.
19130
19131 2010-12-13  Eric Blake  <eblake@redhat.com>
19132
19133         cloexec, fcntl: relax license
19134         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19135         consent from all contributors.
19136         * modules/fcntl (License): Likewise.
19137
19138 2010-12-10  Bruno Haible  <bruno@clisp.org>
19139
19140         Tests for module 'pipe-posix'.
19141         * modules/pipe-posix-tests: New file.
19142         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19143
19144 2010-12-10  Bruno Haible  <bruno@clisp.org>
19145
19146         pipe-posix: Make it work in C++ mode.
19147         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19148         (pipe): Use common idiom, not a macro definition.
19149         * lib/pipe.c: New file.
19150         * m4/pipe.m4: New file.
19151         * modules/pipe-posix (Description): Enhance.
19152         (Files): Add lib/pipe.c, m4/pipe.m4.
19153         (configure.ac): Invoke gl_FUNC_PIPE.
19154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19155         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19156         * tests/test-unistd-c++.cc: Check the signature of pipe.
19157
19158 2010-12-10  Bruno Haible  <bruno@clisp.org>
19159
19160         Rename module 'pipe' to 'spawn-pipe'.
19161         * modules/spawn-pipe: New file, renamed from modules/pipe.
19162         (Files, configure.ac, Makefile.am): Update.
19163         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19164         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19165         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19166         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19167         "spawn-pipe.h" instead of "pipe.h".
19168         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19169         to gl_SPAWN_PIPE.
19170         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19171         (Files, Makefile.am): Update.
19172         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19173         Update.
19174         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19175         Include "spawn-pipe.h" instead of "pipe.h".
19176         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19177         * lib/javacomp.c: Likewise.
19178         * lib/javaversion.c: Likewise.
19179         * lib/pipe-filter-gi.c: Likewise.
19180         * lib/pipe-filter-ii.c: Likewise.
19181         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19182         * modules/javacomp (Depends-on): Likewise.
19183         * modules/javaversion (Depends-on): Likewise.
19184         * modules/pipe-filter-gi (Depends-on): Likewise.
19185         * modules/pipe-filter-ii (Depends-on): Likewise.
19186         * MODULES.html.sh (Executing programs): Update.
19187         * NEWS: Mention the change.
19188
19189 2010-12-10  Eric Blake  <eblake@redhat.com>
19190
19191         pipe-posix: new module
19192         * modules/pipe-posix: New file.
19193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19194         (gl_UNISTD_H): Check for declaration.
19195         * modules/unistd (Makefile.am): Substitute it.
19196         * lib/unistd.in.h (pipe): Provide it for mingw.
19197         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19198         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19199
19200 2010-12-07  Bruno Haible  <bruno@clisp.org>
19201
19202         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19203         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19204         u8_strcmp_gnu.
19205         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19206
19207 2010-12-06  Bruno Haible  <bruno@clisp.org>
19208
19209         Update internal documentation.
19210         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19211
19212 2010-12-04  Bruno Haible  <bruno@clisp.org>
19213
19214         Put more information about failed tests into the test return codes.
19215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19216         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19217         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19219         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19220         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19221         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19222         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19223         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19226         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19227         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19228         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19229         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19230         returns a bit mask.
19231         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19232         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19233         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19234         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19235         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19236         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19237         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19239         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19240         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19241         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19242         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19243         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19244         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19245         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19246         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19247         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19248         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19249         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19250         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19251         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19252         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19253         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19254         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19255         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19256         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19257         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19258         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19259         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19260         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19261         gl_PRINTF_PRECISION): Likewise.
19262         * m4/regex.m4 (gl_REGEX): Likewise.
19263         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19264         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19265         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19266         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19267         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19269         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19270         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19271         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19272         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19273         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19274         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19275         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19276         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19277         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19278         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19279         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19280         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19282         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19283         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19284         enumerated value.
19285         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19286
19287 2010-12-04  Bruno Haible  <bruno@clisp.org>
19288
19289         Update for Solaris 11 2010-11.
19290         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19291         Express, released in November 2010.
19292
19293 2010-12-04  Bruno Haible  <bruno@clisp.org>
19294
19295         nproc: Relax license.
19296         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19297         and Paul Eggert.
19298         Requested by Ludovic Courtès <ludo@gnu.org>.
19299
19300 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19301
19302         utimecmp: fine-grained src to nearby coarse-grained dest
19303
19304         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19305         and the source is on a file system with higher-resolution time
19306         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19307         not work, and the time stamps are close together, the algorithm to
19308         determine the exact resolution from the read-back mtime was buggy:
19309         it had a "!=" where it should have had an "==".  This bug has been
19310         in the code ever since it was introduced to gnulib.
19311         Problem reported by Dan Jacobson in
19312         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19313
19314 2010-11-30  Bruno Haible  <bruno@clisp.org>
19315
19316         strerror_r-posix: Fix autoconf test.
19317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19318
19319 2010-11-28  Bruno Haible  <bruno@clisp.org>
19320             Paul Eggert  <eggert@cs.ucla.edu>
19321
19322         Tests for module 'getdomainname'.
19323         * modules/getdomainname-tests: New file.
19324         * tests/test-getdomainname.c: New file, based on
19325         tests/test-gethostname.c.
19326
19327 2010-11-28  Bruno Haible  <bruno@clisp.org>
19328             Paul Eggert  <eggert@cs.ucla.edu>
19329
19330         getdomainname: Use the system function when possible.
19331         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19332         (getdomainname): Replace if needed. Provide the declaration if it is
19333         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19334         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19335         (getdomainname): When the system has getdomainname, call the system
19336         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19337         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19338         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19339         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19340         the function if its second argument is of type 'int' or if it is found
19341         in libnsl.
19342         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19343         <sys/systeminfo.h> and sysinfo().
19344         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19346         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19347         HAVE_GETDOMAINNAME.
19348         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19349         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19350         * doc/glibc-functions/getdomainname.texi: Document the problems with
19351         the getdomainname declaration.
19352
19353 2010-11-28  Bruno Haible  <bruno@clisp.org>
19354
19355         sys_socket: Ensure ss_family field on AIX.
19356         * lib/sys_socket.in.h (ss_family): New macro definition.
19357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19358         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19359         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19360         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19361         * modules/sys_socket (Makefile.am): Substitute
19362         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19363         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19364
19365 2010-11-27  Bruno Haible  <bruno@clisp.org>
19366
19367         readline: Improve configure output.
19368         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19369         "checking for readline..." result understandable.
19370
19371 2010-11-27  Bruno Haible  <bruno@clisp.org>
19372
19373         *printf-posix: Detect a bug on Solaris 10/x86.
19374         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19375         for floating-point output.
19376         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19377         directive.
19378         * tests/test-snprintf-posix.h (test_function): Likewise.
19379         * tests/test-sprintf-posix.h (test_function): Likewise.
19380         * tests/test-vasprintf-posix.c (test_function): Likewise.
19381         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19382         * doc/posix-functions/printf.texi: Likewise.
19383         * doc/posix-functions/snprintf.texi: Likewise.
19384         * doc/posix-functions/sprintf.texi: Likewise.
19385         * doc/posix-functions/vfprintf.texi: Likewise.
19386         * doc/posix-functions/vprintf.texi: Likewise.
19387         * doc/posix-functions/vsnprintf.texi: Likewise.
19388         * doc/posix-functions/vsprintf.texi: Likewise.
19389         * doc/glibc-functions/obstack_printf.texi: Likewise.
19390         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19391
19392 2010-11-27  Bruno Haible  <bruno@clisp.org>
19393
19394         Fix link error when module libunistring-optional is in use.
19395         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19396         * modules/striconveha-tests (Makefile.am): Likewise.
19397
19398 2010-11-27  Bruno Haible  <bruno@clisp.org>
19399
19400         regex: Mention link dependencies.
19401         * modules/regex (Link): New section.
19402         * modules/rpmatch (Link): Likewise.
19403         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19404
19405 2010-11-27  Bruno Haible  <bruno@clisp.org>
19406
19407         ftoastr: Fix compilation error on Solaris.
19408         * lib/ftoastr.c: Include <config.h>.
19409
19410 2010-11-27  Bruno Haible  <bruno@clisp.org>
19411
19412         getloadavg: Update documentation.
19413         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19414
19415 2010-11-27  Bruno Haible  <bruno@clisp.org>
19416
19417         sys_socket: Fix test whether the functions are declared.
19418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19419         not <sys/select.h>.
19420
19421 2010-11-27  Bruno Haible  <bruno@clisp.org>
19422
19423         getpass: Make sure to get system declaration on some platforms.
19424         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19425         gl_USE_SYSTEM_EXTENSIONS.
19426         * modules/getpass (Depends-on): Add extensions.
19427
19428 2010-11-26  Bruno Haible  <bruno@clisp.org>
19429
19430         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19431         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19432         'iconv' module is present.
19433         (ICONV_CONST): New macro.
19434         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19435         ICONV_CONST.
19436         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19437         set ICONV_CONST.
19438         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19439         here.
19440         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19441         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19442         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19443         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19444         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19445         present.
19446
19447 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19448
19449         ftoastr: comment fix
19450         * lib/ftoastr.c: "little" -> "little or no" in comment
19451
19452 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19453
19454         stdint: port to GCC 4.3 + OSX + Octave
19455         On this platform, stdint.h is buggy and defines int64_t to long
19456         long int.  The replacement defined it to long int, causing
19457         problems with C++ style name mangling.  Instead, trust the system
19458         definition if INT64_MAX is defined, and likewise for the unsigned
19459         variant.   Problem reported by Jarno Rajahalme in
19460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19461         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19462         and don't mess with int64_t and INT64_MAX in this case.
19463         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19464
19465 2010-11-24  Bruno Haible  <bruno@clisp.org>
19466
19467         doc: Corrections regarding MacOS X 10.4 and 10.5.
19468         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19469         MacOS X.
19470         Reported by Simon Josefsson.
19471
19472 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19473
19474         Uninstall ".bin" files installed by relocwrapper.
19475         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19476         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19477         unless it is already there.
19478
19479 2010-11-21  Bruno Haible  <bruno@clisp.org>
19480
19481         Update for NetBSD 5.0.
19482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19483         NetBSD; the test fails on NetBSD 5.0.
19484         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19485         about NetBSD.
19486
19487 2010-11-21  Bruno Haible  <bruno@clisp.org>
19488
19489         Update for HP-UX 11.23 and HP-UX 11.31.
19490         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19491         HP-UX.
19492
19493 2010-11-21  Bruno Haible  <bruno@clisp.org>
19494
19495         Update for MacOS X 10.5.
19496         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19497         MacOS X; the test fails on MacOS X 10.5.8.
19498         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19499         about MacOS X.
19500
19501 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19502
19503         bootstrap: add bootstrap_sync option.
19504         See discussion at
19505         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19507         * build-aux/bootstrap: Accept --bootstrap-sync to update
19508         bootstrap if it is not identical to the local gnulib's
19509         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19510         enable this by default.  Accept --no-bootstrap-sync to disable
19511         it.
19512
19513 2010-11-20  Bruno Haible  <bruno@clisp.org>
19514
19515         Ensure that <features.h> is included before __GLIBC__ is tested.
19516         * lib/printf-parse.h: Include <features.h>.
19517         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19518         Reported by Mike Frysinger <vapier@gentoo.org>.
19519
19520         Ensure that <features.h> is included before __GLIBC__ is tested.
19521         * lib/wchar.in.h: Include <features.h>.
19522         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19523         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19524         Reported by Mike Frysinger <vapier@gentoo.org>.
19525
19526         Ensure that <features.h> is included before __GLIBC__ is tested.
19527         * lib/arpa_inet.in.h: Include <features.h>.
19528         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19529         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19530         Reported by Mike Frysinger <vapier@gentoo.org>.
19531
19532         Ensure that <features.h> is included before __GLIBC__ is tested.
19533         * build-aux/link-warning.h: Include <features.h>.
19534         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19535         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19536         Reported by Mike Frysinger <vapier@gentoo.org>.
19537
19538         Ensure that <features.h> is included before __GLIBC__ is tested.
19539         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19540         Reported by Mike Frysinger <vapier@gentoo.org>.
19541
19542 2010-11-20  Bruno Haible  <bruno@clisp.org>
19543
19544         memmem: Fix autoconf test.
19545         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19546
19547 2010-11-20  Bruno Haible  <bruno@clisp.org>
19548
19549         Port to uClibc.
19550         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19551         * lib/fcntl.in.h: Likewise.
19552         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19553         * lib/mbrtowc.c (mbrtowc): Likewise.
19554         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19555         * lib/strerror_r.c: Likewise.
19556         * lib/unistr/u8-strnlen.c: Likewise.
19557         * lib/vasnprintf.c (decimal_point_char): Likewise.
19558         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19559         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19561         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19562         * tests/test-sigaction.c (handler, main): Likewise.
19563         * lib/freading.h: Treat uClibc like a non-glibc platform.
19564         * lib/freading.c: Likewise.
19565         * lib/gettext.h: Likewise.
19566         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19567         Likewise.
19568         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19569         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19570         * lib/propername.c (proper_name_utf8): Likewise.
19571         * lib/spawn.in.h: Likewise.
19572         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19573         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19574         mem_cd_iconveh_internal): Likewise.
19575         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19576         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19577         strstr, strcasestr): Likewise.
19578         * lib/unicodeio.c (unicode_to_mb): Likewise.
19579         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19580         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19581         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19582         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19583         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19584         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19585         * lib/unistr/u8-stpncpy.c: Likewise.
19586         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19587         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19588         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19589         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19590         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19591         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19595         Likewise.
19596         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19597         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19598         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19599         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19601         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19602         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19603         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19604         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19605         * tests/test-striconveha.c (main): Likewise.
19606         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19607         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19608         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19609         * doc/posix-functions/getline.texi: Likewise.
19610         Reported by Mike Frysinger <vapier@gentoo.org>.
19611
19612 2010-11-20  Bruno Haible  <bruno@clisp.org>
19613
19614         nproc: Fix condition.
19615         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19616         HAVE_PTHREAD_AFFINITY_NP.
19617
19618 2010-11-20  Bruno Haible  <bruno@clisp.org>
19619
19620         Fix a comment.
19621         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19622
19623 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19624
19625         ftoastr: don't assume snprintf
19626         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19627         Implement a subset of snprintf here, by using sprintf safely.
19628         * modules/ftoastr (Depends-on): Remove snprintf.
19629
19630 2010-11-19  Jim Meyering  <meyering@redhat.com>
19631
19632         test-rename.h: fix compilation failure
19633         * tests/test-rename.h (test_rename): Add omitted "}".
19634
19635 2010-11-17  Jim Meyering  <meyering@redhat.com>
19636
19637         maint.mk: add a URL discussing the no-@acronym policy
19638         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19639
19640 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19641
19642         ftoastr: depend on snprintf, improve comments
19643         * lib/ftoastr.c: Also mention Loitsch's draft.
19644         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19645         needed in the current implementation, but it might simplify
19646         speeding up the code later.
19647         * modules/ftoastr: Depend on snprintf; this improves portability.
19648         Suggested by Bruno Haible in the same email.
19649
19650         ftoastr: port to hosts lacking strtof and strtold
19651         Problem reported by Bruno Haible in
19652         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19653         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19654         environment and strtold (and presumably strtof) are not available.
19655         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19656         (configure.ac): Require gl_C99_STRTOLD.
19657
19658 2010-11-18  Bruno Haible  <bruno@clisp.org>
19659
19660         c-strtold: Avoid link error on AIX 7.
19661         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19662         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19663         (gl_C_STRTOLD): Test whether strtold_l exists.
19664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19665
19666 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19667
19668         intprops: new macro INT_BITS_STRLEN_BOUND
19669         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19670         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19671         not exposed.  Also, it uses a slightly tighter bound than before;
19672         though this makes no practical difference, we might as well be as
19673         tight as we easily can.
19674
19675         ftoastr: new module, for lossless conversion of floats to short strings
19676         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19677         * modules/ftoastr: New files.
19678
19679 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19680
19681         bootstrap: port to Solaris sed
19682         * build-aux/bootstrap (get_version): Port to Solaris sed.
19683         See Ralf Wildenhues's note in
19684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19685
19686 2010-11-14  Jim Meyering  <meyering@redhat.com>
19687
19688         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19689         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19690         and move definition closer to sole use.
19691
19692 2010-11-13  Jim Meyering  <meyering@redhat.com>
19693
19694         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19695         Now we require at least autoconf-2.59, which means the work-around
19696         is no longer needed.
19697         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19698         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19699         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19700         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19701         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19702
19703 2010-11-13  Bruno Haible  <bruno@clisp.org>
19704
19705         rename, renameat: Avoid test failures at NFS mounted locations.
19706         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19707         functions.
19708         (test_rename): Use assert_nonexistent.
19709         * tests/test-rename.c: Include <dirent.h>.
19710         * tests/test-renameat.c: Likewise.
19711         Reported by Gary V. Vaughan <gary@gnu.org>.
19712
19713         rename, renameat: Document Linux bug with NFS
19714         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19715         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19716         * doc/posix-functions/renameat.texi: Likewise.
19717         Suggested by Eric Blake.
19718
19719 2010-11-13  Bruno Haible  <bruno@clisp.org>
19720
19721         rename test: Add comments.
19722         * tests/test-rename.h (test_rename): Add structure and comments.
19723
19724 2010-11-13  Eric Blake  <eblake@redhat.com>
19725
19726         maintainer-makefile: cover a few more files
19727         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19728         scripts generated within C files, for libvirt.
19729
19730 2010-11-13  Bruno Haible  <bruno@clisp.org>
19731
19732         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19733         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19734         character, return the number of bytes that belong together, not always
19735         1.
19736         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19737         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19738         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19739         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19740         number of bytes of an invalid character.
19741         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19742         (main): Invoke it.
19743         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19744         results.
19745         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19746         malformed byte sequences.
19747         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19748         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19749         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19750         Reported by Ben Pfaff and Paolo Bonzini.
19751
19752 2010-11-13  Bruno Haible  <bruno@clisp.org>
19753
19754         openat: Work around glibc bug with fchownat() and empty file names.
19755         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19756         (gl_FUNC_FCHOWNAT): Invoke it.
19757         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19758         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19759         Reported by Gary V. Vaughan <gary@gnu.org>.
19760
19761 2010-11-13  Bruno Haible  <bruno@clisp.org>
19762
19763         openat: Ensure autoconf macro ordering.
19764         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19765         gl_USE_SYSTEM_EXTENSIONS.
19766         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19767
19768 2010-11-13  Bruno Haible  <bruno@clisp.org>
19769
19770         Update comments.
19771         * lib/unistr/u8-check.c: Update file name in comments.
19772         * lib/unistr/u8-mblen.c: Likewise.
19773         * lib/unistr/u8-prev.c: Likewise.
19774         * lib/unistr/u8-strmblen.c: Likewise.
19775         * lib/unistr/u8-strmbtouc.c: Likewise.
19776
19777 2010-11-13  Jim Meyering  <meyering@redhat.com>
19778
19779         tests: avoid test failure on Solaris 10 due to lack of PATH export
19780         * tests/test-update-copyright.sh: Don't forget to export PATH.
19781
19782         init.sh: ensure that IFS is defined, just in case...
19783         * tests/init.sh (setup_): Ensure that IFS is defined,
19784         so that saving and restoring it works as expected.  This
19785         appears to be useful at least for an old version of dash
19786         from a long time ago (RH 6).  See here for details:
19787         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19788
19789         maint.mk: tighten "test a == b" check
19790         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19791         test to files that contain something like #!/bin/sh.
19792         Without this, coreutils would get two false positives in
19793         the comments of C source files.
19794
19795 2010-11-12  Eric Blake  <eblake@redhat.com>
19796
19797         bootstrap: fix typo in previous attempt
19798         * build-aux/bootstrap (buildreq): Correct the grouping.
19799         Reported by Paul Eggert.
19800
19801         maintainer-makefile: prohibit test x == x
19802         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19803         Based on a report by Matthias Bolte.
19804
19805         bootstrap: allow FreeBSD gzip
19806         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19807         which has no '.' and goes to stderr.
19808         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19809         Reported by Matthias Bolte.
19810
19811         maintainer-makefile: check for i18n setup
19812         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19813         will likely work.
19814
19815 2010-11-12  Bruno Haible  <bruno@clisp.org>
19816
19817         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19818         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19819         * lib/nanosleep.c (nanosleep): Likewise.
19820
19821 2010-11-11  Bruno Haible  <bruno@clisp.org>
19822
19823         fcntl-h: Fix for use of C++ on glibc systems.
19824         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19825         also on glibc systems in C++ mode.
19826         Reported by Gary V. Vaughan <gary@gnu.org>.
19827
19828 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19829
19830         mknod: avoid false failure with dash
19831         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19832
19833 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         unlink: Fix "is it should" typo in diagnostic.
19836         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19838
19839 2010-11-11  Bruno Haible  <bruno@clisp.org>
19840
19841         Tests for module 'strerror_r-posix'.
19842         * modules/strerror_r-posix-tests: New file.
19843         * tests/test-strerror_r.c: New file.
19844         * tests/test-string-c++.cc: Check the signature of strerror_r.
19845
19846         New module 'strerror_r-posix'.
19847         * lib/string.in.h (strerror_r): New declaration.
19848         * lib/strerror_r.c: New file.
19849         * m4/strerror_r.m4: New file.
19850         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19851         of strerror_r.
19852         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19853         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19854         * modules/strerror_r-posix: New file.
19855         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19856         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19857         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19858         portability problems.
19859
19860 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19861
19862         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19863         line is also considered for output. Quoted function name in shell
19864         command, so temporary files for functions like MyClass::operator()
19865         are removed correctly without errors.
19866
19867 2010-11-09  Bruno Haible  <bruno@clisp.org>
19868
19869         * doc/posix-functions/strerror.texi: List more failing platforms.
19870
19871         * doc/posix-functions/strerror.texi: Add a comment.
19872
19873 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19874
19875         fdopendir: fix bug on MacOS X when low on file descriptors
19876
19877         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19878         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19879         All callers changed.
19880         (fdopendir): Invoke save_cwd at the top level, not after using
19881         multiple dup() calls to use up file descriptors.  Then retry
19882         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19883         less than the maximum number of open file descriptors, because
19884         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19885         on Mac OS X 10.6.4 for tar 1.24
19886         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19887         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19888         and for tar 1.25
19889         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19890
19891 2010-11-07  Bruno Haible  <bruno@clisp.org>
19892
19893         vasnprintf: Support I flag on glibc systems.
19894         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19895         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19896         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19897         snprintf function.
19898         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19899         glibc systems.
19900         * tests/test-vasnprintf-posix3.c: New file.
19901         * modules/vasnprintf-posix-tests (Files): Add it.
19902         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19903
19904 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19905
19906         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19907         * MODULES.html.sh: For compiler warnings, use name
19908         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19909
19910 2010-11-05  Eric Blake  <eblake@redhat.com>
19911
19912         ceil, floor: avoid spurious failure with icc
19913         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19914         [denormals-as-zero] when optimizing without -mieee-fp option.
19915         * tests/test-floorf2.c (floorf_reference): Likewise.
19916         * tests/test-ceilf1.c (dummy): New function.
19917         (main): Use it to outsmart icc's optimization.
19918         * tests/test-floorf1.c (dummy, main): Likewise.
19919
19920         tests: require working signbit
19921         * modules/ceilf-tests (Depends-on): Add signbit.
19922         * modules/ceill-tests (Depends-on): Likewise.
19923         * modules/floorf-tests (Depends-on): Likewise.
19924         * modules/floorl-tests (Depends-on): Likewise.
19925         * modules/round-tests (Depends-on): Likewise.
19926         * modules/roundf-tests (Depends-on): Likewise.
19927         * modules/roundl-tests (Depends-on): Likewise.
19928         * modules/trunc-tests (Depends-on): Likewise.
19929         * modules/truncf-tests (Depends-on): Likewise.
19930         * modules/truncl-tests (Depends-on): Likewise.
19931
19932         strtod: work around icc bug
19933         * lib/strtod.c (minus_zero): Define to working value.
19934         (strtod): Use it to avoid icc bug.
19935
19936         copysign: enhance tests
19937         * modules/copysign-tests (Files): Add minus-zero.h.
19938         * tests/test-copysign.c (main): Also test zeros.
19939
19940 2010-11-04  Eric Blake  <eblake@redhat.com>
19941
19942         ceil, floor, round, trunc: enhance tests of -0
19943         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19944         * tests/test-ceill.c (main): Likewise.
19945         * tests/test-floorf1.c (main): Likewise.
19946         * tests/test-floorl.c (main): Likewise.
19947         * tests/test-round1.c (main): Likewise.
19948         * tests/test-roundf1.c (main): Likewise.
19949         * tests/test-roundl.c (main): Likewise.
19950         * tests/test-trunc1.c (main): Likewise.
19951         * tests/test-truncf1.c (main): Likewise.
19952         * tests/test-truncl.c (main): Likewise.
19953
19954 2010-11-04  Eric Blake  <eblake@redhat.com>
19955
19956         frexp, tests: work around ICC bug with -zero
19957         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19958         works with more compilers.
19959         * tests/minus-zero.h: New file.
19960         * modules/ceilf-tests (Files): Include it.
19961         * modules/ceill-tests (Files): Likewise.
19962         * modules/floorf-tests (Files): Likewise.
19963         * modules/floorl-tests (Files): Likewise.
19964         * modules/frexp-nolibm-tests (Files): Likewise.
19965         * modules/frexp-tests (Files): Likewise.
19966         * modules/frexpl-nolibm-tests (Files): Likewise.
19967         * modules/frexpl-tests (Files): Likewise.
19968         * modules/isnan-tests (Files): Likewise.
19969         * modules/isnand-nolibm-tests (Files): Likewise.
19970         * modules/isnand-tests (Files): Likewise.
19971         * modules/isnanf-nolibm-tests (Files): Likewise.
19972         * modules/isnanf-tests (Files): Likewise.
19973         * modules/isnanl-nolibm-tests (Files): Likewise.
19974         * modules/isnanl-tests (Files): Likewise.
19975         * modules/round-tests (Files): Likewise.
19976         * modules/roundf-tests (Files): Likewise.
19977         * modules/roundl-tests (Files): Likewise.
19978         * modules/ldexpl-tests (Files): Likewise.
19979         * modules/signbit-tests (Files): Likewise.
19980         * modules/snprintf-posix-tests (Files): Likewise.
19981         * modules/sprintf-posix-tests (Files): Likewise.
19982         * modules/strtod-tests (Files): Likewise.
19983         * modules/trunc-tests (Files): Likewise.
19984         * modules/truncf-tests (Files): Likewise.
19985         * modules/truncl-tests (Files): Likewise.
19986         * modules/vsnprintf-posix-tests (Files): Likewise.
19987         * modules/vsprintf-posix-tests (Files): Likewise.
19988         * modules/vasnprintf-posix-tests (Files): Likewise.
19989         * modules/vasprintf-posix-tests (Files): Likewise.
19990         * tests/test-ceilf1.c (main): Use it.
19991         * tests/test-ceill.c (main): Likewise.
19992         * tests/test-floorf1.c (main): Likewise.
19993         * tests/test-floorl.c (main): Likewise.
19994         * tests/test-frexp.c (main): Likewise.
19995         * tests/test-frexpl.c (main): Likewise.
19996         * tests/test-isnan.c (main): Likewise.
19997         * tests/test-isnand.h (main): Likewise.
19998         * tests/test-isnanf.h (main): Likewise.
19999         * tests/test-isnanl.h (main): Likewise.
20000         * tests/test-ldexpl.c (main): Likewise.
20001         * tests/test-round.c (main): Likewise.
20002         * tests/test-roundf.c (main): Likewise.
20003         * tests/test-roundl.c (main): Likewise.
20004         * tests/test-signbit.c (test_signbitf, test_signbitd)
20005         (test_signbitl): Likewise.
20006         * tests/test-snprintf-posix.h (test_function): Likewise.
20007         * tests/test-sprintf-posix.h (test_function): Likewise.
20008         * tests/test-strtod.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         isnanl: work around icc bug
20014         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20015
20016 2010-11-03  Eric Blake  <eblake@redhat.com>
20017
20018         tests: fix compiler warnings
20019         * tests/test-getopt.h (test_getopt): Fix condition.
20020         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20021         * tests/test-pipe2.c (main): Likewise.
20022         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20023
20024         utimens: fix broken m4 test
20025         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20026
20027 2010-10-28  Bruno Haible  <bruno@clisp.org>
20028
20029         posix_spawn*, getdtablesize: Relax license.
20030         * modules/posix_spawn (License): Change to LGPLv2+.
20031         * modules/posix_spawnp (License): Likewise.
20032         * modules/posix_spawn-internal (License): Likewise.
20033         * modules/posix_spawnattr_init (License): Likewise.
20034         * modules/posix_spawnattr_getflags (License): Likewise.
20035         * modules/posix_spawnattr_setflags (License): Likewise.
20036         * modules/posix_spawnattr_getpgroup (License): Likewise.
20037         * modules/posix_spawnattr_setpgroup (License): Likewise.
20038         * modules/posix_spawnattr_getschedparam (License): Likewise.
20039         * modules/posix_spawnattr_setschedparam (License): Likewise.
20040         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20041         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20042         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20043         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20044         * modules/posix_spawnattr_getsigmask (License): Likewise.
20045         * modules/posix_spawnattr_setsigmask (License): Likewise.
20046         * modules/posix_spawnattr_destroy (License): Likewise.
20047         * modules/posix_spawn_file_actions_init (License): Likewise.
20048         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20049         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20050         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20051         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20052         * modules/getdtablesize (License): Likewise.
20053         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20054
20055 2010-10-26  Bruno Haible  <bruno@clisp.org>
20056
20057         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20058         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20059         Cygwin and mingw.
20060         Suggested by Eric Blake.
20061
20062 2010-10-26  Bruno Haible  <bruno@clisp.org>
20063
20064         stdio: Work around compilation error due to renameat() on Solaris 10.
20065         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20066         * lib/renameat.c: Don't include <unistd.h> here.
20067         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20068         Reported by Paul Eggert and Eric Blake.
20069
20070 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20071
20072         renameat: port to Solaris 10, which declares renameat in unistd.h
20073
20074         * lib/renameat.c: Include unistd.h before stdio.h, because
20075         Solaris 10 declares renameat in unistd.h.  Problem encountered
20076         when building GNU tar 1.24 on Solaris 10.
20077
20078 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20079
20080         fdopendir: fix C89 compilation
20081         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20082         compilers.
20083
20084 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20085
20086         inttostr: simplify by removing unnecessary redundancy
20087         * lib/anytostr.c: Don't include verify.h.
20088         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20089         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20090         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20091         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20092         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20093         Likewise.
20094         * modules/inttostr (Depends-on): Remove 'verify'.
20095
20096 2010-10-23  Bruno Haible  <bruno@clisp.org>
20097
20098         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20099         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20100         Reported by Eric Blake.
20101
20102 2010-10-23  Bruno Haible  <bruno@clisp.org>
20103
20104         Tests: Fix LOCALE_JA on MirBSD 10.
20105         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20106         to an UTF-8 locale.
20107         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20108         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20109         Reported by Eric Blake.
20110
20111 2010-10-21  Bruno Haible  <bruno@clisp.org>
20112
20113         nl_langinfo test: Avoid test failure on NetBSD 5.
20114         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20115         Reported by Eric Blake.
20116
20117 2010-10-21  Eric Blake  <eblake@redhat.com>
20118
20119         c-stack: work around libsigsegv 2.8 bug
20120         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20121         overflow on at least PowerPC64.
20122
20123 2010-10-17  Bruno Haible  <bruno@clisp.org>
20124
20125         userspec: Drop redundant file.
20126         * modules/userspec (Files): Remove lib/inttostr.h.
20127
20128 2010-10-17  Bruno Haible  <bruno@clisp.org>
20129
20130         nl_langinfo tests: Silence some warnings.
20131         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20132         Reported by Jim Meyering.
20133
20134 2010-10-17  Bruno Haible  <bruno@clisp.org>
20135
20136         Make use of GCC's attribute __alloc_size__.
20137         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20138         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20139         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20140         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20141         __alloc_size__.
20142         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20143         Suggested by Jim Meyering.
20144
20145 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20146
20147         bootstrap: anchor .gitignore entries.
20148         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20149         with...
20150         (insert_vc_ignore): ... this new function, which prepends `/' to
20151         all .gitignore entries before passing them to
20152         insert_sorted_if_absent.
20153
20154 2010-10-16  Bruno Haible  <bruno@clisp.org>
20155
20156         nextafter: Fix configure check.
20157         * modules/nextafter (configure.ac): Correct expected prototype.
20158
20159 2010-10-16  Bruno Haible  <bruno@clisp.org>
20160
20161         termios: Update documentation.
20162         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20163
20164 2010-10-16  Bruno Haible  <bruno@clisp.org>
20165
20166         tests: Make them compile with TinyCC.
20167         * tests/test-strstr.c (main): Remove parentheses around array
20168         initializer.
20169
20170 2010-10-15  Eric Blake  <eblake@redhat.com>
20171
20172         ignore-value: make header idempotent
20173         * lib/ignore-value.h: Add double-inclusion guards.
20174         Reported by Stefan Berger.
20175
20176 2010-10-15  Jim Meyering  <meyering@redhat.com>
20177
20178         GNUmakefile: handle "stable" target, not "major"
20179         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20180         lists in maint.mk and announce-gen.  Without this, "make stable"
20181         would fail to ensure that $(VERSION) is up to date.
20182
20183 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20184
20185         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20186         & co.
20187
20188 2010-10-14  Bruno Haible  <bruno@clisp.org>
20189
20190         vasnprintf: Don't set errno to 0.
20191         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20192         block that sets it to 0.
20193         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20194
20195 2010-10-14  Bruno Haible  <bruno@clisp.org>
20196
20197         socketlib: Fix.
20198         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20199         gl_PREREQ_SYS_H_WINSOCK2.
20200         Reported by Ian Beckwith <ianb@erislabs.net>.
20201
20202 2010-10-13  Jim Meyering  <meyering@redhat.com>
20203
20204         test-select-stdin.c: avoid warn_unused_result warnings
20205         * tests/test-select-stdin.c: Include "macros.h".
20206         ASSERT that read and fflush succeed.
20207
20208 2010-10-13  Jim Meyering  <meyering@redhat.com>
20209
20210         git-version-gen: do require git-VC'd files in cwd
20211         * build-aux/git-version-gen: Reject a git version string
20212         if there are no commits associated with the current directory.
20213         This avoids an unlikely false-positive (unrelated dir whose parent
20214         repository also contains a tag matching v*), as pointed out
20215         by Giuseppe Scrivano in
20216         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20217
20218 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20219
20220         argv-iter: omit nonconforming declaration
20221         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20222         enum arg_iter_err declaration, which doesn't conform to C99.
20223         Solaris 10 cc warns about this.
20224
20225 2010-10-13  Eric Blake  <eblake@redhat.com>
20226
20227         termios: fix compilation on mingw
20228         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20229         (gl_TERMIOS_H): Adjust it on mingw.
20230         * modules/termios (Makefile.am): Substitute new key.
20231         * lib/termios.in.h (includes): Make include_next conditional.
20232         * doc/posix-headers/termios.texi (termios.h): Update
20233         documentation.
20234         Reported by Daniel P. Berrange.
20235
20236 2010-10-13  Jim Meyering  <meyering@redhat.com>
20237
20238         git-version-gen: don't require that .git/ be in the current dir
20239         * build-aux/git-version-gen: Adjust this script so that it works
20240         when run from any working directory beneath the top-level .git/-
20241         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20242         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20243
20244         test-select: avoid warn_unused_result warnings
20245         * tests/test-select.c: Include "macros.h".
20246         ASSERT that each call to read, write, and pipe succeeds.
20247         While not technically required, also check each "close".
20248         * modules/select-tests (Files): Add tests/macros.h.
20249
20250         test-symlinkat: remove declaration of unused local
20251         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20252
20253         test-inttostr: avoid shadowing warnings
20254         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20255         and use malloc rather than the stack for the same reason as
20256         mentioned in the comment justifying the other allocation.
20257
20258 2010-10-11  Bruno Haible  <bruno@clisp.org>
20259
20260         stdlib: Allow multiple gnulib generated replacements to coexist.
20261         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20262         Reported by Sam Steingold <sds@gnu.org>.
20263
20264 2010-10-11  Jim Meyering  <meyering@redhat.com>
20265
20266         fix a documentation typo
20267         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20268
20269 2010-10-11  Eric Blake  <eblake@redhat.com>
20270
20271         futimens: work around Solaris 11 bug
20272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20273         * tests/test-futimens.h (test_futimens): Enhance, rather than
20274         weaken test.
20275         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20276
20277 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20278
20279         Indentation.
20280         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20281         higher-level operators more to the left.
20282
20283 2010-10-11  Jim Meyering  <meyering@redhat.com>
20284
20285         test-futimens: avoid unwarranted test failure on Solaris 5.11
20286         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20287         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20288         because it tries to dereference the NULL name argument.
20289
20290 2010-10-11  Bruno Haible  <bruno@clisp.org>
20291
20292         Indentation.
20293         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20294         indentation.
20295
20296 2010-10-11  Jim Meyering  <meyering@redhat.com>
20297
20298         spawn.in.h: make indentation consistent with parentheses
20299         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20300         Make indentation consistent with parentheses.
20301
20302 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20303
20304         Fix mismatched parens in previous commit
20305         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20306         parens.
20307
20308 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20309
20310         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20311
20312         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20313         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20314         * lib/malloca.c: Include "verify.h".
20315         (verify1): Remove, replacing with a verify call.
20316         * lib/relocwrapper.c (verify1): Likewise.
20317         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20318         Likewise.
20319         * modules/malloca (Depends-on): Add 'verify'.
20320         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20321         * modules/vasnprintf (Depends-on): Add 'verify'.
20322         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20323         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20324         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20325         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20326         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20327         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20328         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20329
20330         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20331
20332         Formerly the style was sometimes 2*X - 1, because the C standard
20333         was wrongly thought to disallow ?: in integral constant expressions.
20334         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20335         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20336         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20337         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20338         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20339         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20340         verify that time_t cannot be floating.
20341
20342 2010-10-08  Eric Blake  <eblake@redhat.com>
20343
20344         time: enforce recent POSIX ruling that time_t is integral
20345         * lib/time.in.h (__time_t_must_be_integral): Detect any
20346         problematic systems, allowing the rest of gnulib to assume POSIX.
20347
20348 2010-10-08  Jim Meyering  <meyering@redhat.com>
20349
20350         fdopendir: fix a bug on systems lacking openat and /proc support
20351         OpenBSD 4.7 is one such system.  The most noticeable effect was
20352         failure of any application making nontrivial use of fts: rm, du,
20353         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20354           ./rm: traversal failed: `a': Bad file descriptor
20355         Debugging that, you see that even though FD 6 was closed just
20356         prior to the opendir call in fd_clone_opendir, its resulting
20357         dir->dd_fd was 8, rather than the expected value of 6:
20358
20359         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20360         93                close (fd);
20361         (gdb) n
20362         94                dir = fd_clone_opendir (dupfd);
20363         (gdb) n
20364         95                saved_errno = errno;
20365         (gdb) p dir->dd_fd
20366         $11 = 8
20367
20368         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20369         The problem is that on OpenBSD, fd_clone_opendir has to resort
20370         to using the old-style save/restore CWD mechanism, due to its
20371         lack of openat/proc support, and *that* would steal the FD (6)
20372         that opendir was supposed to use.
20373
20374         The fix is to squirrel away the desired FD so that save_cwd uses a
20375         different one, and then free the dest FD right before calling opendir.
20376         That guarantees opendir will use the required file descriptor.
20377
20378         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20379
20380 2010-10-08  Bruno Haible  <bruno@clisp.org>
20381
20382         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20383         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20384
20385 2010-10-08  Bruno Haible  <bruno@clisp.org>
20386
20387         nanosleep: Make replacement POSIX compliant.
20388         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20389         is out of range.
20390         Reported by Jim Meyering.
20391
20392 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20393
20394         bootstrap: add hook for altering gnulib.mk, for Bison
20395         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20396         the Bison bootstrapping process can rewrite file names and variables
20397         in this file before later parts of 'bootstrap' use the file.
20398         Bison wants to include lib/gnulib.mk from the top-level makefile,
20399         so it needs the file names in this file to be relative to the top
20400         level, not relative to lib; plus it needs variable names to be
20401         rewritten.
20402         (slurp): Use the new function.
20403
20404         bootstrap: reformat for readability
20405         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20406
20407 2010-10-08  Eric Blake  <eblake@redhat.com>
20408
20409         docs: update cygwin progress
20410         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20411         1.7.7.
20412         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20413         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20414         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20415         * doc/posix-functions/carg.texi (carg): Likewise.
20416         * doc/posix-functions/cargf.texi (cargf): Likewise.
20417         * doc/posix-functions/casin.texi (casin): Likewise.
20418         * doc/posix-functions/casinf.texi (casinf): Likewise.
20419         * doc/posix-functions/casinh.texi (casinh): Likewise.
20420         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20421         * doc/posix-functions/catan.texi (catan): Likewise.
20422         * doc/posix-functions/catanf.texi (catanf): Likewise.
20423         * doc/posix-functions/catanh.texi (catanh): Likewise.
20424         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20425         * doc/posix-functions/ccos.texi (ccos): Likewise.
20426         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20427         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20428         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20429         * doc/posix-functions/cexp.texi (cexp): Likewise.
20430         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20431         * doc/posix-functions/cimag.texi (cimag): Likewise.
20432         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20433         * doc/posix-functions/clog.texi (clog): Likewise.
20434         * doc/posix-functions/clogf.texi (clogf): Likewise.
20435         * doc/posix-functions/conj.texi (conj): Likewise.
20436         * doc/posix-functions/conjf.texi (conjf): Likewise.
20437         * doc/posix-functions/cpow.texi (cpow): Likewise.
20438         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20439         * doc/posix-functions/cproj.texi (cproj): Likewise.
20440         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20441         * doc/posix-functions/creal.texi (creal): Likewise.
20442         * doc/posix-functions/crealf.texi (crealf): Likewise.
20443         * doc/posix-functions/csin.texi (csin): Likewise.
20444         * doc/posix-functions/csinf.texi (csinf): Likewise.
20445         * doc/posix-functions/csinh.texi (csinh): Likewise.
20446         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20447         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20448         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20449         * doc/posix-functions/ctan.texi (ctan): Likewise.
20450         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20451         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20452         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20453         * doc/posix-headers/complex.texi (complex.h): Likewise.
20454
20455 2010-10-07  Jim Meyering  <meyering@redhat.com>
20456
20457         parse-datetime: avoid compilation failure on OpenBSD 4.7
20458         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20459         This works around a compilation failure on OpenBSD 4.7:
20460         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20461
20462 2010-10-07  Eric Blake  <eblake@redhat.com>
20463
20464         docs: update cygwin progress
20465         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20466         1.7.6.
20467         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20468         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20469         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20470         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20471         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20472         Likewise.
20473         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20474         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20475         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20476         Likewise.
20477         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20478         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20479         Likewise.
20480         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20481         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20482         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20483         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20484         Likewise.
20485         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20486         Likewise.
20487         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20488
20489         docs: update parse-datetime history
20490         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20491         documentation of this function's history and alternatives.
20492
20493         cygwin: use more robust version check
20494         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20495         exclude an eventual cygwin 1.9.1.
20496         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20498         (gl_FUNC_STRCASESTR): Likewise.
20499         Reported by Bruno Haible.
20500
20501 2010-10-06  Bruno Haible  <bruno@clisp.org>
20502
20503         string, sys_select: Avoid #including large headers unless necessary.
20504         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20505         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20506         OSF/1, BeOS, Haiku.
20507         Reported by Jim Meyering.
20508
20509 2010-10-05  Eric Blake  <eblake@redhat.com>
20510
20511         memmem, strstr, strcasestr: fix bug with long periodic needle
20512         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20513         periodic needle having false positive.
20514         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20515         and cygwin 1.7.7.
20516         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20518         (gl_FUNC_STRCASESTR): Likewise.
20519         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20520         * tests/test-memmem.c (main): Expose the bug.
20521         * tests/test-strcasestr.c (main): Likewise.
20522         * tests/test-strstr.c (main): Likewise.
20523         * tests/test-c-strcasestr.c (main): Likewise.
20524         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20525         * doc/posix-functions/strstr.texi (strstr): Likewise.
20526         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20527         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20528
20529 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20530
20531         parse-datetime: do some more renaming
20532         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20533         parse_datetime, not get_date.  Mention the renaming.
20534         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20535         in comments.
20536         * m4/bison.m4: Likewise.
20537
20538 2010-10-05  Eric Blake  <eblake@redhat.com>
20539
20540         parse-datetime: better name than get_date
20541         * NEWS: Reword the deprecation notice.
20542         * modules/get_date: Rename to modules/parse-datetime.
20543         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20544         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20545         * lib/get_date.y: Rename to lib/parse-datetime.y.
20546         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20547         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20548         * doc/getdate.texi: Provide fallback wrapper.
20549         * lib/getdate.h: Move guts, and wrap...
20550         * lib/parse-datetime.h: ...new file.
20551         * lib/parse-datetime.y (get_date): Rename...
20552         (parse_datetime): ...to this.
20553         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20554         (gl_PARSE_DATETIME): ...to this.
20555         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20556         documentation.
20557         * modules/getdate (Files): Provide fallback docs and header.
20558         (Notice, Depends-on): Update references.
20559         * tests/test-parse-datetime.c: Likewise.
20560         * DEPENDENCIES: Likewise.
20561         * MODULES.html.sh (Date and time <time.h>): Likewise.
20562         * doc/parse-datetime.texi (Date input formats)
20563         (Authors of parse_datetime): Likewise.
20564         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20565         (Include): Likewise.
20566         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20567         * gnulib-tool: Likewise.
20568         * m4/bison.m4 (gl_BISON): Likewise.
20569         Suggested by Bruno Haible.
20570
20571 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20572
20573         more ports to Solaris tr, which needs [] around ranges
20574         * gnulib-tool: Solaris tr needs [] around ranges.
20575         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20576         * tests/test-pipe-filter-gi1.c (main): Likewise.
20577         * tests/test-pipe-filter-ii1.c (main): Likewise.
20578
20579 2010-10-05  Eric Blake  <eblake@redhat.com>
20580
20581         bootstrap: fix Solaris regression
20582         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20583         around ranges.
20584         Reported by Pádraig Brady.
20585
20586         bootstrap: work with pkg-config
20587         * build-aux/bootstrap (check_versions): Also transliterate - in
20588         prerequisite name.
20589         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20590         prerequisites that were already found, to avoid confusion.
20591         Reported by Justin Clift.
20592
20593         faccessat: remove unused wrappers
20594         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20595         presence of these wrappers dragged in -lgen on Solaris.
20596         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20597
20598 2010-10-05  Jim Meyering  <meyering@redhat.com>
20599
20600         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20601         * Makefile (sc_pragma_columns): New syntax-check rule.
20602
20603 2010-10-04  Bruno Haible  <bruno@clisp.org>
20604
20605         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20606         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20607         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20608         Reported by Bruce Korb and Eric Blake.
20609
20610 2010-10-04  Bruno Haible  <bruno@clisp.org>
20611
20612         threadlib: Make option --with-libpth-prefix work.
20613         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20614         use $LIBPTH, not just -lpth.
20615
20616 2010-10-04  Bruno Haible  <bruno@clisp.org>
20617
20618         Avoid line length limitation from HP NonStop system header files.
20619         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20620         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20621         * lib/ctype.in.h: Likewise.
20622         * lib/dirent.in.h: Likewise.
20623         * lib/errno.in.h: Likewise.
20624         * lib/fcntl.in.h: Likewise.
20625         * lib/float.in.h: Likewise.
20626         * lib/getopt.in.h: Likewise.
20627         * lib/iconv.in.h: Likewise.
20628         * lib/inttypes.in.h: Likewise.
20629         * lib/langinfo.in.h: Likewise.
20630         * lib/locale.in.h: Likewise.
20631         * lib/math.in.h: Likewise.
20632         * lib/netdb.in.h: Likewise.
20633         * lib/netinet_in.in.h: Likewise.
20634         * lib/poll.in.h: Likewise.
20635         * lib/pthread.in.h: Likewise.
20636         * lib/pty.in.h: Likewise.
20637         * lib/sched.in.h: Likewise.
20638         * lib/se-selinux.in.h: Likewise.
20639         * lib/search.in.h: Likewise.
20640         * lib/signal.in.h: Likewise.
20641         * lib/spawn.in.h: Likewise.
20642         * lib/stdarg.in.h: Likewise.
20643         * lib/stddef.in.h: Likewise.
20644         * lib/stdint.in.h: Likewise.
20645         * lib/stdio.in.h: Likewise.
20646         * lib/stdlib.in.h: Likewise.
20647         * lib/string.in.h: Likewise.
20648         * lib/strings.in.h: Likewise.
20649         * lib/sys_file.in.h: Likewise.
20650         * lib/sys_ioctl.in.h: Likewise.
20651         * lib/sys_select.in.h: Likewise.
20652         * lib/sys_socket.in.h: Likewise.
20653         * lib/sys_stat.in.h: Likewise.
20654         * lib/sys_time.in.h: Likewise.
20655         * lib/sys_times.in.h: Likewise.
20656         * lib/sys_utsname.in.h: Likewise.
20657         * lib/sys_wait.in.h: Likewise.
20658         * lib/sysexits.in.h: Likewise.
20659         * lib/termios.in.h: Likewise.
20660         * lib/time.in.h: Likewise.
20661         * lib/unistd.in.h: Likewise.
20662         * lib/wchar.in.h: Likewise.
20663         * lib/wctype.in.h: Likewise.
20664         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20665         * modules/ctype (Makefile.am): Likewise.
20666         * modules/dirent (Makefile.am): Likewise.
20667         * modules/errno (Makefile.am): Likewise.
20668         * modules/fcntl-h (Makefile.am): Likewise.
20669         * modules/float (Makefile.am): Likewise.
20670         * modules/getopt-posix (Makefile.am): Likewise.
20671         * modules/iconv-h (Makefile.am): Likewise.
20672         * modules/inttypes (Makefile.am): Likewise.
20673         * modules/langinfo (Makefile.am): Likewise.
20674         * modules/locale (Makefile.am): Likewise.
20675         * modules/math (Makefile.am): Likewise.
20676         * modules/netdb (Makefile.am): Likewise.
20677         * modules/netinet_in (Makefile.am): Likewise.
20678         * modules/poll-h (Makefile.am): Likewise.
20679         * modules/pthread (Makefile.am): Likewise.
20680         * modules/pty (Makefile.am): Likewise.
20681         * modules/sched (Makefile.am): Likewise.
20682         * modules/search (Makefile.am): Likewise.
20683         * modules/selinux-h (Makefile.am): Likewise.
20684         * modules/signal (Makefile.am): Likewise.
20685         * modules/spawn (Makefile.am): Likewise.
20686         * modules/stdarg (Makefile.am): Likewise.
20687         * modules/stddef (Makefile.am): Likewise.
20688         * modules/stdint (Makefile.am): Likewise.
20689         * modules/stdio (Makefile.am): Likewise.
20690         * modules/stdlib (Makefile.am): Likewise.
20691         * modules/string (Makefile.am): Likewise.
20692         * modules/strings (Makefile.am): Likewise.
20693         * modules/sys_file (Makefile.am): Likewise.
20694         * modules/sys_ioctl (Makefile.am): Likewise.
20695         * modules/sys_select (Makefile.am): Likewise.
20696         * modules/sys_socket (Makefile.am): Likewise.
20697         * modules/sys_stat (Makefile.am): Likewise.
20698         * modules/sys_time (Makefile.am): Likewise.
20699         * modules/sys_times (Makefile.am): Likewise.
20700         * modules/sys_utsname (Makefile.am): Likewise.
20701         * modules/sys_wait (Makefile.am): Likewise.
20702         * modules/sysexits (Makefile.am): Likewise.
20703         * modules/termios (Makefile.am): Likewise.
20704         * modules/time (Makefile.am): Likewise.
20705         * modules/unistd (Makefile.am): Likewise.
20706         * modules/wchar (Makefile.am): Likewise.
20707         * modules/wctype (Makefile.am): Likewise.
20708
20709 2010-10-04  Bruno Haible  <bruno@clisp.org>
20710
20711         read-file tests: Avoid a test failure on NonStop Kernel.
20712         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20713         a regular file.
20714         Reported by Joachim Schmitz <schmitz@hp.com>.
20715
20716 2010-10-03  Bruno Haible  <bruno@clisp.org>
20717
20718         gnulib-tool: Fixes for --create-testdir with --libtool.
20719         * gnulib-tool (func_get_automake_snippet): Don't augment
20720         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20721         an executable.
20722         (func_create_testdir): Handle module 'alloca' like func_import.
20723         Reported by Bruce Korb <bruce.korb@gmail.com>.
20724
20725 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20726
20727         Avoid some lines longer than 80 characters.
20728         * lib/stdint.in.h: Break long comment lines.
20729         * lib/math.in.h: Likewise.
20730         (_GL_NUM_UINT_WORDS): New macro, for readability.
20731         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20732         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20733         * lib/stdlib.in.h: Likewise.
20734         * lib/spawn.in.h: Likewise.
20735         * lib/sys_socket.in.h: Update an URL.
20736         * lib/sys_stat.in.h: Break long line.
20737
20738 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20739
20740         Improve pmccabe2html.
20741         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20742         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20743         when the sources change. Remove the line in the HTML about "Used
20744         ranges" (which implied that there might be other unused ranges),
20745         rename "Resume" to "Summary" (easier to understand for more users).
20746         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20747         styles, and some unnecessary blank lines.
20748
20749 2010-10-03  Bruno Haible  <bruno@clisp.org>
20750             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20751
20752         acl: Add support for ACLs on NonStop Kernel.
20753         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20754         Check whether the function aclsort() exists.
20755         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20756         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20757         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20758         (acl_nontrivial [HAVE_ACLSORT]: New function.
20759         (file_has_acl): Implement for NonStop Kernel.
20760         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20761         (qset_acl): Implement for NonStop Kernel.
20762         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20763         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20764         (main): Implement for NonStop Kernel.
20765         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20766         Kernel. Handle this flavor.
20767         * tests/test-set-mode-acl.sh: Likewise.
20768         * tests/test-copy-acl.sh: Likewise.
20769         * tests/test-copy-file.sh: Likewise.
20770
20771 2010-10-03  Bruno Haible  <bruno@clisp.org>
20772
20773         Info about ACLs on NonStop Kernel.
20774         * doc/acl-resources.txt: Add info about NonStop Kernel.
20775         References by Joachim Schmitz <schmitz@hp.com>.
20776
20777 2010-10-02  Bruno Haible  <bruno@clisp.org>
20778
20779         Define missing EDQUOT on NonStop Kernel.
20780         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20781         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20782         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20783         missing.
20784         * doc/posix-headers/errno.texi: Mention the NSK bug.
20785         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20786         Reported by Joachim Schmitz <schmitz@hp.com>.
20787
20788 2010-10-02  Bruno Haible  <bruno@clisp.org>
20789
20790         Update doc for POSIX:2008.
20791         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20792         Update URL of POSIX specification.
20793
20794 2010-10-02  Bruno Haible  <bruno@clisp.org>
20795
20796         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20797         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20798         from gnulib, not from Automake.
20799
20800 2010-10-02  Bruno Haible  <bruno@clisp.org>
20801
20802         New module 'system-posix'.
20803         * modules/system-posix: New file.
20804         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20805         module is present.
20806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20807         GNULIB_SYSTEM_POSIX.
20808         * modules/stdlib (Depends-on): Remove sys_wait.
20809         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20810         * doc/posix-functions/system.texi: Mention the new module.
20811         * doc/posix-headers/stdlib.texi: Likewise.
20812         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20813         define test_sys_wait_macros to a no-op.
20814         Reported by Sam Steingold <sds@gnu.org>.
20815
20816 2010-09-30  Bruno Haible  <bruno@clisp.org>
20817
20818         More renaming from 'getdate' to 'get_date'.
20819         * doc/get_date.texi: Renamed from doc/getdate.texi.
20820         * modules/get_date (Files): Update.
20821         * MODULES.html.sh (Date and time <time.h>): Update.
20822         * DEPENDENCIES: Update.
20823         * gnulib-tool: Update comment.
20824         * m4/bison.m4 (gl_BISON): Likewise.
20825         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20826
20827 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20828
20829         bootstrap: support ACLOCAL_FLAGS during aclocal
20830         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20831         can add additional -I dir for third-party .m4 files.
20832
20833 2010-09-30  Eric Blake  <eblake@redhat.com>
20834
20835         bootstrap: use glibtoolize on MacOS
20836         * build-aux/bootstrap (check_versions): Convert libtool into
20837         libtoolize.
20838         (tool search): Move libtool check earlier, and look for
20839         glibtoolize for MacOS.
20840         (gnulib_tool_options): Auto-add --libtool when appropriate.
20841         Reported by Justin Clift.
20842
20843         poll: fix typo that broke test on MacOS
20844         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20845         Reported by Justin Clift.
20846
20847         getdate: rename to get_date
20848         Note: getdate.h is not renamed, to minimize client impact.
20849         * modules/getdate: Mark obsolete.  Move old contents...
20850         * modules/get_date: ...to new module name.
20851         * modules/getdate-tests: Move...
20852         * modules/get_date-tests: ...here.
20853         * m4/getdate.m4: Move...
20854         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20855         * lib/getdate.y: Move...
20856         * lib/get_date.y: ...here.
20857         * tests/test-getdate.c: Move...
20858         * tests/test-get_date.c: ...here.
20859         * doc/posix-functions/getdate.texi (getdate): Update name.
20860         * NEWS: Mention the change.
20861
20862 2010-09-29  Bruno Haible  <bruno@clisp.org>
20863
20864         Separate the module 'waitpid' from the module 'sys_wait'.
20865         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20866         present.
20867         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20868         gl_MODULE_INDICATOR_FOR_TESTS.
20869         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20870         * modules/sys_wait (Depends-on): Remove waitpid.
20871         (Makefile.am): Substitute GNULIB_WAITPID.
20872         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20873         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20874         signature only if the 'waitpid' module is present.
20875         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20876         * NEWS: Mention the change.
20877         * modules/grantpt (Depends-on): Add waitpid.
20878         * modules/wait-process (Depends-on): Likewise.
20879
20880 2010-09-29  Bruno Haible  <bruno@clisp.org>
20881
20882         More tests for module 'sys_wait'.
20883         * modules/sys_wait-c++-tests: New file.
20884         * tests/test-sys_wait-c++.cc: New file.
20885         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20886         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20887
20888 2010-09-29  Bruno Haible  <bruno@clisp.org>
20889
20890         New module 'waitpid'.
20891         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20892         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20893         Don't include <process.h>.
20894         (waitpid): Declare only, using modern idiom.
20895         * m4/waitpid.m4: New file.
20896         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20897         * modules/waitpid: New file.
20898         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20899         (Makefile.am): Update.
20900         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20901
20902 2010-09-28  Bruno Haible  <bruno@clisp.org>
20903
20904         poll: Assume ANSI C.
20905         * lib/poll.c (poll): Use an ANSI C declaration.
20906
20907 2010-09-28  Bruno Haible  <bruno@clisp.org>
20908
20909         poll-h: Create poll.h on all platforms.
20910         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20911         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20912         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20913         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20914         (gl_REPLACE_POLL_H): Don't set POLL_H.
20915         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20916         * modules/poll-h (Depends-on): Add include_next.
20917         (Makefile.am): Create poll.h unconditionally. Substitute also
20918         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20919
20920 2010-09-28  Bruno Haible  <bruno@clisp.org>
20921
20922         Tests for module 'poll-h'.
20923         * modules/poll-h-c++-tests: New file.
20924         * tests/test-poll-h-c++.cc: New file.
20925
20926         Tests for module 'poll-h'.
20927         * modules/poll-h-tests: New file.
20928         * tests/test-poll-h.c: New file.
20929
20930 2010-09-28  Bruno Haible  <bruno@clisp.org>
20931
20932         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20933         * modules/poll-h (Depends-on): Add 'extensions'.
20934
20935 2010-09-28  Bruno Haible  <bruno@clisp.org>
20936
20937         New module 'poll-h'.
20938         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20939         (poll): Use modern idiom.
20940         * modules/poll-h: New file.
20941         * modules/poll (Files): Remove lib/poll.in.h.
20942         (Depends-on): Add poll-h.
20943         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20944         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20945         * m4/poll_h.m4: New file.
20946         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20947         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20948         and invoke gl_REPLACE_POLL_H.
20949         * lib/poll.c: Use common idiom.
20950         * tests/test-poll.c: Likewise.
20951         * doc/posix-headers/poll.texi: Mention the poll-h module.
20952         Suggested by Eric Blake.
20953
20954 2010-09-26  Bruno Haible  <bruno@clisp.org>
20955
20956         sys_wait: Implement WSTOPSIG.
20957         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20958         Reported by Simon Josefsson.
20959
20960 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20961
20962         stdlib, sys_wait: Avoid compilation error on mingw.
20963         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20964
20965 2010-09-26  Bruno Haible  <bruno@clisp.org>
20966
20967         stdlib tests: Avoid code duplication.
20968         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20969         * modules/sys_wait-tests (Files): Likewise.
20970         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20971         * tests/test-stdlib.c: Include test-sys_wait.h.
20972         (main): Invoke test_sys_wait_macros.
20973         * tests/test-sys_wait.c: Include test-sys_wait.h.
20974         (main): Invoke test_sys_wait_macros.
20975
20976 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20977
20978         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20979         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20980         sure Windows sockets are working before calling getaddrinfo.
20981         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20982         * doc/gnulib.texi (Windows sockets): Fix typo.
20983
20984 2010-09-25  Bruno Haible  <bruno@clisp.org>
20985
20986         Tests for module 'regex-quote'.
20987         * modules/regex-quote-tests: New file.
20988         * tests/test-regex-quote.c: New file.
20989
20990         New module 'regex-quote'.
20991         * lib/regex-quote.h: New file.
20992         * lib/regex-quote.c: New file.
20993         * modules/regex-quote: New file.
20994         Suggested by Reuben Thomas <rrt@sc3d.org>.
20995
20996 2010-09-24  Bruno Haible  <bruno@clisp.org>
20997
20998         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20999         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21000
21001 2010-09-23  Bruno Haible  <bruno@clisp.org>
21002
21003         setenv: Relax license.
21004         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21005         Blake.
21006         Requested by Eric Blake.
21007
21008 2010-09-22  Bruno Haible  <bruno@clisp.org>
21009
21010         termios: Relax license.
21011         * modules/termios (License): Change to LGPLv2+.
21012         Requested by Eric Blake.
21013
21014 2010-09-22  Bruno Haible  <bruno@clisp.org>
21015
21016         threadlib: Allow the package to change the default to 'no'.
21017         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21018         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21019         Reported by Paul Eggert.
21020
21021 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21022             Bruno Haible  <bruno@clisp.org>
21023
21024         Fix endless loop in mbmemcasecoll.
21025         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21026         byte.
21027         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21028
21029 2010-09-22  Bruno Haible  <bruno@clisp.org>
21030
21031         Tests for module 'memcoll'.
21032         * modules/memcoll-tests: New file.
21033         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21034
21035         memcoll, xmemcoll: Clarify size vs. length.
21036         * modules/memcoll.c (memcoll0): Clarify specification.
21037         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21038         passed to collate_error.
21039
21040 2010-09-22  Bruno Haible  <bruno@clisp.org>
21041
21042         Tests for module 'memcasecmp'.
21043         * modules/memcasecmp-tests: New file.
21044         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21045
21046 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21047
21048         * lib/pthread.in.h: Add split double-inclusion guard, and include
21049         system <pthread.h> if there is one.  Use @@-style as in other
21050         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21051         pthread.h doesn't.
21052         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21053         (pthread_mutexattr_settype, pthread_mutex_trylock):
21054         New static inline functions, if there's no system <pthread.h>.
21055         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21056         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21057         Approximate with mutexes if the system lacks spinlocks, as in
21058         MacOS.
21059         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21060         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21061         @@-style.  Check for spinlocks separately.
21062         (gl_PTHREAD_DEFAULTS): New macro.
21063         * modules/pthread: Redo to use a more typical style for in.h files.
21064
21065 2010-09-21  Eric Blake  <eblake@redhat.com>
21066
21067         net_if: enhance tests
21068         * tests/test-net_if.c (main): Move signature checks earlier.
21069         Print failures to stderr.
21070         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21071         Document the bug that we do not yet fix.
21072
21073 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21074
21075         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21076         about gnulib, not GSS.
21077
21078 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21079
21080         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21081         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21082         for Emacs.
21083         * build-aux/pmccabe2html: Make Makefile.am example code more
21084         cut-and-paste friendly.
21085
21086 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21087
21088         * tests/test-net_if.c: New file.
21089         * modules/net_if-tests: New file.
21090
21091 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21092
21093         pthread: add pthread_spin_destroy
21094         * lib/pthread.in.h (pthread_spin_destroy): New function.
21095
21096 2010-09-19  Bruno Haible  <bruno@clisp.org>
21097
21098         gnulib-tool: Fix --help output.
21099         * gnulib-tool (func_usage): Fix help message.
21100         Reported by Reuben Thomas <rrt@sc3d.org>.
21101
21102 2010-09-18  Jim Meyering  <meyering@redhat.com>
21103
21104         maint.mk: avoid unexpanded \n in two diagnostics
21105         * top/maint.mk (sc_prohibit_always_true_header_tests):
21106         Don't use a literal \n in a halt=... assignment.  It would not be
21107         expanded, and the two \n bytes would appear in the diagnostic output
21108         rather than the desired newline.  Use halt=$$(printf ... instead.
21109         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21110
21111 2010-09-18  Bruno Haible  <bruno@clisp.org>
21112
21113         netinet_in: Doc tweak.
21114         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21115         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21116
21117 2010-09-18  Jim Meyering  <meyering@redhat.com>
21118
21119         init.sh: correct an outdated comment
21120         * tests/init.sh (create_exe_shims_):  s/function/alias/
21121
21122         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21123         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21124         a file named "*.exe" is removed between the glob expansion and the
21125         processing of that oddly named file.
21126
21127 2010-09-17  Eric Blake  <eblake@redhat.com>
21128
21129         mirbsd: add some more support
21130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21131         in BSD family.
21132         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21133         devices as OpenBSD.
21134         * m4/host-os.m4 (mirbsd): Add MirBSD.
21135
21136         tests: fix unportable assumption on sys/wait.h
21137         * tests/test-sys_wait.c (main): Relax test.
21138         * tests/test-stdlib.c (main): Likewise.
21139
21140         init.sh: accomodate directory with no .exes
21141         * tests/init.sh: Accomodate directory containing only scripts.
21142
21143         tests: avoid compiler warning
21144         * tests/test-stdlib.c (main): Use the variable.
21145
21146         fdutimens, fdutimensat: update signature, again
21147         * lib/utimens.h (gl_futimens): Delete, and move signature...
21148         (fdutimens): ...here.
21149         (fdutimensat): Rearrange signature.
21150         (lutimensat): Rename variable for clarity.
21151         * lib/fdutimensat.c (fdutimensat): Update signature.
21152         * lib/utimens.c (fdutimens): Likewise.
21153         (gl_futimens): Delete.
21154         (utimens, lutimens): Update callers.
21155         * lib/futimens.c (futimens): Likewise.
21156         * tests/test-fdutimensat.c: Likewise.
21157         * tests/test-utimens.c: Likewise.
21158         * tests/test-futimens.h: Update comment.
21159         * NEWS: Mention this.
21160         Suggested by Paul Eggert.
21161
21162 2010-09-17  Bruno Haible  <bruno@clisp.org>
21163
21164         Take over the maintenance of some older macros from Autoconf.
21165         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21166         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21167         GNU Autoconf.
21168         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21169         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21170
21171 2010-09-17  Eric Blake  <eblake@redhat.com>
21172
21173         fdutimensat: drop atflag validation
21174         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21175         with valid fd, to close a race scenario where futimens is
21176         unsupported and FILE was replaced by a symlink.
21177         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21178         accordingly.
21179         Suggested by Paul Eggert.
21180
21181 2010-09-16  Bruno Haible  <bruno@clisp.org>
21182
21183         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21184         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21185
21186 2010-09-16  Bruno Haible  <bruno@clisp.org>
21187
21188         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21189         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21190         login_tty exists.
21191         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21192
21193 2010-09-16  Bruno Haible  <bruno@clisp.org>
21194
21195         login_tty: Make the replacement code work on BSD systems.
21196         * lib/login_tty.c: Include <sys/ioctl.h>.
21197         (login_tty): Use ioctl TIOCSCTTY when available.
21198         * modules/login_tty (Depends-on): Add sys_ioctl.
21199         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21200
21201 2010-09-16  Bruno Haible  <bruno@clisp.org>
21202
21203         login_tty: Stricter unit test.
21204         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21205         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21206         and tcgetsid() after login_tty.
21207         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21208
21209 2010-09-16  Bruno Haible  <bruno@clisp.org>
21210
21211         New module 'tcgetsid'.
21212         * lib/tcgetsid.c: New file.
21213         * m4/tcgetsid.m4: New file.
21214         * modules/tcgetsid: New file.
21215         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21216         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21217         GNULIB_TCGETSID, HAVE_TCGETSID.
21218         * lib/termios.in.h: Include <sys/types.h>.
21219         (tcgetsid): New declaration.
21220         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21221         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21222         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21223         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21224
21225 2010-09-16  Bruno Haible  <bruno@clisp.org>
21226
21227         Tests for module 'termios'.
21228         * modules/termios-c++-tests: New file.
21229         * modules/termios-tests: New file.
21230         * tests/test-termios-c++.cc: New file.
21231         * tests/test-termios.c: New file.
21232
21233         New module 'termios'.
21234         * modules/termios: New file.
21235         * lib/termios.in.h: New file.
21236         * m4/termios_h.m4: New file.
21237         * doc/posix-headers/termios.texi: Mention the new module.
21238
21239 2010-09-16  Eric Blake  <eblake@redhat.com>
21240
21241         fdutimensat: add an atflag parameter
21242         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21243         * lib/utimens.h (fdutimensat): Update prototype.
21244         * tests/test-fdutimensat.c: Adjust test to match.
21245         * NEWS: Document the change.
21246         Suggested by Paul Eggert.
21247
21248 2010-09-16  Bruno Haible  <bruno@clisp.org>
21249
21250         Fix typos in comments.
21251         * lib/striconveh.h: Fix typo in comment.
21252         * lib/login_tty.c (login_tty): Likewise.
21253
21254 2010-09-15  Bruno Haible  <bruno@clisp.org>
21255
21256         stdlib: clarify MirBSD WEXITSTATUS bug
21257         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21258         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21259
21260 2010-09-15  Eric Blake  <eblake@redhat.com>
21261
21262         stdlib: work around MirBSD WEXITSTATUS bug
21263         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21264         * modules/stdlib (Depends-on): Add sys_wait.
21265         * tests/test-sys_wait.c (main): Enhance test.
21266         * tests/test-stdlib.c (main): Likewise.
21267         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21268
21269         docs: mention MacOS issue with WEXITSTATUS(constant)
21270         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21271         issue.
21272         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21273
21274         strnlen: add tests
21275         * modules/strnlen-tests: New file.
21276         * tests/test-strnlen.c: Likewise.
21277
21278 2010-09-14  Bruno Haible  <bruno@clisp.org>
21279
21280         unistr/base: Avoid link errors when module 'libunistring' is also used.
21281         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21282         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21283         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21284         Declare also when HAVE_LIBUNISTRING is set.
21285         Reported by Pádraig Brady <P@draigbrady.com>.
21286
21287 2010-09-14  Eric Blake  <eblake@redhat.com>
21288
21289         test-rawmemchr: make more robust
21290         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21291         (Depends-on, configure.ac): Add needed prerequisites to use it.
21292         * modules/memchr-tests (Files, Depends-on, configure.ac):
21293         Likewise, to avoid implicit reliance on memchr module prereqs.
21294         * tests/test-memchr.c (main): Ensure proper masking.
21295         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21296         reads.
21297
21298         memchr: detect glibc Alpha bug
21299         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21300         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21301         Alpha.
21302         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21303         * tests/test-memchr.c (main): Enhance test.
21304         Reported by Nelson H. F. Beebe.
21305
21306 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21307
21308         fts, getcwd, glob: audit for dirfd returning -1
21309         * lib/fts.c (opendir): Remove #define; no longer used.
21310         (opendirat): New arg PDIR_FD.  All callers changed.
21311         (fts_build, _opendir2): Use new opendirat to avoid the need for
21312         dirfd, or for checking whether dirfd returns a negative value.
21313         Don't use opendir; always use openat followed by fdopendir.
21314         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21315         it.
21316         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21317         returns -1 here.
21318         * modules/fts (Depends-on): Remove dirfd.
21319         * modules/getcwd (Depends-on): Likewise.
21320
21321 2010-09-13  Eric Blake  <eblake@redhat.com>
21322
21323         float: fix broken MirBSD header
21324         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21325         * doc/posix-headers/float.texi (float.h): Document it.
21326
21327 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21328
21329         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21330         * lib/fts.c (opendirat): New arg extra_flags.
21331         (__opendir2): Use it to avoid following symlinks when opening
21332         a directory, if symlinks are not supposed to be followed.  See
21333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21334
21335         fdopendir: preserve argument fd before returning
21336         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21337         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21338         (fdopendir): Use them, arranging for FD to be open to the same
21339         directory that it was when it started.  (It might be temporarily
21340         closed while fdopendir is running, so this not thread- or
21341         signal-safe.)  Be careful to do the right thing even when file
21342         descriptors are scarce and dup fails with errno == EMFILE.  See
21343         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21344
21345 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21346
21347         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21348         * NEWS: Document change.
21349         * m4/regex.m4: Disable test for regoff_t size.
21350
21351 2010-09-13  Jim Meyering  <meyering@redhat.com>
21352
21353         fts: don't operate on an invalid file descriptor after failed dup
21354         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21355         negative file descriptor.
21356
21357 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21358
21359         savedir: add streamsavedir, deprecate fdsavedir
21360         * NEWS: Mention deprecation of fdsavedir.
21361         * lib/savedir.c (streamsavedir): New extern function, whose name
21362         ends in "savedir" to be consistent with the others.  This differs
21363         from savedirstream in that it doesn't close its argument.  The
21364         next version of GNU tar will use this instead of fdsavedir, to
21365         avoid some race conditions and conserve file descriptors.
21366         (savedirstream): Reimplement as a wrapper around streamsavedir.
21367         (fdsavedir): Add a comment deprecating this function.  As far as
21368         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21369         * lib/savedir.h (streamsavedir): New decl.
21370         (fdsavedir): Add a comment deprecating this.
21371
21372 2010-09-10  Bruno Haible  <bruno@clisp.org>
21373
21374         langinfo: Fix last commit.
21375         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21376         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21378
21379 2010-09-10  Bruno Haible  <bruno@clisp.org>
21380
21381         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21382         * lib/progreloc.c (O_EXEC): Define fallback.
21383
21384 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21385
21386         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21387         * NEWS: Document recent changes to fcntl-h.
21388         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21389         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21390         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21391         Similarly for O_SEARCH; this last was already true, but not documented.
21392         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21393         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21394         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21395         Likewise.
21396         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21397         is zero, not whether it is defined.
21398         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21399         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21400         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21401
21402 2010-09-10  Bruno Haible  <bruno@clisp.org>
21403
21404         langinfo, nl_langinfo: Fix for IRIX 5.3.
21405         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21406         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21407         HAVE_LANGINFO_YESEXPR.
21408         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21409         HAVE_LANGINFO_YESEXPR.
21410         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21411         HAVE_LANGINFO_T_FMT_AMPM is 0.
21412         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21413         HAVE_LANGINFO_YESEXPR is 0.
21414         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21415         NOEXPR.
21416         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21417         * doc/posix-functions/nl_langinfo.texi: Likewise.
21418         Reported by Eric Blake.
21419
21420 2010-09-10  Bruno Haible  <bruno@clisp.org>
21421
21422         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21423         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21424         on FreeBSD 8.0 and OpenBSD 4.6.
21425         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21426         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21427         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21428         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21429         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21430         ac_includes_default.
21431         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21432
21433 2010-09-09  Eric Blake  <eblake@redhat.com>
21434
21435         strsignal: work around NetBSD bug
21436         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21437         * lib/string.in.h (includes): Likewise.
21438         * doc/posix-functions/strsignal.texi (strsignal): Document the
21439         bug.
21440         Reported by Nelson H. F. Beebe.
21441
21442         gnulib-tool: work with NetBSD /bin/sh
21443         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21444         (func_get_description, func_get_comment, func_get_status)
21445         (func_get_notice, func_get_applicability, func_get_filelist)
21446         (func_get_dependencies, func_get_autoconf_early_snippet)
21447         (func_get_autoconf_snippet, func_get_automake_snippet)
21448         (func_get_include_directive, func_get_link_directive)
21449         (func_get_license, func_get_maintainer, func_import): Avoid
21450         shell syntax errors from parsing syntax extensions.
21451
21452 2010-09-09  Bruno Haible  <bruno@clisp.org>
21453
21454         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21455         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21456         a reliable way to determine whether the 'alias' command works.
21457
21458 2010-09-08  Jim Meyering  <meyering@redhat.com>
21459
21460         init.sh: penalize a set-x-impaired shell; don't disqualify it
21461         * tests/init.sh: Too many shells corrupt application stderr when
21462         you set -x, so we can't afford to disqualify them, since at least
21463         on Irix-6.5, that would disqualify all bourne shells.
21464         Instead, use a two-pass approach.
21465         On the first pass, try to find a shell that meets the stricter
21466         condition that set -x does not corrupt stderr.
21467         If no shell meets the stricter condition, retest each candidate
21468         shell, but without that extra condition.  Finally, when
21469         VERBOSE=yes is requested and set -x might cause trouble, simply
21470         issue a warning and refrain from enabling debug output.
21471
21472 2010-09-08  Eric Blake  <eblake@redhat.com>
21473
21474         unsetenv: fix OpenBSD bug
21475         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21476         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21477         documentation.
21478         Reported by Jim Meyering.
21479
21480         strtod: work around IRIX 6.5 bug
21481         * lib/strtod.c (strtod): Reparse number on shorter string if
21482         exponent parse was invalid.
21483         * tests/test-strtod.c (main): Add check for "0x1p 2".
21484         Reported by Tom G. Christensen.
21485
21486         getopt: optimize previous patch
21487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21488         empty variable.  Speed up awk script.
21489         Reported by Paolo Bonzini.
21490
21491 2010-09-08  Jim Meyering  <meyering@redhat.com>
21492
21493         test.sh: disqualify shells for which set -x corrupts stderr
21494         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21495         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21496         appear in stderr output.  For example, this command:
21497             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21498         prints "P=1" on those two systems:
21499
21500 2010-09-08  Bruno Haible  <bruno@clisp.org>
21501
21502         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21503         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21504         commands, because some shells ignore redirections when there is an
21505         error in the command lookup.
21506         Reported by Eric Blake.
21507
21508 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21509
21510         * lib/regex.h: Fix a mention of `regex_compile' (should be
21511         `re_compile_pattern').
21512         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21513         (re_set_registers): Correct name of parameter in comment.
21514
21515         * doc/regex.texi: Add documentation for missing syntax flags.
21516         Remove commented-out documentation of defunct syntax option
21517         RE_NO_EMPTY_ALTS.
21518         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21519         Add documentation of re_set_registers.
21520         Document trick to re-use a pattern buffer by setting fastmap manually.
21521         Update documentation of struct re_pattern_buffer per public members.
21522         Uncomment documentation of equivalence class operators and
21523         collating symbol operators, since they are now implemented,
21524         Explain leftmost-longest matching in relation to alternatives.
21525         Tidy documentation of substring matching.
21526         Remove POSIX documentation, which is done better in
21527         glibc, and refer the reader there. Keep BSD API documentation, as
21528         that is not readily available elsewhere.
21529
21530 2010-09-07  Eric Blake  <eblake@redhat.com>
21531
21532         getopt: handle POSIXLY_CORRECT set but not exported
21533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21534         export state of POSIXLY_CORRECT, due to bash set -o posix.
21535         Reported by Dustin J. Mitchell.
21536
21537 2010-09-05  Bruno Haible  <bruno@clisp.org>
21538
21539         gnulib-tool: Highlight the changed options.
21540         * gnulib-tool (func_usage): Display the --import, --add-import,
21541         --remove-import explanations in bold font.
21542
21543 2010-09-06  Karl Berry  <karl@gnu.org>
21544
21545         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21546
21547 2010-09-05  Bruno Haible  <bruno@clisp.org>
21548
21549         uniwidth/width: Update comment.
21550         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21551         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21552
21553 2010-09-05  Bruno Haible  <bruno@clisp.org>
21554
21555         isinf, isnan: Relax license.
21556         * modules/isinf (License): Change from GPL to LGPL, with consent from
21557         Ben Pfaff.
21558         * modules/isnan (License): Likewise.
21559         Requested by Ludovic Courtès.
21560
21561 2010-09-04  Bruno Haible  <bruno@clisp.org>
21562
21563         gnulib-tool: Help migration from --import to --add-import or --update.
21564         * gnulib-tool: Emit a verbose error message when --import is used
21565         without any module name.
21566
21567 2010-09-04  Bruno Haible  <bruno@clisp.org>
21568
21569         Update doc about gnulib-tool.
21570         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21571         'gnulib-tool --update' in more detail.
21572         Reported by Eric Blake.
21573
21574 2010-09-04  Bruno Haible  <bruno@clisp.org>
21575
21576         gnulib-tool: Change --import. New options --add/remove-import.
21577         * gnulib-tool: New options --add-import, --remove-import.
21578         (func_usage): Document them.
21579         (have_associative): Define always.
21580         (func_import): In import mode, don't merge the specified settings with
21581         the cached settings. Implement remove-import mode.
21582         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21583         Explain when to use them versus --import.
21584         (Simple update): Use --add-import instead of --import.
21585         * NEWS: Mention the change.
21586
21587 2010-09-04  Bruno Haible  <bruno@clisp.org>
21588
21589         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21590         separate gnulib.mk.
21591
21592 2010-09-04  Bruno Haible  <bruno@clisp.org>
21593
21594         gnulib-tool: Don't talk about CVS any more.
21595         * gnulib-tool (func_usage, func_import): Write "version control"
21596         instead of CVS.
21597
21598 2010-09-04  Jim Meyering  <meyering@redhat.com>
21599
21600         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21601         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21602         false positives (whose names may be ill-chosen) when searching
21603         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21604         would cause a false-positive.
21605
21606         avoid coreutils "make distcheck" failure
21607         Coreutils tests with an absolute build directory name that contains
21608         a space.  Not quoting this directory name caused a failure.
21609         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21610         * tests/test-vc-list-files-cvs.sh: Likewise.
21611
21612 2010-09-04  Bruno Haible  <bruno@clisp.org>
21613
21614         gnulib-tool: Avoid error when run in a package without Makefile.am.
21615         * gnulib-tool: When collecting the m4dirs in a package that does not
21616         have a Makefile.am, eliminate those directories that contain no
21617         gnulib-cache.m4. Fix expression that counts these directories.
21618
21619 2010-09-04  Bruno Haible  <bruno@clisp.org>
21620
21621         update-copyright test: Improve output when perl is missing or too old.
21622         * tests/test-update-copyright.sh: Move test of Perl version down after
21623         the test whether Perl exists. Provide an explanation relating Perl's
21624         error message to Automake's SKIP: message.
21625
21626 2010-09-04  Bruno Haible  <bruno@clisp.org>
21627
21628         Don't augment PATH in TESTS_ENVIRONMENT.
21629         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21630         set abs_aux_dir instead of augmenting PATH.
21631         * modules/vc-list-files-tests (Makefile.am): Likewise.
21632         * tests/test-update-copyright.sh: Augment PATH here.
21633         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21634         path_prepend_.
21635         * tests/test-vc-list-files-git.sh: Likewise.
21636
21637 2010-09-04  Jim Meyering  <meyering@redhat.com>
21638
21639         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21640         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21641
21642 2010-09-04  Bruno Haible  <bruno@clisp.org>
21643
21644         strdup: Fix compilation error in C++ mode.
21645         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21646         the macro.
21647
21648 2010-09-04  Bruno Haible  <bruno@clisp.org>
21649
21650         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21651         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21652         macro into a function.
21653         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21654
21655 2010-09-04  Bruno Haible  <bruno@clisp.org>
21656
21657         Set PATH_SEPARATOR the same way autoconf does.
21658         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21659         the value of PATH_SEPARATOR the same way autoconf-generated configure
21660         scripts do.
21661         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21662         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21663
21664 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21665
21666         Set PATH_SEPARATOR the same way autoconf does.
21667         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21668         the same way autoconf-generated configure scripts do.
21669         * posix-modules: Likewise.
21670
21671 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21672
21673         hash: fix safe_hasher const typo
21674         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21675         const; otherwise, there is a type error later.
21676
21677 2010-09-02  Jim Meyering  <meyering@redhat.com>
21678
21679         test-update-copyright.sh: require perl 5.8.0
21680         * tests/test-update-copyright.sh: Require 5.8.0,
21681         which Tom G. Christensen has confirmed is adequate,
21682         while 5.6.1 is not.
21683
21684 2010-09-02  Eric Blake  <eblake@redhat.com>
21685
21686         tests: init.sh improvements for re-exec'ing with zsh
21687         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21688         -vx through shell re-exec.
21689         Reported by Tom G. Christensen.
21690
21691         wctype: fix typo in previous commit
21692         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21693         Reported by Ludovic Courtès.
21694
21695 2010-09-02  Jim Meyering  <meyering@redhat.com>
21696
21697         test-update-copyright.sh: skip test if Perl is too old
21698         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21699         Reported by Tom G. Christensen.
21700
21701 2010-09-02  Bruno Haible  <bruno@clisp.org>
21702
21703         wctype: Avoid compilation error on IRIX 6.5.30.
21704         * lib/wctype.in.h (iswblank): Declare with a replacement if
21705         REPLACE_ISWBLANK is set.
21706         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21707         declared. Set REPLACE_ISWBLANK.
21708         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21709         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21710         * doc/posix-headers/wctype.texi: Likewise.
21711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21712
21713 2010-09-01  Bruno Haible  <bruno@clisp.org>
21714
21715         New module 'socketlib'.
21716         * modules/socketlib: New file.
21717         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21718         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21719         * modules/sockets (Depends-on): Add socketlib.
21720         Suggested by Sam Steingold <sds@gnu.org>.
21721
21722 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21723
21724         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21725
21726         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21727         when one needs search access to a directory but not read access.
21728         On systems where it is available, it works in some cases where
21729         O_RDONLY does not, namely on directories that are searchable but
21730         not readable, and which need only to be searchable.  If O_SEARCH
21731         is not available, fall back to the traditional method of using
21732         O_RDONLY.
21733
21734         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21735         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21736         when opening a directory that needs only to be searchable.
21737         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21738         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21739         * lib/openat-proc.c (openat_proc_name): Likewise.
21740         * lib/openat.c (openat_needs_fchdir): Likewise.
21741         * lib/save-cwd.c (save_cwd): Likewise.
21742         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21743
21744 2010-08-28  Bruno Haible  <bruno@clisp.org>
21745
21746         New module 'host-cpu-c-abi'.
21747         * modules/host-cpu-c-abi: New file.
21748         * m4/host-cpu-c-abi.m4: New file, based on part of
21749         clisp/src/m4/general.m4.
21750         Requested by Sam Steingold <sds@gnu.org>.
21751
21752 2010-08-31  Eric Blake  <eblake@redhat.com>
21753         and Jim Meyering  <meyering@redhat.com>
21754
21755         hash: factor, and guard against misbehaving hasher function
21756         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21757         of table->hasher's return value.  Also protect against a hash value
21758         so large that adding it to table->bucket results in a NULL pointer.
21759         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21760         Use it in place of open-coded check-and-abort.
21761
21762 2010-08-30  Bruno Haible  <bruno@clisp.org>
21763
21764         hash: silence spurious clang warning
21765         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21766         Reported by Eric Blake.
21767
21768 2010-08-30  Eric Blake  <eblake@redhat.com>
21769
21770         strstr, memmem, strcasestr: avoid leaked shell message
21771         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21772         FreeBSD.
21773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21774         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21775
21776         tests: silence clang warning
21777         * tests/test-malloca.c (do_allocation): Avoid dead store.
21778
21779 2010-08-29  Bruno Haible  <bruno@clisp.org>
21780
21781         gettext: Fix recent mistake.
21782         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21783
21784 2010-08-29  Bruno Haible  <bruno@clisp.org>
21785
21786         selinux-h: Offer a --without-selinux option.
21787         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21788         --without-selinux was specified, skip all tests and define
21789         HAVE_SELINUX_SELINUX_H to 0.
21790         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21791         set LIB_SELINUX to empty.
21792         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21793         gl_LIBSELINUX. If --without-selinux was specified, replace
21794         selinux/context.h.
21795         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21796
21797 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21798             Bruno Haible  <bruno@clisp.org>
21799
21800         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21801         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21802         of HAVE_REALLOC.
21803         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21804         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21805         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21806         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21807
21808 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21809             Bruno Haible  <bruno@clisp.org>
21810
21811         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21812         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21813         HAVE_CALLOC.
21814         * lib/xmalloc.c: Update accordingly.
21815         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21816         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21817         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21818
21819 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21820             Bruno Haible  <bruno@clisp.org>
21821
21822         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21823         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21824         HAVE_MALLOC.
21825         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21826         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21827         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21828
21829 2010-08-29  Bruno Haible  <bruno@clisp.org>
21830
21831         Update modules list.
21832         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21833         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21834         (String handling <string.h>): Add astrxfrm.
21835         (File system functions): Add readlinkat.
21836
21837 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21838
21839         Tests for module 'realloc-gnu'.
21840         * modules/realloc-gnu-tests: New file.
21841         * tests/test-realloc-gnu.c: New file.
21842
21843         Tests for module 'calloc-gnu'.
21844         * modules/calloc-gnu-tests: New file.
21845         * tests/test-calloc-gnu.c: New file.
21846
21847         Tests for module 'malloc-gnu'.
21848         * modules/malloc-gnu-tests: New file.
21849         * tests/test-malloc-gnu.c: New file.
21850
21851 2010-08-28  Bruno Haible  <bruno@clisp.org>
21852
21853         Rename module 'realloc' -> 'realloc-gnu'.
21854         * modules/realloc-gnu: New file, copied from modules/realloc.
21855         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21856         obsolete.
21857         * modules/mgetgroups (Depends-on): Update.
21858         * doc/posix-functions/realloc.texi: Update.
21859         * NEWS: Mention the change.
21860
21861         Rename module 'calloc' -> 'calloc-gnu'.
21862         * modules/calloc-gnu: New file, copied from modules/calloc.
21863         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21864         obsolete.
21865         * doc/posix-functions/calloc.texi: Update.
21866         * NEWS: Mention the change.
21867
21868         Rename module 'malloc' -> 'malloc-gnu'.
21869         * modules/malloc-gnu: New file, copied from modules/malloc.
21870         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21871         obsolete.
21872         * modules/argp (Depends-on): Update.
21873         * modules/regex (Depends-on): Update.
21874         * doc/posix-functions/malloc.texi: Update.
21875         * NEWS: Mention the change.
21876
21877 2010-08-28  Eric Blake  <eblake@redhat.com>
21878
21879         pread, pwrite: add missing dependency
21880         * modules/pread (Depends-on): Add extensions.
21881         * modules/pwrite (Depends-on): Likewise.
21882
21883 2010-08-28  Bruno Haible  <bruno@clisp.org>
21884
21885         unistr/u*-strchr: Fix tests dependencies.
21886         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21887         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21888         Reported by Ian Beckwith <ianb@erislabs.net>.
21889
21890 2010-08-28  Bruno Haible  <bruno@clisp.org>
21891
21892         read-file: Don't occupy too much unused memory.
21893         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21894
21895 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21896             Eric Blake  <eblake@redhat.com>
21897             Bruno Haible  <bruno@clisp.org>
21898
21899         read-file: Avoid memory reallocations with regular files.
21900         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21901         (fread_file): With regular files, use the remaining length as the
21902         initial buffer size.  Check against overflow.
21903         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21904         sys_stat.
21905
21906 2010-08-28  Bruno Haible  <bruno@clisp.org>
21907
21908         ftello: Relax license.
21909         * modules/ftello (License): Relax to LGPLv2+.
21910         Reported by Eric Blake.
21911
21912 2010-08-28  Bruno Haible  <bruno@clisp.org>
21913
21914         Avoid relocwrapper link errors due to gnulib replacement functions.
21915         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21916         function.
21917         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21918
21919 2010-08-28  Bruno Haible  <bruno@clisp.org>
21920
21921         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21922         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21923         defined.
21924         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21925         Suggested by Eric Blake.
21926
21927 2010-08-28  Bruno Haible  <bruno@clisp.org>
21928
21929         sys_socket, netdb: Ensure socklen_t gets defined.
21930         * modules/sys_socket (Depends-on): Add socklen.
21931         * modules/netdb (Depends-on): Likewise.
21932         * modules/getaddrinfo (Depends-on): Remove socklen.
21933         * modules/getsockopt (Depends-on): Likewise.
21934         * modules/setsockopt (Depends-on): Likewise.
21935         * tests/test-sys_socket.c: Check that socklen_t is defined.
21936         * tests/test-netdb.c: Likewise.
21937         * m4/socklen.m4: Update comments.
21938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21939
21940 2010-08-27  Eric Blake  <eblake@redhat.com>
21941
21942         login_tty: add missing dependency
21943         * modules/login_tty (Depends-on): Add pty.
21944
21945 2010-08-26  Eric Blake  <eblake@redhat.com>
21946
21947         lib-symbol-versions: fix m4 quoting
21948         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21949         format for AC_LINK_IFELSE.
21950
21951         glob: fix compile test
21952         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21953
21954         btowc: fix missing file
21955         * modules/btowc (Files): Also ship locale-fr.m4.
21956
21957         lseek: fix link test
21958         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21959         AC_LINK_IFELSE.
21960
21961         include_next: silence autoconf 2.68 warning
21962         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21963         AC_COMPILE_IFELSE as special.
21964         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21965         autoconf < 2.68.
21966
21967         acl: fix compilation test
21968         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21969         AC_COMPILE_IFELSE.
21970
21971 2010-08-26  Bruno Haible  <bruno@clisp.org>
21972
21973         Modernize AC_TRY_RUN invocations.
21974         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21975         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21976         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21977         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21978         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21979         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21980         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21981         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21982         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21983         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21984         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21985         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21986         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21987         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21989         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21990         gl_MBRLEN_NUL_RETVAL): Likewise.
21991         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21992         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21993         Likewise.
21994         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21995         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21996         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21997         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21998         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21999         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22000         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22001         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22002         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22003         Likewise.
22004         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22005         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22007         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22008         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22009         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22010         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22011         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22012         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22014
22015 2010-08-26  Bruno Haible  <bruno@clisp.org>
22016
22017         Modernize AC_TRY_LINK invocations.
22018         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22019         AC_TRY_LINK.
22020         * m4/argp.m4 (gl_ARGP): Likewise.
22021         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22022         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22023         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22024         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22025         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22026         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22027         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22028         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22029         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22031         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22032         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22033         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22034         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22035         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22036         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22037         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22038         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22039         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22040         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22041         Likewise.
22042         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22043         Likewise.
22044         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22045         Likewise.
22046         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22048         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22049         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22050         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22051         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22052         * m4/servent.m4 (gl_SERVENT): Likewise.
22053         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22054         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22055         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22056         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22057         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22058         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22059         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22061         * modules/tsearch-tests (configure.ac): Likewise.
22062
22063 2010-08-26  Bruno Haible  <bruno@clisp.org>
22064
22065         Modernize AC_TRY_COMPILE invocations.
22066         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22067         AC_TRY_COMPILE.
22068         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22069         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22070         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22071         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22072         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22073         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22074         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22075         * m4/lock.m4 (gl_LOCK): Likewise.
22076         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22077         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22078         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22079         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22080         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22081         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22082         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22083         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22084         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22085         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22086         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22087         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22088         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22089         extraneous semicolon.
22090
22091 2010-08-26  Jim Meyering  <meyering@redhat.com>
22092
22093         stat-time: relax license LGPL
22094         * modules/stat-time (License): Change from GPL to LGPL,
22095         with consent from all contributors, for use in libguile.
22096         Requested by Ludovic Courtès.
22097
22098 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22099
22100         poll: return immediately on POLLHUP.
22101         * lib/poll.c (poll): Always set timeout before wait_timeout is
22102         computed.
22103
22104 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22105
22106         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22107         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22108         rmdir ("dir/.//"), unlinkat.
22109
22110 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22111
22112         stdbool: avoid spurious failure with modern xlc
22113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22114
22115 2010-08-24  Bruno Haible  <bruno@clisp.org>
22116
22117         getloadavg: simplify code
22118         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22119         gl_have_func. Update comments.
22120
22121 2010-08-24  Eric Blake  <eblake@redhat.com>
22122
22123         getloadavg: don't define SVR4 on cygwin
22124         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22125         only define SVR4 when -lkvm is required.
22126         Reported by Yaakov Selkowitz.
22127
22128 2010-08-24  Bruno Haible  <bruno@clisp.org>
22129
22130         priv-set: fix comment
22131         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22132
22133 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22134
22135         priv-set: fix comments
22136         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22137         to match code, as suggested by David Bartley in:
22138         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22139
22140 2010-08-23  Eric Blake  <eblake@redhat.com>
22141
22142         stdbool: avoid rejecting clang
22143         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22144         * tests/test-stdbool.c: Enable more tests if using the system
22145         <stdbool.h> instead of the gnulib replacement.
22146         (main): Move xlc bug test to a runtime test for all compilers.
22147         Reported by Anders Kaseorg.
22148
22149         argz: fix shell quoting issue
22150         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22151         Reported by Charles Wilson.
22152
22153 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22154             Erik Faye-Lund <kusmabite@gmail.com>
22155
22156         poll, select: handle ERROR_BROKEN_PIPE.
22157         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22158         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22159         * lib/select.c (win32_compute_revents): Do not mark a pipe
22160         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22161
22162 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22163
22164         fts: allow compilation with C++
22165         * lib/fts_.h: Specify extern "C" linkage with C++.
22166
22167 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22168
22169         Fix gnulib-tool sed script de-commentation for AIX sed.
22170         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22171         sed.
22172
22173 2010-08-17  Eric Blake  <eblake@redhat.com>
22174
22175         test-stddef: test for (some) offsetof bugs
22176         * tests/test-stddef.c: Enhance test to ensure correct type of
22177         offsetof.
22178         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22179         that we are not fixing at this time.
22180
22181 2010-08-15  Bruno Haible  <bruno@clisp.org>
22182
22183         stpncpy: Allow stpncpy to be defined as a macro.
22184         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22185         if it's already correctly declared.
22186         * lib/string.in.h (stpncpy): Undefine before redefining.
22187         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22188
22189 2010-08-14  Bruno Haible  <bruno@clisp.org>
22190
22191         Rename module 'memxfrm' to 'amemxfrm'.
22192         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22193         (amemxfrm): Renamed from memxfrm.
22194         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22195         (amemxfrm): Renamed from memxfrm.
22196         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22197         * NEWS: Mention the change.
22198         * MODULES.html.sh (String handling <string.h>): Update.
22199         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22200         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22201         * lib/unicase/u16-casexfrm.c: Likewise.
22202         * lib/unicase/u32-casexfrm.c: Likewise.
22203         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22204         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22205         * lib/uninorm/u16-normxfrm.c: Likewise.
22206         * lib/uninorm/u32-normxfrm.c: Likewise.
22207         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22208         memxfrm.
22209         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22210         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22211         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22212         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22213         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22214         Suggested by Paul Eggert.
22215
22216 2010-08-14  Bruno Haible  <bruno@clisp.org>
22217
22218         Tests for module 'astrxfrm'.
22219         * modules/astrxfrm-tests: New file.
22220         * tests/test-astrxfrm.c: New file.
22221
22222         New module 'astrxfrm'.
22223         * lib/astrxfrm.h: New file.
22224         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22225         * modules/astrxfrm: New file.
22226
22227 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22228
22229         regex: Tweak doc.
22230         * doc/regex.texi (Overview): Don't mention regex.c.
22231         (GNU Regular Expression Compiling): Likewise.
22232         (Match-end-of-line Operator): Mention 'not_eol'.
22233
22234 2010-08-14  Brian Gough  <bjg@gnu.org>
22235             Bruno Haible  <bruno@clisp.org>
22236
22237         git-merge-changelog: add doc relating to use with bzr and hg.
22238         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22239
22240 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22241
22242         pthread: fix pthread.h creation for srcdir != builddir
22243         * modules/pthread (Makefile.am): Fix the rule to work also in a
22244         non-srcdir build.
22245
22246 2010-08-13  Karl Berry  <karl@gnu.org>
22247
22248         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22249         * doc/posix-*/*: force line break before @url of POSIX
22250         specifications.
22251         Suggested by Werner Lemberg.
22252
22253 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22254
22255         strtod: fix const diagnostic
22256         * lib/strtod.c (strtod): Don't assign const char * to char *,
22257         as this elicits a warning from GCC when warnings are enabled.
22258
22259 2010-08-10  Pádraig Brady <P@draigbrady.com>
22260         and Eric Blake  <eblake@redhat.com>
22261
22262         copy-acl: ignore ENOTSUP on HP-UX
22263         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22264         so that it is available for HP-UX.
22265         * lib/copy-acl.c (qcopy_acl): Use it.
22266         Reported by Patrick M. Callahan.
22267
22268 2010-08-10  Eric Blake  <eblake@redhat.com>
22269
22270         open, chown: relax license
22271         * modules/open (License): Change to LGPLv2+, with consent by all
22272         authors, for use in augeas.
22273         * modules/chown (License): Likewise.
22274         * modules/lchown (Likewise): Likewise.
22275         Requested by Adam Stokes.
22276
22277 2010-08-09  Karl Berry  <karl@gnu.org>
22278
22279         * build-aux/ar-lib: new file, import from Automake.
22280         * config/srclist.txt: autocheck for updates.
22281
22282 2010-08-09  Eric Blake  <eblake@redhat.com>
22283
22284         readlinkat: adjust client modules
22285         * modules/areadlinkat (Depends-on): Use readlinkat, not
22286         symlinkat.
22287         * modules/areadlinkat-with-size (Depends-on): Likewise.
22288
22289         mknod: be more vocal about danger of running tests as root
22290         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22291         root, since that is just asking for problems.
22292         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22293
22294         readlinkat: split into its own module
22295         * modules/symlinkat: Split readlinkat...
22296         * modules/readlinkat: ...into separate module.
22297         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22298         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22299         * lib/symlinkat.c (readlinkat): Move...
22300         * lib/readlinkat.c: ...into new file.
22301         * modules/symlinkat-tests: Split readlinkat test...
22302         * modules/readlinkat-tests: ...into separate module.
22303         * tests/test-symlinkat.c: Split...
22304         * tests/test-readlinkat.c: ...into new file.
22305         * NEWS: Document the split.
22306         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22307         * lib/unistd.in.h (readlinkat): Likewise.
22308         Suggested by Bruno Haible.
22309
22310 2010-08-08  Bruno Haible  <bruno@clisp.org>
22311
22312         memxfrm: Speed up.
22313         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22314         that usually only one call to strxfrm is necessary for each string
22315         part.
22316         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22317
22318 2010-08-07  Karl Berry  <karl@gnu.org>
22319
22320         * doc/posix-headers/limits.texi,
22321         * doc/posix-functions/malloc.texi,
22322         * doc/posix-functions/strsignal.texi: missing @item.
22323         * doc/ld-version-script.texi: spurious leading i.
22324         * doc/regex.texi (Interval Operators): no commas inside @var.
22325
22326 2010-08-01  Bruno Haible  <bruno@clisp.org>
22327
22328         Integrate the regex documentation.
22329         * doc/gnulib.texi: Define 'cn' index.
22330         (Regular expressions): New a chapter that includes regex.texi and
22331         regexprops-generic.texi.
22332         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22333         syntax.
22334
22335         Whitespace cleanup.
22336         * doc/regex.texi: Remove trailing spaces.
22337
22338         Add regex documentation.
22339         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22340         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22341         Written by Kathy A. Hargreaves and Karl Berry.
22342
22343 2010-08-01  Bruno Haible  <bruno@clisp.org>
22344
22345         link: Update documentation.
22346         * doc/posix-functions/link.texi: Update regarding Solaris.
22347
22348 2010-07-31  Bruno Haible  <bruno@clisp.org>
22349
22350         Update modules list.
22351         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22352         (String handling <string.h>): Add memcmp2, memxfrm.
22353         (Container data structures): Add xlist, xsublist, xoset.
22354         (Core language properties): Add alignof, unused-parameter.
22355         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22356         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22357         (Unibyte characters <ctype.h>): New section.
22358         (String handling <string.h>): New section.
22359         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22360         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22361         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22362         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22363         tan, tanh, tanl, y0, y1, yn.
22364         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22365         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22366         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22367         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22368         unlockpt, vdprintf, vdprintf-posix.
22369         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22370         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22371         xconcat-filename.
22372         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22373         getdtablesize, pipe2, pipe2-safer.
22374         (Security): New section.
22375         (Networking functions): Add accept4.
22376         (Signal handling): Add sigpipe.
22377         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22378         mbmemcasecoll.
22379         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22380         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22381         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22382         pipe-filter-ii.
22383         (Misc): Add argp-version-etc, login_tty, parse-duration.
22384
22385 2010-07-31  Bruno Haible  <bruno@clisp.org>
22386
22387         Improve doc in MODULES.html.
22388         * modules/linkat (Description): Add the word "function".
22389         * modules/mkfifo (Description): Likewise.
22390         * modules/mknod (Description): Likewise.
22391         * modules/remove (Description): Likewise.
22392         * modules/renameat (Description): Likewise.
22393         * modules/stat (Description): Likewise.
22394         * modules/symlink (Description): Likewise.
22395         * modules/unlink (Description): Likewise.
22396
22397 2010-07-31  Bruno Haible  <bruno@clisp.org>
22398
22399         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22400         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22401         option --enable/disable-c++ instead of --enable/disable-cxx.
22402         * NEWS: Mention the change.
22403
22404 2010-07-31  Bruno Haible  <bruno@clisp.org>
22405
22406         readlink, areadlink: Relax test a bit.
22407         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22408         alternative to ENOTDIR.
22409         * tests/test-areadlink.h (test_areadlink): Likewise.
22410         Reported by Rainer Tammer.
22411
22412 2010-07-31  Bruno Haible  <bruno@clisp.org>
22413
22414         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22415         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22416         character, perform the search using U_STRCHR.
22417         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22418         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22419         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22420         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22421         Suggested by Paolo Bonzini.
22422
22423 2010-07-31  Bruno Haible  <bruno@clisp.org>
22424
22425         unistr/u*-strstr: Fix dependencies.
22426         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22427         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22428         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22429
22430 2010-07-31  Bruno Haible  <bruno@clisp.org>
22431
22432         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22433         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22434         the beginning of the loop.
22435         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22436         cases in 'switch' statement.
22437
22438         unistr/u8-strchr: Fix several bugs.
22439         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22440         the string. When not found, return NULL, not a pointer near the end.
22441
22442         More tests for unistr/u8-strchr.
22443         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22444         that the function does not read past the first occurrence of the byte
22445         being searched.
22446         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22447         * tests/unistr/test-u16-strchr.c (main): New function.
22448         * tests/unistr/test-u32-strchr.c (main): New function.
22449
22450 2010-07-31  Bruno Haible  <bruno@clisp.org>
22451
22452         posix-modules: Ignore backup files of documentation files.
22453         * posix-modules: grep only through files named *.texi.
22454
22455 2010-07-31  Bruno Haible  <bruno@clisp.org>
22456
22457         symlinkat: Fix documentation.
22458         * doc/posix-functions/readlinkat.texi: Fix module name.
22459
22460 2010-07-31  Bruno Haible  <bruno@clisp.org>
22461
22462         fchownat: Replace also when chown has the trailing slash bug.
22463         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22464         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22465         introduced on 2010-04-10.
22466         Reported by Rainer Tammer.
22467
22468 2010-07-31  Bruno Haible  <bruno@clisp.org>
22469
22470         linkat: Work around AIX 7.1 bug.
22471         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22472         whether linkat handles trailing slash correctly. If not, replace linkat
22473         and define LINKAT_TRAILING_SLASH_BUG.
22474         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22475         check whether (fd1,file1) points to a directory if file1 or file2 ends
22476         in a slash. Code taken from lib/link.c.
22477         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22478         Reported by Rainer Tammer.
22479
22480 2010-07-31  Bruno Haible  <bruno@clisp.org>
22481
22482         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22483         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22484         This disables an xlc optimization that was causing wrong test results.
22485         Reported by Rainer Tammer.
22486
22487 2010-07-31  Bruno Haible  <bruno@clisp.org>
22488
22489         iconv: Work around AIX 6.1..7.1 bug.
22490         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22491         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22492         cross-compiling, guess no on all versions of AIX.
22493         Reported by Rainer Tammer.
22494
22495 2010-07-31  Bruno Haible  <bruno@clisp.org>
22496
22497         readlink: Relax test a bit.
22498         * tests/test-readlink.h (test_readlink): Allow different errno value
22499         when readlink is called with a file name that ends in / and refers to
22500         a file.
22501         Suggested by Eric Blake.
22502         Reported by Rainer Tammer.
22503
22504 2010-07-31  Bruno Haible  <bruno@clisp.org>
22505
22506         copysign: Does not require -lm on glibc systems.
22507         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22508         gl_COMMON_DOUBLE_MATHFUNC.
22509         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22510
22511 2010-07-31  Bruno Haible  <bruno@clisp.org>
22512
22513         duplocale: Work around AIX 7.1 bug.
22514         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22515         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22516         * lib/duplocale.c (rpl_duplocale): Update comment.
22517         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22518         Reported by Rainer Tammer.
22519
22520 2010-07-30  Bruno Haible  <bruno@clisp.org>
22521
22522         dirfd: Avoid link error on AIX 7.1.
22523         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22524         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22525         exist, set REPLACE_DIRFD.
22526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22527         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22528         * doc/posix-functions/dirfd.texi: Update.
22529         Reported by Rainer Tammer.
22530
22531 2010-07-30  Eric Blake  <eblake@redhat.com>
22532
22533         strtod: next round of AIX fixes
22534         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22535         exponent.
22536         * tests/test-strtod.c (main): Enhance tests.
22537         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22538         Reported by Rainer Tammer.
22539
22540         futimens: fix configure check
22541         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22542         Reported by Bruno Haible.
22543
22544 2010-07-30  Bruno Haible  <bruno@clisp.org>
22545
22546         getline: Update regarding AIX.
22547         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22548         Reported by Rainer Tammer.
22549
22550 2010-07-30  Bruno Haible  <bruno@clisp.org>
22551
22552         wcwidth: Drop replacement on AIX 7.
22553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22554         AIX 7.
22555         Reported by Rainer Tammer.
22556
22557 2010-07-30  Bruno Haible  <bruno@clisp.org>
22558
22559         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22560         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22561         a 'char *'.
22562         Reported by Rainer Tammer.
22563
22564 2010-07-30  Bruno Haible  <bruno@clisp.org>
22565
22566         unlink: Update regarding AIX.
22567         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22568         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22569         Reported by Rainer Tammer.
22570
22571 2010-07-30  Bruno Haible  <bruno@clisp.org>
22572
22573         symlink: Update regarding AIX.
22574         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22575         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22576         Reported by Rainer Tammer.
22577
22578 2010-07-30  Bruno Haible  <bruno@clisp.org>
22579
22580         strndup: Update regarding AIX.
22581         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22582         AIX 7.
22583         Reported by Rainer Tammer.
22584
22585 2010-07-30  Bruno Haible  <bruno@clisp.org>
22586
22587         stat: Update regarding AIX.
22588         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22589         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22590         Reported by Rainer Tammer.
22591
22592 2010-07-30  Bruno Haible  <bruno@clisp.org>
22593
22594         truncl: Fix autoconf test.
22595         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22596         whether truncl works.
22597         Reported by Rainer Tammer.
22598
22599 2010-07-30  Bruno Haible  <bruno@clisp.org>
22600
22601         round: Update regarding AIX.
22602         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22603         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22604         Reported by Rainer Tammer.
22605
22606 2010-07-30  Bruno Haible  <bruno@clisp.org>
22607
22608         rename: Update regarding AIX.
22609         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22610         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22611         Reported by Rainer Tammer.
22612
22613 2010-07-30  Bruno Haible  <bruno@clisp.org>
22614
22615         printf.m4: Update regarding AIX.
22616         * m4/printf.m4: Update comments regarding AIX.
22617         Reported by Rainer Tammer.
22618
22619 2010-07-30  Bruno Haible  <bruno@clisp.org>
22620
22621         iconv: Update regarding AIX.
22622         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22623         AIX 7.
22624         Reported by Rainer Tammer.
22625
22626 2010-07-30  Bruno Haible  <bruno@clisp.org>
22627
22628         getopt: Update regarding AIX.
22629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22630         no on AIX.
22631         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22632         Reported by Rainer Tammer.
22633
22634 2010-07-30  Bruno Haible  <bruno@clisp.org>
22635
22636         ldexpl; Update regarding AIX.
22637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22638         on AIX 7.
22639         Reported by Rainer Tammer.
22640
22641 2010-07-30  Bruno Haible  <bruno@clisp.org>
22642
22643         frexpl: Update regarding AIX.
22644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22645         on AIX 7.
22646         Reported by Rainer Tammer.
22647
22648 2010-07-30  Bruno Haible  <bruno@clisp.org>
22649
22650         open, fopen: Update regarding AIX.
22651         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22652         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22653         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22654         * doc/posix-functions/fopen.texi: Likewise.
22655         Reported by Rainer Tammer.
22656
22657 2010-07-30  Bruno Haible  <bruno@clisp.org>
22658
22659         chown: Update doc regarding AIX.
22660         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22661         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22662         Reported by Rainer Tammer.
22663
22664 2010-07-30  Eric Blake  <eblake@redhat.com>
22665
22666         strtod: fix bug in replacement function on AIX
22667         * lib/strtod.c (strtod): Special case broken "0x" parse in
22668         underlying strtod.
22669         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22670         * doc/posix-functions/strtod.texi (strtod): Likewise.
22671         Reported by Rainer Tammer.
22672
22673 2010-07-30  Bruno Haible  <bruno@clisp.org>
22674
22675         mbrlen: Fix cross-compilation guess for AIX.
22676         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22677         guess. Leftover from 2008-12-22.
22678
22679 2010-07-30  Bruno Haible  <bruno@clisp.org>
22680
22681         mbrtowc: Fix cross-compilation guess for AIX.
22682         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22683         guess. Leftover from 2008-12-21.
22684
22685 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22686
22687         init.sh: work around trap limitation of some shells
22688         * tests/init.sh (setup_): Move exit trap outside of shell function.
22689
22690 2010-07-29  Eric Blake  <eblake@redhat.com>
22691
22692         strtod: aid debugging
22693         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22694         understanding why strtod is rejected.
22695
22696 2010-07-28  Bruno Haible  <bruno@clisp.org>
22697
22698         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22699         * lib/unistr/u8-chr.c: Include <string.h>.
22700         * tests/unistr/test-u8-chr.c: Likewise.
22701         * tests/unistr/test-u16-chr.c: Likewise.
22702         * tests/unistr/test-u32-chr.c: Likewise.
22703         * tests/unistr/test-u8-strchr.c: Likewise.
22704         * tests/unistr/test-u16-strchr.c: Likewise.
22705         * tests/unistr/test-u32-strchr.c: Likewise.
22706         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22707         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22708         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22709         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22710
22711 2010-07-28  Bruno Haible  <bruno@clisp.org>
22712
22713         Use spaces for indentation, not tabs.
22714         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22715
22716 2010-07-27  Bruno Haible  <bruno@clisp.org>
22717
22718         mbspcasecmp: Fix function specification.
22719         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22720         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22721         Reported by Eric Blake <eblake@redhat.com>.
22722
22723 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22724
22725         timespec: use cast and not conditional, as truncation isn't possible
22726         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22727         instead of a conditional.  Comment about the situation in more detail.
22728         This undoes most of the 2009-10-29 patch.
22729
22730 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22731
22732         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22733         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22734         * lib/unistr/u8-strchr.c: Likewise.
22735         * modules/unistr/u8-chr: Depend on memchr.
22736
22737         unistr/u*-strchr: add tests
22738         * modules/unistr/u8-strchr-tests: New file.
22739         * modules/unistr/u16-strchr-tests: New file.
22740         * modules/unistr/u32-strchr-tests: New file.
22741         * tests/unistr/test-strchr.h: New file.
22742         * tests/unistr/test-u8-strchr.c: New file.
22743         * tests/unistr/test-u16-strchr.c: New file.
22744         * tests/unistr/test-u32-strchr.c: New file.
22745
22746         unistr/u*-chr: test multibyte sequences more
22747         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22748         test vector.
22749         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22750         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22751         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22752
22753         unistr/u*-chr: test multibyte sequences
22754         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22755
22756         unistr/u*-chr: prepare for multibyte tests
22757         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22758         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22759         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22760         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22761         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22762         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22763
22764 2010-07-18  Bruno Haible  <bruno@clisp.org>
22765
22766         unistr/u8-strchr: Optimize non-ASCII argument case.
22767         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22768         because the first byte often matches anyway.
22769         Reported by Pádraig Brady <P@draigbrady.com>.
22770
22771 2010-07-15  Karl Berry  <karl@gnu.org>
22772
22773         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22774
22775 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22776
22777         getcwd: on Solaris, work better if ancestors are inaccessible
22778         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22779         buffer and size, try again with a large buffer.  This works better
22780         on Solaris, since its getcwd succeeds even if the path to the root
22781         is inaccessible, and this is helpful in common cases such as .zfs
22782         hidden directories.  Problem reported by J Chapman Flack in
22783         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22784         Use system getcwd if it's declared, not merely if it's partly
22785         working; use the partly-working test only to avoid needless effort
22786         if the system getcwd fails.
22787         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22788         comment that was already obsolete and is now even more obsolete.
22789         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22790         now might call strdup.
22791
22792 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22793
22794         pthread: Add enough so that coreutils/src/sort.c compiles.
22795         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22796         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22797         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22798         Include <sys/types.h>, in case it defines pthread_t.
22799         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22800         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22801         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22802         (pthread_rwlockattr_t, pthread_spinlock_t):
22803         New typedefs, if HAVE_PTHREAD_T is not defined.
22804         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22805         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22806         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22807         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22808         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22809         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22810         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22811         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22812         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22813         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22814         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22815         New macros.
22816         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22817         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22818         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22819         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22820         (pthread_spin_unlock): New dummy functions.
22821         (pthread_create): Return EAGAIN; don't set errno.
22822         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22823         require AC_C_INLINE.
22824         * modules/pthread (Depends-on): Add sched, time.
22825         (pthread.h): Use AM_V_GEN.
22826
22827 2010-07-13  Bruno Haible  <bruno@clisp.org>
22828
22829         striconveh: Don't malloc memory if the result buffer is sufficient.
22830         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22831         buffer if its size is sufficient.
22832         Reported by Ludovic Courtès <ludo@gnu.org>.
22833
22834 2010-07-13  Bruno Haible  <bruno@clisp.org>
22835
22836         strtod: Add safety check.
22837         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22838
22839 2010-07-12  Bruno Haible  <bruno@clisp.org>
22840
22841         Unify tests that set gl_cv_func_ldexpl_no_libm.
22842         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22843         gl_FUNC_LDEXPL.
22844         (gl_FUNC_LDEXPL): Invoke it.
22845         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22846
22847 2010-07-12  Bruno Haible  <bruno@clisp.org>
22848
22849         Unify tests that set gl_cv_func_ldexp_no_libm.
22850         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22851         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22852         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22853         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22854         * modules/strtod (Files): Add m4/ldexp.m4.
22855
22856 2010-07-12  Bruno Haible  <bruno@clisp.org>
22857
22858         Unify tests that set gl_cv_func_frexpl_no_libm.
22859         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22860         gl_FUNC_FREXPL_NO_LIBM.
22861         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22863
22864 2010-07-12  Bruno Haible  <bruno@clisp.org>
22865
22866         Unify tests that set gl_cv_func_frexp_no_libm.
22867         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22868         gl_FUNC_FREXP_NO_LIBM.
22869         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22870         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22871
22872 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22873
22874         memcoll: clarify sizes versus lengths, document better, and tweak perf
22875         * lib/memcoll.c (strcoll_loop, memcoll0):
22876         Improve quality of descriptive comments.  Name variables
22877         consistently as to whether they are lengths (which do not include
22878         terminating null) versus sizes (which do).
22879         * lib/xmemcoll.c (xmemcoll0): Likewise.
22880         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22881         returned when s1size == 0; this is easier to compile and saves
22882         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22883
22884 2010-07-12  Bruno Haible  <bruno@clisp.org>
22885
22886         Tests for module '_Exit'.
22887         * modules/_Exit-tests: New file.
22888         * tests/test-_Exit.sh: New file.
22889         * tests/test-_Exit.c: New file.
22890
22891         New module '_Exit'.
22892         * lib/stdlib.in.h (__attribute__): New macro.
22893         (_Exit): New declaration.
22894         * lib/_Exit.c: New file.
22895         * m4/_Exit.m4: New file.
22896         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22897         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22898         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22899         * modules/_Exit: New file.
22900         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22901         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22902
22903 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22904
22905         strtod: make it more-accurate typically, and don't require libm
22906         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22907         Include limits.h.  Don't include string.h.
22908         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22909         (locale_isspace): New function, so that no casts are needed to
22910         check whether *s is a space.
22911         (ldexp): Provide an unused dummy if not available.
22912         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22913         (strtod): Use them.  This implementation prefers to use the
22914         underlying strtod if available, falling back on our own code
22915         only to fix known bugs.  This is more likely to produce an
22916         accurate result.  Also, it avoids the use of libm functions.
22917         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22918         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22919         was absent, but it caused a test failure with coreutils.
22920         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22921         with libm.
22922         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22923         * modules/strtod-tests (Makefile.am): Likewise.
22924
22925 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22926             Bruno Haible  <bruno@clisp.org>
22927
22928         unistr/u8-strchr: Optimize ASCII argument case.
22929         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22930
22931 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22932
22933         (x)memcoll: minor tweaks
22934         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22935         is after the type that it qualifies.
22936         (memcoll0): Likewise.
22937         * lib/memcoll.h (memcoll0): Likewise.
22938         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22939         * lib/xmemcoll.h (xmemcoll0): Likewise.
22940         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22941         differs from memcoll in that the NUL byte is part of the argument.
22942         Omit the abort-checks, as performance is a real issue here.  Plus,
22943         the checks were wrong anyway (an off-by-one error).  Omit local
22944         variable 'diff', as it's a bit clearer that way.
22945         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22946         no longer needed.
22947
22948 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22949
22950         (x)memcoll: speedup when input is known to be NUL delimited
22951         * lib/memcoll.c: Include stdlib.
22952         (memcoll0): New function.
22953         (strcoll_loop): New function, refactored for use in both memcoll
22954         and memcoll0.
22955         * lib/memcoll.h (memcoll0): Add prototype.
22956         * lib/xmemcoll.c (xmemcoll0): New function.
22957         (collate_error): New function, refactored for use in both xmemcoll
22958         and xmemcoll0.
22959         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22960         * m4/memcoll.m4: add inline invocation.
22961
22962 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22963
22964         * build-aux/bootstrap: Remove any local translations
22965         from the translation project synchronization directory,
22966         so that local only translations are not distributed.
22967
22968 2010-07-04  Bruno Haible  <bruno@clisp.org>
22969
22970         fsusage: Clarify which code applies to which platforms.
22971         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22972         platform.
22973         * lib/fsusage.c (get_fs_usage): Likewise.
22974
22975 2010-07-04  Bruno Haible  <bruno@clisp.org>
22976
22977         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22978         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22979         Reported by Martin Lambers <marlam@marlam.de>.
22980
22981 2010-07-04  Jim Meyering  <meyering@redhat.com>
22982
22983         hash: once again explicitly disallow insertion of NULL
22984         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22985         inserting a NULL pointer cannot work with these functions.
22986         Add a comment with details.
22987         This reverts part of the 2010-07-01 commit, 5bef1a35
22988         "hash: extend module to deal with non-pointer keys".
22989
22990 2010-07-01  Bruno Haible  <bruno@clisp.org>
22991
22992         stdbool: Update doc.
22993         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22994         Info from Christian Weisgerber <naddy@mips.inka.de>.
22995
22996 2010-07-01  Jim Meyering  <meyering@redhat.com>
22997
22998         hash: extend module to deal with non-pointer keys
22999         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23000         but that allows insertion of non-pointer entries.
23001         Do not disallow an ENTRY value of NULL.
23002         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23003         * lib/hash.h (hash_insert0): Declare.
23004
23005 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23006
23007         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23008         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23009         not present (i.e. with autoconf 2.59 and when using gettextize, not
23010         gnulib), require AC_GNU_SOURCE instead.
23011
23012 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23013
23014         idpriv-drop: Fix tests.
23015         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23016         not to the test-idpriv-droptemp program.
23017
23018 2010-06-29  Bruno Haible  <bruno@clisp.org>
23019
23020         string: Fix syntax error with g++ 2.96.
23021         * lib/string.in.h (__pure__): Remove definition.
23022         (_GL_ATTRIBUTE_PURE): New macro.
23023         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23024         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23025         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23026
23027 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23028
23029         unitypes: Fix bug introduced on 2010-05-18.
23030         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23031
23032 2010-06-22  Eric Blake  <eblake@redhat.com>
23033
23034         memmem: slight optimization
23035         * lib/str-two-way.h (critical_factorization): Update comments.
23036         Reduce work during factorization phase.
23037         Reported by Carlos Bueno <carlos@bueno.org>.
23038
23039 2010-06-21  Bruno Haible  <bruno@clisp.org>
23040
23041         Fix HAVE_CALLOC_POSIX misnomer.
23042         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23043         !HAVE_CALLOC_POSIX.
23044         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23045         HAVE_CALLOC_POSIX.
23046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23047         instead of HAVE_CALLOC_POSIX.
23048         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23049         HAVE_CALLOC_POSIX.
23050
23051         Use modern idiom for calloc() replacement.
23052         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23053         AC_FUNC_CALLOC.
23054         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23055         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23056         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23057         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23058         (gl_REPLACE_CALLOC): New macro.
23059
23060 2010-06-21  Bruno Haible  <bruno@clisp.org>
23061
23062         Fix HAVE_REALLOC_POSIX misnomer.
23063         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23064         !HAVE_REALLOC_POSIX.
23065         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23066         HAVE_REALLOC_POSIX.
23067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23068         instead of HAVE_REALLOC_POSIX.
23069         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23070         HAVE_REALLOC_POSIX.
23071
23072         Use modern idiom for realloc() replacement.
23073         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23074         AC_FUNC_REALLOC.
23075         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23076         Autoconf's AC_FUNC_REALLOC.
23077         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23078         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23079         (gl_REPLACE_REALLOC): New macro.
23080         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23081
23082 2010-06-21  Bruno Haible  <bruno@clisp.org>
23083
23084         Fix HAVE_MALLOC_POSIX misnomer.
23085         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23086         !HAVE_MALLOC_POSIX.
23087         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23088         HAVE_MALLOC_POSIX.
23089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23090         instead of HAVE_MALLOC_POSIX.
23091         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23092         HAVE_MALLOC_POSIX.
23093
23094         Use modern idiom for malloc() replacement.
23095         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23096         AC_FUNC_MALLOC.
23097         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23098         Autoconf's AC_FUNC_MALLOC.
23099         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23100         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23101         (gl_REPLACE_MALLOC): New macro.
23102         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23103
23104 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23105
23106         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23107         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23108         This macro takes 3 arguments, not 4.
23109
23110 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23111
23112         ipv6: fix detection under mingw
23113         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23114         in6_addr.
23115
23116 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23117
23118         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23119         that strtod() works when cross-compiling to a glibc version known
23120         to work.
23121
23122 2010-06-15  Bruno Haible  <bruno@clisp.org>
23123
23124         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23125
23126 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23127
23128         select: Correct timeout.
23129         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23130
23131 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23132
23133         git-version-gen: init shell var to avoid env var influence
23134         * build-aux/git-version-gen (v): Init shell var to empty.
23135
23136 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23137
23138         priv-set: Don't assume that priv.h exists merely because getppriv does.
23139         See Jan Andersen's bug report about AIX 5L in
23140         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23141         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23142         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23143         * lib/priv-set.h: Likewise.
23144         * tests/test-priv-set.c: Likewise.
23145
23146 2010-06-13  Bruno Haible  <bruno@clisp.org>
23147
23148         relocatable: Make it easier to test whether to install wrappers.
23149         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23150         RELOCATABLE_VIA_WRAPPER.
23151
23152 2010-06-13  Bruno Haible  <bruno@clisp.org>
23153
23154         gnulib-tool: Display specified modules and dependencies differently.
23155         * gnulib-tool (func_show_module_list): New function.
23156         (func_import, func_create_testdir): Invoke it.
23157         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23158
23159 2010-06-13  Bruno Haible  <bruno@clisp.org>
23160
23161         gnulib-tool: Align code of func_import and func_create_testdir.
23162         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23163         specified_modules.
23164
23165 2010-06-12  Jim Meyering  <meyering@redhat.com>
23166
23167         test-inttostr: avoid spurious failure on Solaris 9
23168         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23169         to accept "%ju".  Reported by Bruno Haible.
23170
23171 2010-06-11  Jim Meyering  <meyering@redhat.com>
23172
23173         test-sys_socket: mark variables as used more readably
23174         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23175         as "used" explicitly via (void) statement casts.  This is more
23176         readable than using them in an artificial return expression.
23177         Suggestion from Bruno Haible.
23178
23179 2010-06-11  Bruno Haible  <bruno@clisp.org>
23180
23181         Avoid some more warnings from "gcc -Wwrite-strings".
23182         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23183         to 'const char *'.
23184         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23185         * tests/test-c-strcasestr.c (main): Likewise.
23186         * tests/test-mbscasestr1.c (main): Likewise.
23187         * tests/test-mbscasestr2.c (main): Likewise.
23188         * tests/test-memmem.c (main): Likewise.
23189         * tests/test-strstr.c (main): Likewise.
23190         * tests/test-strcasestr.c (main): Likewise.
23191
23192 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23193
23194         init.sh: change framework_failure_ to fail with status 99, not 1
23195         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23196         automake's parallel-tests rule that this is an unexpected failure,
23197         even if the test is listed in XFAIL_TESTS.
23198
23199 2010-06-11  Jim Meyering  <meyering@redhat.com>
23200
23201         test-inttostr: avoid warnings about 4-6KB literal strings
23202         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23203         Include "macros.h", for its definition of ASSERT.
23204         (CK): s/assert/ASSERT/
23205         * modules/inttostr-tests (Files): Add macros.h.
23206
23207         init.sh: don't use $ME_ or skip_ before they are defined
23208         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23209         their first uses.  Also hoist their companions: warn_, fail_,
23210         framework_failure_, $stderr_fileno.  Prompted by a patch from
23211         Stefano Lattarini.
23212
23213         test-sys_socket: avoid set-but-not-used warnings from gcc
23214         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23215         avoid warning about set-but-not-used variables.
23216
23217         test-xvasprintf: avoid 'const' discard warnings
23218         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23219         "const" when assigning from literal strings.
23220         (test_xasprintf): Add "void" in function argument list to placate
23221         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23222
23223         tests: avoid compilation warnings in argmatch and exclude tests...
23224         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23225         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23226         Since it always exits, declare with the "noreturn" attribute.
23227         * tests/test-argmatch.c: Likewise.
23228
23229         tests: avoid 'const' discard warnings in mbsstr tests
23230         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23231         * tests/test-mbsstr2.c (main): Likewise.
23232
23233         test-verify: avoid warning from gcc's -Wmissing-declarations
23234         * tests/test-verify.c (function): Declare to be static.
23235
23236         test-inttostr.c: include <string.h> for use of strcmp
23237         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23238
23239         test-linkat: avoid failed assertion on "other" architectures
23240         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23241         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23242         sparc: https://bugs.launchpad.net/bugs/591968
23243
23244 2010-06-11  Jim Meyering  <meyering@redhat.com>
23245
23246         printf.m4: avoid autoconf's "Expanded Before Required" warning
23247         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23248         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23249         autoconf warning.
23250
23251 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23252
23253         Replacement header templates are now named with ".in", not "_".
23254         * doc/gnulib-intro.texi: Correct.
23255
23256 2010-06-10  Jim Meyering  <meyering@redhat.com>
23257
23258         inttostr-tests: depend on snprintf, not snprintf-posix
23259         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23260         snprintf-posix, to avoid this aclocal failure:
23261           missing file gnulib-tests/vasnprintf.c
23262           configure.ac:45: error: expected source file, required through \
23263           AC_LIBSOURCES, not found
23264
23265 2010-06-10  Jim Meyering  <meyering@redhat.com>
23266
23267         inttostr: add a new function, inttostr, and tests
23268         The namesake function was not available.  The existence of the
23269         template file, inttostr.c makes its addition nontrivial.
23270         * lib/anytostr.c: Rename from inttostr.c.
23271         (anytostr): Rename from inttostr.
23272         * lib/inttostr.c: New file.
23273         * modules/inttostr (Files): Add anytostr.c.
23274         (Makefile.am): Set lib_SOURCES instead of ...
23275         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23276         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23277         * lib/offtostr.c: Likewise.
23278         * lib/uinttostr.c: Likewise.
23279         * lib/umaxtostr.c: Likewise.
23280         * modules/inttostr-tests: New file.
23281         * tests/test-inttostr.c: New file.  Test these functions.
23282
23283 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23284             Bruno Haible  <bruno@clisp.org>
23285
23286         Add "Extending Gnulib" chapter to manual.
23287         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23288         chapter.
23289         (Extending Gnulib): New chapter.
23290         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23291         chapter.
23292
23293 2010-06-09  Bruno Haible  <bruno@clisp.org>
23294
23295         Avoid relocwrapper link errors due to gnulib replacement functions.
23296         * lib/areadlink.c: Use the system's malloc, realloc functions.
23297         (areadlink): Set errno to ENOMEM explicitly.
23298         * modules/areadlink (Depends-on): Remove malloc-posix.
23299         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23300
23301 2010-06-09  Bruno Haible  <bruno@clisp.org>
23302
23303         Avoid relocwrapper link errors due to gnulib replacement functions.
23304         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23305         * lib/malloca.c: Likewise.
23306         * lib/relocatable.c: Likewise.
23307         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23308         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23309         * lib/setenv.c: Use the system's malloc, realloc functions.
23310         * lib/strerror.c: Use the system's sprintf function.
23311         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23312
23313 2010-06-04  Bruno Haible  <bruno@clisp.org>
23314
23315         Prefer documented low-level autoconf macro names.
23316         * m4/lib-link.m4: Use m4_translit instead of translit.
23317         * m4/environ.m4: Likewise.
23318         * m4/mathfunc.m4: Likewise.
23319         * m4/onceonly.m4: Likewise.
23320         * m4/stdint.m4: Likewise.
23321         Suggested by Eric Blake.
23322
23323 2010-06-04  Martin Lambers  <marlam@marlam.de>
23324             Bruno Haible  <bruno@clisp.org>
23325
23326         havelib: Allow library names with '+' characters.
23327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23328         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23329
23330 2010-06-09  Bruno Haible  <bruno@clisp.org>
23331
23332         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23333         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23334         realloc failed.
23335
23336 2010-06-08  Peter Simons  <simons@cryp.to>
23337
23338         maint.mk: make the news-check rule more configurable
23339         * top/maint.mk (news-check-lines-spec): New variable.
23340         (news-check): Use "sed -n 1,10p" in place of "head".
23341
23342 2010-06-07  Jim Meyering  <meyering@redhat.com>
23343
23344         do-release-commit-and-tag: fix typo in --help
23345         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23346
23347         regex: avoid new dead-code warning with gcc-4.6.0
23348         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23349         if-block containing a while-loop.  It's been unused for at least
23350         5 years.
23351
23352 2010-06-05  Bruno Haible  <bruno@clisp.org>
23353
23354         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23355         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23356
23357 2010-06-04  Bruno Haible  <bruno@clisp.org>
23358
23359         Update to GNU gettext 0.18.1.
23360         * modules/gettext (configure.ac): Require gettext infrastructure from
23361         version 0.18.1.
23362
23363 2010-06-03  Bruno Haible  <bruno@clisp.org>
23364
23365         Don't use AC_LIBOBJ with file names in subdirectories.
23366         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23367         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23368         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23369         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23370         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23371         gl_LIBUNISTRING_LIBSOURCE.
23372         (Makefile.am): Augment lib_SOURCES here, conditionally.
23373         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23374
23375 2010-06-03  Bruno Haible  <bruno@clisp.org>
23376
23377         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23378         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23379         expansion does not end with a newline.
23380         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23381         unnecessary newline.
23382
23383 2010-06-03  Bruno Haible  <bruno@clisp.org>
23384
23385         Reduce dependencies.
23386         * tests/test-quotearg.h: New file, extracted from
23387         tests/test-quotearg.c.
23388         * tests/test-quotearg-simple.c: New file, extracted from
23389         tests/test-quotearg.c.
23390         * tests/test-quotearg.c: Don't include <ctype.h>.
23391         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23392         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23393         use_quote_double_quotes, use_quotearg_colon): Moved to
23394         tests/test-quotearg.h.
23395         (results_g, flag_results, custom_quotes, custom_results): Moved
23396         to tests/test-quotearg-simple.c.
23397         (main): Moved the part that does not depend on gettext to
23398         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23399         performed.
23400         * modules/quotearg-simple: New file.
23401         * modules/quotearg-simple-tests: New file.
23402         * modules/quotearg (Depends-on): Add quotearg-simple.
23403         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23404         (Files): Add tests/test-quotearg.h.
23405         Reported by Paolo Bonzini.
23406
23407 2010-06-03  Bruno Haible  <bruno@clisp.org>
23408
23409         Reduce dependencies.
23410         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23411
23412 2010-06-03  Bruno Haible  <bruno@clisp.org>
23413
23414         time: Undefine more broken macros.
23415         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23416         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23417         Reported by Eric Blake.
23418
23419 2010-06-03  Bruno Haible  <bruno@clisp.org>
23420
23421         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23422         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23423         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23424         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23425         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23426         Reported by Ludovic Courtès <ludo@gnu.org>.
23427
23428 2010-06-02  Eric Blake  <eblake@redhat.com>
23429
23430         time: work with mingw + pthreads-win32 library
23431         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23432         if timespec is defined only in pthread.h.
23433         * modules/time (Makefile.am): Substitute it.
23434         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23435         <pthread.h>, when needed.
23436         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23437         from the library.
23438
23439 2010-05-31  Bruno Haible  <bruno@clisp.org>
23440
23441         Avoid expanding two macros in the wrong order.
23442         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23443         gl_LIBUNISTRING if it is defined.
23444         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23445         autoconf >= 2.64.
23446         Reported by Ludovic Courtès <ludo@gnu.org>.
23447
23448 2010-05-27  Jim Meyering  <meyering@redhat.com>
23449
23450         maint.mk: also prohibit "#undef" of always-defined symbols
23451         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23452         Allow more than one space before the symbol name.
23453         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23454         the regexp uses alternation.
23455
23456 2010-05-26  Eric Blake  <eblake@redhat.com>
23457
23458         maint.mk: avoid echo -e
23459         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23460         Convert all uses of echo -* to printf.
23461         Reported by Matthias Bolte.
23462
23463 2010-05-25  Bruno Haible  <bruno@clisp.org>
23464
23465         Update to GNU gettext 0.18, part 2.
23466         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23467         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23468
23469 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23470
23471         Add missing include in test-pwrite.c.
23472         * tests/test-pwrite.c: Include string.h, for strcmp.
23473
23474 2010-05-24  Bruno Haible  <bruno@clisp.org>
23475
23476         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23477
23478 2010-05-24  Bruno Haible  <bruno@clisp.org>
23479
23480         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23481         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23482         iconveh_error argument.
23483         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23484         U_STRCONV_TO_LOCALE.
23485         * lib/unistr/u16-strcoll.c: Likewise.
23486         * lib/unistr/u32-strcoll.c: Likewise.
23487         * modules/unistr/u8-strcoll (Depends-on): Add
23488         uniconv/u8-strconv-to-enc, localcharset. Remove
23489         uniconv/u8-strconv-to-locale.
23490         (configure.ac): Bump version number.
23491         * modules/unistr/u16-strcoll (Depends-on): Add
23492         uniconv/u16-strconv-to-enc, localcharset. Remove
23493         uniconv/u16-strconv-to-locale.
23494         (configure.ac): Bump version number.
23495         * modules/unistr/u32-strcoll (Depends-on): Add
23496         uniconv/u32-strconv-to-enc, localcharset. Remove
23497         uniconv/u32-strconv-to-locale.
23498         (configure.ac): Bump version number.
23499
23500 2010-05-24  Bruno Haible  <bruno@clisp.org>
23501
23502         Avoid a test failure on NetBSD 5.0.
23503         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23504         an iconv() bug.
23505
23506 2010-05-24  Bruno Haible  <bruno@clisp.org>
23507
23508         Adjust #include directive style.
23509         * modules/regex (Includes): Recommend to write <regex.h>.
23510
23511 2010-05-24  Bruno Haible  <bruno@clisp.org>
23512
23513         regex: Don't require alloca.
23514         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23515         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23516         only inside if (0).
23517
23518 2010-05-23  Jim Meyering  <meyering@redhat.com>
23519
23520         test-renameat.c: include <sys/stat.h>
23521         * tests/test-renameat.c: Include <sys/stat.h>; required for
23522         definition of S_IS* macros.
23523
23524 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23525
23526         Update maintainer documentation for 'relocatable-prog' module.
23527         * doc/relocatable-maint.texi: Update.
23528         Comments by Bruno Haible.
23529
23530 2010-05-23  Bruno Haible  <bruno@clisp.org>
23531
23532         git-merge-changelog: Enable --split-merged-entry by default.
23533         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23534         (usage): Don't mention this option any more.
23535         Reported by Ralf Wildenhues.
23536
23537 2010-05-23  Jim Meyering  <meyering@redhat.com>
23538
23539         test-pwrite: do not leave behind a test file named "out"
23540         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23541         The trivial-looking use of init.sh is really necessary.
23542         It ensures that the temporary file, "out", is created in
23543         a temporary directory, and removed upon termination.
23544         * tests/test-pwrite.sh: Re-add file.
23545         * modules/pwrite-tests: Reference it.
23546
23547 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23548
23549         Fix output redirection buglet in init.sh.
23550         * tests/init.sh: Fix redirection of stderr.
23551
23552 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23553
23554         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23555
23556 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23557
23558         * modules/valgrind-tests: New file.
23559         * m4/valgrind-tests.m4: New file.
23560         * doc/valgrind-tests.texi: New file.
23561         * doc/gnulib.texi (Running self-tests under valgrind): New
23562         section.
23563
23564 2010-05-19  Bruno Haible  <bruno@clisp.org>
23565
23566         Clean up dead code in recent commit.
23567         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23568         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23569         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23570         Suggested by Paolo Bonzini.
23571
23572 2010-05-19  Bruno Haible  <bruno@clisp.org>
23573
23574         Avoid valgrind error reports from libunistring.
23575         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23576         * modules/libunistring (Files): Add it.
23577         * modules/libunistring-optional (Files): Likewise.
23578
23579 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23580             Bruno Haible  <bruno@clisp.org>
23581
23582         New module 'libunistring-optional'.
23583         * modules/libunistring-optional: New file.
23584         * m4/libunistring-base.m4: New file.
23585         * m4/libunistring-optional.m4: New file.
23586         * lib/unicase.in.h: Renamed from lib/unicase.h.
23587         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23588         * lib/unictype.in.h: Renamed from lib/unictype.h.
23589         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23590         * lib/uniname.in.h: Renamed from lib/uniname.h.
23591         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23592         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23593         * lib/unistr.in.h: Renamed from lib/unistr.h.
23594         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23595         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23596         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23597         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23598         gl_LIBUNISTRING. If the library was found, determine the installed
23599         version and set LIBUNISTRING_VERSION.
23600         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23601         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23602         handle a configuration option --with-included-libunistring.
23603         * modules/libunistring (Files): Add m4/absolute-header.m4.
23604         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23605         Add m4/libunistring-base.m4.
23606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23607         (Makefile.am): Build unicase.h from unicase.in.h.
23608         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23609         Add m4/libunistring-base.m4.
23610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23611         (Makefile.am): Build uniconv.h from uniconv.in.h.
23612         * modules/unictype/base (Files): Use unictype.in.h instead of
23613         unictype.h. Add m4/libunistring-base.m4.
23614         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23615         (Makefile.am): Build unictype.h from unictype.in.h.
23616         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23617         Add m4/libunistring-base.m4.
23618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23619         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23620         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23621         Add m4/libunistring-base.m4.
23622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23623         (Makefile.am): Build uniname.h from uniname.in.h.
23624         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23625         Add m4/libunistring-base.m4.
23626         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23627         (Makefile.am): Build uninorm.h from uninorm.in.h.
23628         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23629         unistdio.h. Add m4/libunistring-base.m4.
23630         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23631         (Makefile.am): Build unistdio.h from unistdio.in.h.
23632         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23633         Add m4/libunistring-base.m4.
23634         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23635         (Makefile.am): Build unistr.h from unistr.in.h.
23636         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23637         Add m4/libunistring-base.m4.
23638         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23639         (Makefile.am): Build unitypes.h from unitypes.in.h.
23640         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23641         Add m4/libunistring-base.m4.
23642         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23643         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23644         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23645         uniwidth.h. Add m4/libunistring-base.m4.
23646         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23647         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23648         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23649         instead of augmenting lib_SOURCES.
23650         * modules/unicase/empty-suffix-context: Likewise.
23651         * modules/unicase/locale-language: Likewise.
23652         * modules/unicase/tolower: Likewise.
23653         * modules/unicase/totitle: Likewise.
23654         * modules/unicase/toupper: Likewise.
23655         * modules/unicase/u8-casecmp: Likewise.
23656         * modules/unicase/u8-casecoll: Likewise.
23657         * modules/unicase/u8-casefold: Likewise.
23658         * modules/unicase/u8-casexfrm: Likewise.
23659         * modules/unicase/u8-ct-casefold: Likewise.
23660         * modules/unicase/u8-ct-tolower: Likewise.
23661         * modules/unicase/u8-ct-totitle: Likewise.
23662         * modules/unicase/u8-ct-toupper: Likewise.
23663         * modules/unicase/u8-is-cased: Likewise.
23664         * modules/unicase/u8-is-casefolded: Likewise.
23665         * modules/unicase/u8-is-lowercase: Likewise.
23666         * modules/unicase/u8-is-titlecase: Likewise.
23667         * modules/unicase/u8-is-uppercase: Likewise.
23668         * modules/unicase/u8-prefix-context: Likewise.
23669         * modules/unicase/u8-suffix-context: Likewise.
23670         * modules/unicase/u8-tolower: Likewise.
23671         * modules/unicase/u8-totitle: Likewise.
23672         * modules/unicase/u8-toupper: Likewise.
23673         * modules/unicase/u16-casecmp: Likewise.
23674         * modules/unicase/u16-casecoll: Likewise.
23675         * modules/unicase/u16-casefold: Likewise.
23676         * modules/unicase/u16-casexfrm: Likewise.
23677         * modules/unicase/u16-ct-casefold: Likewise.
23678         * modules/unicase/u16-ct-tolower: Likewise.
23679         * modules/unicase/u16-ct-totitle: Likewise.
23680         * modules/unicase/u16-ct-toupper: Likewise.
23681         * modules/unicase/u16-is-cased: Likewise.
23682         * modules/unicase/u16-is-casefolded: Likewise.
23683         * modules/unicase/u16-is-lowercase: Likewise.
23684         * modules/unicase/u16-is-titlecase: Likewise.
23685         * modules/unicase/u16-is-uppercase: Likewise.
23686         * modules/unicase/u16-prefix-context: Likewise.
23687         * modules/unicase/u16-suffix-context: Likewise.
23688         * modules/unicase/u16-tolower: Likewise.
23689         * modules/unicase/u16-totitle: Likewise.
23690         * modules/unicase/u16-toupper: Likewise.
23691         * modules/unicase/u32-casecmp: Likewise.
23692         * modules/unicase/u32-casecoll: Likewise.
23693         * modules/unicase/u32-casefold: Likewise.
23694         * modules/unicase/u32-casexfrm: Likewise.
23695         * modules/unicase/u32-ct-casefold: Likewise.
23696         * modules/unicase/u32-ct-tolower: Likewise.
23697         * modules/unicase/u32-ct-totitle: Likewise.
23698         * modules/unicase/u32-ct-toupper: Likewise.
23699         * modules/unicase/u32-is-cased: Likewise.
23700         * modules/unicase/u32-is-casefolded: Likewise.
23701         * modules/unicase/u32-is-lowercase: Likewise.
23702         * modules/unicase/u32-is-titlecase: Likewise.
23703         * modules/unicase/u32-is-uppercase: Likewise.
23704         * modules/unicase/u32-prefix-context: Likewise.
23705         * modules/unicase/u32-suffix-context: Likewise.
23706         * modules/unicase/u32-tolower: Likewise.
23707         * modules/unicase/u32-totitle: Likewise.
23708         * modules/unicase/u32-toupper: Likewise.
23709         * modules/unicase/ulc-casecmp: Likewise.
23710         * modules/unicase/ulc-casecoll: Likewise.
23711         * modules/unicase/ulc-casexfrm: Likewise.
23712         * modules/uniconv/u8-conv-from-enc: Likewise.
23713         * modules/uniconv/u8-conv-to-enc: Likewise.
23714         * modules/uniconv/u8-strconv-from-enc: Likewise.
23715         * modules/uniconv/u8-strconv-from-locale: Likewise.
23716         * modules/uniconv/u8-strconv-to-enc: Likewise.
23717         * modules/uniconv/u8-strconv-to-locale: Likewise.
23718         * modules/uniconv/u16-conv-from-enc: Likewise.
23719         * modules/uniconv/u16-conv-to-enc: Likewise.
23720         * modules/uniconv/u16-strconv-from-enc: Likewise.
23721         * modules/uniconv/u16-strconv-from-locale: Likewise.
23722         * modules/uniconv/u16-strconv-to-enc: Likewise.
23723         * modules/uniconv/u16-strconv-to-locale: Likewise.
23724         * modules/uniconv/u32-conv-from-enc: Likewise.
23725         * modules/uniconv/u32-conv-to-enc: Likewise.
23726         * modules/uniconv/u32-strconv-from-enc: Likewise.
23727         * modules/uniconv/u32-strconv-from-locale: Likewise.
23728         * modules/uniconv/u32-strconv-to-enc: Likewise.
23729         * modules/uniconv/u32-strconv-to-locale: Likewise.
23730         * modules/unictype/bidicategory-byname: Likewise.
23731         * modules/unictype/bidicategory-name: Likewise.
23732         * modules/unictype/bidicategory-of: Likewise.
23733         * modules/unictype/bidicategory-test: Likewise.
23734         * modules/unictype/block-list: Likewise.
23735         * modules/unictype/block-test: Likewise.
23736         * modules/unictype/category-C: Likewise.
23737         * modules/unictype/category-Cc: Likewise.
23738         * modules/unictype/category-Cf: Likewise.
23739         * modules/unictype/category-Cn: Likewise.
23740         * modules/unictype/category-Co: Likewise.
23741         * modules/unictype/category-Cs: Likewise.
23742         * modules/unictype/category-L: Likewise.
23743         * modules/unictype/category-Ll: Likewise.
23744         * modules/unictype/category-Lm: Likewise.
23745         * modules/unictype/category-Lo: Likewise.
23746         * modules/unictype/category-Lt: Likewise.
23747         * modules/unictype/category-Lu: Likewise.
23748         * modules/unictype/category-M: Likewise.
23749         * modules/unictype/category-Mc: Likewise.
23750         * modules/unictype/category-Me: Likewise.
23751         * modules/unictype/category-Mn: Likewise.
23752         * modules/unictype/category-N: Likewise.
23753         * modules/unictype/category-Nd: Likewise.
23754         * modules/unictype/category-Nl: Likewise.
23755         * modules/unictype/category-No: Likewise.
23756         * modules/unictype/category-P: Likewise.
23757         * modules/unictype/category-Pc: Likewise.
23758         * modules/unictype/category-Pd: Likewise.
23759         * modules/unictype/category-Pe: Likewise.
23760         * modules/unictype/category-Pf: Likewise.
23761         * modules/unictype/category-Pi: Likewise.
23762         * modules/unictype/category-Po: Likewise.
23763         * modules/unictype/category-Ps: Likewise.
23764         * modules/unictype/category-S: Likewise.
23765         * modules/unictype/category-Sc: Likewise.
23766         * modules/unictype/category-Sk: Likewise.
23767         * modules/unictype/category-Sm: Likewise.
23768         * modules/unictype/category-So: Likewise.
23769         * modules/unictype/category-Z: Likewise.
23770         * modules/unictype/category-Zl: Likewise.
23771         * modules/unictype/category-Zp: Likewise.
23772         * modules/unictype/category-Zs: Likewise.
23773         * modules/unictype/category-and: Likewise.
23774         * modules/unictype/category-and-not: Likewise.
23775         * modules/unictype/category-byname: Likewise.
23776         * modules/unictype/category-name: Likewise.
23777         * modules/unictype/category-none: Likewise.
23778         * modules/unictype/category-of: Likewise.
23779         * modules/unictype/category-or: Likewise.
23780         * modules/unictype/category-test: Likewise.
23781         * modules/unictype/combining-class: Likewise.
23782         * modules/unictype/ctype-alnum: Likewise.
23783         * modules/unictype/ctype-alpha: Likewise.
23784         * modules/unictype/ctype-blank: Likewise.
23785         * modules/unictype/ctype-cntrl: Likewise.
23786         * modules/unictype/ctype-digit: Likewise.
23787         * modules/unictype/ctype-graph: Likewise.
23788         * modules/unictype/ctype-lower: Likewise.
23789         * modules/unictype/ctype-print: Likewise.
23790         * modules/unictype/ctype-punct: Likewise.
23791         * modules/unictype/ctype-space: Likewise.
23792         * modules/unictype/ctype-upper: Likewise.
23793         * modules/unictype/ctype-xdigit: Likewise.
23794         * modules/unictype/decimal-digit: Likewise.
23795         * modules/unictype/digit: Likewise.
23796         * modules/unictype/mirror: Likewise.
23797         * modules/unictype/numeric: Likewise.
23798         * modules/unictype/property-alphabetic: Likewise.
23799         * modules/unictype/property-ascii-hex-digit: Likewise.
23800         * modules/unictype/property-bidi-arabic-digit: Likewise.
23801         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23802         * modules/unictype/property-bidi-block-separator: Likewise.
23803         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23804         * modules/unictype/property-bidi-common-separator: Likewise.
23805         * modules/unictype/property-bidi-control: Likewise.
23806         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23807         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23808         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23809         * modules/unictype/property-bidi-european-digit: Likewise.
23810         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23811         * modules/unictype/property-bidi-left-to-right: Likewise.
23812         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23813         * modules/unictype/property-bidi-other-neutral: Likewise.
23814         * modules/unictype/property-bidi-pdf: Likewise.
23815         * modules/unictype/property-bidi-segment-separator: Likewise.
23816         * modules/unictype/property-bidi-whitespace: Likewise.
23817         * modules/unictype/property-byname: Likewise.
23818         * modules/unictype/property-combining: Likewise.
23819         * modules/unictype/property-composite: Likewise.
23820         * modules/unictype/property-currency-symbol: Likewise.
23821         * modules/unictype/property-dash: Likewise.
23822         * modules/unictype/property-decimal-digit: Likewise.
23823         * modules/unictype/property-default-ignorable-code-point: Likewise.
23824         * modules/unictype/property-deprecated: Likewise.
23825         * modules/unictype/property-diacritic: Likewise.
23826         * modules/unictype/property-extender: Likewise.
23827         * modules/unictype/property-format-control: Likewise.
23828         * modules/unictype/property-grapheme-base: Likewise.
23829         * modules/unictype/property-grapheme-extend: Likewise.
23830         * modules/unictype/property-grapheme-link: Likewise.
23831         * modules/unictype/property-hex-digit: Likewise.
23832         * modules/unictype/property-hyphen: Likewise.
23833         * modules/unictype/property-id-continue: Likewise.
23834         * modules/unictype/property-id-start: Likewise.
23835         * modules/unictype/property-ideographic: Likewise.
23836         * modules/unictype/property-ids-binary-operator: Likewise.
23837         * modules/unictype/property-ids-trinary-operator: Likewise.
23838         * modules/unictype/property-ignorable-control: Likewise.
23839         * modules/unictype/property-iso-control: Likewise.
23840         * modules/unictype/property-join-control: Likewise.
23841         * modules/unictype/property-left-of-pair: Likewise.
23842         * modules/unictype/property-line-separator: Likewise.
23843         * modules/unictype/property-logical-order-exception: Likewise.
23844         * modules/unictype/property-lowercase: Likewise.
23845         * modules/unictype/property-math: Likewise.
23846         * modules/unictype/property-non-break: Likewise.
23847         * modules/unictype/property-not-a-character: Likewise.
23848         * modules/unictype/property-numeric: Likewise.
23849         * modules/unictype/property-other-alphabetic: Likewise.
23850         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23851         * modules/unictype/property-other-grapheme-extend: Likewise.
23852         * modules/unictype/property-other-id-continue: Likewise.
23853         * modules/unictype/property-other-id-start: Likewise.
23854         * modules/unictype/property-other-lowercase: Likewise.
23855         * modules/unictype/property-other-math: Likewise.
23856         * modules/unictype/property-other-uppercase: Likewise.
23857         * modules/unictype/property-paired-punctuation: Likewise.
23858         * modules/unictype/property-paragraph-separator: Likewise.
23859         * modules/unictype/property-pattern-syntax: Likewise.
23860         * modules/unictype/property-pattern-white-space: Likewise.
23861         * modules/unictype/property-private-use: Likewise.
23862         * modules/unictype/property-punctuation: Likewise.
23863         * modules/unictype/property-quotation-mark: Likewise.
23864         * modules/unictype/property-radical: Likewise.
23865         * modules/unictype/property-sentence-terminal: Likewise.
23866         * modules/unictype/property-soft-dotted: Likewise.
23867         * modules/unictype/property-space: Likewise.
23868         * modules/unictype/property-terminal-punctuation: Likewise.
23869         * modules/unictype/property-test: Likewise.
23870         * modules/unictype/property-titlecase: Likewise.
23871         * modules/unictype/property-unassigned-code-value: Likewise.
23872         * modules/unictype/property-unified-ideograph: Likewise.
23873         * modules/unictype/property-uppercase: Likewise.
23874         * modules/unictype/property-variation-selector: Likewise.
23875         * modules/unictype/property-white-space: Likewise.
23876         * modules/unictype/property-xid-continue: Likewise.
23877         * modules/unictype/property-xid-start: Likewise.
23878         * modules/unictype/property-zero-width: Likewise.
23879         * modules/unictype/scripts: Likewise.
23880         * modules/unictype/syntax-c-ident: Likewise.
23881         * modules/unictype/syntax-c-whitespace: Likewise.
23882         * modules/unictype/syntax-java-ident: Likewise.
23883         * modules/unictype/syntax-java-whitespace: Likewise.
23884         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23885         * modules/unilbrk/u8-width-linebreaks: Likewise.
23886         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23887         * modules/unilbrk/u16-width-linebreaks: Likewise.
23888         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23889         * modules/unilbrk/u32-width-linebreaks: Likewise.
23890         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23891         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23892         * modules/uniname/uniname: Likewise.
23893         * modules/uninorm/canonical-decomposition: Likewise.
23894         * modules/uninorm/composition: Likewise.
23895         * modules/uninorm/decomposing-form: Likewise.
23896         * modules/uninorm/decomposition: Likewise.
23897         * modules/uninorm/filter: Likewise.
23898         * modules/uninorm/nfc: Likewise.
23899         * modules/uninorm/nfd: Likewise.
23900         * modules/uninorm/nfkc: Likewise.
23901         * modules/uninorm/nfkd: Likewise.
23902         * modules/uninorm/u8-normalize: Likewise.
23903         * modules/uninorm/u8-normcmp: Likewise.
23904         * modules/uninorm/u8-normcoll: Likewise.
23905         * modules/uninorm/u8-normxfrm: Likewise.
23906         * modules/uninorm/u16-normalize: Likewise.
23907         * modules/uninorm/u16-normcmp: Likewise.
23908         * modules/uninorm/u16-normcoll: Likewise.
23909         * modules/uninorm/u16-normxfrm: Likewise.
23910         * modules/uninorm/u32-normalize: Likewise.
23911         * modules/uninorm/u32-normcmp: Likewise.
23912         * modules/uninorm/u32-normcoll: Likewise.
23913         * modules/uninorm/u32-normxfrm: Likewise.
23914         * modules/unistdio/u8-asnprintf: Likewise.
23915         * modules/unistdio/u8-asprintf: Likewise.
23916         * modules/unistdio/u8-snprintf: Likewise.
23917         * modules/unistdio/u8-sprintf: Likewise.
23918         * modules/unistdio/u8-u8-asnprintf: Likewise.
23919         * modules/unistdio/u8-u8-asprintf: Likewise.
23920         * modules/unistdio/u8-u8-snprintf: Likewise.
23921         * modules/unistdio/u8-u8-sprintf: Likewise.
23922         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23923         * modules/unistdio/u8-u8-vasprintf: Likewise.
23924         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23925         * modules/unistdio/u8-u8-vsprintf: Likewise.
23926         * modules/unistdio/u8-vasnprintf: Likewise.
23927         * modules/unistdio/u8-vasprintf: Likewise.
23928         * modules/unistdio/u8-vsnprintf: Likewise.
23929         * modules/unistdio/u8-vsprintf: Likewise.
23930         * modules/unistdio/u16-asnprintf: Likewise.
23931         * modules/unistdio/u16-asprintf: Likewise.
23932         * modules/unistdio/u16-snprintf: Likewise.
23933         * modules/unistdio/u16-sprintf: Likewise.
23934         * modules/unistdio/u16-u16-asnprintf: Likewise.
23935         * modules/unistdio/u16-u16-asprintf: Likewise.
23936         * modules/unistdio/u16-u16-snprintf: Likewise.
23937         * modules/unistdio/u16-u16-sprintf: Likewise.
23938         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23939         * modules/unistdio/u16-u16-vasprintf: Likewise.
23940         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23941         * modules/unistdio/u16-u16-vsprintf: Likewise.
23942         * modules/unistdio/u16-vasnprintf: Likewise.
23943         * modules/unistdio/u16-vasprintf: Likewise.
23944         * modules/unistdio/u16-vsnprintf: Likewise.
23945         * modules/unistdio/u16-vsprintf: Likewise.
23946         * modules/unistdio/u32-asnprintf: Likewise.
23947         * modules/unistdio/u32-asprintf: Likewise.
23948         * modules/unistdio/u32-snprintf: Likewise.
23949         * modules/unistdio/u32-sprintf: Likewise.
23950         * modules/unistdio/u32-u32-asnprintf: Likewise.
23951         * modules/unistdio/u32-u32-asprintf: Likewise.
23952         * modules/unistdio/u32-u32-snprintf: Likewise.
23953         * modules/unistdio/u32-u32-sprintf: Likewise.
23954         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23955         * modules/unistdio/u32-u32-vasprintf: Likewise.
23956         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23957         * modules/unistdio/u32-u32-vsprintf: Likewise.
23958         * modules/unistdio/u32-vasnprintf: Likewise.
23959         * modules/unistdio/u32-vasprintf: Likewise.
23960         * modules/unistdio/u32-vsnprintf: Likewise.
23961         * modules/unistdio/u32-vsprintf: Likewise.
23962         * modules/unistdio/ulc-asnprintf: Likewise.
23963         * modules/unistdio/ulc-asprintf: Likewise.
23964         * modules/unistdio/ulc-fprintf: Likewise.
23965         * modules/unistdio/ulc-snprintf: Likewise.
23966         * modules/unistdio/ulc-sprintf: Likewise.
23967         * modules/unistdio/ulc-vasnprintf: Likewise.
23968         * modules/unistdio/ulc-vasprintf: Likewise.
23969         * modules/unistdio/ulc-vfprintf: Likewise.
23970         * modules/unistdio/ulc-vsnprintf: Likewise.
23971         * modules/unistdio/ulc-vsprintf: Likewise.
23972         * modules/unistr/u8-check: Likewise.
23973         * modules/unistr/u8-chr: Likewise.
23974         * modules/unistr/u8-cmp: Likewise.
23975         * modules/unistr/u8-cmp2: Likewise.
23976         * modules/unistr/u8-cpy: Likewise.
23977         * modules/unistr/u8-cpy-alloc: Likewise.
23978         * modules/unistr/u8-endswith: Likewise.
23979         * modules/unistr/u8-mblen: Likewise.
23980         * modules/unistr/u8-mbsnlen: Likewise.
23981         * modules/unistr/u8-mbtouc: Likewise.
23982         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23983         * modules/unistr/u8-mbtoucr: Likewise.
23984         * modules/unistr/u8-move: Likewise.
23985         * modules/unistr/u8-next: Likewise.
23986         * modules/unistr/u8-prev: Likewise.
23987         * modules/unistr/u8-set: Likewise.
23988         * modules/unistr/u8-startswith: Likewise.
23989         * modules/unistr/u8-stpcpy: Likewise.
23990         * modules/unistr/u8-stpncpy: Likewise.
23991         * modules/unistr/u8-strcat: Likewise.
23992         * modules/unistr/u8-strchr: Likewise.
23993         * modules/unistr/u8-strcmp: Likewise.
23994         * modules/unistr/u8-strcoll: Likewise.
23995         * modules/unistr/u8-strcpy: Likewise.
23996         * modules/unistr/u8-strcspn: Likewise.
23997         * modules/unistr/u8-strdup: Likewise.
23998         * modules/unistr/u8-strlen: Likewise.
23999         * modules/unistr/u8-strmblen: Likewise.
24000         * modules/unistr/u8-strmbtouc: Likewise.
24001         * modules/unistr/u8-strncat: Likewise.
24002         * modules/unistr/u8-strncmp: Likewise.
24003         * modules/unistr/u8-strncpy: Likewise.
24004         * modules/unistr/u8-strnlen: Likewise.
24005         * modules/unistr/u8-strpbrk: Likewise.
24006         * modules/unistr/u8-strrchr: Likewise.
24007         * modules/unistr/u8-strspn: Likewise.
24008         * modules/unistr/u8-strstr: Likewise.
24009         * modules/unistr/u8-strtok: Likewise.
24010         * modules/unistr/u8-to-u16: Likewise.
24011         * modules/unistr/u8-to-u32: Likewise.
24012         * modules/unistr/u8-uctomb: Likewise.
24013         * modules/unistr/u16-check: Likewise.
24014         * modules/unistr/u16-chr: Likewise.
24015         * modules/unistr/u16-cmp: Likewise.
24016         * modules/unistr/u16-cmp2: Likewise.
24017         * modules/unistr/u16-cpy: Likewise.
24018         * modules/unistr/u16-cpy-alloc: Likewise.
24019         * modules/unistr/u16-endswith: Likewise.
24020         * modules/unistr/u16-mblen: Likewise.
24021         * modules/unistr/u16-mbsnlen: Likewise.
24022         * modules/unistr/u16-mbtouc: Likewise.
24023         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24024         * modules/unistr/u16-mbtoucr: Likewise.
24025         * modules/unistr/u16-move: Likewise.
24026         * modules/unistr/u16-next: Likewise.
24027         * modules/unistr/u16-prev: Likewise.
24028         * modules/unistr/u16-set: Likewise.
24029         * modules/unistr/u16-startswith: Likewise.
24030         * modules/unistr/u16-stpcpy: Likewise.
24031         * modules/unistr/u16-stpncpy: Likewise.
24032         * modules/unistr/u16-strcat: Likewise.
24033         * modules/unistr/u16-strchr: Likewise.
24034         * modules/unistr/u16-strcmp: Likewise.
24035         * modules/unistr/u16-strcoll: Likewise.
24036         * modules/unistr/u16-strcpy: Likewise.
24037         * modules/unistr/u16-strcspn: Likewise.
24038         * modules/unistr/u16-strdup: Likewise.
24039         * modules/unistr/u16-strlen: Likewise.
24040         * modules/unistr/u16-strmblen: Likewise.
24041         * modules/unistr/u16-strmbtouc: Likewise.
24042         * modules/unistr/u16-strncat: Likewise.
24043         * modules/unistr/u16-strncmp: Likewise.
24044         * modules/unistr/u16-strncpy: Likewise.
24045         * modules/unistr/u16-strnlen: Likewise.
24046         * modules/unistr/u16-strpbrk: Likewise.
24047         * modules/unistr/u16-strrchr: Likewise.
24048         * modules/unistr/u16-strspn: Likewise.
24049         * modules/unistr/u16-strstr: Likewise.
24050         * modules/unistr/u16-strtok: Likewise.
24051         * modules/unistr/u16-to-u32: Likewise.
24052         * modules/unistr/u16-to-u8: Likewise.
24053         * modules/unistr/u16-uctomb: Likewise.
24054         * modules/unistr/u32-check: Likewise.
24055         * modules/unistr/u32-chr: Likewise.
24056         * modules/unistr/u32-cmp: Likewise.
24057         * modules/unistr/u32-cmp2: Likewise.
24058         * modules/unistr/u32-cpy: Likewise.
24059         * modules/unistr/u32-cpy-alloc: Likewise.
24060         * modules/unistr/u32-endswith: Likewise.
24061         * modules/unistr/u32-mblen: Likewise.
24062         * modules/unistr/u32-mbsnlen: Likewise.
24063         * modules/unistr/u32-mbtouc: Likewise.
24064         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24065         * modules/unistr/u32-mbtoucr: Likewise.
24066         * modules/unistr/u32-move: Likewise.
24067         * modules/unistr/u32-next: Likewise.
24068         * modules/unistr/u32-prev: Likewise.
24069         * modules/unistr/u32-set: Likewise.
24070         * modules/unistr/u32-startswith: Likewise.
24071         * modules/unistr/u32-stpcpy: Likewise.
24072         * modules/unistr/u32-stpncpy: Likewise.
24073         * modules/unistr/u32-strcat: Likewise.
24074         * modules/unistr/u32-strchr: Likewise.
24075         * modules/unistr/u32-strcmp: Likewise.
24076         * modules/unistr/u32-strcoll: Likewise.
24077         * modules/unistr/u32-strcpy: Likewise.
24078         * modules/unistr/u32-strcspn: Likewise.
24079         * modules/unistr/u32-strdup: Likewise.
24080         * modules/unistr/u32-strlen: Likewise.
24081         * modules/unistr/u32-strmblen: Likewise.
24082         * modules/unistr/u32-strmbtouc: Likewise.
24083         * modules/unistr/u32-strncat: Likewise.
24084         * modules/unistr/u32-strncmp: Likewise.
24085         * modules/unistr/u32-strncpy: Likewise.
24086         * modules/unistr/u32-strnlen: Likewise.
24087         * modules/unistr/u32-strpbrk: Likewise.
24088         * modules/unistr/u32-strrchr: Likewise.
24089         * modules/unistr/u32-strspn: Likewise.
24090         * modules/unistr/u32-strstr: Likewise.
24091         * modules/unistr/u32-strtok: Likewise.
24092         * modules/unistr/u32-to-u16: Likewise.
24093         * modules/unistr/u32-to-u8: Likewise.
24094         * modules/unistr/u32-uctomb: Likewise.
24095         * modules/uniwbrk/u8-wordbreaks: Likewise.
24096         * modules/uniwbrk/u16-wordbreaks: Likewise.
24097         * modules/uniwbrk/u32-wordbreaks: Likewise.
24098         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24099         * modules/uniwbrk/wordbreak-property: Likewise.
24100         * modules/uniwidth/u8-strwidth: Likewise.
24101         * modules/uniwidth/u8-width: Likewise.
24102         * modules/uniwidth/u16-strwidth: Likewise.
24103         * modules/uniwidth/u16-width: Likewise.
24104         * modules/uniwidth/u32-strwidth: Likewise.
24105         * modules/uniwidth/u32-width: Likewise.
24106         * modules/uniwidth/width: Likewise.
24107         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24108         with $(LIBUNISTRING).
24109         * modules/unicase/ignorable-tests: Likewise.
24110         * modules/unicase/locale-language-tests: Likewise.
24111         * modules/unicase/tolower-tests: Likewise.
24112         * modules/unicase/totitle-tests: Likewise.
24113         * modules/unicase/toupper-tests: Likewise.
24114         * modules/unicase/u8-casecmp-tests: Likewise.
24115         * modules/unicase/u8-casecoll-tests: Likewise.
24116         * modules/unicase/u8-casefold-tests: Likewise.
24117         * modules/unicase/u8-is-cased-tests: Likewise.
24118         * modules/unicase/u8-is-casefolded-tests: Likewise.
24119         * modules/unicase/u8-is-lowercase-tests: Likewise.
24120         * modules/unicase/u8-is-titlecase-tests: Likewise.
24121         * modules/unicase/u8-is-uppercase-tests: Likewise.
24122         * modules/unicase/u8-tolower-tests: Likewise.
24123         * modules/unicase/u8-totitle-tests: Likewise.
24124         * modules/unicase/u8-toupper-tests: Likewise.
24125         * modules/unicase/u16-casecmp-tests: Likewise.
24126         * modules/unicase/u16-casecoll-tests: Likewise.
24127         * modules/unicase/u16-casefold-tests: Likewise.
24128         * modules/unicase/u16-is-cased-tests: Likewise.
24129         * modules/unicase/u16-is-casefolded-tests: Likewise.
24130         * modules/unicase/u16-is-lowercase-tests: Likewise.
24131         * modules/unicase/u16-is-titlecase-tests: Likewise.
24132         * modules/unicase/u16-is-uppercase-tests: Likewise.
24133         * modules/unicase/u16-tolower-tests: Likewise.
24134         * modules/unicase/u16-totitle-tests: Likewise.
24135         * modules/unicase/u16-toupper-tests: Likewise.
24136         * modules/unicase/u32-casecmp-tests: Likewise.
24137         * modules/unicase/u32-casecoll-tests: Likewise.
24138         * modules/unicase/u32-casefold-tests: Likewise.
24139         * modules/unicase/u32-is-cased-tests: Likewise.
24140         * modules/unicase/u32-is-casefolded-tests: Likewise.
24141         * modules/unicase/u32-is-lowercase-tests: Likewise.
24142         * modules/unicase/u32-is-titlecase-tests: Likewise.
24143         * modules/unicase/u32-is-uppercase-tests: Likewise.
24144         * modules/unicase/u32-tolower-tests: Likewise.
24145         * modules/unicase/u32-totitle-tests: Likewise.
24146         * modules/unicase/u32-toupper-tests: Likewise.
24147         * modules/unicase/ulc-casecmp-tests: Likewise.
24148         * modules/unicase/ulc-casecoll-tests: Likewise.
24149         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24150         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24151         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24152         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24153         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24154         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24155         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24156         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24157         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24158         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24159         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24160         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24161         * modules/unictype/bidicategory-byname-tests: Likewise.
24162         * modules/unictype/bidicategory-name-tests: Likewise.
24163         * modules/unictype/bidicategory-of-tests: Likewise.
24164         * modules/unictype/bidicategory-test-tests: Likewise.
24165         * modules/unictype/block-list-tests: Likewise.
24166         * modules/unictype/block-of-tests: Likewise.
24167         * modules/unictype/block-test-tests: Likewise.
24168         * modules/unictype/category-C-tests: Likewise.
24169         * modules/unictype/category-Cc-tests: Likewise.
24170         * modules/unictype/category-Cf-tests: Likewise.
24171         * modules/unictype/category-Cn-tests: Likewise.
24172         * modules/unictype/category-Co-tests: Likewise.
24173         * modules/unictype/category-Cs-tests: Likewise.
24174         * modules/unictype/category-L-tests: Likewise.
24175         * modules/unictype/category-Ll-tests: Likewise.
24176         * modules/unictype/category-Lm-tests: Likewise.
24177         * modules/unictype/category-Lo-tests: Likewise.
24178         * modules/unictype/category-Lt-tests: Likewise.
24179         * modules/unictype/category-Lu-tests: Likewise.
24180         * modules/unictype/category-M-tests: Likewise.
24181         * modules/unictype/category-Mc-tests: Likewise.
24182         * modules/unictype/category-Me-tests: Likewise.
24183         * modules/unictype/category-Mn-tests: Likewise.
24184         * modules/unictype/category-N-tests: Likewise.
24185         * modules/unictype/category-Nd-tests: Likewise.
24186         * modules/unictype/category-Nl-tests: Likewise.
24187         * modules/unictype/category-No-tests: Likewise.
24188         * modules/unictype/category-P-tests: Likewise.
24189         * modules/unictype/category-Pc-tests: Likewise.
24190         * modules/unictype/category-Pd-tests: Likewise.
24191         * modules/unictype/category-Pe-tests: Likewise.
24192         * modules/unictype/category-Pf-tests: Likewise.
24193         * modules/unictype/category-Pi-tests: Likewise.
24194         * modules/unictype/category-Po-tests: Likewise.
24195         * modules/unictype/category-Ps-tests: Likewise.
24196         * modules/unictype/category-S-tests: Likewise.
24197         * modules/unictype/category-Sc-tests: Likewise.
24198         * modules/unictype/category-Sk-tests: Likewise.
24199         * modules/unictype/category-Sm-tests: Likewise.
24200         * modules/unictype/category-So-tests: Likewise.
24201         * modules/unictype/category-Z-tests: Likewise.
24202         * modules/unictype/category-Zl-tests: Likewise.
24203         * modules/unictype/category-Zp-tests: Likewise.
24204         * modules/unictype/category-Zs-tests: Likewise.
24205         * modules/unictype/category-and-not-tests: Likewise.
24206         * modules/unictype/category-and-tests: Likewise.
24207         * modules/unictype/category-byname-tests: Likewise.
24208         * modules/unictype/category-name-tests: Likewise.
24209         * modules/unictype/category-none-tests: Likewise.
24210         * modules/unictype/category-of-tests: Likewise.
24211         * modules/unictype/category-or-tests: Likewise.
24212         * modules/unictype/category-test-withtable-tests: Likewise.
24213         * modules/unictype/combining-class-tests: Likewise.
24214         * modules/unictype/ctype-alnum-tests: Likewise.
24215         * modules/unictype/ctype-alpha-tests: Likewise.
24216         * modules/unictype/ctype-blank-tests: Likewise.
24217         * modules/unictype/ctype-cntrl-tests: Likewise.
24218         * modules/unictype/ctype-digit-tests: Likewise.
24219         * modules/unictype/ctype-graph-tests: Likewise.
24220         * modules/unictype/ctype-lower-tests: Likewise.
24221         * modules/unictype/ctype-print-tests: Likewise.
24222         * modules/unictype/ctype-punct-tests: Likewise.
24223         * modules/unictype/ctype-space-tests: Likewise.
24224         * modules/unictype/ctype-upper-tests: Likewise.
24225         * modules/unictype/ctype-xdigit-tests: Likewise.
24226         * modules/unictype/decimal-digit-tests: Likewise.
24227         * modules/unictype/digit-tests: Likewise.
24228         * modules/unictype/mirror-tests: Likewise.
24229         * modules/unictype/numeric-tests: Likewise.
24230         * modules/unictype/property-alphabetic-tests: Likewise.
24231         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24232         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24233         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24234         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24235         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24236         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24237         * modules/unictype/property-bidi-control-tests: Likewise.
24238         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24239         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24240         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24241         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24242         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24243         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24244         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24245         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24246         * modules/unictype/property-bidi-pdf-tests: Likewise.
24247         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24248         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24249         * modules/unictype/property-byname-tests: Likewise.
24250         * modules/unictype/property-combining-tests: Likewise.
24251         * modules/unictype/property-composite-tests: Likewise.
24252         * modules/unictype/property-currency-symbol-tests: Likewise.
24253         * modules/unictype/property-dash-tests: Likewise.
24254         * modules/unictype/property-decimal-digit-tests: Likewise.
24255         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24256         * modules/unictype/property-deprecated-tests: Likewise.
24257         * modules/unictype/property-diacritic-tests: Likewise.
24258         * modules/unictype/property-extender-tests: Likewise.
24259         * modules/unictype/property-format-control-tests: Likewise.
24260         * modules/unictype/property-grapheme-base-tests: Likewise.
24261         * modules/unictype/property-grapheme-extend-tests: Likewise.
24262         * modules/unictype/property-grapheme-link-tests: Likewise.
24263         * modules/unictype/property-hex-digit-tests: Likewise.
24264         * modules/unictype/property-hyphen-tests: Likewise.
24265         * modules/unictype/property-id-continue-tests: Likewise.
24266         * modules/unictype/property-id-start-tests: Likewise.
24267         * modules/unictype/property-ideographic-tests: Likewise.
24268         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24269         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24270         * modules/unictype/property-ignorable-control-tests: Likewise.
24271         * modules/unictype/property-iso-control-tests: Likewise.
24272         * modules/unictype/property-join-control-tests: Likewise.
24273         * modules/unictype/property-left-of-pair-tests: Likewise.
24274         * modules/unictype/property-line-separator-tests: Likewise.
24275         * modules/unictype/property-logical-order-exception-tests: Likewise.
24276         * modules/unictype/property-lowercase-tests: Likewise.
24277         * modules/unictype/property-math-tests: Likewise.
24278         * modules/unictype/property-non-break-tests: Likewise.
24279         * modules/unictype/property-not-a-character-tests: Likewise.
24280         * modules/unictype/property-numeric-tests: Likewise.
24281         * modules/unictype/property-other-alphabetic-tests: Likewise.
24282         * modules/unictype/property-other-default-ignorable-code-point-tests:
24283         Likewise.
24284         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24285         * modules/unictype/property-other-id-continue-tests: Likewise.
24286         * modules/unictype/property-other-id-start-tests: Likewise.
24287         * modules/unictype/property-other-lowercase-tests: Likewise.
24288         * modules/unictype/property-other-math-tests: Likewise.
24289         * modules/unictype/property-other-uppercase-tests: Likewise.
24290         * modules/unictype/property-paired-punctuation-tests: Likewise.
24291         * modules/unictype/property-paragraph-separator-tests: Likewise.
24292         * modules/unictype/property-pattern-syntax-tests: Likewise.
24293         * modules/unictype/property-pattern-white-space-tests: Likewise.
24294         * modules/unictype/property-private-use-tests: Likewise.
24295         * modules/unictype/property-punctuation-tests: Likewise.
24296         * modules/unictype/property-quotation-mark-tests: Likewise.
24297         * modules/unictype/property-radical-tests: Likewise.
24298         * modules/unictype/property-sentence-terminal-tests: Likewise.
24299         * modules/unictype/property-soft-dotted-tests: Likewise.
24300         * modules/unictype/property-space-tests: Likewise.
24301         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24302         * modules/unictype/property-test-tests: Likewise.
24303         * modules/unictype/property-titlecase-tests: Likewise.
24304         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24305         * modules/unictype/property-unified-ideograph-tests: Likewise.
24306         * modules/unictype/property-uppercase-tests: Likewise.
24307         * modules/unictype/property-variation-selector-tests: Likewise.
24308         * modules/unictype/property-white-space-tests: Likewise.
24309         * modules/unictype/property-xid-continue-tests: Likewise.
24310         * modules/unictype/property-xid-start-tests: Likewise.
24311         * modules/unictype/property-zero-width-tests: Likewise.
24312         * modules/unictype/scripts-tests: Likewise.
24313         * modules/unictype/syntax-c-ident-tests: Likewise.
24314         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24315         * modules/unictype/syntax-java-ident-tests: Likewise.
24316         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24317         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24318         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24319         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24320         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24321         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24322         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24323         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24324         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24325         * modules/uniname/uniname-tests: Likewise.
24326         * modules/uninorm/canonical-decomposition-tests: Likewise.
24327         * modules/uninorm/compat-decomposition-tests: Likewise.
24328         * modules/uninorm/composition-tests: Likewise.
24329         * modules/uninorm/decomposing-form-tests: Likewise.
24330         * modules/uninorm/decomposition-tests: Likewise.
24331         * modules/uninorm/filter-tests: Likewise.
24332         * modules/uninorm/nfc-tests: Likewise.
24333         * modules/uninorm/nfd-tests: Likewise.
24334         * modules/uninorm/nfkc-tests: Likewise.
24335         * modules/uninorm/nfkd-tests: Likewise.
24336         * modules/uninorm/u8-normcmp-tests: Likewise.
24337         * modules/uninorm/u8-normcoll-tests: Likewise.
24338         * modules/uninorm/u16-normcmp-tests: Likewise.
24339         * modules/uninorm/u16-normcoll-tests: Likewise.
24340         * modules/uninorm/u32-normcmp-tests: Likewise.
24341         * modules/uninorm/u32-normcoll-tests: Likewise.
24342         * modules/unistdio/u8-asnprintf-tests: Likewise.
24343         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24344         * modules/unistdio/u8-vasprintf-tests: Likewise.
24345         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24346         * modules/unistdio/u8-vsprintf-tests: Likewise.
24347         * modules/unistdio/u16-asnprintf-tests: Likewise.
24348         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24349         * modules/unistdio/u16-vasprintf-tests: Likewise.
24350         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24351         * modules/unistdio/u16-vsprintf-tests: Likewise.
24352         * modules/unistdio/u32-asnprintf-tests: Likewise.
24353         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24354         * modules/unistdio/u32-vasprintf-tests: Likewise.
24355         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24356         * modules/unistdio/u32-vsprintf-tests: Likewise.
24357         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24358         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24359         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24360         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24361         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24362         * modules/unistr/u8-check-tests: Likewise.
24363         * modules/unistr/u8-chr-tests: Likewise.
24364         * modules/unistr/u8-cmp-tests: Likewise.
24365         * modules/unistr/u8-cmp2-tests: Likewise.
24366         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24367         * modules/unistr/u8-cpy-tests: Likewise.
24368         * modules/unistr/u8-mblen-tests: Likewise.
24369         * modules/unistr/u8-mbsnlen-tests: Likewise.
24370         * modules/unistr/u8-mbtouc-tests: Likewise.
24371         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24372         * modules/unistr/u8-mbtoucr-tests: Likewise.
24373         * modules/unistr/u8-move-tests: Likewise.
24374         * modules/unistr/u8-next-tests: Likewise.
24375         * modules/unistr/u8-prev-tests: Likewise.
24376         * modules/unistr/u8-set-tests: Likewise.
24377         * modules/unistr/u8-stpcpy-tests: Likewise.
24378         * modules/unistr/u8-stpncpy-tests: Likewise.
24379         * modules/unistr/u8-strcat-tests: Likewise.
24380         * modules/unistr/u8-strcmp-tests: Likewise.
24381         * modules/unistr/u8-strcoll-tests: Likewise.
24382         * modules/unistr/u8-strcpy-tests: Likewise.
24383         * modules/unistr/u8-strdup-tests: Likewise.
24384         * modules/unistr/u8-strlen-tests: Likewise.
24385         * modules/unistr/u8-strmblen-tests: Likewise.
24386         * modules/unistr/u8-strmbtouc-tests: Likewise.
24387         * modules/unistr/u8-strncat-tests: Likewise.
24388         * modules/unistr/u8-strncmp-tests: Likewise.
24389         * modules/unistr/u8-strncpy-tests: Likewise.
24390         * modules/unistr/u8-strnlen-tests: Likewise.
24391         * modules/unistr/u8-to-u16-tests: Likewise.
24392         * modules/unistr/u8-to-u32-tests: Likewise.
24393         * modules/unistr/u8-uctomb-tests: Likewise.
24394         * modules/unistr/u16-check-tests: Likewise.
24395         * modules/unistr/u16-chr-tests: Likewise.
24396         * modules/unistr/u16-cmp-tests: Likewise.
24397         * modules/unistr/u16-cmp2-tests: Likewise.
24398         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24399         * modules/unistr/u16-cpy-tests: Likewise.
24400         * modules/unistr/u16-mblen-tests: Likewise.
24401         * modules/unistr/u16-mbsnlen-tests: Likewise.
24402         * modules/unistr/u16-mbtouc-tests: Likewise.
24403         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24404         * modules/unistr/u16-mbtoucr-tests: Likewise.
24405         * modules/unistr/u16-move-tests: Likewise.
24406         * modules/unistr/u16-next-tests: Likewise.
24407         * modules/unistr/u16-prev-tests: Likewise.
24408         * modules/unistr/u16-set-tests: Likewise.
24409         * modules/unistr/u16-stpcpy-tests: Likewise.
24410         * modules/unistr/u16-stpncpy-tests: Likewise.
24411         * modules/unistr/u16-strcat-tests: Likewise.
24412         * modules/unistr/u16-strcmp-tests: Likewise.
24413         * modules/unistr/u16-strcoll-tests: Likewise.
24414         * modules/unistr/u16-strcpy-tests: Likewise.
24415         * modules/unistr/u16-strdup-tests: Likewise.
24416         * modules/unistr/u16-strlen-tests: Likewise.
24417         * modules/unistr/u16-strmblen-tests: Likewise.
24418         * modules/unistr/u16-strmbtouc-tests: Likewise.
24419         * modules/unistr/u16-strncat-tests: Likewise.
24420         * modules/unistr/u16-strncmp-tests: Likewise.
24421         * modules/unistr/u16-strncpy-tests: Likewise.
24422         * modules/unistr/u16-strnlen-tests: Likewise.
24423         * modules/unistr/u16-to-u32-tests: Likewise.
24424         * modules/unistr/u16-to-u8-tests: Likewise.
24425         * modules/unistr/u16-uctomb-tests: Likewise.
24426         * modules/unistr/u32-check-tests: Likewise.
24427         * modules/unistr/u32-chr-tests: Likewise.
24428         * modules/unistr/u32-cmp-tests: Likewise.
24429         * modules/unistr/u32-cmp2-tests: Likewise.
24430         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24431         * modules/unistr/u32-cpy-tests: Likewise.
24432         * modules/unistr/u32-mblen-tests: Likewise.
24433         * modules/unistr/u32-mbsnlen-tests: Likewise.
24434         * modules/unistr/u32-mbtouc-tests: Likewise.
24435         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24436         * modules/unistr/u32-mbtoucr-tests: Likewise.
24437         * modules/unistr/u32-move-tests: Likewise.
24438         * modules/unistr/u32-next-tests: Likewise.
24439         * modules/unistr/u32-prev-tests: Likewise.
24440         * modules/unistr/u32-set-tests: Likewise.
24441         * modules/unistr/u32-stpcpy-tests: Likewise.
24442         * modules/unistr/u32-stpncpy-tests: Likewise.
24443         * modules/unistr/u32-strcat-tests: Likewise.
24444         * modules/unistr/u32-strcmp-tests: Likewise.
24445         * modules/unistr/u32-strcoll-tests: Likewise.
24446         * modules/unistr/u32-strcpy-tests: Likewise.
24447         * modules/unistr/u32-strdup-tests: Likewise.
24448         * modules/unistr/u32-strlen-tests: Likewise.
24449         * modules/unistr/u32-strmblen-tests: Likewise.
24450         * modules/unistr/u32-strmbtouc-tests: Likewise.
24451         * modules/unistr/u32-strncat-tests: Likewise.
24452         * modules/unistr/u32-strncmp-tests: Likewise.
24453         * modules/unistr/u32-strncpy-tests: Likewise.
24454         * modules/unistr/u32-strnlen-tests: Likewise.
24455         * modules/unistr/u32-to-u16-tests: Likewise.
24456         * modules/unistr/u32-to-u8-tests: Likewise.
24457         * modules/unistr/u32-uctomb-tests: Likewise.
24458         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24459         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24460         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24461         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24462         * modules/uniwidth/u8-strwidth-tests: Likewise.
24463         * modules/uniwidth/u8-width-tests: Likewise.
24464         * modules/uniwidth/u16-strwidth-tests: Likewise.
24465         * modules/uniwidth/u16-width-tests: Likewise.
24466         * modules/uniwidth/u32-strwidth-tests: Likewise.
24467         * modules/uniwidth/u32-width-tests: Likewise.
24468         * modules/uniwidth/width-tests: Likewise.
24469
24470 2010-05-18  Richard Jones  <rjones@redhat.com>
24471
24472         doc: users.txt: list hivex
24473         * users.txt: Add hivex.
24474
24475 2010-05-18  Richard Jones  <rjones@redhat.com>
24476
24477         doc: users.txt: list febootstrap
24478         * users.txt: Add febootstrap.
24479
24480 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24481
24482         bootstrap: fix an error when gnulib is not used as a git submodule
24483         * build-aux/bootstrap (gnulib_path): If its length is zero then
24484         assign "gnulib" to it.
24485         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24486
24487 2010-05-16  Bruno Haible  <bruno@clisp.org>
24488
24489         Avoid autoconf warnings about AM_ICONV.
24490         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24491         2.64.
24492
24493 2010-05-16  Bruno Haible  <bruno@clisp.org>
24494
24495         absolute-header: Make the macro usable in more situations.
24496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24497         from gl_ABSOLUTE_HEADER.
24498         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24499
24500 2010-05-16  James Youngman  <jay@gnu.org>
24501
24502         doc: update users.txt
24503         * users.txt: Add CSSC.
24504
24505 2010-05-16  Jim Meyering  <meyering@redhat.com>
24506
24507         init.sh: fix an error in the previous change; add more comments
24508         * tests/init.sh: Compare exit code in loop against 9, not 2.
24509         Patch by Bruno Haible.
24510         Make the two tests more similar by adding an empty "then" clause.
24511         Add comments.
24512
24513         init.sh: avoid unnecessary shell re-exec
24514         * tests/init.sh: Improve the re-exec-required check to first test the
24515         current shell.  If it passes the test, do not search for a shell that
24516         does pass, and do not re-exec.  This test is particularly contorted to
24517         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24518         of $(...) evokes a syntax error and causes immediate shell exit with
24519         status 2.  Bruno Haible reported that the re-exec made it impossible
24520         to single-step through any init.sh-using script.
24521
24522 2010-05-16  Bruno Haible  <bruno@clisp.org>
24523
24524         Fix collision between gnulib's and libintl's printf replacements.
24525         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24526         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24527         (printf): When using GNU C, map the __printf__ function to rpl_printf
24528         via __asm__. When not using GNU C, define rpl_printf instead of
24529         __printf__.
24530         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24531         commit.
24532         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24533         commit.
24534         * m4/asm-underscore.m4: New file.
24535         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24536         * modules/stdio (Files): Add m4/asm-underscore.m4.
24537         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24538         Reported by Ben Pfaff.
24539
24540 2010-05-16  Bruno Haible  <bruno@clisp.org>
24541
24542         verify: Avoid skipping the test on openSUSE 11.0.
24543         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24544
24545 2010-05-13  Bruno Haible  <bruno@clisp.org>
24546
24547         Avoid useless warnings from G++.
24548         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24549         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24550         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24551
24552 2010-05-11  Jim Meyering  <meyering@redhat.com>
24553
24554         maint.mk: tweak preceding change
24555         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24556         regexps tighter by anchoring at EOL, and make the new group "shy"
24557         for slightly decreased overhead.
24558
24559 2010-05-11  Eric Blake  <eblake@redhat.com>
24560
24561         maint.mk: gnulib doesn't guarantee NSIG
24562         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24563
24564 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24565
24566         test-pwrite.c: Remove unused variable declaration.
24567         * tests/test-pwrite.c (main): Remove read_buf declaration.
24568
24569         Remove useless test-pwrite.sh file.
24570         * tests/test-pwrite.sh: Delete file.
24571         * modules/pwrite-tests: Remove references.
24572         Reported by Bruno Haible.
24573
24574 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24575
24576         init.sh: fix a typo
24577         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24578
24579 2010-05-10  Jim Meyering  <meyering@redhat.com>
24580
24581         maint.mk: avoid using a temporary file in the always-defined-macros check
24582         * top/maint.mk (.re-defmac): Remove rule.
24583         (gl_trap_): Remove definition.
24584         (sc_prohibit_always-defined_macros): Rewrite not to create and
24585         depend on a temporary file.  Instead, depend on GNU grep's ability
24586         to read a list of regular expressions from stdin when given "-f -".
24587
24588 2010-05-09  Bruno Haible  <bruno@clisp.org>
24589
24590         Update to GNU gettext 0.18, part 1.
24591         * m4/gettext.m4: Update to GNU gettext 0.18.
24592         * m4/intl.m4: Likewise.
24593         * m4/po.m4: Likewise.
24594         * modules/gettext (Files): Add m4/fcntl-o.m4.
24595         (configure.ac): Require gettext infrastructure from version 0.18.
24596
24597 2010-05-09  Jim Meyering  <meyering@redhat.com>
24598
24599         init.sh: enable MALLOC_PERTURB_
24600         * tests/init.sh: Enable glibc's malloc-perturbing option.
24601
24602         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24603         With my recent change in init.sh from the two-line form:
24604             -#   : ${srcdir=.}
24605             -#   . "$srcdir/init.sh"; path_prepend_ .
24606             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24607         I noticed that using the one-line form would cause this test
24608         to fail with a false-positive, or to stop working altogether,
24609         depending on whether help-version changed or all the tests did.
24610         * top/maint.mk (_hv_regex): Remove this definition.
24611         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24612         (_hv_regex_strong): Use a stronger regex to check for conformance.
24613         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24614         Give a separate diagnostic for lack of conforming use.
24615
24616         maint.mk: prohibit definition of symbols defined by gnulib
24617         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24618         definition of symbols defined by gnulib.
24619
24620 2010-05-09  Bruno Haible  <bruno@clisp.org>
24621
24622         acl: Avoid test failure on Cygwin-hosted mingw.
24623         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24624
24625 2010-05-09  Bruno Haible  <bruno@clisp.org>
24626
24627         error: Use system's fcntl function.
24628         * lib/error.c (fcntl): Undefine.
24629
24630 2010-05-09  Jim Meyering  <meyering@redhat.com>
24631
24632         verify: adjust formatting to be more consistent
24633         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24634         argument-list '('s, and after one comma.
24635
24636 2010-05-09  Bruno Haible  <bruno@clisp.org>
24637
24638         error: More reliable output on mingw.
24639         * lib/error.c: Include <windows.h>.
24640         (is_open): New function.
24641         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24642         defined.
24643
24644 2010-05-09  Bruno Haible  <bruno@clisp.org>
24645
24646         vasnprintf: Fix syntax errors in libintl build on mingw.
24647         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24648         pad_ourselves and prec_ourselves after use.
24649
24650 2010-05-08  Bruno Haible  <bruno@clisp.org>
24651
24652         * lib/config.charset: Update comments for Cygwin 1.7.
24653         * lib/localcharset.c: Likewise.
24654
24655 2010-05-07  Jim Meyering  <meyering@redhat.com>
24656
24657         init.sh: improve comments
24658         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24659         . "${srcdir=.}/init.sh"; path_prepend_ .
24660         Add a note about path_prepend_ and the alternative of using
24661         TESTS_ENVIRONMENT.
24662
24663 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24664
24665         exclude: Unescape hashed patterns in wildcard mode.
24666         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24667         to the hash list.
24668         * tests/test-exclude8.sh: New test case.
24669         * modules/exclude-tests: Add new test.
24670
24671 2010-05-05  Eric Blake  <eblake@redhat.com>
24672
24673         verify: automate tests
24674         * modules/verify-tests: New module.
24675         * tests/test-verify.sh: New file.
24676         * tests/test-verify.c: Guard each negative test with a unique id.
24677         Also avoid warning about unused left hand of comma expressions.
24678
24679 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24680
24681         Further improvements to verify.h, suggested by Eric Blake.
24682         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24683         the GL_* versions, to avoid collision with OpenGL.
24684         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24685         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24686         than testing merely whether it's defined.
24687
24688         Modify verify.h to pacify gcc -Wredundant_decls.
24689         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24690         These use the prefix "GL_" since they're likely to be useful elsewhere.
24691         We may need to break them out into a different .h file.
24692         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24693         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24694         of verify_function__.
24695
24696 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24697
24698         Tests for module pwrite.
24699         * modules/pwrite-tests: New file.
24700         * tests/test-pwrite.sh: New file.
24701         * tests/test-pwrite.c: New file.
24702
24703         New module pwrite.
24704         * lib/unistd.in.h (pwrite): New declaration.
24705         * lib/pwrite.c: New file, from glibc with modifications.
24706         * m4/pwrite.m4: New file.
24707         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24708         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24709         REPLACE_PWRITE.
24710         * modules/pwrite: New file.
24711         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24712         REPLACE_PWRITE.
24713         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24714         * doc/posix-functions/pwrite.texi: Mention the new module.
24715
24716 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24717
24718         pread: Update documentation.
24719         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24720
24721 2010-05-04  Eric Blake  <eblake@redhat.com>
24722
24723         docs: update cygwin progress
24724         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24725         this bug.
24726         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24727         Added in cygwin 1.7.2.
24728         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24729         Likewise.
24730         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24731         Likewise.
24732         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24733         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24734         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24735         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24736         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24737         Mention nproc module.
24738         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24739         bug in cygwin 1.7.5 addition.
24740         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24741         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24742         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24743         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24744         1.7.5.
24745         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24746         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24747         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24748         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24749         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24750         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24751         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24752         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24753         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24754         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24755         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24756         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24757         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24758         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24759         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24760         Likewise.
24761         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24762         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24763         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24764         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24765         Likewise.
24766         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24767         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24768         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24769         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24770         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24771         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24772         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24773         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24774         Likewise.
24775         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24776         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24777         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24778         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24779         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24780         Likewise.
24781         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24782         Likewise.
24783         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24784         Likewise.
24785         * doc/glibc-functions/xdrrec_endofrecord.texi
24786         (xdrrec_endofrecord): Likewise.
24787         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24788         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24789         Likewise.
24790         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24791         Likewise.
24792
24793 2010-05-04  Jim Meyering  <meyering@redhat.com>
24794
24795         gendocs.sh: make its "-s FILE" option more useful
24796         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24797         $PACKAGE to reflect the probably-different basename of "FILE".
24798
24799 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24800
24801         bootstrap: don't ignore download_po_files failure
24802         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24803         failure.
24804
24805 2010-05-03  Jim Meyering  <meyering@redhat.com>
24806
24807         maint.mk: allow to pass options to gendocs.sh
24808         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24809         (gendocs_options_): New overridable variable.
24810
24811         gnu-web-doc-update: don't ignore configure or build failure
24812         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24813
24814         announce-gen: backslash-escape '@'s in --help output
24815         * build-aux/announce-gen: Fix syntax errors.
24816
24817         maint.mk, announce-gen: allow project-specific announcement mail headers
24818         * top/maint.mk (translation_project_): Define default.
24819         (announcement_Cc_, announcement_mail_headers_): Likewise.
24820         (announcement): Invoke announce-gen with new --mail-headers option.
24821         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24822
24823         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24824         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24825         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24826         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24827         line in the "err2" output file when running "make check" in verbose
24828         mode (i.e., with set -x enabled).
24829
24830 2010-05-03  Bruno Haible  <bruno@clisp.org>
24831
24832         wctob: Fix for weird platforms.
24833         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24834         argument value.
24835
24836 2010-05-03  Jim Meyering  <meyering@redhat.com>
24837
24838         maint.mk: prohibit unwarranted use of <strings.h>
24839         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24840         strings.h in a file that does not also use strcasecmp, strncasecmp,
24841         ffs or ffsll.
24842
24843         maint.mk: remove obsolete comments
24844         * top/maint.mk: Remove stale, commented-out rules.
24845
24846 2010-05-02  Bruno Haible  <bruno@clisp.org>
24847
24848         wcwidth: Declare also when it's aliased.
24849         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24850         macro.
24851
24852 2010-05-02  Bruno Haible  <bruno@clisp.org>
24853
24854         Fix regression from 2010-04-25.
24855         * gnulib-tool (func_modules_transitive_closure): Check the status of
24856         all modules, not only of the tests that are of the form foo-tests where
24857         foo is a module.
24858
24859 2010-05-02  Bruno Haible  <bruno@clisp.org>
24860
24861         wctob: Work around nasty Cygwin 1.7.2 bug.
24862         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24863         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24864
24865 2010-05-01  Bruno Haible  <bruno@clisp.org>
24866
24867         fpurge: Sharper test.
24868         * tests/test-fpurge.c (main): Add one more ftell check.
24869         * modules/fpurge-tests (Depends-on): Add ftell.
24870         Suggested by Eric Blake.
24871
24872 2010-05-01  Bruno Haible  <bruno@clisp.org>
24873
24874         ftello: Another test.
24875         * tests/test-ftello3.c: New file.
24876         * modules/ftello-tests (Files): Add it.
24877         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24878         MOSTLYCLEANFILES.
24879
24880         ftell: Another test.
24881         * tests/test-ftell3.c: New file.
24882         * modules/ftell-tests (Files): Add it.
24883         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24884         MOSTLYCLEANFILES.
24885
24886 2010-05-01  Bruno Haible  <bruno@clisp.org>
24887
24888         ftell, ftello: Work around Solaris bug.
24889         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24890         * lib/ftello.c: Include stdio-impl.h.
24891         (ftello): On Solaris, when _IOWRT is set, compute the result without
24892         looking at _IOREAD.
24893         * modules/ftello (Files): Add lib/stdio-impl.h.
24894         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24895         * doc/posix-functions/ftello.texi: Likewise.
24896         Reported by Eric Blake.
24897
24898 2010-05-01  Bruno Haible  <bruno@clisp.org>
24899
24900         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24901         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24902         the _IOWRT flag is also set.
24903
24904 2010-05-01  Bruno Haible  <bruno@clisp.org>
24905
24906         Fix doc about a HP-UX stdio bug.
24907         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24908         * doc/posix-functions/ftello.texi: Likewise.
24909
24910 2010-05-01  Bruno Haible  <bruno@clisp.org>
24911
24912         lseek test: Fix failure on Solaris.
24913         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24914         output.
24915
24916 2010-04-30  Jim Meyering  <meyering@redhat.com>
24917
24918         bootstrap: don't ignore failure to generate po*/Makevars
24919         * build-aux/bootstrap (with_gettext): Don't ignore failure
24920         to create po/Makevars or runtime-po/Makevars.
24921
24922 2010-04-29  Eric Blake  <eblake@redhat.com>
24923
24924         headers: relax license to LGPLv2+
24925         * modules/fcntl-h (License): Relax license.
24926         * modules/getopt-posix (License): Likewise.
24927         * modules/locale (License): Likewise.
24928         * modules/math (License): Likewise.
24929         * modules/pty (License): Likewise.
24930         * modules/sched (License): Likewise.
24931         * modules/search (License): Likewise.
24932         * modules/spawn (License): Likewise.
24933         * modules/stdarg (License): Likewise.
24934         * modules/sysexits (License): Likewise.
24935
24936 2010-04-29  Jim Meyering  <meyering@redhat.com>
24937
24938         inttypes: relax license to LGPLv2+
24939         * modules/inttypes (License): Relax license.
24940
24941 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24942
24943         * top/maint.mk (indent): Run twice to produce idempotent results.
24944
24945 2010-04-28  Bruno Haible  <bruno@clisp.org>
24946
24947         getdate: Generate getdate.c in the source directory.
24948         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24949         MOSTLYCLEANFILES.
24950         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24951
24952 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24953
24954         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24955         is not declared as a const *; avoid warnings in that case.
24956
24957 2010-04-28  Eric Blake  <eblake@redhat.com>
24958
24959         canonicalize-lgpl: avoid compiler warning
24960         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24961         declaration' / 'extraneous semicolon' warning with some compilers.
24962         Reported by Andreas Gruenbacher.
24963
24964 2010-04-28  Jim Meyering  <meyering@redhat.com>
24965
24966         init.sh: ensure a more reliable exit status when exiting via trap
24967         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24968         Inspired by patches from Dmitry V. Levin.
24969         Also trap on signal 3 (SIGQUIT).
24970
24971 2010-04-27  Bruno Haible  <bruno@clisp.org>
24972
24973         Update doc about utimes().
24974         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24975         'utimens' module.
24976         Reported by Andreas Gruenbacher <agruen@suse.de>.
24977
24978 2010-04-27  Eric Blake  <eblake@redhat.com>
24979
24980         full-read, full-write: relax license
24981         * modules/full-read (License): Drop to LGPLv2+.
24982         * modules/full-write (License): Likewise.
24983         * modules/safe-read (License): Likewise.
24984         * modules/safe-write (License): Likewise.
24985
24986         pthread: mention library for linking
24987         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24988
24989 2010-04-27  Jim Meyering  <meyering@redhat.com>
24990
24991         maint.mk: fix a bug introduced in last change
24992         * top/maint.mk (gl_assured_headers_): Now that all names are on
24993         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24994         is not anchored to end of word, it should be adequate.
24995
24996         maint.mk: avoid side-effect in latest syntax-check
24997         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24998         to run commands via $(shell...), and hence to incur cost only when
24999         the new rule is actually run.
25000
25001         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25002         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25003         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25004         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25005         (gl_assured_headers_, az_, AZ_): Define.
25006         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25007
25008 2010-04-26  Jim Meyering  <jim@meyering.net>
25009             Bruno Haible  <bruno@clisp.org>
25010
25011         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25012         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25013         Prompted by an exchange with Gilles Espinasse.
25014
25015 2010-04-26  Jim Meyering  <meyering@redhat.com>
25016
25017         git-version-gen: aesthetic tweak
25018         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25019         so that the command remains on a single line.
25020
25021 2010-04-26  Eric Blake  <eblake@redhat.com>
25022
25023         git-version-gen: allow use on EBCDIC hosts
25024         * build-aux/git-version-gen (dirty): Use literal rather than tying
25025         ourselves to ascii.
25026         Reported by Steve Goetze.
25027
25028 2010-04-25  Bruno Haible  <bruno@clisp.org>
25029
25030         netdb: Add support for GNULIB_POSIXCHECK.
25031         * lib/netdb.in.h: Include warn-on-use.h.
25032         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25033         functions are used when GNULIB_POSIXCHECK is defined and the
25034         getaddrinfo module is not in use.
25035         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25036         freeaddrinfo, gai_strerror, getnameinfo are declared.
25037         * modules/netdb (Depends-on): Add warn-on-use.
25038         (Makefile.am): Include warn-on-use.h in netdb.h.
25039
25040 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25041
25042         build: avoid "make check" failure without .git/ directory
25043         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25044         there is no .git/ directory.
25045
25046 2010-04-25  Bruno Haible  <bruno@clisp.org>
25047
25048         ptsname: Fix misuse of ttyname_r.
25049         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25050         of errno.
25051
25052 2010-04-25  Bruno Haible  <bruno@clisp.org>
25053
25054         ttyname_r: Make it work on Solaris 10.
25055         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25056         if the system function has the POSIX declaration. Test whether the
25057         function fails if the buffer is less than 128 bytes large.
25058         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25059         system's ttyname_r function. Provide a reasonably large buffer.
25060         * modules/ttyname_r (Depends-on): Add extensions.
25061         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25062
25063 2010-04-25  Bruno Haible  <bruno@clisp.org>
25064
25065         Use the 'extensions' module for some more functions on Solaris.
25066         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25067         module.
25068         * doc/posix-functions/ctime_r.texi: Likewise.
25069         * doc/posix-functions/getgrgid_r.texi: Likewise.
25070         * doc/posix-functions/getgrnam_r.texi: Likewise.
25071         * doc/posix-functions/getpwnam_r.texi: Likewise.
25072         * doc/posix-functions/getpwuid_r.texi: Likewise.
25073         * doc/posix-functions/readdir_r.texi: Likewise.
25074         * doc/posix-functions/sigwait.texi: Likewise.
25075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25076         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25077
25078 2010-04-25  Bruno Haible  <bruno@clisp.org>
25079
25080         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25081         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25082         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25083         * lib/ttyname_r.c: Include <limits.h>.
25084         (ttyname_r): Define using the system's ttyname_r function, if it exists
25085         and not on Solaris.
25086         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25087         set.
25088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25089         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25090         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25091         Reported by Simon Josefsson.
25092
25093 2010-04-25  Bruno Haible  <bruno@clisp.org>
25094
25095         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25096         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25097         * doc/posix-functions/ctime_r.texi: Likewise.
25098         * doc/posix-functions/getgrgid_r.texi: Likewise.
25099         * doc/posix-functions/getgrnam_r.texi: Likewise.
25100         * doc/posix-functions/getlogin_r.texi: Likewise.
25101         * doc/posix-functions/getpwnam_r.texi: Likewise.
25102         * doc/posix-functions/getpwuid_r.texi: Likewise.
25103         * doc/posix-functions/readdir_r.texi: Likewise.
25104         * doc/posix-functions/sigwait.texi: Likewise.
25105         * doc/posix-functions/ttyname_r.texi: Likewise.
25106         Reported by Simon Josefsson.
25107
25108 2010-04-25  Bruno Haible  <bruno@clisp.org>
25109
25110         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25111         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25112         also to --create-testdir.
25113         (func_acceptable): Don't consider the status of *-tests modules here.
25114         (func_modules_transitive_closure): Consider it here, before including a
25115         test module.
25116         (func_import, func_create_testdir): Set inc_all_direct_tests,
25117         inc_all_indirect_tests.
25118         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25119         --create-testdir and --create-megatestdir.
25120
25121 2010-04-25  Bruno Haible  <bruno@clisp.org>
25122
25123         gnulib-tool: Add --without-*-tests options.
25124         * gnulib-tool (func_usage): Document the --without-*-tests options.
25125         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25126         excl_unportable_tests): New variables.
25127         Fail if they are specified with --import or --update.
25128         (func_acceptable): Respect the excl_*_tests variables.
25129         (func_import): Set the excl_*_tests variables to empty.
25130
25131 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25132             Bruno Haible  <bruno@clisp.org>
25133
25134         Work around a MacOS X 10.4 bug with openpty.
25135         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25136         * tests/test-openpty.c (main): Close the master side explicitly.
25137
25138 2010-04-25  Bruno Haible  <bruno@clisp.org>
25139
25140         strnlen: Fix a C++ test error on MacOS X and Solaris.
25141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25142         the function is not declared.
25143         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25144         Simon Josefsson.
25145
25146 2010-04-24  Bruno Haible  <bruno@clisp.org>
25147
25148         Avoid a gcc warning.
25149         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25150         of correct type for %08lx directive.
25151         Reported by Eric Blake.
25152
25153 2010-04-24  Bruno Haible  <bruno@clisp.org>
25154
25155         vasnprintf: Correct errno value in case of out-of-memory.
25156         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25157         or sprintf. Use the errno value from SNPRINTF or sprintf.
25158         Reported by Ian Beckwith <ianb@erislabs.net>.
25159
25160 2010-04-24  Bruno Haible  <bruno@clisp.org>
25161
25162         ansi-c++-opt: Find correct compiler when cross-compiling.
25163         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25164         AC_CHECK_PROGS.
25165         Reported by Simon Josefsson.
25166
25167 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25168
25169         vc-list-files: Add support for subversion
25170         * build-aux/vc-list-files: Use "svn list" to generate the list of
25171         files controlled by subversion.
25172
25173 2010-04-23  Jim Meyering  <meyering@redhat.com>
25174
25175         vc-list-files tests: convert to use init.sh
25176         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25177         path_prepend_.
25178         Use Exit, not exit.
25179         Use skip_ rather than open coding it.
25180         Remove trap set-up and compare definitions.
25181         * tests/test-vc-list-files-git.sh: Likewise.
25182         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25183
25184 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25185
25186         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25187         backup files.
25188
25189 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25190
25191         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25192
25193 2010-04-20  Eric Blake  <eblake@redhat.com>
25194
25195         tests: be robust to ignored SIGPIPE
25196         * tests/test-select-in.sh: Consume all output.
25197         * tests/test-lseek.sh: Check correct exit status, while avoiding
25198         EPIPE.
25199
25200 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25201             Bruno Haible  <bruno@clisp.org>
25202
25203         visibility: Don't use -fvisibility if it leads to a warning.
25204         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25205         yes, don't pretend that visibility works if it leads to a warning.
25206         Reported by Mike Gran <spk121@yahoo.com>.
25207
25208 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25209
25210         * build-aux/bootstrap: Use "git -h" for testing for supported options
25211         instead of "git --help".  The short-form option only shows a summary,
25212         and doesn't layout the full man page.  Grep for the full option name
25213         in the summary, too.
25214
25215 2010-04-19  Bruno Haible  <bruno@clisp.org>
25216
25217         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25218         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25219         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25220         mention of RELOCATABLE_STRIP.
25221         Reported by Sylvain Beucler <beuc@beuc.net>.
25222
25223 2010-04-19  Bruno Haible  <bruno@clisp.org>
25224
25225         * lib/diffseq.h: Fix typo in comment.
25226         Reported by Eric Blake.
25227
25228 2010-04-19  Bruno Haible  <bruno@clisp.org>
25229
25230         ioctl: Move autoconf macro to a .m4 file.
25231         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25232         * modules/ioctl (Files): Add it.
25233         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25234         Reported by Ian Beckwith <ianb@erislabs.net>.
25235
25236 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25237             Bruno Haible  <bruno@clisp.org>
25238
25239         diffseq: Accommodate use-case with abstract arrays.
25240         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25241         is not defined.
25242         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25243         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25244
25245 2010-04-18  Bruno Haible  <bruno@clisp.org>
25246
25247         * doc/posix-headers/stdbool.texi: More precise wording.
25248
25249 2010-04-17  Jim Meyering  <meyering@redhat.com>
25250
25251         maint.mk: use gnu-style indentation in an embedded perl script
25252         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25253         Rename variable: s/two/last_two_bytes/
25254
25255 2010-04-16  Eric Blake  <eblake@redhat.com>
25256
25257         test-stdbool: skip test that fails with Solaris CC
25258         * tests/test-stdbool.c (f): Skip test that causes compilation
25259         error under buggy C++ compiler.
25260         * lib/stdbool.in.h: Document the limitation.
25261         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25262
25263         setenv: allow compilation with C++
25264         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25265         register keyword.
25266
25267         stdint: allow test to pass with C++
25268         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25269
25270         getopt: allow compilation with C++
25271         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25272         struct.
25273         * lib/getopt.c (_getopt_internal_r): Use correct type.
25274         Reported by Dagobert Michelson, via Joel E. Denny.
25275
25276 2010-04-16  Bruno Haible  <bruno@clisp.org>
25277
25278         Override netdb.h always.
25279         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25280         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25281         Reported by Ludovic Courtès <ludo@gnu.org>.
25282
25283 2010-04-15  Bruno Haible  <bruno@clisp.org>
25284
25285         openpty: Fix mistake from 2010-03-21.
25286         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25287         Reported by Simon Josefsson.
25288
25289 2010-04-15  Eric Blake  <eblake@redhat.com>
25290
25291         test-forkpty: fix expected signature
25292         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25293         Reported by Simon Josefsson.
25294
25295 2010-04-15  Jim Meyering  <meyering@redhat.com>
25296
25297         maint.mk: texinfo_suffix_re_: correct the default regexp
25298         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25299
25300         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25301         make it configurable via texinfo_suffix_re_.
25302
25303 2010-04-14  Eric Blake  <eblake@redhat.com>
25304
25305         strtok_r: relax license to LGPLv2+
25306         * modules/strtok_r (License): Relax license.
25307         Reported by Matthias Bolte.
25308
25309 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25310
25311         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25312         version 1.4.4 by default instead of requiring the libgcrypt
25313         version used during build.  This makes it possible to use the
25314         application with older but still binary compatible libgcrypt
25315         versions.
25316
25317 2010-04-13  Eric Blake  <eblake@redhat.com>
25318
25319         getopt-gnu: match recent glibc fixes and posix ruling
25320         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25321         '+' handling, when requesting extensions.
25322         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25323         'W;' handling.
25324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25325         * doc/posix-functions/getopt.texi (getopt): Document this.
25326         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25327         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25328         Likewise.
25329
25330         getopt: merge bug fixes from glibc
25331         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25332         diagnostics.  Honor '+:' correctly.  Reject ';'.
25333
25334         getopt-posix: detect MacOS bug
25335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25336         optind when missing a required argument.
25337         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25338         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25339         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25340         Likewise.
25341
25342         getopt-posix: avoid spurious failure on Solaris
25343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25344         an indicator that setting optind=1 is sufficient for reset.
25345
25346         getopt-posix: avoid spurious failure on FreeBSD
25347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25348         in POSIX mode, since the m4 test uses it.
25349
25350         gnulib-tool: silence warning on BSD sh
25351         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25352
25353 2010-04-13  Jim Meyering  <meyering@redhat.com>
25354
25355         doc: users.txt: GNU patch now uses gnulib
25356         * users.txt: Add patch.
25357
25358 2010-04-12  Jim Meyering  <meyering@redhat.com>
25359
25360         maint.mk: generate more concise timing data for syntax-check rules
25361         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25362         " done" from each line that reports a syntax-check test duration.
25363
25364 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25365
25366         git-version-gen: use "git update-index..." rather than "git status"
25367         * build-aux/git-version-gen: Use git update-index --refresh, not
25368         "git status".  With some versions of git, "git status" would fail
25369         to update the index and result in an unwarranted "-dirty" suffix.
25370
25371 2010-04-11  Jim Meyering  <meyering@redhat.com>
25372
25373         openat: correct formatting (no semantic change)
25374         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25375         Suggested by Bruno Haible.
25376
25377 2010-04-11  Bruno Haible  <bruno@clisp.org>
25378
25379         Stricter declaration checking in testdirs.
25380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25381         If for_tests is true, augment AM_CPPFLAGS to define
25382         GNULIB_STRICT_CHECKING.
25383         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25384         GNULIB_STRICT_CHECKING is defined, verify that the function is
25385         declared.
25386
25387 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25388             Bruno Haible  <bruno@clisp.org>
25389
25390         libunistring: Improve configure output.
25391         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25392         Don't say "consider installing GNU libunistring" when checking again
25393         with libiconv.
25394
25395 2010-04-11  Bruno Haible  <bruno@clisp.org>
25396
25397         libunistring: Correct value of $LTLIBUNISTRING.
25398         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25399         correct the value of $LTLIBUNISTRING.
25400
25401 2010-04-11  Bruno Haible  <bruno@clisp.org>
25402
25403         havelib: Add static libraries to LIBS in the right order.
25404         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25405         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25406
25407 2010-04-11  Bruno Haible  <bruno@clisp.org>
25408
25409         libunistring: Detect libunistring also when it depends on libiconv.
25410         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25411         the second AC_LIB_HAVE_LINKFLAGS invocation.
25412
25413 2010-04-11  James Youngman  <jay@gnu.org>
25414
25415         close-stream: declare local scalars to be "const"
25416         * lib/close-stream.c (close_stream): Make boolean variables const
25417         to document the fact that we set but do not change them.
25418
25419 2010-04-11  Bruno Haible  <bruno@clisp.org>
25420
25421         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25422
25423 2010-04-11  Jim Meyering  <meyering@redhat.com>
25424
25425         maint.mk: don't include dist-check.mk
25426         * top/maint.mk: Remove bogus include directive.
25427
25428         maint.mk: improve empty-line-at-EOF check
25429         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25430         solution, rather than tail+Perl-based one.  The latter would read
25431         a few kilobytes from the end of each file, and did not handle empty
25432         files properly.
25433
25434         maint.mk: print the elapsed time for each syntax-check rule
25435         * top/maint.mk (sc_m_rules_): Save start time in a file.
25436         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25437         (local-check): Interpose the .z rules
25438
25439 2010-04-11  Jim Meyering  <meyering@redhat.com>
25440
25441         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25442         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25443         empty file with one that ends in an empty line.
25444
25445 2010-04-10  Bruno Haible  <bruno@clisp.org>
25446
25447         mkdir: Make it work on mingw64.
25448         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25449         * lib/mkdir.c: Update comment.
25450         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25451
25452 2010-04-10  Bruno Haible  <bruno@clisp.org>
25453
25454         Don't override improved macro from newer autoconf.
25455         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25456         autoconf >= 2.62.
25457         Reported by Joel E. Denny <jdenny@clemson.edu>.
25458
25459 2010-04-10  Jim Meyering  <meyering@redhat.com>
25460
25461         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25462         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25463
25464         maint.mk: correct a diagnostic
25465         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25466         in diagnostic; now use $prohibit.
25467
25468 2010-04-10  Bruno Haible  <address@hidden>
25469
25470         fchownat: Fix a C++ test error on Solaris 8.
25471         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25472         the function does not exist.
25473
25474 2010-04-10  Bruno Haible  <bruno@clisp.org>
25475
25476         vasnprintf: Add more tests.
25477         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25478         (test_function): Test converting an invalid wide string.
25479
25480         vasnprintf: Correct handling of unconvertible wide string arguments.
25481         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25482         VASNPRINTF.
25483         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25484         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25485         smaller than the expected maximum need for the directive. Set errno to
25486         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25487         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25489         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25490         * modules/vasnprintf (Files): Add m4/printf.m4.
25491         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25492
25493 2010-04-10  Bruno Haible  <bruno@clisp.org>
25494
25495         vasnprintf: Fix crash in %ls directive.
25496         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25497         string is passed as argument to %ls, with no precision and no width.
25498         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25499
25500 2010-04-10  Bruno Haible  <bruno@clisp.org>
25501
25502         vasnprintf: Fix multiple test failures on mingw.
25503         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25504         _snprintf, or snwprintf, not _snwprintf.
25505
25506 2010-04-10  Bruno Haible  <bruno@clisp.org>
25507
25508         write: Fix a C++ test error on mingw.
25509         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25510
25511 2010-04-10  Bruno Haible  <bruno@clisp.org>
25512
25513         vasnprintf test: Reduce code duplication.
25514         * tests/test-vasnprintf.c (test_function): New function, extracted from
25515         test_vasnprintf.
25516         (test_vasnprintf, test_asnprintf): Invoke it.
25517
25518 2010-04-10  Bruno Haible  <bruno@clisp.org>
25519
25520         strnlen: Fix warning in C++ mode on MacOS X.
25521         * lib/string.in.h (strnlen): Use the modern idiom.
25522         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25523         defining strnlen as a macro already in <config.h>.
25524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25525         REPLACE_STRNLEN.
25526         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25527         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25528
25529 2010-04-08  James Youngman  <jay@gnu.org>
25530
25531         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25532         the example.
25533
25534 2010-04-09  Jim Meyering  <meyering@redhat.com>
25535
25536         maint.mk: print better diagnostic when there is no $(_hv_file)
25537         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25538         announce that when $(_hv_file) (aka help-version) does not exist.
25539
25540         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25541         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25542         not try to interpret its random input bytes.  Jarno Rajahalme reported
25543         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25544         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25545         (mktempd_): Likewise, just in case.
25546
25547         ftruncate: add two years to projected module removal date: 2012
25548         * m4/ftruncate.m4: Adjust comments.
25549
25550         ftruncate: mark module as obsolete; even MinGW provides it, now
25551         * modules/ftruncate (Status): Obsolete.
25552         (Notice): Say that.
25553         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25554         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25555
25556 2010-04-08  Bruno Haible  <bruno@clisp.org>
25557
25558         Fix side effects from tests-related modules.
25559         * modules/dprintf-posix (Comment): New section.
25560         * modules/fprintf-posix (Comment): Likewise.
25561         * modules/obstack-printf-posix (Comment): Likewise.
25562         * modules/printf-posix (Comment): Likewise.
25563         * modules/snprintf-posix (Comment): Likewise.
25564         * modules/sprintf-posix (Comment): Likewise.
25565         * modules/vasnprintf-posix (Comment): Likewise.
25566         * modules/vasprintf-posix (Comment): Likewise.
25567         * modules/vdprintf-posix (Comment): Likewise.
25568         * modules/vfprintf-posix (Comment): Likewise.
25569         * modules/vprintf-posix (Comment): Likewise.
25570         * modules/vsnprintf-posix (Comment): Likewise.
25571         * modules/vsprintf-posix (Comment): Likewise.
25572         * modules/xprintf-posix (Comment): Likewise.
25573         * modules/xvasprintf-posix (Comment): Likewise.
25574         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25575         * modules/floorf-tests (Depends-on): Likewise.
25576         * modules/round-tests (Depends-on): Likewise.
25577         * modules/roundf-tests (Depends-on): Likewise.
25578         * modules/trunc-tests (Depends-on): Likewise.
25579         * modules/truncf-tests (Depends-on): Likewise.
25580         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25581         'fprintf-posix' module is not present.
25582         * tests/test-floorf2.c (check): Likewise.
25583         * tests/test-trunc2.c (check): Likewise.
25584         * tests/test-truncf2.c (check): Likewise.
25585         * tests/test-round2.c (equal): Likewise.
25586         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25587
25588 2010-04-07  Karl Berry  <karl@gnu.org>
25589
25590         * config/srclist.txt,
25591         * config/srclistvars.sh,
25592         * config/srclist-update: doc fixes.
25593
25594 2010-04-07  Jim Meyering  <meyering@redhat.com>
25595
25596         maint.mk: add a PATH crosschecking syntax-check rule
25597         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25598         Useful if you use a test like the one in help-version (coreutils,
25599         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25600         printed by prog --version.
25601
25602 2010-04-06  Bruno Haible  <bruno@clisp.org>
25603
25604         Fix link error on mingw.
25605         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25606         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25607
25608 2010-04-06  Bruno Haible  <bruno@clisp.org>
25609
25610         Assume rmdir exists.
25611         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25612
25613 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25614
25615         doc: update users.txt
25616         * users.txt: Add gcal.
25617
25618 2010-04-06  Jim Meyering  <meyering@redhat.com>
25619
25620         init.sh: simply unset TMPDIR rather than risking env -i
25621         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25622         although it probably works fine on all Unix-based systems, some
25623         systems (Cygwin?) cannot tolerate a totally cleared environment.
25624         Suggestion from Eric Blake.
25625
25626 2010-04-06  Jim Meyering  <meyering@redhat.com>
25627
25628         init.sh: portability fix: use env's POSIX-specified -i option not -u
25629         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25630         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25631
25632 2010-04-05  Bruno Haible  <bruno@clisp.org>
25633
25634         btowc: Work around Cygwin 1.7.2 bug.
25635         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25636         does not map NUL to 0.
25637         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25638
25639 2010-04-05  Bruno Haible  <bruno@clisp.org>
25640
25641         Make the multithread modules work on Cygwin 1.7.2.
25642         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25643         imported symbols can be declared weak, so that it returns "no" on
25644         Cygwin 1.7.2.
25645
25646 2010-04-05  Bruno Haible  <bruno@clisp.org>
25647
25648         Use the module 'strncat'.
25649         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25650
25651         Tests for module 'strncat'.
25652         * modules/strncat-tests: New file.
25653         * tests/test-strncat.c: New file.
25654
25655         New module 'strncat'.
25656         * lib/string.in.h (strncat): New declaration.
25657         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25658         * m4/strncat.m4: New file, based on m4/memchr.m4.
25659         * modules/strncat: New file.
25660         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25661         is declared.
25662         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25663         REPLACE_STRNCAT.
25664         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25665         REPLACE_STRNCAT.
25666         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25667         module.
25668         * tests/test-string-c++.cc: Check signature of strncat.
25669
25670 2010-04-05  Jim Meyering  <meyering@redhat.com>
25671
25672         xstrtoumax-tests: convert to use init.sh
25673         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25674         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25675         Use Exit, not exit.
25676         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25677
25678         xstrtoimax-tests: convert to use init.sh
25679         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25680         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25681         Use Exit, not exit.
25682         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25683
25684 2010-04-05  Bruno Haible  <bruno@clisp.org>
25685
25686         sys_socket: Avoid #define replacements in C++ mode.
25687         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25688         warning to the function if possible, rather than #defining the symbol
25689         to a dysfunctional alias.
25690
25691 2010-04-05  Bruno Haible  <bruno@clisp.org>
25692
25693         fseeko: Fix C++ test error on mingw.
25694         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25695         gl_FUNC_FSEEKO.
25696         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25697         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25698         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25699         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25700
25701 2010-04-05  Bruno Haible  <bruno@clisp.org>
25702
25703         duplocale: Improve test output.
25704         * tests/test-duplocale.c (main): Print reason for skipped test.
25705
25706 2010-04-05  Bruno Haible  <bruno@clisp.org>
25707
25708         Assume rmdir exists.
25709         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25710         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25711
25712 2010-04-05  Bruno Haible  <bruno@clisp.org>
25713
25714         Fix link error on Solaris 8 with cc.
25715         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25716
25717 2010-04-05  Bruno Haible  <bruno@clisp.org>
25718
25719         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25720         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25721
25722 2010-04-05  Bruno Haible  <bruno@clisp.org>
25723
25724         vasprintf: Update documentation.
25725         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25726
25727 2010-04-05  Bruno Haible  <bruno@clisp.org>
25728
25729         ptsname: Improve test.
25730         * tests/test-ptsname.c (main): Also try the various master names of BSD
25731         systems.
25732
25733 2010-04-05  Bruno Haible  <bruno@clisp.org>
25734
25735         memchr: Avoid a possible C++ test error.
25736         * lib/string.in.h (memchr): Provide declaration if function is missing.
25737         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25738         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25740         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25741
25742 2010-04-05  Bruno Haible  <bruno@clisp.org>
25743
25744         strtok_r: Improve idiom.
25745         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25746         AC_LIBOBJ is used.
25747
25748 2010-04-05  Bruno Haible  <bruno@clisp.org>
25749
25750         strdup: Improve idiom.
25751         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25752         AC_LIBOBJ is used.
25753         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25754         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25755         when AC_LIBOBJ is used.
25756
25757 2010-04-05  Bruno Haible  <bruno@clisp.org>
25758
25759         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25760         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25761         don't set REPLACE_MBSINIT to 1.
25762         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25763         don't set REPLACE_MBRTOWC to 1.
25764         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25765         exist, don't set REPLACE_MBSRTOWCS to 1.
25766         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25767         exist, don't set REPLACE_MBSNRTOWCS to 1.
25768         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25769         don't set REPLACE_WCRTOMB to 1.
25770         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25771         exist, don't set REPLACE_WCSRTOMBS to 1.
25772         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25773         exist, don't set REPLACE_WCSNRTOMBS to 1.
25774
25775 2010-04-05  Bruno Haible  <bruno@clisp.org>
25776
25777         ldexpl: Improve idiom.
25778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25779         make sure to set HAVE_DECL_LDEXPL to 0.
25780
25781 2010-04-05  Jim Meyering  <meyering@redhat.com>
25782
25783         xstrtol-tests: convert to use init.sh
25784         * modules/xstrtol-tests (Files): Add tests/init.sh.
25785         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25786         Use Exit, not exit.
25787         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25788
25789         atexit-tests: convert to use init.sh
25790         * modules/atexit-tests (Files): Add tests/init.sh.
25791         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25792         Use Exit, not exit.
25793         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25794
25795         init.sh: fix typo
25796         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25797
25798         init.sh: make it easier for a test script to write to the tty, ...
25799         when using automake's parallel-tests mode.
25800         * tests/init.sh (stderr_fileno_): Define overridable variable.
25801         (warn_): New function, to use it.
25802         (fail_, skip_, framework_failure_): Use warn_.
25803
25804 2010-04-04  Bruno Haible  <bruno@clisp.org>
25805
25806         btowc: Avoid warning.
25807         * lib/btowc.c: Include <stdlib.h>.
25808         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25809
25810 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25811             Bruno Haible  <bruno@clisp.org>
25812
25813         wchar: Port to NetBSD 1.5.
25814         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25815         * lib/wctype.in.h (WEOF): Likewise.
25816
25817 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25818             Bruno Haible  <bruno@clisp.org>
25819
25820         Port extended stdio to NetBSD 1.5.
25821         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25822         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25823         older.
25824
25825 2010-04-04  Bruno Haible  <bruno@clisp.org>
25826
25827         string: Remove unused substitution.
25828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25829         HAVE_DECL_STRERROR.
25830         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25831
25832 2010-04-04  Bruno Haible  <bruno@clisp.org>
25833
25834         strtod: Avoid a possible C++ test error.
25835         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25836         set REPLACE_STRTOD.
25837
25838 2010-04-04  Bruno Haible  <bruno@clisp.org>
25839
25840         strerror: Update documentation.
25841         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25842
25843 2010-04-04  Bruno Haible  <bruno@clisp.org>
25844
25845         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25846         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25847         _GL_CXXALIAS_SYS_CAST.
25848
25849 2010-04-04  Bruno Haible  <bruno@clisp.org>
25850
25851         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25852         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25853         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25854         REPLACE_FREXPL to 1.
25855         * doc/posix-functions/frexpl.texi: Update documentation.
25856
25857 2010-04-04  Bruno Haible  <bruno@clisp.org>
25858
25859         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25860         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25861
25862 2010-04-04  Bruno Haible  <bruno@clisp.org>
25863
25864         Implement nanosleep for native Windows.
25865         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25866
25867 2010-04-04  Bruno Haible  <bruno@clisp.org>
25868
25869         math: Fix some C++ test errors on Solaris 8.
25870         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25871
25872 2010-04-04  Bruno Haible  <bruno@clisp.org>
25873
25874         math: Fix some C++ test errors on Cygwin.
25875         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25876         truncl): Provide declaration if the system does not have it.
25877         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25878         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25879         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25880         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25881         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25882         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25883         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25884         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25885         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25886         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25887         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25888         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25889         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25890         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25891         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25892         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25894         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25895         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25896         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25897         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25898         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25899
25900 2010-04-04  Bruno Haible  <bruno@clisp.org>
25901
25902         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25903         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25904         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25905         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25906         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25907         * m4/isinf.m4 (gl_ISINF): Likewise.
25908         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25909
25910 2010-04-04  Bruno Haible  <bruno@clisp.org>
25911
25912         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25913         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25914
25915 2010-04-04  Bruno Haible  <bruno@clisp.org>
25916
25917         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25918         * modules/tmpfile (configure.ac): Update.
25919
25920         tmpfile: Fix C++ test error on mingw.
25921         * lib/stdio.in.h (tmpfile): New declaration.
25922         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25923         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25924         * modules/tmpfile (Depends-on): Add stdio.
25925         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25926         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25927         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25928         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25929         REPLACE_TMPFILE.
25930         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25931
25932 2010-04-04  Bruno Haible  <bruno@clisp.org>
25933
25934         ioctl: Fix C++ test error on mingw.
25935         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25936         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25937         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25938
25939 2010-04-03  Bruno Haible  <bruno@clisp.org>
25940
25941         wcwidth: Fix C++ test error on mingw.
25942         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25944         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25945
25946 2010-04-03  Bruno Haible  <bruno@clisp.org>
25947
25948         nanosleep: Fix C++ test error on mingw.
25949         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25950         * lib/time.in.h (nanosleep): Use modern idiom.
25951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25952         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25953         REPLACE_NANOSLEEP to 1.
25954         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25955         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25956
25957 2010-04-03  Bruno Haible  <bruno@clisp.org>
25958
25959         strptime: Fix C++ test error on mingw.
25960         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25961         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25962         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25963         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25964         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25965         not REPLACE_STRPTIME.
25966         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25967         REPLACE_STRPTIME.
25968
25969 2010-04-03  Bruno Haible  <bruno@clisp.org>
25970
25971         timegm: Fix C++ test error on mingw.
25972         * lib/time.in.h (timegm): Use modern idiom.
25973         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25974         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25975         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25976         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25977
25978 2010-04-03  Bruno Haible  <bruno@clisp.org>
25979
25980         timegm: Assume declaration if function exists.
25981         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25982         if it exists. Don't clobber ac_cv_func_timegm.
25983
25984 2010-04-03  Bruno Haible  <bruno@clisp.org>
25985
25986         time_r: Fix C++ test error on mingw.
25987         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25988         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25989         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25990         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25991         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25992
25993 2010-04-03  Bruno Haible  <bruno@clisp.org>
25994
25995         time_r: Minor updates.
25996         * modules/time_r (Description): Mention the provided functions.
25997         * lib/time_r.c: Don't include <string.h>.
25998         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25999         * doc/posix-functions/localtime_r.texi: Likewise.
26000
26001 2010-04-03  Bruno Haible  <bruno@clisp.org>
26002
26003         time: Fix regression introduced on 2010-03-08.
26004         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26005         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26006
26007 2010-04-03  Jim Meyering  <meyering@redhat.com>
26008
26009         maint.mk: don't silently disable project-specific syntax-check rules
26010         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26011         that they need to convert their project-specific syntax-check rules
26012         to use the new _sc_search_regexp.
26013
26014 2010-04-03  Bruno Haible  <bruno@clisp.org>
26015
26016         fchdir: Fix regression introduced on 2010-03-08.
26017         * lib/unistd.in.h (fchdir): Fix declaration.
26018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26020         REPLACE_FCHDIR.
26021         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26022         REPLACE_FCHDIR.
26023
26024 2010-04-03  Bruno Haible  <bruno@clisp.org>
26025
26026         getpagesize: Fix C++ test error on mingw.
26027         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26028         system does not declare the function.
26029         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26030         declared.
26031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26032         HAVE_DECL_GETPAGESIZE.
26033         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26034
26035 2010-04-03  Bruno Haible  <bruno@clisp.org>
26036
26037         stdio: Make C++ tests work on mingw.
26038         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26039         does not declare the function.
26040
26041 2010-04-03  Bruno Haible  <bruno@clisp.org>
26042
26043         ftello: Fix C++ test error on mingw.
26044         * lib/stdio.in.h (ftello): Use modern idiom.
26045         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26046         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26047         is missing and that it needs to be replaced.
26048         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26050         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26051
26052 2010-04-03  Bruno Haible  <bruno@clisp.org>
26053
26054         fseeko: Fix C++ test error on mingw.
26055         * lib/stdio.in.h (fseeko): Use modern idiom.
26056         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26057         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26058         is missing and that it needs to be replaced.
26059         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26061         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26062
26063 2010-04-03  Bruno Haible  <bruno@clisp.org>
26064
26065         mkstemp: Fix C++ test error on mingw.
26066         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26067         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26068         function is missing and that it needs to be replaced.
26069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26070         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26071
26072 2010-04-03  Bruno Haible  <bruno@clisp.org>
26073
26074         stpncpy: Fix C++ test error on mingw.
26075         * lib/string.in.h (stpncpy): Use modern idiom.
26076         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26077         function is missing and that it needs to be replaced.
26078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26079         REPLACE_STPNCPY.
26080         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26081
26082 2010-04-03  Bruno Haible  <bruno@clisp.org>
26083
26084         sys_stat: Fix C++ test error on mingw.
26085         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26086         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26087
26088 2010-04-03  Bruno Haible  <bruno@clisp.org>
26089
26090         pty: Update doc.
26091         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26092
26093 2010-04-03  Bruno Haible  <bruno@clisp.org>
26094
26095         unistd: Fix C++ test error on mingw.
26096         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26097
26098 2010-04-03  Bruno Haible  <bruno@clisp.org>
26099
26100         Update doc regarding mingw.
26101         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26102         * doc/glibc-functions/login_tty.texi: Likewise.
26103         * doc/glibc-functions/forkpty.texi: Likewise.
26104
26105 2010-04-03  Bruno Haible  <bruno@clisp.org>
26106
26107         stdlib: Avoid compilation failure of c-strtold on mingw.
26108         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26109
26110 2010-04-03  Bruno Haible  <bruno@clisp.org>
26111
26112         locale: Make C++ tests work on Cygwin and mingw.
26113         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26114         cannot provide the function.
26115         Reported by Simon Josefsson.
26116
26117 2010-04-03  Bruno Haible  <bruno@clisp.org>
26118
26119         localename: Port to MacOS X 10.6.
26120         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26121         memory layout of the locales in MacOS X 10.6 as well.
26122         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26123
26124 2010-04-02  Bruno Haible  <bruno@clisp.org>
26125
26126         gnulib-tool: Ensure that long-running tests are executed last.
26127         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26128         running tests after the one for the other tests.
26129
26130 2010-04-02  Bruno Haible  <bruno@clisp.org>
26131
26132         gnulib-tool: Ensure the tests in the main directory are executed first.
26133         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26134         start with the current directory.
26135
26136 2010-04-02  Bruno Haible  <bruno@clisp.org>
26137
26138         Tests for module 'havelib', moved here from GNU gettext.
26139         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26140         modifications.
26141         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26142         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26143         with modifications.
26144         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26145         modifications.
26146         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26147         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26148         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26149         with modifications.
26150         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26151         with modifications.
26152         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26153         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26154         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26155         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26156         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26157         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26158         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26159         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26160         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26161         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26162         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26163         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26164         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26165         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26166         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26167         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26168         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26169         with modifications.
26170         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26171         with modifications.
26172         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26173         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26174         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26175         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26176         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26177         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26178         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26179         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26180         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26181         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26182         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26183         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26184         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26185         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26186         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26187         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26188         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26189         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26190         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26191         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26192         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26193         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26194         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26195         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26196         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26197         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26198         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26199         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26200         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26201         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26202         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26203         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26204         * tests/havelib/rpathx/rpathx.c: New file, from
26205         gettext/autoconf-lib-link.
26206         * tests/havelib/rpathx/Makefile.am: New file, from
26207         gettext/autoconf-lib-link.
26208         * tests/havelib/rpathx/configure.ac: New file, from
26209         gettext/autoconf-lib-link with modifications.
26210         * tests/havelib/rpathy/rpathy.c: New file, from
26211         gettext/autoconf-lib-link.
26212         * tests/havelib/rpathy/Makefile.am: New file, from
26213         gettext/autoconf-lib-link.
26214         * tests/havelib/rpathy/configure.ac: New file, from
26215         gettext/autoconf-lib-link with modifications.
26216         * tests/havelib/rpathz/rpathz.c: New file, from
26217         gettext/autoconf-lib-link.
26218         * tests/havelib/rpathz/Makefile.am: New file, from
26219         gettext/autoconf-lib-link.
26220         * tests/havelib/rpathz/configure.ac: New file, from
26221         gettext/autoconf-lib-link with modifications.
26222         * tests/havelib/rpathlx/usex.c: New file, from
26223         gettext/autoconf-lib-link.
26224         * tests/havelib/rpathlx/Makefile.am: New file, from
26225         gettext/autoconf-lib-link.
26226         * tests/havelib/rpathlx/configure.ac: New file, from
26227         gettext/autoconf-lib-link with modifications.
26228         * tests/havelib/rpathly/usey.c: New file, from
26229         gettext/autoconf-lib-link.
26230         * tests/havelib/rpathly/Makefile.am: New file, from
26231         gettext/autoconf-lib-link.
26232         * tests/havelib/rpathly/configure.ac: New file, from
26233         gettext/autoconf-lib-link with modifications.
26234         * tests/havelib/rpathlz/usez.c: New file, from
26235         gettext/autoconf-lib-link.
26236         * tests/havelib/rpathlz/Makefile.am: New file, from
26237         gettext/autoconf-lib-link.
26238         * tests/havelib/rpathlz/configure.ac: New file, from
26239         gettext/autoconf-lib-link with modifications.
26240         * tests/havelib/rpathlyx/usey.c: New file, from
26241         gettext/autoconf-lib-link.
26242         * tests/havelib/rpathlyx/Makefile.am: New file, from
26243         gettext/autoconf-lib-link.
26244         * tests/havelib/rpathlyx/configure.ac: New file, from
26245         gettext/autoconf-lib-link with modifications.
26246         * tests/havelib/rpathlzyx/usez.c: New file, from
26247         gettext/autoconf-lib-link.
26248         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26249         gettext/autoconf-lib-link.
26250         * tests/havelib/rpathlzyx/configure.ac: New file, from
26251         gettext/autoconf-lib-link with modifications.
26252         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26253         with modifications.
26254
26255 2010-04-02  Bruno Haible  <bruno@clisp.org>
26256
26257         gnulib-tool: Create distributed built sources also for the tests.
26258         * gnulib-tool (func_create_testdir): Also generate distributed built
26259         sources in the tests directory.
26260
26261 2010-04-02  Bruno Haible  <bruno@clisp.org>
26262
26263         gnulib-tool: Obey user's environment variables.
26264         * gnulib-tool (func_create_testdir): When creating built sources,
26265         respect the environment variables for autoconf, automake, etc. given by
26266         the user.
26267
26268 2010-04-02  Bruno Haible  <bruno@clisp.org>
26269
26270         gnulib-tool: Provide the value of --m4-base to modules.
26271         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26272         of gl_m4_base.
26273
26274 2010-04-02  Eric Blake  <eblake@redhat.com>
26275
26276         maint.mk: fix some fallout
26277         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26278         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26279
26280 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26281
26282         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26283         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26284         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26285         (sc_cast_of_x_alloc_return_value): Likewise.
26286         (sc_cast_of_alloca_return_value): Likewise.
26287         (sc_space_tab): Likewise.
26288         (sc_prohibit_atoi_atof): Likewise.
26289         (sc_prohibit_magic_number_exit): Likewise.
26290         (sc_error_exit_success): Likewise.
26291         (sc_file_system): Likewise.
26292         (sc_prohibit_have_config_h): Likewise.
26293         (sc_require_config_h): Likewise.
26294         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26295         (sc_obsolete_symbols): Likewise.
26296         (sc_changelog): Likewise.
26297         (sc_program_name): Likewise.
26298         (sc_the_the): Likewise.
26299         (sc_trailing_blank): Likewise.
26300         (sc_two_space_separator_in_usage): Likewise.
26301         (sc_useless_cpp_parens): Likewise.
26302         (sc_GPL_version): Likewise.
26303         (sc_GFDL_version): Likewise.
26304         (sc_texinfo_acronym): Likewise.
26305         (sc_prohibit_cvs_keyword): Likewise.
26306         (sc_prohibit_stat_st_blocks): Likewise.
26307         (sc_prohibit_S_IS_definition): Likewise.
26308         (sc_redundant_const): Likewise.
26309         (sc_makefile_TAB_only_indentation): Likewise.
26310         (sc_m4_quote_check): Likewise.
26311         (sc_makefile_path_separator_check): Likewise.
26312         (sc_copyright_check): Likewise.
26313         (sc_Wundef_boolean): Likewise.
26314         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26315
26316         maint.mk: match 0 or more whitespace-before-function-call '('
26317         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26318         that have zero or two-and-more spaces between the function name
26319         and the open parenthesis.
26320         (sc_error_message_warn_fatal): Likewise.
26321         (sc_error_message_uppercase): Likewise.
26322         (sc_error_message_period): Likewise.
26323
26324 2010-03-31  Eric Blake  <eblake@redhat.com>
26325
26326         maint.mk: check for [ as well as test
26327         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26328         Based on a libvirt report by Matthias Bolte.
26329
26330         gnumakefile: don't squelch _version output
26331         * top/GNUmakefile (_version): Create one-shot dependency rather
26332         than using $(shell) when version must be regenerated.
26333         (_autoreconf): Run verbosely, by default.
26334
26335         sys_time: avoid compiler warnings
26336         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26337         unconditional, fixing regression from 2010-03-29.
26338         Reported by Simon Josefsson.
26339
26340 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26341
26342         maint.mk: s/_header_without_use/_sc_header_without_use/
26343         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26344         (sc_prohibit_assert_without_use): Use the new name.
26345         (sc_prohibit_close_stream_without_use): Likewise.
26346         (sc_prohibit_getopt_without_use): Likewise.
26347         (sc_prohibit_quotearg_without_use): Likewise.
26348         (sc_prohibit_quote_without_use): Likewise.
26349         (sc_prohibit_long_options_without_use): Likewise.
26350         (sc_prohibit_inttostr_without_use): Likewise.
26351         (sc_prohibit_ignore_value_without_use): Likewise.
26352         (sc_prohibit_error_without_use): Likewise.
26353         (sc_prohibit_xalloc_without_use): Likewise.
26354         (sc_prohibit_hash_without_use): Likewise.
26355         (sc_prohibit_hash_pjw_without_use): Likewise.
26356         (sc_prohibit_safe_read_without_use): Likewise.
26357         (sc_prohibit_argmatch_without_use): Likewise.
26358         (sc_prohibit_canonicalize_without_use): Likewise.
26359         (sc_prohibit_root_dev_ino_without_use): Likewise.
26360         (sc_prohibit_openat_without_use): Likewise.
26361         (sc_prohibit_c_ctype_without_use): Likewise.
26362         (sc_prohibit_signal_without_use): Likewise.
26363         (sc_prohibit_intprops_without_use): Likewise.
26364
26365 2010-03-30  Eric Blake  <eblake@redhat.com>
26366
26367         maint: improve module indicators
26368         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26369         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26370         columns, and avoid extra macro expansion.
26371
26372         fdopendir: work around FreeBSD bug
26373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26374         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26375         * modules/dirent (Makefile.am): Substitute it.
26376         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26377         declaration.
26378         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26379         fix.
26380         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26381
26382 2010-03-29  Bruno Haible  <bruno@clisp.org>
26383
26384         Emit #pragma system_header after the inclusion guard, not before.
26385         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26386         guard that spans the entire file, not before. This enables an
26387         optimization in GCC's preprocessor.
26388         * lib/ctype.in.h: Likewise.
26389         * lib/dirent.in.h: Likewise.
26390         * lib/errno.in.h: Likewise.
26391         * lib/float.in.h: Likewise.
26392         * lib/getopt.in.h: Likewise.
26393         * lib/iconv.in.h: Likewise.
26394         * lib/langinfo.in.h: Likewise.
26395         * lib/locale.in.h: Likewise.
26396         * lib/math.in.h: Likewise.
26397         * lib/netdb.in.h: Likewise.
26398         * lib/netinet_in.in.h: Likewise.
26399         * lib/pty.in.h: Likewise.
26400         * lib/sched.in.h: Likewise.
26401         * lib/se-selinux.in.h: Likewise.
26402         * lib/search.in.h: Likewise.
26403         * lib/spawn.in.h: Likewise.
26404         * lib/stdarg.in.h: Likewise.
26405         * lib/stdint.in.h: Likewise.
26406         * lib/string.in.h: Likewise.
26407         * lib/strings.in.h: Likewise.
26408         * lib/sys_file.in.h: Likewise.
26409         * lib/sys_ioctl.in.h: Likewise.
26410         * lib/sys_time.in.h: Likewise.
26411         * lib/sys_times.in.h: Likewise.
26412         * lib/sys_utsname.in.h: Likewise.
26413         * lib/sys_wait.in.h: Likewise.
26414         * lib/sysexits.in.h: Likewise.
26415         * lib/wctype.in.h: Likewise.
26416
26417 2010-03-28  James Youngman  <jay@gnu.org>
26418
26419         save-cwd: don't leak a file descriptor when the caller execs.
26420         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26421         saved file descriptor.
26422         * modules/save-cwd (Depends-on): Depend on cloexec.
26423
26424 2010-03-29  Bruno Haible  <bruno@clisp.org>
26425
26426         Remove vestiges of fts-lgpl module.
26427         * lib/fts_.h: Assume GNULIB_FTS is 1.
26428         * lib/fts.c: Likewise.
26429         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26430
26431 2010-03-28  Bruno Haible  <bruno@clisp.org>
26432
26433         Fix definition of tests witness macro.
26434         * gnulib-tool (func_import): Fix definition of witness macro.
26435
26436 2010-03-28  Bruno Haible  <bruno@clisp.org>
26437
26438         Fix ioctl's protoype on glibc systems.
26439         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26440         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26441         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26442         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26443         signature. If not, arrange to replace the ioctl function.
26444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26445         REPLACE_IOCTL.
26446         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26447         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26448         Reported by Ludovic Courtès <ludo@gnu.org>.
26449
26450 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26451
26452         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26453         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26454         made it so grep -r --include=GLOB* ... did not work.
26455
26456 2010-03-26  Jim Meyering  <meyering@redhat.com>
26457             Eric Blake  <eblake@redhat.com>
26458
26459         maint.mk: prohibit use of test's -o and -a operators
26460         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26461
26462 2010-03-28  Bruno Haible  <bruno@clisp.org>
26463
26464         Remove unused GNULIB_XYZ macro definitions.
26465         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26466         invocation.
26467
26468 2010-03-28  Bruno Haible  <bruno@clisp.org>
26469
26470         Mark privileged tests modules.
26471         * modules/idpriv-drop-tests (Status): New section.
26472         * modules/idpriv-droptemp-tests (Status): New section.
26473
26474 2010-03-28  Bruno Haible  <bruno@clisp.org>
26475
26476         Split C++ tests into separate tests modules.
26477         * modules/dirent-c++-tests: New file, extracted from
26478         modules/dirent-tests.
26479         * modules/dirent-tests: Depend on it.
26480         * modules/fcntl-h-c++-tests: New file, extracted from
26481         modules/fcntl-h-tests.
26482         * modules/fcntl-h-tests: Depend on it.
26483         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26484         * modules/glob-tests: Depend on it.
26485         * modules/iconv-h-c++-tests: New file, extracted from
26486         modules/iconv-h-tests.
26487         * modules/iconv-h-tests: Depend on it.
26488         * modules/langinfo-c++-tests: New file, extracted from
26489         modules/langinfo-tests.
26490         * modules/langinfo-tests: Depend on it.
26491         * modules/locale-c++-tests: New file, extracted from
26492         modules/locale-tests.
26493         * modules/locale-tests: Depend on it.
26494         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26495         * modules/math-tests: Depend on it.
26496         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26497         * modules/pty-tests: Depend on it.
26498         * modules/search-c++-tests: New file, extracted from
26499         modules/search-tests.
26500         * modules/search-tests: Depend on it.
26501         * modules/signal-c++-tests: New file, extracted from
26502         modules/signal-tests.
26503         * modules/signal-tests: Depend on it.
26504         * modules/spawn-c++-tests: New file, extracted from
26505         modules/spawn-tests.
26506         * modules/spawn-tests: Depend on it.
26507         * modules/stdio-c++-tests: New file, extracted from
26508         modules/stdio-tests.
26509         * modules/stdio-tests: Depend on it.
26510         * modules/stdlib-c++-tests: New file, extracted from
26511         modules/stdlib-tests.
26512         * modules/stdlib-tests: Depend on it.
26513         * modules/string-c++-tests: New file, extracted from
26514         modules/string-tests.
26515         * modules/string-tests: Depend on it.
26516         * modules/sys_ioctl-c++-tests: New file, extracted from
26517         modules/sys_ioctl-tests.
26518         * modules/sys_ioctl-tests: Depend on it.
26519         * modules/sys_select-c++-tests: New file, extracted from
26520         modules/sys_select-tests.
26521         * modules/sys_select-tests: Depend on it.
26522         * modules/sys_socket-c++-tests: New file, extracted from
26523         modules/sys_socket-tests.
26524         * modules/sys_socket-tests: Depend on it.
26525         * modules/sys_stat-c++-tests: New file, extracted from
26526         modules/sys_stat-tests.
26527         * modules/sys_stat-tests: Depend on it.
26528         * modules/sys_time-c++-tests: New file, extracted from
26529         modules/sys_time-tests.
26530         * modules/sys_time-tests: Depend on it.
26531         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26532         * modules/time-tests: Depend on it.
26533         * modules/unistd-c++-tests: New file, extracted from
26534         modules/unistd-tests.
26535         * modules/unistd-tests: Depend on it.
26536         * modules/wchar-c++-tests: New file, extracted from
26537         modules/wchar-tests.
26538         * modules/wchar-tests: Depend on it.
26539         * modules/wctype-c++-tests: New file, extracted from
26540         modules/wctype-tests.
26541         * modules/wctype-tests: Depend on it.
26542         Reported by Simon Josefsson.
26543
26544 2010-03-28  Bruno Haible  <bruno@clisp.org>
26545
26546         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26547         * gnulib-tool (func_exists_module): New function, extracted from
26548         func_verify_module.
26549         (func_verify_module): Use it.
26550         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26551         'foo' only if 'foo' exists.
26552         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26553         module.
26554
26555 2010-03-28  Bruno Haible  <bruno@clisp.org>
26556
26557         gnulib-tool: Add support for special categories of tests.
26558         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26559         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26560         (func_usage): Document them.
26561         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26562         inc_unportable_tests, inc_all_tests): New variables.
26563         (func_acceptable): Consider these variables.
26564         (func_modules_transitive_closure): Make it work when the 'Status' field
26565         consists of multiple words.
26566         (func_import): Store and restore the values of inc_cxx_tests,
26567         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26568         inc_all_tests in gnulib-comp.m4.
26569         (func_create_testdir): Set inc_all_tests to true.
26570         * doc/gnulib.texi (Extra tests modules): New section.
26571         Suggested by Jim Meyering.
26572
26573 2010-03-28  Bruno Haible  <bruno@clisp.org>
26574
26575         ansi-c++-opt: Allow turning off the C++ build by default.
26576         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26577         gl_CXX_CHOICE_DEFAULT_NO is defined.
26578         Requested by Eric Blake.
26579
26580 2010-03-28  Bruno Haible  <bruno@clisp.org>
26581
26582         unistd: Avoid #define replacements in C++ mode.
26583         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26584         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26585         setsockopt, shutdown, select): In C++, attach a warning to the function
26586         if possible, rather than #defining the symbol to a dysfunctional alias.
26587         Reported by John W. Eaton <jwe@gnu.org>.
26588
26589 2010-03-28  Bruno Haible  <bruno@clisp.org>
26590
26591         Fix link errors on mingw.
26592         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26593         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26594         $(LIBSOCKET).
26595         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26596         $(LIBSOCKET).
26597
26598 2010-03-28  Bruno Haible  <bruno@clisp.org>
26599             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26600
26601         lib-ignore: Determine different options for different compilers.
26602         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26603         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26604         Add comments.
26605         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26606         * NEWS: Mention the change.
26607
26608 2010-03-27  Bruno Haible  <bruno@clisp.org>
26609
26610         Remove unused GNULIB_XYZ macro definitions.
26611         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26612         * modules/fseek (configure.ac): Likewise.
26613         * modules/ioctl (configure.ac): Likewise.
26614         * modules/open (configure.ac): Likewise.
26615         * modules/stdlib-safer (configure.ac): Likewise.
26616
26617 2010-03-27  Bruno Haible  <bruno@clisp.org>
26618
26619         Add a remark about certain modules.
26620         * modules/malloc (Comment): New section.
26621         * modules/realloc (Comment): Likewise.
26622         * modules/sigpipe (Comment): Likewise.
26623
26624 2010-03-27  Bruno Haible  <bruno@clisp.org>
26625
26626         Resolve conflict between the two kinds of module indicators.
26627         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26628         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26629         * modules/canonicalize (configure.ac): Invoke
26630         gl_MODULE_INDICATOR_FOR_TESTS.
26631         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26632         GNULIB_XYZ.
26633         * tests/test-dirent-c++.cc: Likewise.
26634         * tests/test-dirent-safer.c: Likewise.
26635         * tests/test-dup2.c: Likewise.
26636         * tests/test-fchdir.c: Likewise.
26637         * tests/test-fcntl-h-c++.cc: Likewise.
26638         * tests/test-getopt.c: Likewise.
26639         * tests/test-getopt.h: Likewise.
26640         * tests/test-langinfo-c++.cc: Likewise.
26641         * tests/test-locale-c++.cc: Likewise.
26642         * tests/test-math-c++.cc: Likewise.
26643         * tests/test-pty-c++.cc: Likewise.
26644         * tests/test-search-c++.cc: Likewise.
26645         * tests/test-signal-c++.cc: Likewise.
26646         * tests/test-spawn-c++.cc: Likewise.
26647         * tests/test-stdio-c++.cc: Likewise.
26648         * tests/test-stdlib-c++.cc: Likewise.
26649         * tests/test-string-c++.cc: Likewise.
26650         * tests/test-sys_ioctl-c++.cc: Likewise.
26651         * tests/test-sys_select-c++.cc: Likewise.
26652         * tests/test-sys_socket-c++.cc: Likewise.
26653         * tests/test-sys_stat-c++.cc: Likewise.
26654         * tests/test-sys_time-c++.cc: Likewise.
26655         * tests/test-time-c++.cc: Likewise.
26656         * tests/test-unistd-c++.cc: Likewise.
26657         * tests/test-wchar-c++.cc: Likewise.
26658         * tests/uninorm/test-u8-nfc.c: Likewise.
26659         * tests/uninorm/test-u8-nfd.c: Likewise.
26660         * tests/uninorm/test-u8-nfkc.c: Likewise.
26661         * tests/uninorm/test-u8-nfkd.c: Likewise.
26662         * tests/uninorm/test-u16-nfc.c: Likewise.
26663         * tests/uninorm/test-u16-nfd.c: Likewise.
26664         * tests/uninorm/test-u16-nfkc.c: Likewise.
26665         * tests/uninorm/test-u16-nfkd.c: Likewise.
26666         * tests/uninorm/test-u32-nfc.c: Likewise.
26667         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26668         * tests/uninorm/test-u32-nfd.c: Likewise.
26669         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26670         * tests/uninorm/test-u32-nfkc.c: Likewise.
26671         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26672         * tests/uninorm/test-u32-nfkd.c: Likewise.
26673         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26674         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26675
26676 2010-03-27  Bruno Haible  <bruno@clisp.org>
26677
26678         Distinguish two kinds of module indicators.
26679         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26680         gl_MODULE_INDICATOR.
26681         (gl_MODULE_INDICATOR): New macro.
26682         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26683         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26684         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26685         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26686         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26687         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26688         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26689         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26690         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26691         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26692         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26693         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26695         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26696         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26698         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26699         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26700         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26701         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26702         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26703         * modules/cloexec (configure.ac): Likewise.
26704         * modules/getopt-gnu (configure.ac): Likewise.
26705         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26706         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26707         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26708         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26709
26710 2010-03-27  Bruno Haible  <bruno@clisp.org>
26711
26712         New module description field 'Comment'.
26713         * gnulib-tool: New option --extract-comment.
26714         (func_usage): Document it.
26715         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26716         (func_get_comment): New function.
26717         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26718
26719 2010-03-27  Bruno Haible  <bruno@clisp.org>
26720
26721         Addendum to 2010-02-07 commit.
26722         * gnulib-tool (func_usage): Document --extract-applicability option.
26723
26724 2010-03-27  Bruno Haible  <bruno@clisp.org>
26725
26726         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26727         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26728         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26729         rather than link errors.
26730
26731 2010-03-27  Bruno Haible  <bruno@clisp.org>
26732
26733         Avoid side effects from tests-related modules on the compilation of lib.
26734         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26735         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26736         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26737         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26738         macro.
26739         (func_import): Define a witness macro. Assign it a value that depends
26740         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26741         tests-related modules.
26742         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26743         Reported by Jim Meyering.
26744
26745 2010-03-27  Bruno Haible  <bruno@clisp.org>
26746
26747         Factorize common .m4 code.
26748         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26749         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26750         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26751         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26752         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26753         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26754         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26755         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26756         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26757         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26758         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26759         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26760         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26761         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26762         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26763         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26764         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26765         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26767         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26768         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26770         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26772         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26773         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26774         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26775         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26776         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26777         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26778         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26779         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26780
26781 2010-03-27  Bruno Haible  <bruno@clisp.org>
26782
26783         Fix a compilation error on Cygwin with g++ >= 4.3.
26784         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26785         if it is undefined or if we alias it to chmod.
26786         (lstat): Don't warn about the use of this function if it is undefined
26787         or if we alias it to stat.
26788         Reported by Simon Josefsson.
26789
26790 2010-03-27  Bruno Haible  <bruno@clisp.org>
26791
26792         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26793         * modules/getlogin (configure.ac): Update.
26794
26795         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26796         * modules/getlogin_r (configure.ac): Update.
26797
26798         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26800         * modules/inet_ntop (configure.ac): Update.
26801
26802         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26803         * modules/inet_pton (configure.ac): Update.
26804
26805         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26806         * modules/mbslen (configure.ac): Update.
26807
26808         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26809         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26810         * modules/forkpty (configure.ac): Update.
26811         * modules/openpty (configure.ac): Update.
26812
26813 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26814
26815         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26816         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26817
26818 2010-03-25  Eric Blake  <eblake@redhat.com>
26819
26820         maint: use pragma consistently across replacement headers
26821         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26822         * lib/dirent.in.h (system_header): Likewise.
26823         * lib/errno.in.h (system_header): Likewise.
26824         * lib/float.in.h (system_header): Likewise.
26825         * lib/getopt.in.h (system_header): Likewise.
26826         * lib/iconv.in.h (system_header): Likewise.
26827         * lib/inttypes.in.h (system_header): Likewise.
26828         * lib/langinfo.in.h (system_header): Likewise.
26829         * lib/locale.in.h (system_header): Likewise.
26830         * lib/math.in.h (system_header): Likewise.
26831         * lib/netdb.in.h (system_header): Likewise.
26832         * lib/netinet_in.in.h (system_header): Likewise.
26833         * lib/pty.in.h (system_header): Likewise.
26834         * lib/sched.in.h (system_header): Likewise.
26835         * lib/se-selinux.in.h (system_header): Likewise.
26836         * lib/search.in.h (system_header): Likewise.
26837         * lib/spawn.in.h (system_header): Likewise.
26838         * lib/stdarg.in.h (system_header): Likewise.
26839         * lib/stdint.in.h (system_header): Likewise.
26840         * lib/string.in.h (system_header): Likewise.
26841         * lib/strings.in.h (system_header): Likewise.
26842         * lib/sys_file.in.h (system_header): Likewise.
26843         * lib/sys_ioctl.in.h (system_header): Likewise.
26844         * lib/sys_socket.in.h (system_header): Likewise.
26845         * lib/sys_times.in.h (system_header): Likewise.
26846         * lib/sys_utsname.in.h (system_header): Likewise.
26847         * lib/sys_wait.in.h (system_header): Likewise.
26848         * lib/sysexits.in.h (system_header): Likewise.
26849         * lib/unistd.in.h (system_header): Likewise.
26850         * lib/wctype.in.h (system_header): Likewise.
26851
26852         arpa/inet: fix mingw compilation warning
26853         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26854         Reported by Matthew Bolte.
26855
26856 2010-03-25  Bruno Haible  <bruno@clisp.org>
26857
26858         Avoid collision between gnulib wrapper and libintl wrapper.
26859         * lib/printf.c (printf): Don't define if a printf wrapper is already
26860         defined in intl/printf.c.
26861         Reported by Michel Boaventura <michel@michelboaventura.com>.
26862
26863 2010-03-25  Bruno Haible  <bruno@clisp.org>
26864
26865         Use ANSI C.
26866         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26867
26868 2010-03-25  Bruno Haible  <bruno@clisp.org>
26869
26870         Minor formatting changes.
26871         * lib/acosl.c: Insert space before function argument list.
26872         * lib/argz.c: Likewise.
26873         * lib/asinl.c: Likewise.
26874         * lib/expl.c: Likewise.
26875         * lib/gen-uni-tables.c: Likewise.
26876         * lib/gettext.h: Likewise.
26877         * lib/glthread/lock.h: Likewise.
26878         * lib/tanl.c: Likewise.
26879         * lib/uniname/uniname.c: Likewise.
26880         * tests/test-idpriv-drop.c: Likewise.
26881         * tests/test-idpriv-droptemp.c: Likewise.
26882         * tests/test-lock.c: Likewise.
26883         * tests/test-tls.c: Likewise.
26884         * lib/argp-help.c: Insert space before function-like macro argument
26885         list.
26886         * lib/memcmp.c: Likewise.
26887         * tests/test-base64.c: Likewise.
26888         * lib/localename.c: Insert space before sizeof's argument list.
26889         * lib/safe-alloc.h: Likewise.
26890         * lib/file-set.h: Insert space before macro argument list.
26891         * tests/test-argp.c: Likewise.
26892         * lib/argp-namefrob.h: Insert space before function parameter list.
26893         * lib/getaddrinfo.c: Likewise.
26894         * lib/netdb.in.h: Likewise.
26895         * lib/parse-duration.h: Likewise.
26896         * lib/parse-duration.c: Likewise.
26897         * lib/poll.c: Likewise.
26898         * lib/select.c: Likewise.
26899         * lib/trim.h: Likewise.
26900         * tests/test-usleep.c: Likewise.
26901         * lib/ldexpl.c: Insert space before function parameter list and before
26902         function argument list.
26903         * lib/logl.c: Likewise.
26904         * lib/sqrtl.c: Likewise.
26905         * lib/trim.c: Likewise.
26906         * lib/cosl.c: Use GNU style indentation. Insert space before function
26907         argument list.
26908         * lib/sinl.c: Likewise.
26909         * lib/tsearch.c: Insert space after 'for'.
26910         Reported by Jim Meyering.
26911
26912 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26913
26914         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26915         config header before grepping, as it's not present before
26916         autoreconf/configure are run.  Reported by Simon Josefsson.
26917
26918 2010-03-23  Bruno Haible  <bruno@clisp.org>
26919
26920         pt_chown: Make it work with automake < 1.11.
26921         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26922         Reported by Simon Josefsson.
26923
26924 2010-03-23  Bruno Haible  <bruno@clisp.org>
26925
26926         pt_chown: Don't depend on GPLed modules.
26927         * lib/pt_chown.c: Don't include idpriv.h.
26928         (main): Don't drop privileges.
26929         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26930         Reported by Simon Josefsson.
26931
26932 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26933
26934         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26935         suggestions from karl@freefriends.org (Karl Berry).
26936
26937 2010-03-22  Eric Blake  <eblake@redhat.com>
26938
26939         gethostname: further tweaks
26940         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26941         are overriding gethostname.
26942         Suggested by Bruno Haible.
26943
26944 2010-03-21  Bruno Haible  <bruno@clisp.org>
26945
26946         Fix comments.
26947         * lib/forkpty.c (rpl_forkpty): Fix comment.
26948         * lib/openpty.c (rpl_openpty): Likewise.
26949         Reported by Eric Blake.
26950
26951 2010-03-22  Eric Blake  <eblake@redhat.com>
26952
26953         gethostname: fix build on mingw
26954         * lib/unistd.in.h (includes): Work around fact that mingw
26955         <winsock2.h> re-includes <unistd.h>, by avoiding any
26956         redeclarations if we are being included by <winsock2.h>.
26957         Reported by Matthias Bolte.
26958
26959 2010-03-21  Bruno Haible  <bruno@clisp.org>
26960
26961         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26962         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26963         modifications.
26964         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26965         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26966         provide the replacement.
26967         * modules/forkpty (Depends-on): Add openpty, login_tty.
26968         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26969         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26970         * doc/glibc-functions/forkpty.texi: More supported platforms.
26971         * config/srclist.txt: Add forkpty.c (commented).
26972
26973 2010-03-21  Bruno Haible  <bruno@clisp.org>
26974
26975         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26976         (Makefile.am): Verify that PTY_LIB is defined.
26977
26978         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26979
26980 2010-03-21  Bruno Haible  <bruno@clisp.org>
26981
26982         Tests for module 'login_tty'.
26983         * modules/login_tty-tests: New file.
26984         * tests/test-login_tty.c: New file.
26985
26986         New module 'login_tty'.
26987         * lib/login_tty.c: New file.
26988         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26989         * modules/login_tty: New file.
26990         * doc/glibc-functions/login_tty.texi: Mention the new module.
26991
26992 2010-03-21  Bruno Haible  <bruno@clisp.org>
26993
26994         login_tty: Documentation.
26995         * doc/glibc-functions/login_tty.texi: New file.
26996         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26997
26998 2010-03-21  Bruno Haible  <bruno@clisp.org>
26999
27000         pty: Consistent macro naming.
27001         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27002         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27003         * modules/pty (configure.ac): Update.
27004
27005 2010-03-21  Bruno Haible  <bruno@clisp.org>
27006
27007         Tests for openpty: Make stricter.
27008         * tests/test-openpty.c (main): Add test of canonical processing and
27009         erase.
27010         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27011
27012         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27013         * lib/openpty.c (openpty): New replacement function.
27014         * lib/pty.in.h: Include <termios.h>.
27015         (openpty): Update declaration. Add comments.
27016         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27017         is not declared, arrange to provide the replacement. Check for _getpty
27018         and posix_openpt.
27019         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27020         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27021         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27022         * modules/pty-tests (test_pty_c___LDADD): New variable.
27023         * doc/glibc-functions/openpty.texi: More supported platforms.
27024
27025 2010-03-21  Bruno Haible  <bruno@clisp.org>
27026
27027         setenv: Tweaks.
27028         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27029         the test program.
27030         * doc/posix-functions/setenv.texi: Update platforms list.
27031
27032 2010-03-21  Bruno Haible  <bruno@clisp.org>
27033
27034         New module 'unlockpt'.
27035         * lib/unlockpt.c: New file, from glibc with modifications.
27036         * m4/unlockpt.m4: New file.
27037         * modules/unlockpt: New file.
27038         * lib/stdlib.in.h (unlockpt): New declaration.
27039         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27040         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27041         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27042         HAVE_UNLOCKPT.
27043         * doc/posix-functions/unlockpt.texi: Mention the new module.
27044         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27045         * config/srclist.txt: Add unlockpt.c (commented).
27046
27047 2010-03-21  Jim Meyering  <meyering@redhat.com>
27048
27049         maint.mk: prohibit inclusion of "intprops.h" without use
27050         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27051
27052 2010-03-21  Bruno Haible  <bruno@clisp.org>
27053
27054         New module 'grantpt'.
27055         * lib/grantpt.c: New file, from glibc with modifications.
27056         * m4/grantpt.m4: New file.
27057         * modules/grantpt: New file.
27058         * lib/stdlib.in.h (grantpt): New declaration.
27059         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27060         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27061         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27062         HAVE_GRANTPT.
27063         * doc/posix-functions/grantpt.texi: Mention the new module.
27064         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27065         * config/srclist.txt: Add grantpt.c (commented).
27066
27067 2010-03-21  Bruno Haible  <bruno@clisp.org>
27068
27069         New module 'pt_chown'.
27070         * lib/pt_chown.c: New file, from glibc with modifications.
27071         * lib/pty-private.h: New file, from glibc with modifications.
27072         * modules/pt_chown: New file.
27073         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27074
27075 2010-03-21  Bruno Haible  <bruno@clisp.org>
27076
27077         Tests for module 'ptsname'.
27078         * modules/ptsname-tests: New file.
27079         * tests/test-ptsname.c: New file.
27080
27081         New module 'ptsname'.
27082         * lib/ptsname.c: New file, from glibc with modifications.
27083         * m4/ptsname.m4: New file.
27084         * modules/ptsname: New file.
27085         * lib/stdlib.in.h (ptsname): New declaration.
27086         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27087         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27088         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27089         HAVE_PTSNAME.
27090         * doc/posix-functions/ptsname.texi: Mention the new module.
27091         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27092         * config/srclist.txt: Add ptsname.c (commented).
27093
27094 2010-03-21  Bruno Haible  <bruno@clisp.org>
27095
27096         Tests for module 'ttyname_r'.
27097         * modules/ttyname_r-tests: New file.
27098         * tests/test-ttyname_r.c: New file.
27099
27100         New module 'ttyname_r'.
27101         * lib/ttyname_r.c: New file.
27102         * m4/ttyname_r.m4: New file.
27103         * modules/ttyname_r: New file.
27104         * lib/unistd.in.h (ttyname_r): New declaration.
27105         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27106         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27107         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27108         HAVE_TTYNAME_R.
27109         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27110         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27111
27112 2010-03-20  Bruno Haible  <bruno@clisp.org>
27113
27114         signal: Undefine macro definitions in C++ mode.
27115         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27116         sigfillset): Undefine macro definitions from the system header in C++
27117         mode.
27118         Reported by John W. Eaton <jwe@gnu.org>.
27119
27120 2010-03-20  Bruno Haible  <bruno@clisp.org>
27121
27122         Ensure no #include statements inside extern "C" { ... }.
27123         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27124         contain #include statements.
27125         * lib/time.in.h: Likewise.
27126
27127 2010-03-20  Bruno Haible  <bruno@clisp.org>
27128
27129         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27130         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27131         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27132         Reported by John W. Eaton <jwe@gnu.org>.
27133
27134 2010-03-20  Bruno Haible  <bruno@clisp.org>
27135
27136         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27137         Reported by Jim Meyering.
27138
27139 2010-03-20  Bruno Haible  <bruno@clisp.org>
27140
27141         pipe: Set errno upon failure.
27142         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27143         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27144         errno value in error message.
27145
27146 2010-03-20  Bruno Haible  <bruno@clisp.org>
27147             Jim Meyering  <meyering@redhat.com>
27148
27149         lchown: Avoid "unused variable" warning.
27150         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27151
27152 2010-03-20  Bruno Haible  <bruno@clisp.org>
27153
27154         Work around unlink() bug on MacOS X 10.5.6.
27155         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27156         attempting to unlink a parent directory.
27157         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27158         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27159         activate for the replacement function.
27160         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27161
27162 2010-03-20  Bruno Haible  <bruno@clisp.org>
27163
27164         Fix link errors on Solaris 8.
27165         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27166         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27167
27168 2010-03-19  Jim Meyering  <meyering@redhat.com>
27169
27170         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27171         The _LIBC implementation of build_range_exp correctly honors the
27172         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27173         However, the non-_LIBC implementation would ignore that syntax-bit
27174         flag and return REG_ERANGE unconditionally.
27175         This change makes it honor that flag.
27176         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27177         Make two pointer parameters "const".
27178         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27179         (parse_bracket_exp): Update caller.
27180
27181         regex.m4: correct the reversed range endpoint ([b-a]) test
27182         * m4/regex.m4: When requiring that [b-a] evoke failure,
27183         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27184         test pass once again for x86-based systems.
27185
27186 2010-03-19  Bruno Haible  <bruno@clisp.org>
27187
27188         scandir: Fix link error on Solaris 8.
27189         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27190         macros.
27191
27192 2010-03-19  Bruno Haible  <bruno@clisp.org>
27193
27194         getusershell: Fix documentation.
27195         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27196         module.
27197         * doc/glibc-functions/setusershell.texi: Likewise.
27198
27199         getusershell: Provide declaration, missing on Solaris 9.
27200         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27201         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27202         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27203         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27205         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27206         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27207         HAVE_GETUSERSHELL.
27208         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27209
27210 2010-03-19  Bruno Haible  <bruno@clisp.org>
27211
27212         wctype: Provide iswblank function.
27213         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27214         exists and is fine.
27215         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27216         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27217         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27218         * doc/posix-functions/iswblank.texi: Update.
27219
27220 2010-03-19  Bruno Haible  <bruno@clisp.org>
27221
27222         Tests of module 'pty' in C++ mode.
27223         * modules/pty-tests: New file.
27224         * tests/test-pty-c++.cc: New file.
27225         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27226
27227 2010-03-19  Eric Blake  <eblake@redhat.com>
27228
27229         logb: fix documentation
27230         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27231         1.5 declaration bug.
27232
27233         forkpty, openpty: prefer glibc's const-safe prototype
27234         * lib/forkpty.c (rpl_forkpty): New file.
27235         * lib/openpty.c (rpl_openpty): Likewise.
27236         * modules/forkpty (Files): Distribute it.
27237         * modules/openpty (Files): Likewise.
27238         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27239         check...
27240         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27241         replacement for for non-const BSD signature.
27242         * modules/pty (Makefile.am): Substitute witnesses.
27243         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27244         * tests/test-forkpty.c: Update signature check.
27245         * tests/test-openpty.c: Likewise.
27246         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27247         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27248
27249         forkpty, openpty: split functions into new modules
27250         * modules/pty (Makefile.am): Substitute new witnesses.
27251         (Libraries): Move library detection...
27252         * modules/forkpty: ...into new module.
27253         * modules/openpty: Another new module.
27254         * modules/pty-tests: Rename and split...
27255         * modules/forkpty-tests: ...to this...
27256         * modules/openpty-tests: ...and this.
27257         * tests/test-pty.c: Rename and split...
27258         * tests/test-forkpty.c: ...to this...
27259         * tests/test-openpty.c: ...and this.
27260         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27261         (gl_PTY): Split library searching...
27262         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27263         (gl_FORKPTY, gl_OPENPTY): New macros.
27264         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27265         * NEWS: Mention the split.
27266         * MODULES.html.sh (Misc): Document the modules.
27267         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27268         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27269
27270         pty: improve replacement header
27271         * lib/pty.in.h: New file.
27272         * modules/pty (Files): Ship it.
27273         (Makefile.am): Always build replacement.
27274         * m4/pty.m4: Rename...
27275         * m4/pty_h.m4: ...to this.
27276         (gl_PTY): Modernize setting of witness macros; update check of
27277         forkpty to take proper advantage of cache.
27278         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27279
27280         getopt: avoid compiler warning
27281         * lib/getopt.c (attribute_hidden): Remove unused macro.
27282
27283 2010-03-18  Bruno Haible  <bruno@clisp.org>
27284
27285         Fix link errors on Solaris 8.
27286         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27287         * modules/search-tests (test_search_c___LDADD): Likewise.
27288         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27289         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27290         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27291         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27292         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27293         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27294         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27295
27296 2010-03-18  Bruno Haible  <bruno@clisp.org>
27297
27298         Fix bug introduced on 2010-03-14.
27299         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27300         (gl_SPAWN_H): Require it.
27301         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27302         Reported by Simon Josefsson.
27303
27304 2010-03-18  Bruno Haible  <bruno@clisp.org>
27305
27306         Fix typo introduced on 2009-12-31.
27307         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27308         posix_spawn_file_actions_adddup2.
27309
27310 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27311         and Eric Blake  <eblake@redhat.com>
27312
27313         test-vc-list-files-git: make more robust
27314         * tests/test-vc-list-files-git.sh: Unset problematic environment
27315         variables.  Chain commands together.
27316
27317 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27318
27319         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27320         `AC_CHECK_DECL' invocation.
27321
27322 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27323
27324         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27325         appears before executable statements. Suggested by Petr Sumbera
27326         <Petr.Sumbera@Sun.COM>.
27327
27328 2010-03-14  Bruno Haible  <bruno@clisp.org>
27329
27330         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27331         portability problems. Instead use a simpler test.
27332         (main): Check that invalid arguments are rejected only on Linux.
27333
27334 2010-03-14  Bruno Haible  <bruno@clisp.org>
27335
27336         Fix bug introduced on 2009-12-31.
27337         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27338         gl_PREREQ_SYS_H_WINSOCK2 always.
27339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27340         SYS_SOCKET_H variable.
27341         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27342         Update comments.
27343         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27344         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27345         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27346         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27347         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27348
27349 2010-03-14  Bruno Haible  <bruno@clisp.org>
27350
27351         Fix values returned by sinl, cosl.
27352         * lib/trigl.h: Add specification comments.
27353         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27354         that combines the values from the precomputed table with the values of
27355         the Chebyshev polynomials.
27356
27357 2010-03-14  Bruno Haible  <bruno@clisp.org>
27358
27359         Fix compilation error when modules 'posix_spawn[p]' are not used.
27360         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27362
27363 2010-03-14  Bruno Haible  <bruno@clisp.org>
27364
27365         Fix compilation error on mingw when module 'time_r' is not used.
27366         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27367         is 1.
27368         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27369         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27370         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27372
27373 2010-03-14  Bruno Haible  <bruno@clisp.org>
27374
27375         Fix compilation error with Sun C.
27376         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27377         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27378         instead of GCC specific ULONG_LONG_MAX.
27379         * lib/xstrtoll.c: Likewise.
27380         * lib/xstrtoull.c: Likewise.
27381
27382 2010-03-13  Bruno Haible  <bruno@clisp.org>
27383
27384         Allow the user to disable C++ code and tests.
27385         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27386         (gl_PROG_ANSI_CXX): Require it.
27387
27388 2010-03-13  Bruno Haible  <bruno@clisp.org>
27389
27390         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27391         cases.
27392
27393 2010-03-13  Bruno Haible  <bruno@clisp.org>
27394
27395         Test that gnulib does not break the standard C++ headers.
27396         * tests/test-locale-c++2.cc: New file.
27397         * modules/locale-tests (Files): Add it.
27398         (Makefile.am): Compile it for test-locale-c++.
27399         * tests/test-math-c++2.cc: New file.
27400         * modules/math-tests (Files): Add it.
27401         (Makefile.am): Compile it for test-math-c++.
27402         * tests/test-signal-c++2.cc: New file.
27403         * modules/signal-tests (Files): Add it.
27404         (Makefile.am): Compile it for test-signal-c++.
27405         * tests/test-stdio-c++2.cc: New file.
27406         * modules/stdio-tests (Files): Add it.
27407         (Makefile.am): Compile it for test-stdio-c++.
27408         * tests/test-stdlib-c++2.cc: New file.
27409         * modules/stdlib-tests (Files): Add it.
27410         (Makefile.am): Compile it for test-stdlib-c++.
27411         * tests/test-string-c++2.cc: New file.
27412         * modules/string-tests (Files): Add it.
27413         (Makefile.am): Compile it for test-string-c++.
27414         * tests/test-time-c++2.cc: New file.
27415         * modules/time-tests (Files): Add it.
27416         (Makefile.am): Compile it for test-time-c++.
27417         Reported by John W. Eaton <jwe@gnu.org>.
27418
27419 2010-03-13  Bruno Haible  <bruno@clisp.org>
27420
27421         * gnulib-tool (func_usage): Clarify which options are available for
27422         --create-testdir and --create-megatestdir.
27423
27424 2010-03-13  Bruno Haible  <bruno@clisp.org>
27425
27426         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27427         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27428         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27429         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27430         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27431         when appropriate.
27432         Reported by Jim Meyering.
27433
27434 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27435
27436         * gnulib-tool (func_import): Explain origin of code.
27437
27438 2010-03-12  Bruno Haible  <bruno@clisp.org>
27439
27440         Fix problem with automake's definition of CXXLINK.
27441         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27442         Reported by Simon Josefsson and Ludovic Courtès.
27443
27444 2010-03-12  Bruno Haible  <bruno@clisp.org>
27445
27446         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27447         stable releases.
27448
27449 2010-03-11  Bruno Haible  <bruno@clisp.org>
27450
27451         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27452         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27453         whether the system provides one variant or multiple variants of the
27454         function.
27455         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27456         C++ compilers.
27457         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27458         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27459         Reported by Jim Meyering.
27460
27461 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27462
27463         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27464
27465 2010-03-08  Bruno Haible  <bruno@clisp.org>
27466
27467         gnulib-tool: Add support for --libtool in --create-testdir.
27468         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27469         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27470
27471 2010-03-08  Eric Blake  <eblake@redhat.com>
27472
27473         gnulib-tool.texi: mention possibility of git submodule
27474         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27475         submodules.
27476         * doc/.gitignore: Ignore another generated file.
27477
27478 2010-03-08  Karl Berry  <karl@gnu.org>
27479
27480         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27481         of committing gnulib files while skipping others.
27482
27483 2010-03-07  Bruno Haible  <bruno@clisp.org>
27484
27485         Tests of module 'wctype' in C++ mode.
27486         * tests/test-wctype-c++.cc: New file.
27487         * modules/wctype-tests (Files): Add it and tests/signature.h.
27488         (Depends-on): Add ansi-c++-opt.
27489         (Makefile.am): Arrange to compile and run test-wctype-c++.
27490
27491         Tests of module 'wchar' in C++ mode.
27492         * tests/test-wchar-c++.cc: New file.
27493         * modules/wchar-tests (Files): Add it and tests/signature.h.
27494         (Depends-on): Add ansi-c++-opt.
27495         (Makefile.am): Arrange to compile and run test-wchar-c++.
27496         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27497         gl_MODULE_INDICATOR.
27498
27499         Tests of module 'unistd' in C++ mode.
27500         * tests/test-unistd-c++.cc: New file.
27501         * modules/unistd-tests (Files): Add it and tests/signature.h.
27502         (Depends-on): Add ansi-c++-opt.
27503         (Makefile.am): Arrange to compile and run test-unistd-c++.
27504         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27505         gl_MODULE_INDICATOR.
27506
27507         Tests of module 'time' in C++ mode.
27508         * tests/test-time-c++.cc: New file.
27509         * modules/time-tests (Files): Add it and tests/signature.h.
27510         (Depends-on): Add ansi-c++-opt.
27511         (Makefile.am): Arrange to compile and run test-time-c++.
27512         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27513
27514         Tests of module 'sys_time' in C++ mode.
27515         * tests/test-sys_time-c++.cc: New file.
27516         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27517         (Depends-on): Add ansi-c++-opt.
27518         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27519         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27520         gl_MODULE_INDICATOR.
27521
27522         Tests of module 'sys_stat' in C++ mode.
27523         * tests/test-sys_stat-c++.cc: New file.
27524         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27525         (Depends-on): Add ansi-c++-opt.
27526         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27527         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27528         gl_MODULE_INDICATOR.
27529
27530         Tests of module 'sys_socket' in C++ mode.
27531         * tests/test-sys_socket-c++.cc: New file.
27532         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27533         (Depends-on): Add ansi-c++-opt.
27534         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27535         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27536         gl_MODULE_INDICATOR.
27537
27538         Tests of module 'sys_select' in C++ mode.
27539         * tests/test-sys_select-c++.cc: New file.
27540         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27541         (Depends-on): Add ansi-c++-opt.
27542         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27543         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27544         gl_MODULE_INDICATOR.
27545
27546         Tests of module 'sys_ioctl' in C++ mode.
27547         * tests/test-sys_ioctl-c++.cc: New file.
27548         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27549         (Depends-on): Add ansi-c++-opt.
27550         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27551         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27552         gl_MODULE_INDICATOR.
27553
27554         Tests of module 'string' in C++ mode.
27555         * tests/test-string-c++.cc: New file.
27556         * modules/string-tests (Files): Add it and tests/signature.h.
27557         (Depends-on): Add ansi-c++-opt.
27558         (Makefile.am): Arrange to compile and run test-string-c++.
27559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27560         gl_MODULE_INDICATOR.
27561
27562         Tests of module 'stdlib' in C++ mode.
27563         * tests/test-stdlib-c++.cc: New file.
27564         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27565         (Depends-on): Add ansi-c++-opt.
27566         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27567         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27568         gl_MODULE_INDICATOR.
27569
27570         Tests of module 'stdio' in C++ mode.
27571         * tests/test-stdio-c++.cc: New file.
27572         * modules/stdio-tests (Files): Add it and tests/signature.h.
27573         (Depends-on): Add ansi-c++-opt.
27574         (Makefile.am): Arrange to compile and run test-stdio-c++.
27575         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27576         gl_MODULE_INDICATOR.
27577
27578         Tests of module 'spawn' in C++ mode.
27579         * tests/test-spawn-c++.cc: New file.
27580         * modules/spawn-tests (Files): Add it and tests/signature.h.
27581         (Depends-on): Add ansi-c++-opt.
27582         (Makefile.am): Arrange to compile and run test-spawn-c++.
27583         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27584         gl_MODULE_INDICATOR.
27585
27586         Tests of module 'signal' in C++ mode.
27587         * tests/test-signal-c++.cc: New file.
27588         * modules/signal-tests (Files): Add it and tests/signature.h.
27589         (Depends-on): Add ansi-c++-opt.
27590         (Makefile.am): Arrange to compile and run test-signal-c++.
27591         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27592         gl_MODULE_INDICATOR.
27593
27594         Tests of module 'search' in C++ mode.
27595         * tests/test-search-c++.cc: New file.
27596         * modules/search-tests (Files): Add it and tests/signature.h.
27597         (Depends-on): Add ansi-c++-opt.
27598         (Makefile.am): Arrange to compile and run test-search-c++.
27599         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27600         gl_MODULE_INDICATOR.
27601
27602         Tests of module 'math' in C++ mode.
27603         * tests/test-math-c++.cc: New file.
27604         * modules/math-tests (Files): Add it and tests/signature.h.
27605         (Depends-on): Add ansi-c++-opt.
27606         (Makefile.am): Arrange to compile and run test-math-c++.
27607         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27608
27609         Tests of module 'locale' in C++ mode.
27610         * tests/test-locale-c++.cc: New file.
27611         * modules/locale-tests (Files): Add it and tests/signature.h.
27612         (Depends-on): Add ansi-c++-opt.
27613         (Makefile.am): Arrange to compile and run test-locale-c++.
27614         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27615         gl_MODULE_INDICATOR.
27616
27617         Tests of module 'langinfo' in C++ mode.
27618         * tests/test-langinfo-c++.cc: New file.
27619         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27620         (Depends-on): Add ansi-c++-opt.
27621         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27622         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27623         gl_MODULE_INDICATOR.
27624
27625         Tests of module 'iconv-h' in C++ mode.
27626         * tests/test-iconv-h-c++.cc: New file.
27627         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27628         (Depends-on): Add ansi-c++-opt.
27629         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27630
27631         Tests of module 'glob' in C++ mode.
27632         * tests/test-glob-c++.cc: New file.
27633         * modules/glob-tests (Files): Add it.
27634         (Depends-on): Add ansi-c++-opt.
27635         (Makefile.am): Arrange to compile and run test-glob-c++.
27636
27637         Tests of module 'fcntl-h' in C++ mode.
27638         * tests/test-fcntl-h-c++.cc: New file.
27639         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27640         (Depends-on): Add ansi-c++-opt.
27641         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27642         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27643         gl_MODULE_INDICATOR.
27644
27645         Tests of module 'dirent' in C++ mode.
27646         * tests/test-dirent-c++.cc: New file.
27647         * modules/dirent-tests (Files): Add it and tests/signature.h.
27648         (Depends-on): Add ansi-c++-opt.
27649         (Makefile.am): Arrange to compile and run test-dirent-c++.
27650         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27651         gl_MODULE_INDICATOR.
27652
27653         New module 'ansi-c++-opt'.
27654         * modules/ansi-c++-opt: New file.
27655         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27656
27657         Document C++ namespace mode.
27658         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27659
27660         wctype: Avoid #define replacements in C++ mode.
27661         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27662         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27663         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27664         In C++, define a namespaced alias symbol.
27665         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27666         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27667         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27668         rule.
27669
27670         wchar: Avoid #define replacements in C++ mode.
27671         * lib/wchar.in.h: Include c++defs.h.
27672         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27673         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27674         symbol.
27675         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27676         * modules/wchar (Depends-on): Add c++defs.
27677         (Makefile.am): Update wchar.h rule.
27678
27679         unistd: Avoid #define replacements in C++ mode.
27680         * lib/unistd.in.h: Include c++defs.h.
27681         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27682         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27683         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27684         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27685         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27686         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27687         symbol.
27688         (environ): Update.
27689         * modules/unistd (Depends-on): Add c++defs.
27690         (Makefile.am): Update unistd.h rule.
27691
27692         time: Avoid #define replacements in C++ mode.
27693         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27694         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27695         define a namespaced alias symbol.
27696         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27697         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27698         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27699         * modules/time (Depends-on): Add c++defs, warn-on-use.
27700         (Makefile.am): Update time.h rule.
27701         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27702         * modules/nanosleep (configure.ac): Likewise.
27703         * modules/strptime (configure.ac): Likewise.
27704         * modules/timegm (configure.ac): Likewise.
27705
27706         sys_time: Avoid #define replacements in C++ mode.
27707         * lib/sys_time.in.h: Include c++defs.h.
27708         (gettimeofday): In C++, define a namespaced alias symbol.
27709         * modules/sys_time (Depends-on): Add c++defs.
27710         (Makefile.am): Update sys/time.h rule.
27711
27712         sys_stat: Avoid #define replacements in C++ mode.
27713         * lib/sys_stat.in.h: Include c++defs.h.
27714         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27715         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27716         namespaced alias symbol.
27717         In C++, define a namespaced alias symbol.
27718         * modules/sys_stat (Depends-on): Add c++defs.
27719         (Makefile.am): Update sys/stat.h rule.
27720
27721         sys_socket: Avoid #define replacements in C++ mode.
27722         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27723         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27724         definitions also when the system has a <sys/socket.h>.
27725         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27726         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27727         In C++, define a namespaced alias symbol.
27728         * modules/sys_socket (Depends-on): Add c++defs.
27729         (Makefile.am): Update sys/socket.h rule.
27730
27731         sys_select: Avoid #define replacements in C++ mode.
27732         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27733         definitions also when the system has a <sys/select.h>.
27734         (select): In C++, define a namespaced alias symbol.
27735         * modules/sys_select (Depends-on): Add c++defs.
27736         (Makefile.am): Update sys/select.h rule.
27737
27738         sys_ioctl: Avoid #define replacements in C++ mode.
27739         * lib/sys_ioctl.in.h: Include c++defs.h.
27740         (ioctl): In C++, define a namespaced alias symbol.
27741         * modules/sys_ioctl (Depends-on): Add c++defs.
27742         (Makefile.am): Update sys/ioctl.h rule.
27743
27744         string: Avoid #define replacements in C++ mode.
27745         * lib/string.in.h: Include c++defs.h.
27746         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27747         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27748         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27749         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27750         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27751         * modules/string (Depends-on): Add c++defs.
27752         (Makefile.am): Update string.h rule.
27753
27754         stdlib: Avoid #define replacements in C++ mode.
27755         * lib/stdlib.in.h: Include c++defs.h.
27756         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27757         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27758         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27759         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27760         symbol.
27761         * modules/stdlib (Depends-on): Add c++defs.
27762         (Makefile.am): Update stdlib.h rule.
27763
27764         stdio: Avoid #define replacements in C++ mode.
27765         * lib/stdio.in.h: Include c++defs.h.
27766         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27767         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27768         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27769         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27770         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27771         namespaced alias symbol.
27772         * modules/stdio (Depends-on): Add c++defs.
27773         (Makefile.am): Update stdio.h rule.
27774
27775         spawn: Avoid #define replacements in C++ mode.
27776         * lib/spawn.in.h: Include c++defs.h.
27777         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27778         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27779         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27780         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27781         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27782         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27783         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27784         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27785         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27786         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27787         In C++, define a namespaced alias symbol.
27788         * modules/spawn (Depends-on): Add c++defs.
27789         (Makefile.am): Update spawn.h rule.
27790
27791         signal: Avoid #define replacements in C++ mode.
27792         * lib/signal.in.h: Include c++defs.h.
27793         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27794         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27795         namespaced alias symbol.
27796         * modules/signal (Depends-on): Add c++defs.
27797         (Makefile.am): Update signal.h rule.
27798
27799         search: Avoid #define replacements in C++ mode.
27800         * lib/search.in.h: Include c++defs.h.
27801         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27802         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27803         symbol.
27804         * modules/search (Depends-on): Add c++defs.
27805         (Makefile.am): Update search.h rule.
27806
27807         math: Avoid #define replacements in C++ mode.
27808         * lib/math.in.h: Include c++defs.h.
27809         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27810         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27811         trunc, truncl): In C++, define a namespaced alias symbol.
27812         * modules/math (Depends-on): Add c++defs.
27813         (Makefile.am): Update math.h rule.
27814
27815         locale: Avoid #define replacements in C++ mode.
27816         * lib/locale.in.h: Include c++defs.h.
27817         (duplocale): In C++, define a namespaced alias symbol.
27818         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27819         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27820         * modules/locale (Depends-on): Add c++defs.
27821         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27822
27823         langinfo: Avoid #define replacements in C++ mode.
27824         * lib/langinfo.in.h: Include c++defs.h.
27825         (nl_langinfo): In C++, define a namespaced alias symbol.
27826         * modules/langinfo (Depends-on): Add c++defs.
27827         (Makefile.am): Update langinfo.h rule.
27828
27829         iconv-h: Avoid #define replacements in C++ mode.
27830         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27831         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27832         symbol.
27833         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27834         whenever iconv is present.
27835         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27836         (Makefile.am): Update iconv.h rule.
27837
27838         glob: Avoid #define replacements in C++ mode.
27839         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27840         (_gl_glob_errfunc_fn): New type.
27841         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27842         symbol.
27843         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27844         (Makefile.am): Update glob.h rule.
27845
27846         fcntl-h: Avoid #define replacements in C++ mode.
27847         * lib/fcntl.in.h: Include c++defs.h.
27848         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27849         * modules/fcntl-h (Depends-on): Add c++defs.
27850         (Makefile.am): Update fcntl.h rule.
27851
27852         dirent: Avoid #define replacements in C++ mode.
27853         * lib/dirent.in.h: Include c++defs.h.
27854         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27855         namespaced alias symbol.
27856         (dirfd): Update declaration.
27857         * modules/dirent (Depends-on): Add c++defs.
27858         (Makefile.am): Update dirent.h rule.
27859
27860         ctype: Make it usable in C++ code.
27861         * lib/ctype.in.h: Include c++defs.h.
27862         (isblank): Declare as extern "C".
27863         * modules/ctype (Depends-on): Add c++defs.
27864         (Makefile.am): Update ctype.h rule.
27865
27866         New module 'c++defs'.
27867         * modules/c++defs: New file.
27868         * build-aux/c++defs.h: New file.
27869         Reported by John W. Eaton <jwe@gnu.org>.
27870
27871 2010-03-07  Bruno Haible  <bruno@clisp.org>
27872
27873         logb: Provide missing declaration for Cygwin.
27874         * lib/math.in.h (logb): New declaration.
27875         * m4/logb.m4: New file.
27876         * modules/logb (Files): Add m4/logb.m4.
27877         (Depends-on): Add math.
27878         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27879         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27881         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27882         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27883
27884 2010-03-07  Bruno Haible  <bruno@clisp.org>
27885
27886         Fix test-cond link error.
27887         * tests/test-cond.c: Include <stdio.h>.
27888
27889 2010-03-07  Bruno Haible  <bruno@clisp.org>
27890
27891         Fix test-dirent-safer link error.
27892         * modules/dirent-safer-tests (Makefile.am): Define
27893         test_dirent_safer_LDADD.
27894
27895 2010-03-07  Bruno Haible  <bruno@clisp.org>
27896
27897         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27898         among default module list.
27899
27900 2010-03-07  Bruno Haible  <bruno@clisp.org>
27901
27902         Fix link error on platforms with GNU libiconv.
27903         * modules/unistr/u8-strcoll-tests (Makefile): Define
27904         test_u8_strcoll_LDADD.
27905         * modules/unistr/u16-strcoll-tests (Makefile): Define
27906         test_u16_strcoll_LDADD.
27907         * modules/unistr/u32-strcoll-tests (Makefile): Define
27908         test_u32_strcoll_LDADD.
27909
27910 2010-03-07  Bruno Haible  <bruno@clisp.org>
27911
27912         Use POSIX declarations for socket functions.
27913         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27914         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27915         rpl_sendto): Change declaration to match POSIX.
27916         * lib/connect.c (rpl_connect): Likewise.
27917         * lib/accept.c (rpl_accept): Likewise.
27918         * lib/bind.c (rpl_bind): Likewise.
27919         * lib/getpeername.c (rpl_getpeername): Likewise.
27920         * lib/getsockname.c (rpl_getsockname): Likewise.
27921         * lib/recv.c (rpl_recv): Likewise.
27922         * lib/send.c (rpl_send): Likewise.
27923         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27924         * lib/sendto.c (rpl_sendto): Likewise.
27925
27926 2010-03-06  Bruno Haible  <bruno@clisp.org>
27927
27928         Clarify access, euidaccess, faccessat.
27929         * doc/posix-functions/faccessat.texi: Mention security problem under
27930         "Other problems", not "Portability problems".
27931         * doc/posix-functions/access.texi: Likewise. Mention a related security
27932         problem.
27933         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27934         * lib/euidaccess.c: Add comments about platforms.
27935         * lib/unistd.in.h (access, euidaccess): Add warnings.
27936
27937 2010-03-07  Bruno Haible  <bruno@clisp.org>
27938
27939         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27940         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27941         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27942         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27943         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27944         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27945         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27946         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27947         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27949         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27950         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27951         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27952         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27953         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27954         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27955         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27956         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27957         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27958         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27959         Likewise.
27960         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27961         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27962         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27963         Likewise.
27964         * tests/test-spawn.c (main): Make it work when
27965         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27966
27967 2010-03-07  Bruno Haible  <bruno@clisp.org>
27968
27969         Fix incorrect Makefile.am generation in German locale.
27970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27971         Execute sed command with character range in C locale.
27972
27973 2010-03-06  Bruno Haible  <bruno@clisp.org>
27974
27975         Tests for module 'iconv-h'.
27976         * modules/iconv-h-tests: New file.
27977         * tests/test-iconv-h.c: New file.
27978
27979         New module 'iconv-h'.
27980         * modules/iconv-h: New file.
27981         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27982         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27983         (configure.ac): Remove gl_ICONV_H.
27984         (Makefile.am): Remove rule for iconv.h.
27985
27986 2010-03-06  Bruno Haible  <bruno@clisp.org>
27987
27988         More consistent naming of *.m4 files.
27989         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27990         * modules/wctype (Files): Update.
27991
27992         More consistent naming of *.m4 files.
27993         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27994         * modules/wchar (Files): Update.
27995
27996 2010-03-06  Jim Meyering  <meyering@redhat.com>
27997
27998         euidaccess: relax license to LGPLv2+
27999         * modules/euidaccess (License): Relax to LGPLv2+.
28000
28001 2010-03-06  Bruno Haible  <bruno@clisp.org>
28002
28003         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28004         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28005         (Makefile.am): Augment lib_SOURCES instead.
28006
28007 2010-03-04  Jim Meyering  <meyering@redhat.com>
28008
28009         utime: remove obsolete module
28010         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28011         unnecessary for years, and has been marked as obsolete for 10 months.
28012         * modules/utime: Remove file.
28013         * lib/utime.c: Remove file.
28014         * m4/utime.m4: Remove file.
28015         * m4/utimes-null.m4: Remove file.
28016         * doc/posix-functions/utime.texi (utime): Remove reference to
28017         the module.  Move the sole "fixed by gnulib" item into the
28018         "problems not fixed by Gnulib" list.
28019         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28020
28021 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28022
28023         * modules/exit (License): Relax license to LGPLv2+.
28024         (Status): Mark as obsolete.
28025         * NEWS: Mention deprecated 'exit' module.
28026         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28027         of now obsolete 'exit'.
28028
28029 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28030
28031         fts-lgpl: remove unused module
28032         * modules/fts-lgpl: Remove.
28033         * MODULES.html.sh (func_all_modules): Adjust.
28034         * check-module (find_included_lib_files): Adjust.
28035         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28036
28037 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28038
28039         copy-acl: enhance Solaris ACL error handling
28040         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28041         * lib/set-mode-acl.c (qset_acl): Likewise.
28042
28043 2010-03-02  Bruno Haible  <bruno@clisp.org>
28044
28045         spawn: Don't override the system defined values on FreeBSD 8.
28046         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28047         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28048         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28049         if HAVE_POSIX_SPAWN is 1.
28050         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28051
28052 2010-03-01  Bruno Haible  <bruno@clisp.org>
28053
28054         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28055         regarding Automake.
28056
28057 2010-02-25  Bruno Haible  <bruno@clisp.org>
28058
28059         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28060         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28061         setting, not afterwards.
28062         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28063
28064 2010-02-24  Eric Blake  <eblake@redhat.com>
28065
28066         bootstrap, git-version-gen: use timestamp
28067         * build-aux/git-version-gen (scriptversion): Force UTC.
28068         * build-aux/bootstrap (scriptversion): New variable.
28069
28070         bootstrap: allow older git
28071         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28072         older than 1.6.4.  Requested by the libvirt project.
28073
28074 2010-02-23  Eric Blake  <eblake@redhat.com>
28075
28076         warn-on-use: work with old autoconf
28077         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28078         AS_VAR semantics of autoconf 2.60.
28079         Reported by Bruno Haible.
28080
28081         bootstrap: improve some comments
28082         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28083         clarification comments.
28084
28085         gettimeofday: provide correct function
28086         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28087         when replacement is declared, otherwise provide gettimeofday.
28088         Reported by Michael Goffioul.
28089
28090 2010-02-23  Jim Meyering  <meyering@redhat.com>
28091
28092         lib-ignore: relax license to "unlimited", not LGPLv2+
28093         * modules/lib-ignore (License): Relax to "unlimited".
28094
28095 2010-02-23  Jim Meyering  <meyering@redhat.com>
28096
28097         lib-ignore: relax license to LGPLv2+
28098         * modules/lib-ignore (License): Relax to LGPLv2+.
28099
28100 2010-02-22  Eric Blake  <eblake@redhat.com>
28101
28102         lseek: avoid bash 3.2 broken pipe bug
28103         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28104         warning from bash 3.2.
28105         Reported by Ben Pfaff, with analysis from Bruno Haible.
28106
28107         bootstrap: support non-FSF copyright holder
28108         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28109         bootstrap.conf override of COPYRIGHT_HOLDER.
28110         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28111
28112         bootstrap: interoperate with gettext 0.14.1
28113         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28114
28115         bootstrap: allow for alternate submodule location
28116         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28117         hardcoding submodule location.
28118         (gnulib_mk): Allow direct use of Makefile.am.
28119
28120         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28121         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28122         rather than reconfiguring where the submodule points.
28123
28124         gettimeofday: restore support for platforms that lack function
28125         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28126         replacement if function is missing.
28127         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28128         * modules/sys_time (Makefile.am): Substitute it.
28129         * lib/sys_time.in.h (gettimeofday): Check it.
28130         Reported by Michael Goffioul.
28131
28132 2010-02-21  Bruno Haible  <bruno@clisp.org>
28133
28134         * lib/stdio.in.h (obstack_printf): Fix typo.
28135
28136 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28137
28138         vc-list-files: use bzr ls's -R option
28139         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28140         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28141
28142 2010-02-21  Jim Meyering  <meyering@redhat.com>
28143
28144         init.sh: fix EXEEXT shims to work also for names like test-prog
28145         * tests/init.sh: Re-exec a better shell, when needed.
28146         If the current shell lacks support for posix $(...), an init.sh-using
28147         test will now try to find a shell that supports that.  If EXEEXT is
28148         nonempty, we also require support for hyphen-in-alias-name and shell
28149         substitutions like ${var#glob}.  Failure to find such a shell results
28150         in a skipped test.
28151
28152 2010-02-21  Bruno Haible  <bruno@clisp.org>
28153
28154         Really work around around "broken pipe" error message from bash 3.2.
28155         * gnulib-tool (func_reset_sigpipe): Remove function.
28156         (echo): In bash 3.2, define to a function that uses printf.
28157         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28158
28159 2010-02-20  Bruno Haible  <bruno@clisp.org>
28160
28161         Restore support for automake 1.9.6 with autoconf 2.61.
28162         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28163         Reported by James Youngman <jay@gnu.org>.
28164
28165 2010-02-20  Bruno Haible  <bruno@clisp.org>
28166
28167         Improve *printf warning condition.
28168         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28169         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28170         and the function is overridden due to SIGPIPE emulation.
28171
28172 2010-02-20  Bruno Haible  <bruno@clisp.org>
28173
28174         * lib/stdio.in.h: Tweak comments.
28175
28176 2010-02-19  Bruno Haible  <bruno@clisp.org>
28177
28178         Make it easier to find modules. New gnulib-tool option '--find'.
28179         * gnulib-tool: New option --find.
28180         (func_usage): Document it.
28181         (func_sanitize_modulelist): New function, extracted from
28182         func_all_modules.
28183         (func_all_modules): Invoke it.
28184         * doc/gnulib-tool.texi (Which modules?): New node.
28185
28186 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28187
28188         * lib/sys_select.in.h: Provide select replacement even if
28189         sys/select.h exists on a system, for Interix.
28190
28191 2010-02-18  Jim Meyering  <meyering@redhat.com>
28192
28193         init.sh: don't use $(...) just yet
28194         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28195         to accommodate e.g., Solaris' /bin/sh.
28196
28197 2010-02-17  Bruno Haible  <bruno@clisp.org>
28198
28199         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28200         Reported by Ludovic Courtès <ludo@gnu.org>.
28201
28202 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28203
28204         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28205         linking with -lintl.
28206
28207 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28208
28209         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28210         if not provided by the system's netdb.h.  Reported by
28211         ludo@gnu.org (Ludovic Courtès).
28212
28213 2010-02-15  Jim Meyering  <meyering@redhat.com>
28214
28215         init.sh: improve portability and efficiency
28216         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28217         "dummy" in a for loop.
28218         Use '!', not '^' to select the complement of a character set used
28219         in a "case" statement.
28220         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28221         Suggestions from Eric Blake.
28222
28223         init.sh: automatically accommodate programs with the .exe suffix
28224         Automatically arrange for an invocation of "prog" to execute the
28225         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28226         may use the simpler "prog", yet still work when built on a system
28227         that requires specifying the added suffix.
28228         Do this by constructing a function named "prog" that invokes
28229         "prog.exe" for each .exe file in selected directories.
28230         * tests/init.sh (find_exe_basenames_): New function.
28231         (create_exe_shim_functions_): New function.
28232         (path_prepend_): Use it.
28233
28234         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28235         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28236         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28237
28238 2010-02-14  Jim Meyering  <meyering@redhat.com>
28239
28240         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28241         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28242         (sc_prohibit_hash_pjw_without_use): New rule.
28243
28244         maint.mk: allow the default upload destination dir to be overridden
28245         * top/maint.mk (upload_dest_dir_): Define with a default that
28246         preserves the status quo.
28247         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28248         Reported by Peter Simons.
28249
28250         maint.mk: prohibit inclusion of "hash.h" without_use
28251         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28252
28253 2010-02-10  Jim Meyering  <meyering@redhat.com>
28254
28255         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28256         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28257
28258 2010-02-09  Eric Blake  <ebb9@byu.net>
28259         and Bruno Haible  <bruno@clisp.org>
28260
28261         obstack-printf-posix: ensure declaration
28262         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28263         extracted from gl_FUNC_OBSTACK_PRINTF.
28264         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28265         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28266         Likewise.
28267         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28268         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28269         0.
28270
28271 2010-02-08  Bruno Haible  <bruno@clisp.org>
28272
28273         gnulib-tool: Fix typo in 2010-02-07 commit.
28274         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28275         Reported by Eric Blake.
28276
28277 2010-02-07  Bruno Haible  <bruno@clisp.org>
28278
28279         gnulib-tool: Fix up caching patches.
28280         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28281         option --no-cache. Use associative arrays when supported by the shell.
28282         (sed_comments): New variable.
28283         (modcache): Renamed from do_cache.
28284         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28285         abbreviate unnecessarily.
28286         (have_associative): New variable.
28287         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28288         way also for ksh and zsh.
28289         (func_init_sed_convert_to_cache_statements): New function, extracted
28290         from func_cache_lookup_module. Add support for associative arrays.
28291         Don't set the c_MODULE_cached variable here. Ignore all lines before
28292         the first field header. Remove only the final newline, not all trailing
28293         newlines. Support empty fields correctly. Limit the use of 'eval' to
28294         assignments.
28295         (func_get_description, func_get_status, func_get_notice,
28296         func_get_applicability, func_get_filelist, func_get_dependencies,
28297         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28298         func_get_automake_snippet, func_get_include_directive,
28299         func_get_link_directive, func_get_license, func_get_maintainer):
28300         Update documentation. List the unoptimized code first. Add support for
28301         associative arrays. Limit the use of 'eval' to assignments.
28302         (func_get_applicability): Undo stylistic pessimisations.
28303         (func_get_automake_snippet, func_get_include_directive): Reduce code
28304         duplication.
28305         (func_modules_transitive_closure, func_modules_add_dummy,
28306         func_modules_notice, func_modules_to_filelist, func_add_file,
28307         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28308         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28309         func_create_testdir, func_create_megatestdir): Update documentation.
28310
28311 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28312
28313         * gnulib-tool (func_cache_lookup_module): Store the module name
28314         belonging to the cache variable; error out if two different
28315         module names map to the same cache variable name.
28316
28317 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28318
28319         gnulib-tool: Make caching optional.
28320         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28321         Update matching short versions of --no-changelog.
28322         (func_usage): Update.
28323         (sed_extract_cache_prog): Renamed from ...
28324         (sed_extract_prog): ... this; revert to old extraction script.
28325         (func_get_description, func_get_status)
28326         (func_get_notice, func_get_applicability, func_get_filelist)
28327         (func_get_dependencies, func_get_autoconf_early_snippet)
28328         (func_get_autoconf_snippet, func_get_automake_snippet)
28329         (func_get_include_directive, func_get_link_directive)
28330         (func_get_license, func_get_maintainer): If $do_cache is false,
28331         use old, non-caching extraction scripts.
28332         Suggestion by Bruno Haible.
28333
28334 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28335
28336         gnulib-tool: cache module metainformation.
28337         * gnulib-tool (sed_extract_prog): Match newline before each
28338         header, and rewrite header to a shell variable suffix.
28339         (func_cache_var, func_cache_lookup_module): New functions,
28340         to turn a module name into a cache variable prefix, and to
28341         look up and cache module metainformation.
28342         (func_get_description, func_get_status)
28343         (func_get_notice, func_get_applicability, func_get_filelist)
28344         (func_get_dependencies, func_get_autoconf_early_snippet)
28345         (func_get_autoconf_snippet, func_get_automake_snippet)
28346         (func_get_include_directive, func_get_link_directive)
28347         (func_get_license, func_get_maintainer): Use
28348         func_cache_lookup_module.
28349
28350 2010-02-07  Bruno Haible  <bruno@clisp.org>
28351
28352         fnctl: Fix missing dependency.
28353         * modules/fcntl (Depends-on): Add getdtablesize.
28354         Reported by John W. Eaton <jwe@gnu.org>.
28355
28356 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28357
28358         Argp: fix recognition of short alias options.
28359
28360         * lib/argp-parse.c (convert_options): Fix improper use of
28361         `|' between character values.
28362         * tests/test-argp.c (group1_option): New alias option
28363         --read (-r).
28364         (group1_parser): Special handling for 'r'.
28365         (test15): New test case.
28366         (test_fun): Add test15.
28367         * tests/test-argp-2.sh: Update expected --help and --usage
28368         outputs.
28369
28370 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28371
28372         * tests/test-argp.c: Fix indentation.
28373
28374 2010-02-04  Eric Blake  <ebb9@byu.net>
28375
28376         gettimeofday: expose type of second argument
28377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28378         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28379         * tests/test-gettimeofday.c: Use it to silence warning.
28380         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28381         the issue.
28382
28383 2010-02-03  Jim Meyering  <meyering@redhat.com>
28384
28385         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28386         * lib/regcomp.c (TYPE_SIGNED): Define.
28387         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28388
28389         regcomp.c: avoid a new -Wshadow warning
28390         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28391
28392 2010-02-01  Jim Meyering  <meyering@redhat.com>
28393
28394         removing useless parentheses in cpp #define directives
28395         For motivation, see commit c0221df4, "define STREQ(a,b)
28396         consistently, removing useless parentheses"
28397         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28398         * lib/mountlist.c (MNT_IGNORE): Likewise.
28399         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28400
28401 2010-02-01  Eric Blake  <ebb9@byu.net>
28402
28403         sys_time: use link-warning
28404         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28405         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28406         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28407         * modules/sys_time (Depends-on): Add warn-on-use.
28408         (Makefile.am): Always build replacement.
28409         (configure.ac): Update substitutions.
28410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28411         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28412         bother with SYS_TIME_H.
28413         * modules/gettimeofday (configure.ac): Declare indicator.
28414         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28415         in use.
28416
28417         closein-tests: silence compiler warning
28418         * tests/test-closein.c (main): Ignore fread result.
28419         * modules/closein-tests (Depends-on): Add ignore-value.
28420
28421         tests: silence warning about system return
28422         * tests/test-areadlink-with-size.c (main): Ignore system result.
28423         * tests/test-areadlink.c (main): Likewise.
28424         * tests/test-areadlinkat-with-size.c (main): Likewise.
28425         * tests/test-areadlinkat.c (main): Likewise.
28426         * tests/test-canonicalize-lgpl.c (main): Likewise.
28427         * tests/test-canonicalize.c (main): Likewise.
28428         * tests/test-chown.c (main): Likewise.
28429         * tests/test-fchownat.c (main): Likewise.
28430         * tests/test-fdutimensat.c (main): Likewise.
28431         * tests/test-fstatat.c (main): Likewise.
28432         * tests/test-futimens.c (main): Likewise.
28433         * tests/test-lchown.c (main): Likewise.
28434         * tests/test-link.c (main): Likewise.
28435         * tests/test-linkat.c (main): Likewise.
28436         * tests/test-lstat.c (main): Likewise.
28437         * tests/test-mkdir.c (main): Likewise.
28438         * tests/test-mkdirat.c (main): Likewise.
28439         * tests/test-mkfifo.c (main): Likewise.
28440         * tests/test-mkfifoat.c (main): Likewise.
28441         * tests/test-mknod.c (main): Likewise.
28442         * tests/test-readlink.c (main): Likewise.
28443         * tests/test-remove.c (main): Likewise.
28444         * tests/test-rename.c (main): Likewise.
28445         * tests/test-renameat.c (main): Likewise.
28446         * tests/test-rmdir.c (main): Likewise.
28447         * tests/test-symlink.c (main): Likewise.
28448         * tests/test-symlinkat.c (main): Likewise.
28449         * tests/test-unlink.c (main): Likewise.
28450         * tests/test-unlinkat.c (main): Likewise.
28451         * tests/test-utimens.c (main): Likewise.
28452         * tests/test-utimensat.c (main): Likewise.
28453         * modules/areadlink-tests (Depends-on): Add ignore-value.
28454         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28455         * modules/areadlinkat-tests (Depends-on): Likewise.
28456         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28457         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28458         * modules/canonicalize-tests (Depends-on): Likewise.
28459         * modules/chown-tests (Depends-on): Likewise.
28460         * modules/fdutimensat-tests (Depends-on): Likewise.
28461         * modules/futimens-tests (Depends-on): Likewise.
28462         * modules/lchown-tests (Depends-on): Likewise.
28463         * modules/link-tests (Depends-on): Likewise.
28464         * modules/linkat-tests (Depends-on): Likewise.
28465         * modules/lstat-tests (Depends-on): Likewise.
28466         * modules/mkdir-tests (Depends-on): Likewise.
28467         * modules/mkfifo-tests (Depends-on): Likewise.
28468         * modules/mkfifoat-tests (Depends-on): Likewise.
28469         * modules/mknod-tests (Depends-on): Likewise.
28470         * modules/openat-tests (Depends-on): Likewise.
28471         * modules/readlink-tests (Depends-on): Likewise.
28472         * modules/remove-tests (Depends-on): Likewise.
28473         * modules/rename-tests (Depends-on): Likewise.
28474         * modules/renameat-tests (Depends-on): Likewise.
28475         * modules/rmdir-tests (Depends-on): Likewise.
28476         * modules/symlink-tests (Depends-on): Likewise.
28477         * modules/symlinkat-tests (Depends-on): Likewise.
28478         * modules/unlink-tests (Depends-on): Likewise.
28479         * modules/utimens-tests (Depends-on): Likewise.
28480         * modules/utimensat-tests (Depends-on): Likewise.
28481
28482 2010-01-31  Bruno Haible  <bruno@clisp.org>
28483
28484         Perform the same test for many <math.h> functions.
28485         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28486         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28487         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28488         of gl_MATHFUNC.
28489         * modules/acos (configure.ac): Likewise.
28490         * modules/asin (configure.ac): Likewise.
28491         * modules/atan (configure.ac): Likewise.
28492         * modules/atan2 (configure.ac): Likewise.
28493         * modules/cbrt (configure.ac): Likewise.
28494         * modules/copysign (configure.ac): Likewise.
28495         * modules/cos (configure.ac): Likewise.
28496         * modules/cosh (configure.ac): Likewise.
28497         * modules/erf (configure.ac): Likewise.
28498         * modules/erfc (configure.ac): Likewise.
28499         * modules/exp (configure.ac): Likewise.
28500         * modules/fmod (configure.ac): Likewise.
28501         * modules/hypot (configure.ac): Likewise.
28502         * modules/j0 (configure.ac): Likewise.
28503         * modules/j1 (configure.ac): Likewise.
28504         * modules/jn (configure.ac): Likewise.
28505         * modules/lgamma (configure.ac): Likewise.
28506         * modules/log (configure.ac): Likewise.
28507         * modules/log10 (configure.ac): Likewise.
28508         * modules/log1p (configure.ac): Likewise.
28509         * modules/pow (configure.ac): Likewise.
28510         * modules/remainder (configure.ac): Likewise.
28511         * modules/sin (configure.ac): Likewise.
28512         * modules/sinh (configure.ac): Likewise.
28513         * modules/tan (configure.ac): Likewise.
28514         * modules/tanh (configure.ac): Likewise.
28515         * modules/y0 (configure.ac): Likewise.
28516         * modules/y1 (configure.ac): Likewise.
28517         * modules/yn (configure.ac): Likewise.
28518         Suggested by Paolo Bonzini.
28519
28520 2010-01-31  Bruno Haible  <bruno@clisp.org>
28521
28522         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28523
28524 2010-01-31  Bruno Haible  <bruno@clisp.org>
28525
28526         Work around getdelim() bug on FreeBSD 8.0.
28527         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28528         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28529         not work.
28530         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28531         is 1.
28532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28533         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28534         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28535         a non-zero size.
28536         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28537
28538 2010-01-31  Bruno Haible  <bruno@clisp.org>
28539
28540         Work around getline() bug on FreeBSD 8.0.
28541         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28542         and a non-zero size.
28543         * tests/test-getline.c (main): Likewise.
28544         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28545         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28546
28547 2010-01-28  Eric Blake  <ebb9@byu.net>
28548
28549         regex: fix build failure
28550         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28551         platforms.
28552
28553 2010-01-28  Jim Meyering  <meyering@redhat.com>
28554
28555         regex: do not ignore memory allocation failure
28556         * lib/regex_internal.c (create_cd_newstate): Detect
28557         re_node_set_init_copy failure.   Extracted from glibc commit
28558         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28559
28560         regex: sync more white-space changes from libc
28561         * lib/regex_internal.c: White-space only changes.
28562         * lib/regexec.c: Likewise.
28563
28564         regex: add many uses of __attribute_warn_unused_result__
28565         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28566         * lib/regexec.c: Likewise.
28567         Extracted from a messy glibc commit.
28568
28569         regcomp.c: spelling and merge-artifact from glibc
28570         * lib/regcomp.c: Merge remainder of glibc's
28571         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28572
28573         regcomp.c: sync white-space changes from glibc
28574         * lib/regcomp.c: Merge to accommodate white space
28575         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28576
28577         regcomp.c: do not ignore internal return values
28578         * lib/regcomp.c: Do not ignore internal return values.
28579         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28580         but without its white-space changes and spelling fixes.
28581
28582         regex_internal.h: define __attribute_warn_unused_result__
28583         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28584
28585         maint: add a syntax-check rule to check for vulnerable Makefile.in
28586         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28587
28588 2010-01-27  Jim Meyering  <meyering@redhat.com>
28589
28590         ncftpput-ftp: clean up spaces
28591         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28592         Remove trailing blanks.
28593
28594 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28595
28596         * build-aux/git-version-gen: Fix copyright statement.
28597         * build-aux/gnupload: Likewise.
28598         * tests/test-arcfour.c: Likewise.
28599         * tests/test-arctwo.c: Likewise.
28600         * tests/test-count-one-bits.c: Likewise.
28601         * tests/test-crc.c: Likewise.
28602         * tests/test-des.c: Likewise.
28603         * tests/test-gc-arcfour.c: Likewise.
28604         * tests/test-gc-arctwo.c: Likewise.
28605         * tests/test-gc-des.c: Likewise.
28606         * tests/test-gc-hmac-md5.c: Likewise.
28607         * tests/test-gc-hmac-sha1.c: Likewise.
28608         * tests/test-gc-md2.c: Likewise.
28609         * tests/test-gc-md4.c: Likewise.
28610         * tests/test-gc-md5.c: Likewise.
28611         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28612         * tests/test-gc-rijndael.c: Likewise.
28613         * tests/test-gc-sha1.c: Likewise.
28614         * tests/test-gc.c: Likewise.
28615         * tests/test-gethostname.c: Likewise.
28616         * tests/test-gettimeofday.c: Likewise.
28617         * tests/test-hash.c: Likewise.
28618         * tests/test-hmac-md5.c: Likewise.
28619         * tests/test-hmac-sha1.c: Likewise.
28620         * tests/test-md2.c: Likewise.
28621         * tests/test-md4.c: Likewise.
28622         * tests/test-md5.c: Likewise.
28623         * tests/test-memchr.c: Likewise.
28624         * tests/test-memchr2.c: Likewise.
28625         * tests/test-memcmp.c: Likewise.
28626         * tests/test-memmem.c: Likewise.
28627         * tests/test-memrchr.c: Likewise.
28628         * tests/test-rawmemchr.c: Likewise.
28629         * tests/test-read-file.c: Likewise.
28630         * tests/test-rijndael.c: Likewise.
28631         * tests/test-sockets.c: Likewise.
28632         * tests/test-strchrnul.c: Likewise.
28633         * tests/test-strstr.c: Likewise.
28634         * tests/test-strtod.c: Likewise.
28635         * build-aux/ncftpput-ftp: Likewise.
28636
28637 2010-01-26  Eric Blake  <ebb9@byu.net>
28638
28639         ignore-value: update recommended header name
28640         * modules/ignore-value (Include): Only use <> for headers that
28641         exist in glibc.
28642
28643 2010-01-26  Jim Meyering  <meyering@redhat.com>
28644
28645         test-userspec.c: avoid compiler warnings
28646         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28647         and "initialization discards qualifiers..." warnings.
28648         Put the first "uid" in its own scope, and make char* members "const".
28649
28650 2010-01-25  Bruno Haible  <bruno@clisp.org>
28651
28652         gnulib-tool: Make warning diagnostics consistent.
28653         * gnulib-tool (func_warning): New function.
28654         Use it everywhere where gnulib-tool produces output to stderr and it is
28655         not a fatal error.
28656
28657 2010-01-25  Bruno Haible  <bruno@clisp.org>
28658
28659         Fix test dependencies.
28660         * modules/xstrtol-tests (Depends-on): Add inttypes.
28661         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28662
28663 2010-01-25 Pádraig Brady <P@draigBrady.com>
28664
28665         syntax-check: detect incorrect boolean macro values in config.h
28666         * modules/maintainer-makefile (configure.ac): Parameterize the location
28667         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28668         The logic is from Eric Blake and the location indicated by Jim Meyering.
28669         Note the more natural CONFIG_HEADER name is prohibited by automake
28670         for backwards compatibility reasons.
28671         * top/maint.mk (sc_Wundef_boolean): New rule.
28672
28673 2010-01-25  Jim Meyering  <meyering@redhat.com>
28674
28675         bootstrap: detect MacOS 10.6's shasum, too
28676         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28677         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28678
28679 2010-01-23  Jim Meyering  <meyering@redhat.com>
28680
28681         xstrtoll: new module
28682         * modules/xstrtoll: New file.
28683         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28684         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28685         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28686         ./configure fails if you use this module and lack "long long".
28687         * modules/xstrtoll-tests: New module.
28688         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28689         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28690         new init.sh-based test framework.
28691
28692 2010-01-24  Bruno Haible  <bruno@clisp.org>
28693
28694         Tests for module 'yn'.
28695         * modules/yn-tests: New file.
28696         * tests/test-yn.c: New file.
28697
28698         Tests for module 'y1'.
28699         * modules/y1-tests: New file.
28700         * tests/test-y1.c: New file.
28701
28702         Tests for module 'y0'.
28703         * modules/y0-tests: New file.
28704         * tests/test-y0.c: New file.
28705
28706         Tests for module 'tanh'.
28707         * modules/tanh-tests: New file.
28708         * tests/test-tanh.c: New file.
28709
28710         Tests for module 'tan'.
28711         * modules/tan-tests: New file.
28712         * tests/test-tan.c: New file.
28713
28714         Tests for module 'sqrt'.
28715         * modules/sqrt-tests: New file.
28716         * tests/test-sqrt.c: New file.
28717
28718         Tests for module 'sinh'.
28719         * modules/sinh-tests: New file.
28720         * tests/test-sinh.c: New file.
28721
28722         Tests for module 'sin'.
28723         * modules/sin-tests: New file.
28724         * tests/test-sin.c: New file.
28725
28726         Tests for module 'rint'.
28727         * modules/rint-tests: New file.
28728         * tests/test-rint.c: New file.
28729
28730         Tests for module 'remainder'.
28731         * modules/remainder-tests: New file.
28732         * tests/test-remainder.c: New file.
28733
28734         Tests for module 'pow'.
28735         * modules/pow-tests: New file.
28736         * tests/test-pow.c: New file.
28737
28738         Tests for module 'nextafter'.
28739         * modules/nextafter-tests: New file.
28740         * tests/test-nextafter.c: New file.
28741
28742         Tests for module 'modf'.
28743         * modules/modf-tests: New file.
28744         * tests/test-modf.c: New file.
28745
28746         Tests for module 'logb'.
28747         * modules/logb-tests: New file.
28748         * tests/test-logb.c: New file.
28749
28750         Tests for module 'log1p'.
28751         * modules/log1p-tests: New file.
28752         * tests/test-log1p.c: New file.
28753
28754         Tests for module 'log10'.
28755         * modules/log10-tests: New file.
28756         * tests/test-log10.c: New file.
28757
28758         Tests for module 'log'.
28759         * modules/log-tests: New file.
28760         * tests/test-log.c: New file.
28761
28762         Tests for module 'lgamma'.
28763         * modules/lgamma-tests: New file.
28764         * tests/test-lgamma.c: New file.
28765
28766         Tests for module 'ldexp'.
28767         * modules/ldexp-tests: New file.
28768         * tests/test-ldexp.c: New file.
28769
28770         Tests for module 'jn'.
28771         * modules/jn-tests: New file.
28772         * tests/test-jn.c: New file.
28773
28774         Tests for module 'j1'.
28775         * modules/j1-tests: New file.
28776         * tests/test-j1.c: New file.
28777
28778         Tests for module 'j0'.
28779         * modules/j0-tests: New file.
28780         * tests/test-j0.c: New file.
28781
28782         Tests for module 'hypot'.
28783         * modules/hypot-tests: New file.
28784         * tests/test-hypot.c: New file.
28785
28786         Tests for module 'fmod'.
28787         * modules/fmod-tests: New file.
28788         * tests/test-fmod.c: New file.
28789
28790         Tests for module 'fabs'.
28791         * modules/fabs-tests: New file.
28792         * tests/test-fabs.c: New file.
28793
28794         Tests for module 'exp'.
28795         * modules/exp-tests: New file.
28796         * tests/test-exp.c: New file.
28797
28798         Tests for module 'erfc'.
28799         * modules/erfc-tests: New file.
28800         * tests/test-erfc.c: New file.
28801
28802         Tests for module 'erf'.
28803         * modules/erf-tests: New file.
28804         * tests/test-erf.c: New file.
28805
28806         Tests for module 'cosh'.
28807         * modules/cosh-tests: New file.
28808         * tests/test-cosh.c: New file.
28809
28810         Tests for module 'cos'.
28811         * modules/cos-tests: New file.
28812         * tests/test-cos.c: New file.
28813
28814         Tests for module 'copysign'.
28815         * modules/copysign-tests: New file.
28816         * tests/test-copysign.c: New file.
28817
28818         Tests for module 'cbrt'.
28819         * modules/cbrt-tests: New file.
28820         * tests/test-cbrt.c: New file.
28821
28822         Tests for module 'atan2'.
28823         * modules/atan2-tests: New file.
28824         * tests/test-atan2.c: New file.
28825
28826         Tests for module 'atan'.
28827         * modules/atan-tests: New file.
28828         * tests/test-atan.c: New file.
28829
28830         Tests for module 'asin'.
28831         * modules/asin-tests: New file.
28832         * tests/test-asin.c: New file.
28833
28834         Tests for module 'acos'.
28835         * modules/acos-tests: New file.
28836         * tests/test-acos.c: New file.
28837
28838 2010-01-24  Bruno Haible  <bruno@clisp.org>
28839
28840         Fix tests for common <math.h> functions.
28841         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28842         code snippet that references the function pointer, rather than merely
28843         calling the function. Substitute the FUNC_LIBM variable.
28844         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28845         * modules/acos (configure.ac): Likewise.
28846         * modules/asin (configure.ac): Likewise.
28847         * modules/atan (configure.ac): Likewise.
28848         * modules/atan2 (configure.ac): Likewise.
28849         * modules/cbrt (configure.ac): Likewise.
28850         * modules/copysign (configure.ac): Likewise.
28851         * modules/cos (configure.ac): Likewise.
28852         * modules/cosh (configure.ac): Likewise.
28853         * modules/erf (configure.ac): Likewise.
28854         * modules/erfc (configure.ac): Likewise.
28855         * modules/exp (configure.ac): Likewise.
28856         * modules/fabs (configure.ac): Likewise.
28857         * modules/fmod (configure.ac): Likewise.
28858         * modules/hypot (configure.ac): Likewise.
28859         * modules/j0 (configure.ac): Likewise.
28860         * modules/j1 (configure.ac): Likewise.
28861         * modules/jn (configure.ac): Likewise.
28862         * modules/ldexp (configure.ac): Likewise.
28863         * modules/lgamma (configure.ac): Likewise.
28864         * modules/log (configure.ac): Likewise.
28865         * modules/log10 (configure.ac): Likewise.
28866         * modules/log1p (configure.ac): Likewise.
28867         * modules/logb (configure.ac): Likewise.
28868         * modules/modf (configure.ac): Likewise.
28869         * modules/nextafter (configure.ac): Likewise.
28870         * modules/pow (configure.ac): Likewise.
28871         * modules/remainder (configure.ac): Likewise.
28872         * modules/rint (configure.ac): Likewise.
28873         * modules/sin (configure.ac): Likewise.
28874         * modules/sinh (configure.ac): Likewise.
28875         * modules/tan (configure.ac): Likewise.
28876         * modules/tanh (configure.ac): Likewise.
28877         * modules/y0 (configure.ac): Likewise.
28878         * modules/y1 (configure.ac): Likewise.
28879         * modules/yn (configure.ac): Likewise.
28880
28881 2010-01-24  Bruno Haible  <bruno@clisp.org>
28882
28883         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28884         * tests/test-acosl.c (x): New variable.
28885         (main): Store argument in x and fetch it from x.
28886         * tests/test-asinl.c (x): New variable.
28887         (main): Store argument in x and fetch it from x.
28888         * tests/test-atanl.c (x): New variable.
28889         (main): Store argument in x and fetch it from x.
28890         * tests/test-cosl.c (x): New variable.
28891         (main): Store argument in x and fetch it from x.
28892         * tests/test-expl.c (x): New variable.
28893         (main): Store argument in x and fetch it from x.
28894         * tests/test-logl.c (x): New variable.
28895         (main): Store argument in x and fetch it from x.
28896         * tests/test-sinl.c (x): New variable.
28897         (main): Store argument in x and fetch it from x.
28898         * tests/test-sqrtl.c (x): New variable.
28899         (main): Store argument in x and fetch it from x.
28900         * tests/test-tanl.c (x): New variable.
28901         (main): Store argument in x and fetch it from x.
28902
28903 2010-01-24  Bruno Haible  <bruno@clisp.org>
28904
28905         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28906         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28907         assignments to the initial TESTS_ENVIRONMENT.
28908         * doc/gnulib.texi (Unit test modules): Document it.
28909         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28910         TESTS_ENVIRONMENT.
28911         * modules/btowc-tests (Makefile.am): Likewise.
28912         * modules/c-stack-tests (Makefile.am): Likewise.
28913         * modules/c-strcase-tests (Makefile.am): Likewise.
28914         * modules/copy-file-tests (Makefile.am): Likewise.
28915         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28916         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28917         * modules/mbrtowc-tests (Makefile.am): Likewise.
28918         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28919         * modules/mbscasestr-tests (Makefile.am): Likewise.
28920         * modules/mbschr-tests (Makefile.am): Likewise.
28921         * modules/mbscspn-tests (Makefile.am): Likewise.
28922         * modules/mbsinit-tests (Makefile.am): Likewise.
28923         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28924         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28925         * modules/mbspbrk-tests (Makefile.am): Likewise.
28926         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28927         * modules/mbsrchr-tests (Makefile.am): Likewise.
28928         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28929         * modules/mbsspn-tests (Makefile.am): Likewise.
28930         * modules/mbsstr-tests (Makefile.am): Likewise.
28931         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28932         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28933         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28934         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28935         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28936         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28937         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28938         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28939         * modules/wcrtomb-tests (Makefile.am): Likewise.
28940         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28941         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28942         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28943         assignments from TESTS_ENVIRONMENT.
28944         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28945         augmentation.
28946         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28947         * modules/atexit-tests (Makefile.am): Likewise.
28948         * modules/binary-io-tests (Makefile.am): Likewise.
28949         * modules/closein-tests (Makefile.am): Likewise.
28950         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28951         * modules/exclude-tests (Makefile.am): Likewise.
28952         * modules/fflush-tests (Makefile.am): Likewise.
28953         * modules/fpending-tests (Makefile.am): Likewise.
28954         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28955         * modules/freadahead-tests (Makefile.am): Likewise.
28956         * modules/freadptr-tests (Makefile.am): Likewise.
28957         * modules/freadseek-tests (Makefile.am): Likewise.
28958         * modules/fseek-tests (Makefile.am): Likewise.
28959         * modules/fseeko-tests (Makefile.am): Likewise.
28960         * modules/ftell-tests (Makefile.am): Likewise.
28961         * modules/ftello-tests (Makefile.am): Likewise.
28962         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28963         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28964         * modules/lseek-tests (Makefile.am): Likewise.
28965         * modules/parse-duration-tests (Makefile.am): Likewise.
28966         * modules/perror-tests (Makefile.am): Likewise.
28967         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28968         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28969         * modules/pipe-tests (Makefile.am): Likewise.
28970         * modules/pread-tests (Makefile.am): Likewise.
28971         * modules/printf-posix-tests (Makefile.am): Likewise.
28972         * modules/select-tests (Makefile.am): Likewise.
28973         * modules/sigpipe-tests (Makefile.am): Likewise.
28974         * modules/tsearch-tests (Makefile.am): Likewise.
28975         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28976         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28977         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28978         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28979         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28980         * modules/version-etc-tests (Makefile.am): Likewise.
28981         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28982         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28983         * modules/xalloc-die-tests (Makefile.am): Likewise.
28984         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28985         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28986         * modules/xstrtol-tests (Makefile.am): Likewise.
28987         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28988         * modules/yesno-tests (Makefile.am): Likewise.
28989         Suggested by Jim Meyering.
28990
28991 2010-01-24  Bruno Haible  <bruno@clisp.org>
28992
28993         More documentation.
28994         * doc/gnulib.texi (Writing modules): New chapter.
28995         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28996         the new chapter.
28997
28998 2010-01-24  Jim Meyering  <meyering@redhat.com>
28999
29000         maint.mk: do not prepend "./" after filtering
29001         * top/maint.mk (_prepend_srcdir_prefix): New variable
29002         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29003         "./" when $(srcdir) is ".".
29004
29005         define STREQ(a,b) consistently, removing useless parentheses
29006         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29007         since the only risk is that "a" or "b" contains an unparenthesized
29008         comma, but if either did that, STREQ would have 3 or more arguments.
29009         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29010         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29011         * lib/hash-triple.c (STREQ): Likewise.
29012         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29013         * lib/getugroups.c (STREQ): Likewise.
29014
29015 2010-01-23  Jim Meyering  <meyering@redhat.com>
29016
29017         maint.mk: fix syntax-check in a non-srcdir build directory
29018         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29019         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29020
29021 2010-01-22  Jim Meyering  <meyering@redhat.com>
29022
29023         userspec: add unit tests
29024         * tests/test-userspec.c: New file.
29025         * modules/userspec-tests: Likewise.
29026
29027 2010-01-21  Jim Meyering  <meyering@redhat.com>
29028
29029         maint.mk: handle source file names containing "." robustly
29030         * top/maint.mk (_dot_escaped_srcdir): Define.
29031         (VC_LIST): Use it in LHS of sed substitution.
29032
29033 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29034
29035         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29036         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29037         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29038         from a non-srcdir build.
29039
29040 2010-01-20  Eric Blake  <ebb9@byu.net>
29041
29042         warn-on-use: use instead of link-warning
29043         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29044         * modules/unistd (Depends-on, Makefile.am): Likewise.
29045         * modules/arpa_inet (Depends-on): Replace link-warning with
29046         warn-on-use.
29047         (Makefile.am): Update rules accordingly.
29048         * modules/ctype (Depends-on, Makefile.am): Likewise.
29049         * modules/dirent (Depends-on, Makefile.am): Likewise.
29050         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29051         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29052         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29053         * modules/locale (Depends-on, Makefile.am): Likewise.
29054         * modules/math (Depends-on, Makefile.am): Likewise.
29055         * modules/search (Depends-on, Makefile.am): Likewise.
29056         * modules/signal (Depends-on, Makefile.am): Likewise.
29057         * modules/spawn (Depends-on, Makefile.am): Likewise.
29058         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29059         * modules/string (Depends-on, Makefile.am): Likewise.
29060         * modules/strings (Depends-on, Makefile.am): Likewise.
29061         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29062         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29063         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29064         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29065         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29066         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29067         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29068         * modules/wchar (Depends-on, Makefile.am): Likewise.
29069         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29070         should be poisoned.
29071         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29072         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29073         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29074         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29075         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29076         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29077         * m4/math_h.m4 (gl_MATH_H): Likewise.
29078         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29079         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29080         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29081         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29082         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29083         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29084         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29085         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29086         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29087         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29088         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29089         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29090         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29092         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29093         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29094         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29095         GL_LINK_WARNING.
29096         * lib/ctype.in.h: Likewise.
29097         * lib/dirent.in.h: Likewise.
29098         * lib/fcntl.in.h: Likewise.
29099         * lib/inttypes.in.h: Likewise.
29100         * lib/langinfo.in.h: Likewise.
29101         * lib/locale.in.h: Likewise.
29102         * lib/math.in.h: Likewise.
29103         * lib/search.in.h: Likewise.
29104         * lib/signal.in.h: Likewise.
29105         * lib/spawn.in.h: Likewise.
29106         * lib/stdio.in.h: Likewise.
29107         * lib/stdlib.in.h: Likewise.
29108         * lib/string.in.h: Likewise.
29109         * lib/strings.in.h: Likewise.
29110         * lib/sys_file.in.h: Likewise.
29111         * lib/sys_ioctl.in.h: Likewise.
29112         * lib/sys_select.in.h: Likewise.
29113         * lib/sys_socket.in.h: Likewise.
29114         * lib/sys_stat.in.h: Likewise.
29115         * lib/sys_times.in.h: Likewise.
29116         * lib/sys_utsname.in.h: Likewise.
29117         * lib/unistd.in.h: Likewise.
29118         * lib/wchar.in.h: Likewise.
29119
29120 2010-01-20  Bruno Haible  <bruno@clisp.org>
29121
29122         Avoid duplicate -lm.
29123         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29124         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29127         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29128         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29129         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29130         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29131         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29132         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29133         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29134         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29135         Reported by Paolo Bonzini.
29136
29137 2010-01-19  Bruno Haible  <bruno@clisp.org>
29138
29139         langinfo, nl_langinfo: Relicense under LGPLv2+.
29140         * modules/langinfo (License): Change to LGPLv2+.
29141         * modules/nl_langinfo (License): Likewise.
29142         Patch by David Lutterkort <lutter@redhat.com>.
29143
29144 2010-01-19  Bruno Haible  <bruno@clisp.org>
29145
29146         Avoid compilation error with cc on OSF/1 5.1.
29147         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29148         statement, not before.
29149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29150
29151 2010-01-18  Bruno Haible  <bruno@clisp.org>
29152
29153         Avoid a link error due to the __printf__ symbol.
29154         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29155         and 2.6.x.
29156         (__format__, __printf__): Remove definitions.
29157         * lib/argp-fmtstream.h: Likewise.
29158         * lib/argp.h: Likewise.
29159         * lib/error.h: Likewise.
29160         * lib/vasnprintf.h: Likewise.
29161         * lib/xprintf.h: Likewise.
29162         * lib/xvasprintf.h: Likewise.
29163         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29164
29165 2010-01-18  Bruno Haible  <bruno@clisp.org>
29166
29167         Tests for module 'tanl'.
29168         * modules/tanl-tests: New file.
29169         * tests/test-tanl.c: New file.
29170
29171         Tests for module 'sqrtl'.
29172         * modules/sqrtl-tests: New file.
29173         * tests/test-sqrtl.c: New file.
29174
29175         Tests for module 'sinl'.
29176         * modules/sinl-tests: New file.
29177         * tests/test-sinl.c: New file.
29178
29179         Tests for module 'logl'.
29180         * modules/logl-tests: New file.
29181         * tests/test-logl.c: New file.
29182
29183         Tests for module 'expl'.
29184         * modules/expl-tests: New file.
29185         * tests/test-expl.c: New file.
29186
29187         Tests for module 'cosl'.
29188         * modules/cosl-tests: New file.
29189         * tests/test-cosl.c: New file.
29190
29191         Tests for module 'atanl'.
29192         * modules/atanl-tests: New file.
29193         * tests/test-atanl.c: New file.
29194
29195         Tests for module 'asinl'.
29196         * modules/asinl-tests: New file.
29197         * tests/test-asinl.c: New file.
29198
29199         Tests for module 'acosl'.
29200         * modules/acosl-tests: New file.
29201         * tests/test-acosl.c: New file.
29202
29203         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29204         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29205         tanl): Use the standard gnulib idiom.
29206         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29207         * lib/sinl.c: Likewise.
29208         * lib/tanl.c: Don't include trigl.c.
29209         (kernel_tanl): Make static.
29210         * lib/sincosl.c: Include trigl.h first.
29211         * lib/trigl.c: Likewise.
29212         * m4/acosl.m4: New file.
29213         * m4/asinl.m4: New file.
29214         * m4/atanl.m4: New file.
29215         * m4/cosl.m4: New file.
29216         * m4/expl.m4: New file.
29217         * m4/logl.m4: New file.
29218         * m4/sinl.m4: New file.
29219         * m4/sqrtl.m4: New file.
29220         * m4/tanl.m4: New file.
29221         * m4/mathl.m4: Remove file.
29222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29223         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29224         Don't initialize GNULIB_MATHL.
29225         * modules/acosl: New file.
29226         * modules/asinl: New file.
29227         * modules/atanl: New file.
29228         * modules/cosl: New file.
29229         * modules/expl: New file.
29230         * modules/logl: New file.
29231         * modules/sinl: New file.
29232         * modules/sqrtl: New file.
29233         * modules/tanl: New file.
29234         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29235         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29236         substitute GNULIB_MATHL.
29237         * modules/mathl: Rewritten.
29238         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29239         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29240         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29241         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29242         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29243         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29244         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29245         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29246         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29247
29248 2010-01-18  Bruno Haible  <bruno@clisp.org>
29249
29250         sqrt: Make gl_FUNC_SQRT requirable.
29251         * m4/sqrt.m4: New file.
29252         * modules/sqrt (Files): Add it.
29253         (configure.ac): Invoke gl_FUNC_SQRT.
29254
29255 2010-01-18  Bruno Haible  <bruno@clisp.org>
29256
29257         New modules for common <math.h> functions.
29258         * m4/mathfunc.m4: New file.
29259         * modules/acos: New file.
29260         * modules/asin: New file.
29261         * modules/atan: New file.
29262         * modules/atan2: New file.
29263         * modules/cbrt: New file.
29264         * modules/copysign: New file.
29265         * modules/cos: New file.
29266         * modules/cosh: New file.
29267         * modules/erf: New file.
29268         * modules/erfc: New file.
29269         * modules/exp: New file.
29270         * modules/fabs: New file.
29271         * modules/fmod: New file.
29272         * modules/hypot: New file.
29273         * modules/j0: New file.
29274         * modules/j1: New file.
29275         * modules/jn: New file.
29276         * modules/ldexp: New file.
29277         * modules/lgamma: New file.
29278         * modules/log: New file.
29279         * modules/log10: New file.
29280         * modules/log1p: New file.
29281         * modules/logb: New file.
29282         * modules/modf: New file.
29283         * modules/nextafter: New file.
29284         * modules/pow: New file.
29285         * modules/remainder: New file.
29286         * modules/rint: New file.
29287         * modules/sin: New file.
29288         * modules/sinh: New file.
29289         * modules/sqrt: New file.
29290         * modules/tan: New file.
29291         * modules/tanh: New file.
29292         * modules/y0: New file.
29293         * modules/y1: New file.
29294         * modules/yn: New file.
29295         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29296         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29297         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29298         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29299         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29300         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29301         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29302         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29303         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29304         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29305         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29306         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29307         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29308         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29309         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29310         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29311         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29312         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29313         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29314         * doc/posix-functions/log.texi: Mention the 'log' module.
29315         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29316         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29317         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29318         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29319         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29320         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29321         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29322         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29323         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29324         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29325         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29326         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29327         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29328         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29329         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29330         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29331
29332 2010-01-18  Jim Meyering  <meyering@redhat.com>
29333
29334         ignore-value: relax license to LGPLv2+
29335         * modules/ignore-value (License): Relax to LGPLv2+.
29336
29337         getdate: don't leak when TZ contains two or more '"'s
29338         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29339         double quote in TZ after the first one.
29340
29341         readtokens: do not leak internal token_lengths buffer
29342         * lib/readtokens.c (readtokens): Free the local, lengths,
29343         when the supplied "token_lengths" parameter is NULL.
29344
29345 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29346
29347         Fix a couple of missing LIBTHREAD link failures on AIX.
29348         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29349         $(LIBTHREAD).
29350         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29351
29352         Link test-poll against INET_PTON_LIB.
29353         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29354         for inet_pton on Solaris 10.
29355
29356 2010-01-17  Bruno Haible  <bruno@clisp.org>
29357
29358         unistdio/*-sprintf: Fix typo in module description.
29359         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29360         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29361         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29362         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29363         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29364         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29365         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29367
29368 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29369
29370         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29371         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29372         variables in shell case patterns, for AIX and HP-UX ksh.
29373
29374         Split large sed scripts, for HP-UX sed.
29375         * modules/stdio: Split sed scripts around 50 sed commands,
29376         to avoid HP-UX limit of 99 commands, in the near future.
29377         * modules/string: Likewise.
29378         * modules/unistd: Likewise.
29379
29380         gnulib-tool: avoid writing in the current directory.
29381         * gnulib-tool (func_emit_lib_Makefile_am)
29382         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29383         not in the current directory, so concurrent gnulib-tool
29384         instances do not interfere.
29385
29386 2010-01-16  Jim Meyering  <meyering@redhat.com>
29387
29388         doc: update users.txt
29389         * users.txt: Add grep.
29390         (diffutils, gzip): Update URLs.
29391
29392 2010-01-12  Bruno Haible  <bruno@clisp.org>
29393
29394         posix_spawn: Avoid test failure on Cygwin.
29395         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29396         characters.
29397         Reported by Simon Josefsson.
29398
29399 2010-01-12  Bruno Haible  <bruno@clisp.org>
29400
29401         * tests/test-cond.c (main): When skipping the test, show the reason.
29402
29403 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29404
29405         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29406
29407 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29408
29409         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29410         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29411
29412 2010-01-12  Eric Blake  <ebb9@byu.net>
29413
29414         build: guarantee AS_VAR_IF
29415         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29416         (gl_AS_VAR_IF): Move...
29417         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29418         Reported by Simon Josefsson.
29419
29420 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29421
29422         * lib/stdio.in.h: Fix typo.
29423
29424 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29425
29426         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29427         libgpg-error.
29428
29429 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29430
29431         * tests/test-xalloc-die.sh: Use $EXEEXT.
29432
29433 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29434             Bruno Haible  <bruno@clisp.org>
29435
29436         getlogin, getlogin_r: Avoid test failure.
29437         * tests/test-getlogin.c: Include <stdio.h>.
29438         (main): Skip the test when the function fails because stdin is not a
29439         tty.
29440         * tests/test-getlogin_r.c: Include <stdio.h>.
29441         (main): Skip the test when the function fails because stdin is not a
29442         tty.
29443
29444 2010-01-11  Eric Blake  <ebb9@byu.net>
29445
29446         tests: avoid more large file warnings
29447         * tests/test-fflush.c: Avoid warning about ftell use.
29448         * tests/test-fseek.c: Avoid warning about fseek use.
29449
29450 2010-01-10  Bruno Haible  <bruno@clisp.org>
29451
29452         nproc: Work better on Linux when /proc and /sys are not mounted.
29453         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29454         as lower bound when, on glibc/Linux systems,
29455         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29456         Suggested by Pádraig Brady <P@draigbrady.com>.
29457         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29458
29459         nproc: Refactor.
29460         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29461         extracted from num_processors.
29462         (num_processors): Call it.
29463
29464 2010-01-11  Jim Meyering  <meyering@redhat.com>
29465
29466         utimecmp: avoid new warning from upcoming gcc-4.5.0
29467         * lib/utimecmp.c (BILLION): Define using #define rather than an
29468         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29469
29470 2010-01-11  Eric Blake  <ebb9@byu.net>
29471
29472         math: add portability warnings for classification macros
29473         * modules/math (Depends-on): Add warn-on-use.
29474         (Makefile.am): Provide new substitutions.
29475         * m4/math_h.m4 (gl_MATH_H): Require inline.
29476         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29477         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29478         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29479         implement warnings.
29480
29481         unistd: warn on use of environ without module
29482         * modules/unistd (Depends-on): Add warn-on-use.
29483         (Makefile.am): Provide new substitutions.
29484         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29485         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29486
29487         stdio: warn on suspicious uses
29488         * modules/stdio (Depends-on): Add warn-on-use.
29489         (Makefile.am): Provide new substitutions.
29490         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29491         fseeko.
29492         * lib/stdio.in.h (gets): Always warn on use.
29493         (fseek, ftell): Adjust when warnings are issued, and honor
29494         _GL_NO_LARGE_FILES as a way to silence the warning.
29495         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29496         any warning about large file offsets.
29497         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29498         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29499         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29500         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29501         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29502         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29503         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29504         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29505
29506         warn-on-use: new module
29507         * modules/warn-on-use: New file.
29508         * build-aux/warn-on-use.h: Likewise.
29509         * m4/warn-on-use.m4: Likewise.
29510         * MODULES.html.sh (Support for building): Mention it.
29511
29512 2010-01-10  Bruno Haible  <bruno@clisp.org>
29513
29514         Tests for module 'unistr/u32-strdup'.
29515         * modules/unistr/u32-strdup-tests: New file.
29516         * tests/unistr/test-u32-strdup.c: New file.
29517
29518         Tests for module 'unistr/u16-strdup'.
29519         * modules/unistr/u16-strdup-tests: New file.
29520         * tests/unistr/test-u16-strdup.c: New file.
29521
29522         Tests for module 'unistr/u8-strdup'.
29523         * modules/unistr/u8-strdup-tests: New file.
29524         * tests/unistr/test-u8-strdup.c: New file.
29525         * tests/unistr/test-strdup.h: New file.
29526
29527         Tests for module 'unistr/u32-strncmp'.
29528         * modules/unistr/u32-strncmp-tests: New file.
29529         * tests/unistr/test-u32-strncmp.c: New file.
29530
29531         Tests for module 'unistr/u16-strncmp'.
29532         * modules/unistr/u16-strncmp-tests: New file.
29533         * tests/unistr/test-u16-strncmp.c: New file.
29534
29535         Tests for module 'unistr/u8-strncmp'.
29536         * modules/unistr/u8-strncmp-tests: New file.
29537         * tests/unistr/test-u8-strncmp.c: New file.
29538         * tests/unistr/test-strncmp.h: New file.
29539
29540         Tests for module 'unistr/u32-strcoll'.
29541         * modules/unistr/u32-strcoll-tests: New file.
29542         * tests/unistr/test-u32-strcoll.c: New file.
29543
29544         Tests for module 'unistr/u16-strcoll'.
29545         * modules/unistr/u16-strcoll-tests: New file.
29546         * tests/unistr/test-u16-strcoll.c: New file.
29547
29548         Tests for module 'unistr/u8-strcoll'.
29549         * modules/unistr/u8-strcoll-tests: New file.
29550         * tests/unistr/test-u8-strcoll.c: New file.
29551
29552         Tests for module 'unistr/u32-strcmp'.
29553         * modules/unistr/u32-strcmp-tests: New file.
29554         * tests/unistr/test-u32-strcmp.c: New file.
29555         * tests/unistr/test-u32-strcmp.h: New file.
29556
29557         Tests for module 'unistr/u16-strcmp'.
29558         * modules/unistr/u16-strcmp-tests: New file.
29559         * tests/unistr/test-u16-strcmp.c: New file.
29560         * tests/unistr/test-u16-strcmp.h: New file.
29561
29562         Tests for module 'unistr/u8-strcmp'.
29563         * modules/unistr/u8-strcmp-tests: New file.
29564         * tests/unistr/test-u8-strcmp.c: New file.
29565         * tests/unistr/test-u8-strcmp.h: New file.
29566         * tests/unistr/test-strcmp.h: New file.
29567
29568         Tests for module 'unistr/u32-strncat'.
29569         * modules/unistr/u32-strncat-tests: New file.
29570         * tests/unistr/test-u32-strncat.c: New file.
29571
29572         Tests for module 'unistr/u16-strncat'.
29573         * modules/unistr/u16-strncat-tests: New file.
29574         * tests/unistr/test-u16-strncat.c: New file.
29575
29576         Tests for module 'unistr/u8-strncat'.
29577         * modules/unistr/u8-strncat-tests: New file.
29578         * tests/unistr/test-u8-strncat.c: New file.
29579         * tests/unistr/test-strncat.h: New file.
29580
29581         Tests for module 'unistr/u32-strcat'.
29582         * modules/unistr/u32-strcat-tests: New file.
29583         * tests/unistr/test-u32-strcat.c: New file.
29584
29585         Tests for module 'unistr/u16-strcat'.
29586         * modules/unistr/u16-strcat-tests: New file.
29587         * tests/unistr/test-u16-strcat.c: New file.
29588
29589         Tests for module 'unistr/u8-strcat'.
29590         * modules/unistr/u8-strcat-tests: New file.
29591         * tests/unistr/test-u8-strcat.c: New file.
29592         * tests/unistr/test-strcat.h: New file.
29593
29594         Tests for module 'unistr/u32-stpncpy'.
29595         * modules/unistr/u32-stpncpy-tests: New file.
29596         * tests/unistr/test-u32-stpncpy.c: New file.
29597
29598         Tests for module 'unistr/u16-stpncpy'.
29599         * modules/unistr/u16-stpncpy-tests: New file.
29600         * tests/unistr/test-u16-stpncpy.c: New file.
29601
29602         Tests for module 'unistr/u8-stpncpy'.
29603         * modules/unistr/u8-stpncpy-tests: New file.
29604         * tests/unistr/test-u8-stpncpy.c: New file.
29605         * tests/unistr/test-stpncpy.h: New file.
29606
29607         Tests for module 'unistr/u32-strncpy'.
29608         * modules/unistr/u32-strncpy-tests: New file.
29609         * tests/unistr/test-u32-strncpy.c: New file.
29610
29611         Tests for module 'unistr/u16-strncpy'.
29612         * modules/unistr/u16-strncpy-tests: New file.
29613         * tests/unistr/test-u16-strncpy.c: New file.
29614
29615         Tests for module 'unistr/u8-strncpy'.
29616         * modules/unistr/u8-strncpy-tests: New file.
29617         * tests/unistr/test-u8-strncpy.c: New file.
29618         * tests/unistr/test-strncpy.h: New file.
29619
29620         Tests for module 'unistr/u32-stpcpy'.
29621         * modules/unistr/u32-stpcpy-tests: New file.
29622         * tests/unistr/test-u32-stpcpy.c: New file.
29623
29624         Tests for module 'unistr/u16-stpcpy'.
29625         * modules/unistr/u16-stpcpy-tests: New file.
29626         * tests/unistr/test-u16-stpcpy.c: New file.
29627
29628         Tests for module 'unistr/u8-stpcpy'.
29629         * modules/unistr/u8-stpcpy-tests: New file.
29630         * tests/unistr/test-u8-stpcpy.c: New file.
29631         * tests/unistr/test-stpcpy.h: New file.
29632
29633         Tests for module 'unistr/u32-strcpy'.
29634         * modules/unistr/u32-strcpy-tests: New file.
29635         * tests/unistr/test-u32-strcpy.c: New file.
29636
29637         Tests for module 'unistr/u16-strcpy'.
29638         * modules/unistr/u16-strcpy-tests: New file.
29639         * tests/unistr/test-u16-strcpy.c: New file.
29640
29641         Tests for module 'unistr/u8-strcpy'.
29642         * modules/unistr/u8-strcpy-tests: New file.
29643         * tests/unistr/test-u8-strcpy.c: New file.
29644         * tests/unistr/test-strcpy.h: New file.
29645
29646         Tests for module 'unistr/u32-strnlen'.
29647         * modules/unistr/u32-strnlen-tests: New file.
29648         * tests/unistr/test-u32-strnlen.c: New file.
29649
29650         Tests for module 'unistr/u16-strnlen'.
29651         * modules/unistr/u16-strnlen-tests: New file.
29652         * tests/unistr/test-u16-strnlen.c: New file.
29653
29654         Tests for module 'unistr/u8-strnlen'.
29655         * modules/unistr/u8-strnlen-tests: New file.
29656         * tests/unistr/test-u8-strnlen.c: New file.
29657         * tests/unistr/test-strnlen.h: New file.
29658
29659         Tests for module 'unistr/u32-strlen'.
29660         * modules/unistr/u32-strlen-tests: New file.
29661         * tests/unistr/test-u32-strlen.c: New file.
29662
29663         Tests for module 'unistr/u16-strlen'.
29664         * modules/unistr/u16-strlen-tests: New file.
29665         * tests/unistr/test-u16-strlen.c: New file.
29666
29667         Tests for module 'unistr/u8-strlen'.
29668         * modules/unistr/u8-strlen-tests: New file.
29669         * tests/unistr/test-u8-strlen.c: New file.
29670
29671         Tests for module 'unistr/u32-prev'.
29672         * modules/unistr/u32-prev-tests: New file.
29673         * tests/unistr/test-u32-prev.c: New file.
29674
29675         Tests for module 'unistr/u16-prev'.
29676         * modules/unistr/u16-prev-tests: New file.
29677         * tests/unistr/test-u16-prev.c: New file.
29678
29679         Tests for module 'unistr/u8-prev'.
29680         * modules/unistr/u8-prev-tests: New file.
29681         * tests/unistr/test-u8-prev.c: New file.
29682
29683         Tests for module 'unistr/u32-next'.
29684         * modules/unistr/u32-next-tests: New file.
29685         * tests/unistr/test-u32-next.c: New file.
29686
29687         Tests for module 'unistr/u16-next'.
29688         * modules/unistr/u16-next-tests: New file.
29689         * tests/unistr/test-u16-next.c: New file.
29690
29691         Tests for module 'unistr/u8-next'.
29692         * modules/unistr/u8-next-tests: New file.
29693         * tests/unistr/test-u8-next.c: New file.
29694
29695         Tests for module 'unistr/u32-strmbtouc'.
29696         * modules/unistr/u32-strmbtouc-tests: New file.
29697         * tests/unistr/test-u32-strmbtouc.c: New file.
29698
29699         Tests for module 'unistr/u16-strmbtouc'.
29700         * modules/unistr/u16-strmbtouc-tests: New file.
29701         * tests/unistr/test-u16-strmbtouc.c: New file.
29702
29703         Tests for module 'unistr/u8-strmbtouc'.
29704         * modules/unistr/u8-strmbtouc-tests: New file.
29705         * tests/unistr/test-u8-strmbtouc.c: New file.
29706
29707         Tests for module 'unistr/u32-strmblen'.
29708         * modules/unistr/u32-strmblen-tests: New file.
29709         * tests/unistr/test-u32-strmblen.c: New file.
29710
29711         Tests for module 'unistr/u16-strmblen'.
29712         * modules/unistr/u16-strmblen-tests: New file.
29713         * tests/unistr/test-u16-strmblen.c: New file.
29714
29715         Tests for module 'unistr/u8-strmblen'.
29716         * modules/unistr/u8-strmblen-tests: New file.
29717         * tests/unistr/test-u8-strmblen.c: New file.
29718
29719         Tests for module 'unistr/u32-cpy-alloc'.
29720         * modules/unistr/u32-cpy-alloc-tests: New file.
29721         * tests/unistr/test-u32-cpy-alloc.c: New file.
29722
29723         Tests for module 'unistr/u16-cpy-alloc'.
29724         * modules/unistr/u16-cpy-alloc-tests: New file.
29725         * tests/unistr/test-u16-cpy-alloc.c: New file.
29726
29727         Tests for module 'unistr/u8-cpy-alloc'.
29728         * modules/unistr/u8-cpy-alloc-tests: New file.
29729         * tests/unistr/test-u8-cpy-alloc.c: New file.
29730         * tests/unistr/test-cpy-alloc.h: New file.
29731
29732         Tests for module 'unistr/u32-mbsnlen'.
29733         * modules/unistr/u32-mbsnlen-tests: New file.
29734         * tests/unistr/test-u32-mbsnlen.c: New file.
29735
29736         Tests for module 'unistr/u16-mbsnlen'.
29737         * modules/unistr/u16-mbsnlen-tests: New file.
29738         * tests/unistr/test-u16-mbsnlen.c: New file.
29739
29740         Tests for module 'unistr/u8-mbsnlen'.
29741         * modules/unistr/u8-mbsnlen-tests: New file.
29742         * tests/unistr/test-u8-mbsnlen.c: New file.
29743
29744         Tests for module 'unistr/u32-chr'.
29745         * modules/unistr/u32-chr-tests: New file.
29746         * tests/unistr/test-u32-chr.c: New file.
29747
29748         Tests for module 'unistr/u16-chr'.
29749         * modules/unistr/u16-chr-tests: New file.
29750         * tests/unistr/test-u16-chr.c: New file.
29751
29752         Tests for module 'unistr/u8-chr'.
29753         * modules/unistr/u8-chr-tests: New file.
29754         * tests/unistr/test-u8-chr.c: New file.
29755         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29756
29757         Tests for module 'unistr/u32-cmp2'.
29758         * modules/unistr/u32-cmp2-tests: New file.
29759         * tests/unistr/test-u32-cmp2.c: New file.
29760
29761         Tests for module 'unistr/u16-cmp2'.
29762         * modules/unistr/u16-cmp2-tests: New file.
29763         * tests/unistr/test-u16-cmp2.c: New file.
29764
29765         Tests for module 'unistr/u8-cmp2'.
29766         * modules/unistr/u8-cmp2-tests: New file.
29767         * tests/unistr/test-u8-cmp2.c: New file.
29768         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29769
29770         Tests for module 'unistr/u32-cmp'.
29771         * modules/unistr/u32-cmp-tests: New file.
29772         * tests/unistr/test-u32-cmp.c: New file.
29773
29774         Tests for module 'unistr/u16-cmp'.
29775         * modules/unistr/u16-cmp-tests: New file.
29776         * tests/unistr/test-u16-cmp.c: New file.
29777
29778         Tests for module 'unistr/u8-cmp'.
29779         * modules/unistr/u8-cmp-tests: New file.
29780         * tests/unistr/test-u8-cmp.c: New file.
29781         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29782
29783         Tests for module 'unistr/u32-set'.
29784         * modules/unistr/u32-set-tests: New file.
29785         * tests/unistr/test-u32-set.c: New file.
29786
29787         Tests for module 'unistr/u16-set'.
29788         * modules/unistr/u16-set-tests: New file.
29789         * tests/unistr/test-u16-set.c: New file.
29790
29791         Tests for module 'unistr/u8-set'.
29792         * modules/unistr/u8-set-tests: New file.
29793         * tests/unistr/test-u8-set.c: New file.
29794         * tests/unistr/test-set.h: New file.
29795
29796         Tests for module 'unistr/u32-move'.
29797         * modules/unistr/u32-move-tests: New file.
29798         * tests/unistr/test-u32-move.c: New file.
29799
29800         Tests for module 'unistr/u16-move'.
29801         * modules/unistr/u16-move-tests: New file.
29802         * tests/unistr/test-u16-move.c: New file.
29803
29804         Tests for module 'unistr/u8-move'.
29805         * modules/unistr/u8-move-tests: New file.
29806         * tests/unistr/test-u8-move.c: New file.
29807         * tests/unistr/test-move.h: New file.
29808
29809         Tests for module 'unistr/u32-cpy'.
29810         * modules/unistr/u32-cpy-tests: New file.
29811         * tests/unistr/test-u32-cpy.c: New file.
29812
29813         Tests for module 'unistr/u16-cpy'.
29814         * modules/unistr/u16-cpy-tests: New file.
29815         * tests/unistr/test-u16-cpy.c: New file.
29816
29817         Tests for module 'unistr/u8-cpy'.
29818         * modules/unistr/u8-cpy-tests: New file.
29819         * tests/unistr/test-u8-cpy.c: New file.
29820         * tests/unistr/test-cpy.h: New file.
29821
29822 2010-01-09  Bruno Haible  <bruno@clisp.org>
29823
29824         Tests for module 'unistr/u32-uctomb'.
29825         * modules/unistr/u32-uctomb-tests: New file.
29826         * tests/unistr/test-u32-uctomb.c: New file.
29827
29828         Tests for module 'unistr/u16-uctomb'.
29829         * modules/unistr/u16-uctomb-tests: New file.
29830         * tests/unistr/test-u16-uctomb.c: New file.
29831
29832         Tests for module 'unistr/u8-uctomb'.
29833         * modules/unistr/u8-uctomb-tests: New file.
29834         * tests/unistr/test-u8-uctomb.c: New file.
29835
29836         Tests for module 'unistr/u32-mbtoucr'.
29837         * modules/unistr/u32-mbtoucr-tests: New file.
29838         * tests/unistr/test-u32-mbtoucr.c: New file.
29839
29840         Tests for module 'unistr/u16-mbtoucr'.
29841         * modules/unistr/u16-mbtoucr-tests: New file.
29842         * tests/unistr/test-u16-mbtoucr.c: New file.
29843
29844         Tests for module 'unistr/u8-mbtoucr'.
29845         * modules/unistr/u8-mbtoucr-tests: New file.
29846         * tests/unistr/test-u8-mbtoucr.c: New file.
29847
29848         Tests for module 'unistr/u32-mbtouc'.
29849         * modules/unistr/u32-mbtouc-tests: New file.
29850         * tests/unistr/test-u32-mbtouc.c: New file.
29851
29852         Tests for module 'unistr/u16-mbtouc'.
29853         * modules/unistr/u16-mbtouc-tests: New file.
29854         * tests/unistr/test-u16-mbtouc.c: New file.
29855
29856         Tests for module 'unistr/u8-mbtouc'.
29857         * modules/unistr/u8-mbtouc-tests: New file.
29858         * tests/unistr/test-u8-mbtouc.c: New file.
29859
29860         Tests for module 'unistr/u32-mbtouc-unsafe'.
29861         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29862         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29863         * tests/unistr/test-u32-mbtouc.h: New file.
29864
29865         Tests for module 'unistr/u16-mbtouc-unsafe'.
29866         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29867         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29868         * tests/unistr/test-u16-mbtouc.h: New file.
29869
29870         Tests for module 'unistr/u8-mbtouc-unsafe'.
29871         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29872         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29873         * tests/unistr/test-u8-mbtouc.h: New file.
29874
29875         Tests for module 'unistr/u32-mblen'.
29876         * modules/unistr/u32-mblen-tests: New file.
29877         * tests/unistr/test-u32-mblen.c: New file.
29878
29879         Tests for module 'unistr/u16-mblen'.
29880         * modules/unistr/u16-mblen-tests: New file.
29881         * tests/unistr/test-u16-mblen.c: New file.
29882
29883         Tests for module 'unistr/u8-mblen'.
29884         * modules/unistr/u8-mblen-tests: New file.
29885         * tests/unistr/test-u8-mblen.c: New file.
29886
29887         Tests for module 'unistr/u32-to-u16'.
29888         * modules/unistr/u32-to-u16-tests: New file.
29889         * tests/unistr/test-u32-to-u16.c: New file.
29890
29891         Tests for module 'unistr/u32-to-u8'.
29892         * modules/unistr/u32-to-u8-tests: New file.
29893         * tests/unistr/test-u32-to-u8.c: New file.
29894
29895         Tests for module 'unistr/u16-to-u32'.
29896         * modules/unistr/u16-to-u32-tests: New file.
29897         * tests/unistr/test-u16-to-u32.c: New file.
29898
29899         Tests for module 'unistr/u16-to-u8'.
29900         * modules/unistr/u16-to-u8-tests: New file.
29901         * tests/unistr/test-u16-to-u8.c: New file.
29902
29903         Tests for module 'unistr/u8-to-u32'.
29904         * modules/unistr/u8-to-u32-tests: New file.
29905         * tests/unistr/test-u8-to-u32.c: New file.
29906
29907         Tests for module 'unistr/u8-to-u16'.
29908         * modules/unistr/u8-to-u16-tests: New file.
29909         * tests/unistr/test-u8-to-u16.c: New file.
29910
29911         Tests for module 'unistr/u32-check'.
29912         * modules/unistr/u32-check-tests: New file.
29913         * tests/unistr/test-u32-check.c: New file.
29914
29915         Tests for module 'unistr/u16-check'.
29916         * modules/unistr/u16-check-tests: New file.
29917         * tests/unistr/test-u16-check.c: New file.
29918
29919         Tests for module 'unistr/u8-check'.
29920         * modules/unistr/u8-check-tests: New file.
29921         * tests/unistr/test-u8-check.c: New file.
29922
29923         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29924         (category_equals): New function.
29925         (main): Add more tests.
29926         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29927
29928         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29929
29930 2010-01-10  Bruno Haible  <bruno@clisp.org>
29931
29932         unistr/u*-strcoll: Try harder to distinguish different strings.
29933         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29934         compare s1 and s2 to see if they are different.
29935
29936 2010-01-10  Bruno Haible  <bruno@clisp.org>
29937
29938         unistr/u*-stpncpy: Fix the return value.
29939         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29940         description of the return value consistent with stpncpy in glibc.
29941         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29942         written non-NUL unit.
29943
29944 2010-01-10  Bruno Haible  <bruno@clisp.org>
29945
29946         unistr/u*-next: Add missing dependencies.
29947         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29948         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29949         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29950
29951 2010-01-10  Bruno Haible  <bruno@clisp.org>
29952
29953         unistr/u8-mbsnlen: Fix return value for incomplete character.
29954         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29955         u8_mblen.
29956         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29957         Remove unistr/u8-mblen.
29958         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29959         u16_mblen.
29960         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29961         Remove unistr/u16-mblen.
29962
29963 2010-01-10  Bruno Haible  <bruno@clisp.org>
29964
29965         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29966         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29967         Reported by Brian Gough <bjg@gnu.org> and
29968         Chris Clayton <chris2553@googlemail.com> via
29969         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29970
29971 2010-01-09  Bruno Haible  <bruno@clisp.org>
29972
29973         unistr/u16-to-u32: Reject invalid input.
29974         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29975         u16_mbtouc.
29976         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29977         Remove unistr/u16-mbtouc.
29978
29979         unistr/u16-to-u8: Reject invalid input.
29980         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29981         u16_mbtouc.
29982         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29983         Remove unistr/u16-mbtouc.
29984
29985         unistr/u8-to-u32: Reject invalid input.
29986         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29987         u8_mbtouc.
29988         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29989         Remove unistr/u8-mbtouc.
29990
29991         unistr/u8-to-u16: Reject invalid input.
29992         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29993         u8_mbtouc.
29994         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29995         Remove unistr/u8-mbtouc.
29996
29997 2010-01-09  Bruno Haible  <bruno@clisp.org>
29998
29999         Tests for module 'getlogin'.
30000         * modules/getlogin-tests: New file.
30001         * tests/test-getlogin.c: New file.
30002
30003         New module 'getlogin'.
30004         * lib/unistd.in.h (getlogin): New declaration.
30005         * lib/getlogin.c: New file.
30006         * m4/getlogin.m4: New file.
30007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30008         HAVE_GETLOGIN.
30009         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30010         HAVE_GETLOGIN.
30011         * modules/getlogin: New file.
30012         * doc/posix-functions/getlogin.texi: Mention the new module.
30013         Reported by John W. Eaton <jwe@gnu.org>.
30014
30015 2010-01-09  Bruno Haible  <bruno@clisp.org>
30016
30017         getlogin_r: Support for native Windows.
30018         * lib/getlogin_r.c: Include <windows.h>
30019         (getlogin_r): Implement for native Windows.
30020         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30021         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30022         via John W. Eaton <jwe@gnu.org>.
30023
30024 2010-01-09  Bruno Haible  <bruno@clisp.org>
30025
30026         getlogin_r: Small fixes.
30027         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30028         succeeds.
30029         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30030         before testing whether getlogin_r is declared. No need to set
30031         HAVE_DECL_GETLOGIN_R to 1.
30032         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30033
30034 2010-01-09  Bruno Haible  <bruno@clisp.org>
30035
30036         * lib/unistd.in.h (getlogin_r): Add comment.
30037
30038 2010-01-09  Bruno Haible  <bruno@clisp.org>
30039
30040         Tests for module 'getlogin_r'.
30041         * modules/getlogin_r-tests: New file.
30042         * tests/test-getlogin_r.c: New file.
30043
30044 2010-01-09  Jim Meyering  <meyering@redhat.com>
30045
30046         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30047         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30048         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30049
30050 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30051
30052         * lib/dup2.c (rpl_dup2): Improve comment.
30053
30054 2010-01-08  Eric Blake  <ebb9@byu.net>
30055
30056         maint.mk: allow packages to add makefile @@ exceptions
30057         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30058         (sc_makefile_check): Rename...
30059         (sc_makefile_at_at_check): ...to this, and use hook.
30060
30061         dup2: work around mingw bug
30062         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30063         Reported by Simon Josefsson.
30064
30065 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30066
30067         glob: Fix C++ compilation.
30068         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30069         C++.
30070
30071 2010-01-07  Bruno Haible  <bruno@clisp.org>
30072
30073         Fix indentation of wctype.in.h, broken since 2007-01-06.
30074         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30075
30076 2010-01-07  Bruno Haible  <bruno@clisp.org>
30077
30078         mbslen: Avoid collision with system function.
30079         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30080         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30081         * m4/mbslen.m4: New file.
30082         * modules/mbslen (Files): Add it.
30083         (configure.ac): Invoke gl_MBSLEN.
30084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30085         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30086         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30087         via Ian Beckwith <ianb@erislabs.net>.
30088
30089 2010-01-07  Bruno Haible  <bruno@clisp.org>
30090
30091         dirent: Document the last fix.
30092         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30093
30094 2010-01-07  Bruno Haible  <bruno@clisp.org>
30095
30096         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30097         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30098         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30099         va_list are defined.
30100         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30101         Reported by Eric Blake.
30102
30103 2010-01-07  Bruno Haible  <bruno@clisp.org>
30104
30105         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30106         * modules/xlist (Depends-on): Add 'list',
30107         * modules/xoset (Depends-on): Add 'oset'.
30108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30109
30110 2010-01-07  Bruno Haible  <bruno@clisp.org>
30111
30112         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30113         * doc/posix-functions/strncasecmp.texi: Likewise.
30114
30115 2010-01-07  Bruno Haible  <bruno@clisp.org>
30116
30117         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30118
30119 2010-01-07  John W. Eaton  <jwe@octave.org>
30120
30121         wctype: allow C++ use
30122         * lib/wctype.in.h: Add extern "C" block for C++.
30123
30124 2010-01-06  Eric Blake  <ebb9@byu.net>
30125
30126         maint.mk: detect incorrect GFDL usage
30127         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30128
30129 2010-01-06  Jim Meyering  <meyering@redhat.com>
30130         and Eric Blake  <ebb9@byu.net>
30131
30132         maint.mk: ignore multi-line copyright in NEWS
30133         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30134
30135 2010-01-06  Eric Blake  <ebb9@byu.net>
30136
30137         select: add missing dependency
30138         * modules/select-tests (Depends-on): Move sockets dependency...
30139         * modules/select (Depends-on): ...here.
30140         Reported by Ian Beckwith.
30141
30142         doc: regenerate INSTALL
30143         * doc/INSTALL: Reflect recent autoconf update.
30144         * doc/INSTALL.ISO: Likewise.
30145         * doc/INSTALL.UTF-8: Likewise.
30146
30147         pread: fix compilation on glibc
30148         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30149         Reported by Ralf Wildenhues.
30150
30151         dirent: fix test failure
30152         * lib/dirent.in.h (includes): Guarantee ino_t.
30153         Reported by Ralf Wildenhues.
30154
30155 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30156
30157         linkat, renameat: avoid bad free
30158         * lib/at-func2.c (at_func2): Fix typo.
30159         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30160
30161 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30162
30163         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30164         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30165         to avoid failure of symlink test later.
30166
30167 2010-01-06  Eric Blake  <ebb9@byu.net>
30168
30169         stdio, unistd: guarantee ssize_t
30170         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30171         2008 are exposed when needed.
30172         * lib/stdio.in.h (includes): Likewise.
30173         Reported by Ralf Wildenhues.
30174
30175 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30176
30177         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30178         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30179         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30180
30181 2010-01-06  Jim Meyering  <meyering@redhat.com>
30182
30183         readtokens: this module *does* require xalloc.h
30184         It uses only functions that were omitted by the old syntax-check rule.
30185         * lib/readtokens.c: Include "xalloc.h" once again.
30186         * modules/readtokens (Depends-on): Add xalloc.
30187         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30188
30189 2010-01-05  Eric Blake  <ebb9@byu.net>
30190
30191         maint: support 'make announcement' from a VPATH build
30192         * top/maint.mk (announcement): Look for correct NEWS file.
30193
30194 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30195
30196         utimens (fdutimens): ignore a negative FD, per contract
30197         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30198         when we have a valid file descriptor.  Otherwise, using a brand
30199         new glibc (with just-patched futimens that now fails with EBADF)
30200         would cause this function to fail with ENOSYS.
30201         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30202         See also http://bugzilla.redhat.com/552320.
30203
30204 2010-01-05  Eric Blake  <ebb9@byu.net>
30205
30206         strcase: document what it provides
30207         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30208         gnulib module.
30209         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30210         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30211
30212 2010-01-05  Jim Meyering  <meyering@redhat.com>
30213
30214         maint: remove useless inclusions of "xalloc.h"
30215         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30216         * lib/readtokens.c: Likewise.
30217         * lib/same.c: Likewise.
30218         * modules/getloadavg (Depends-on): Remove xalloc.
30219         * modules/readtokens: Likewise.
30220         * modules/same: Likewise.
30221
30222         maint.mk: include 4 more function names in alloca.h-checking regexp
30223         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30224         regexp.  Before, we would give a false-positive (saying alloca.h
30225         is included unnecessarily) when the only uses involved omitted symbols.
30226
30227         xalloc.h: use consistent formatting
30228         * lib/xalloc.h: Move declarations to start in the first column.
30229
30230 2010-01-05  Eric Blake  <ebb9@byu.net>
30231
30232         mkdir: avoid xalloc
30233         * lib/mkdir.c (includes): Drop unused header.
30234         Reported by John W. Eaton.
30235
30236 2010-01-04  Jim Meyering  <meyering@redhat.com>
30237
30238         nl_langinfo: avoid configure-time syntax error
30239         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30240         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30241         the empty string.  Don't let that provoke a shell syntax error.
30242
30243         regcomp, regexec, fnmatch: avoid array bounds read error
30244         * lib/regcomp.c (build_equiv_class): From glibc:
30245         Use only the low 24 bits of a findidx return value as an index
30246         into the weights array.  Patch by Ulrich Drepper:
30247         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30248         * lib/regexec.c (check_node_accept_bytes): Likewise.
30249         * lib/fnmatch_loop.c (FCT): Likewise.
30250
30251         regcomp: skip collseq lookup when there are no rules
30252         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30253         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30254
30255         regcomp: recognize ill-formed { } expressions
30256         * lib/regcomp.c (parse_dup_op): From glibc:
30257         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30258
30259         regcomp: fix typo in comment
30260         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30261         s/satisfy/satisfies/.
30262
30263         regcomp: sync from glibc: remove dead store
30264         * lib/regcomp.c (duplicate_node_closure): Remove useless
30265         search_duplicated_node call and dead store.
30266
30267         regcomp: sync from glibc; always use nl_langinfo
30268         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30269         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30270         * modules/regex (Depends-on): Add nl_langinfo.
30271
30272 2010-01-04  Eric Blake  <ebb9@byu.net>
30273
30274         fdopendir: fix configure test
30275         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30276
30277 2010-01-01  Bruno Haible  <bruno@clisp.org>
30278
30279         wchar: Remove unused configure check.
30280         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30281
30282 2010-01-01  Eric Blake  <ebb9@byu.net>
30283
30284         headers: make check of system header explicit
30285         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30286         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30287         ourselves.
30288         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30290         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30291         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30292         internals.
30293         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30294         missing.
30295         Suggested by Bruno Haible.
30296
30297 2010-01-01  Jim Meyering  <meyering@redhat.com>
30298
30299         ChangeLog: tweak to eliminate unnecessary copyright line
30300         * ChangeLog: Remove a copyright line that was mistakenly updated
30301         by today's update-copyright run.  Reported by Eric Blake.
30302
30303         test-update-copyright: don't let envvar setting cause test failure
30304         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30305
30306 2010-01-01  Bruno Haible  <bruno@clisp.org>
30307
30308         localename: Avoid gcc warning.
30309         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30310         function if it is not used.
30311
30312 2010-01-01  Jim Meyering  <meyering@redhat.com>
30313
30314         update nearly all FSF copyright year lists to include 2010
30315         Use the same procedure as for 2009, outlined in
30316         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30317
30318         version-etc: set COPYRIGHT_YEAR to 2010
30319         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30320
30321 2009-12-31  Eric Blake  <ebb9@byu.net>
30322
30323         doc: correct availability of cygwin 1.5.x getopt
30324         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30325         variables.
30326         * doc/posix-functions/opterr.texi (opterr): Likewise.
30327         * doc/posix-functions/optind.texi (optind): Likewise.
30328         * doc/posix-functions/optopt.texi (optopt): Likewise.
30329         * doc/posix-functions/tzname.texi (tzname): Likewise.
30330
30331         openat: update maintainer
30332         * modules/openat (Maintainer): Add myself.
30333
30334         utimens: avoid shadowing warning
30335         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30336         buffers into one, to avoid shadowing, as well as avoiding a
30337         redundant stat.
30338         Reported by Jim Meyering.
30339
30340         test-dup2: avoid compiler warning
30341         * tests/test-dup2.c (is_inheritable): Only define if used.
30342
30343 2010-01-01  Bruno Haible  <bruno@clisp.org>
30344
30345         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30346         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30347         defined, use wctomb instead of wcrtomb.
30348
30349 2010-01-01  Bruno Haible  <bruno@clisp.org>
30350
30351         iconv: Reject native Solaris iconv.
30352         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30353         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30354
30355 2009-12-31  Bruno Haible  <bruno@clisp.org>
30356
30357         * tests/test-signal.c (main): Remove test of 'SIG'.
30358
30359 2009-12-31  Bruno Haible  <bruno@clisp.org>
30360
30361         spawn: Fix incomplete fix.
30362         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30363         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30364         warnings for GNULIB_POSIXCHECK again.
30365         Reported by Eric Blake.
30366
30367 2009-12-31  Bruno Haible  <bruno@clisp.org>
30368
30369         Avoid namespace pollution on glibc systems.
30370         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30371         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30372         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30373         glibc systems.
30374
30375 2009-12-31  Bruno Haible  <bruno@clisp.org>
30376
30377         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30378         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30379         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30380         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30381         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30382         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30383         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30384
30385 2009-12-31  Bruno Haible  <bruno@clisp.org>
30386
30387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30388         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30389         afterwards.
30390
30391 2009-12-31  Bruno Haible  <bruno@clisp.org>
30392
30393         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30394         SYS_UTSNAME_H.
30395
30396 2009-12-31  Bruno Haible  <bruno@clisp.org>
30397
30398         spawn: Fix misapplied patch.
30399         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30400         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30401         warnings for GNULIB_POSIXCHECK.
30402
30403 2009-12-31  Bruno Haible  <bruno@clisp.org>
30404
30405         times: Update after sys_times changed.
30406         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30407         * modules/times (Files): Add it.
30408         (configure.ac): Invoke gl_FUNC_TIMES.
30409
30410 2009-12-31  Bruno Haible  <bruno@clisp.org>
30411
30412         Use AC_C_INLINE where necessary.
30413         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30414         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30415         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30416         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30417         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30418         * m4/mbiter.m4 (gl_MBITER): Likewise.
30419         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30420         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30421         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30422         * modules/u64 (configure.ac): Likewise.
30423
30424 2009-12-31  Bruno Haible  <bruno@clisp.org>
30425
30426         Use AC_C_INLINE instead of module 'inline' where possible.
30427         * modules/inline (Description): Clarify purpose.
30428         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30429         * modules/count-one-bits (Depends-on): Remove inline.
30430         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30431         * modules/openat (Depends-on): Remove inline.
30432         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30433         instead of depending on module 'inline'.
30434         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30435         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30436         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30437         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30438         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30439         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30440         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30441         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30442         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30443         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30444         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30445         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30446         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30447         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30448         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30449         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30450         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30451         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30452         Likewise.
30453         * modules/unictype/property-ascii-hex-digit (Depends-on,
30454         configure.ac): Likewise.
30455         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30456         configure.ac): Likewise.
30457         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30458         configure.ac): Likewise.
30459         * modules/unictype/property-bidi-block-separator (Depends-on,
30460         configure.ac): Likewise.
30461         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30462         configure.ac): Likewise.
30463         * modules/unictype/property-bidi-common-separator (Depends-on,
30464         configure.ac): Likewise.
30465         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30466         Likewise.
30467         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30468         configure.ac): Likewise.
30469         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30470         configure.ac): Likewise.
30471         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30472         configure.ac): Likewise.
30473         * modules/unictype/property-bidi-european-digit (Depends-on,
30474         configure.ac): Likewise.
30475         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30476         configure.ac): Likewise.
30477         * modules/unictype/property-bidi-left-to-right (Depends-on,
30478         configure.ac): Likewise.
30479         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30480         configure.ac): Likewise.
30481         * modules/unictype/property-bidi-other-neutral (Depends-on,
30482         configure.ac): Likewise.
30483         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30484         Likewise.
30485         * modules/unictype/property-bidi-segment-separator (Depends-on,
30486         configure.ac): Likewise.
30487         * modules/unictype/property-bidi-whitespace (Depends-on,
30488         configure.ac): Likewise.
30489         * modules/unictype/property-combining (Depends-on, configure.ac):
30490         Likewise.
30491         * modules/unictype/property-composite (Depends-on, configure.ac):
30492         Likewise.
30493         * modules/unictype/property-currency-symbol (Depends-on,
30494         configure.ac): Likewise.
30495         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30496         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30497         Likewise.
30498         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30499         configure.ac): Likewise.
30500         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30501         Likewise.
30502         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30503         Likewise.
30504         * modules/unictype/property-extender (Depends-on, configure.ac):
30505         Likewise.
30506         * modules/unictype/property-format-control (Depends-on, configure.ac):
30507         Likewise.
30508         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30509         Likewise.
30510         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30511         Likewise.
30512         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30513         Likewise.
30514         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30515         Likewise.
30516         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30517         Likewise.
30518         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30519         Likewise.
30520         * modules/unictype/property-id-start (Depends-on, configure.ac):
30521         Likewise.
30522         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30523         Likewise.
30524         * modules/unictype/property-ids-binary-operator (Depends-on,
30525         configure.ac): Likewise.
30526         * modules/unictype/property-ids-trinary-operator (Depends-on,
30527         configure.ac): Likewise.
30528         * modules/unictype/property-ignorable-control (Depends-on,
30529         configure.ac): Likewise.
30530         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30531         Likewise.
30532         * modules/unictype/property-join-control (Depends-on, configure.ac):
30533         Likewise.
30534         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30535         Likewise.
30536         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30537         Likewise.
30538         * modules/unictype/property-logical-order-exception (Depends-on,
30539         configure.ac): Likewise.
30540         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30541         Likewise.
30542         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30543         * modules/unictype/property-non-break (Depends-on, configure.ac):
30544         Likewise.
30545         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30546         Likewise.
30547         * modules/unictype/property-numeric (Depends-on, configure.ac):
30548         Likewise.
30549         * modules/unictype/property-other-alphabetic (Depends-on,
30550         configure.ac): Likewise.
30551         * modules/unictype/property-other-default-ignorable-code-point
30552         (Depends-on, configure.ac): Likewise.
30553         * modules/unictype/property-other-grapheme-extend (Depends-on,
30554         configure.ac): Likewise.
30555         * modules/unictype/property-other-id-continue (Depends-on,
30556         configure.ac): Likewise.
30557         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30558         Likewise.
30559         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30560         Likewise.
30561         * modules/unictype/property-other-math (Depends-on, configure.ac):
30562         Likewise.
30563         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30564         Likewise.
30565         * modules/unictype/property-paired-punctuation (Depends-on,
30566         configure.ac): Likewise.
30567         * modules/unictype/property-paragraph-separator (Depends-on,
30568         configure.ac): Likewise.
30569         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30570         Likewise.
30571         * modules/unictype/property-pattern-white-space (Depends-on,
30572         configure.ac): Likewise.
30573         * modules/unictype/property-private-use (Depends-on, configure.ac):
30574         Likewise.
30575         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30576         Likewise.
30577         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30578         Likewise.
30579         * modules/unictype/property-radical (Depends-on, configure.ac):
30580         Likewise.
30581         * modules/unictype/property-sentence-terminal (Depends-on,
30582         configure.ac): Likewise.
30583         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30584         Likewise.
30585         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30586         * modules/unictype/property-terminal-punctuation (Depends-on,
30587         configure.ac): Likewise.
30588         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30589         Likewise.
30590         * modules/unictype/property-unassigned-code-value (Depends-on,
30591         configure.ac): Likewise.
30592         * modules/unictype/property-unified-ideograph (Depends-on,
30593         configure.ac): Likewise.
30594         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30595         Likewise.
30596         * modules/unictype/property-variation-selector (Depends-on,
30597         configure.ac): Likewise.
30598         * modules/unictype/property-white-space (Depends-on, configure.ac):
30599         Likewise.
30600         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30601         Likewise.
30602         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30603         Likewise.
30604         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30605         Likewise.
30606         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30607         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30608         Likewise.
30609
30610 2009-12-31  Bruno Haible  <bruno@clisp.org>
30611
30612         Remove unnecessary AC_C_INLINE invocation.
30613         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30614         since 2009-08-21.
30615
30616 2009-12-31  Jim Meyering  <meyering@redhat.com>
30617
30618         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30619         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30620         With this change, we can all remove the gpg_key_ID = ... definition
30621         from our respective cfg.mk files.
30622
30623         maint.mk: create announcement template in ~/, not in /tmp
30624         * top/maint.mk (emit_upload_commands): Adjust.
30625         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30626         Remove temporary file, .ci-msg.
30627
30628 2009-12-31  Eric Blake  <ebb9@byu.net>
30629
30630         link-warning: always build headers with link warnings
30631         * modules/arpa_inet (Makefile.am): Always build replacement
30632         header.
30633         * modules/ctype (Makefile.am): Likewise.
30634         * modules/dirent (Makefile.am): Likewise.
30635         * modules/inttypes (Makefile.am): Likewise.
30636         * modules/langinfo (Makefile.am): Likewise.
30637         * modules/locale (Makefile.am): Likewise.
30638         * modules/spawn (Makefile.am): Likewise.
30639         * modules/sys_file (Makefile.am): Likewise.
30640         * modules/sys_ioctl (Makefile.am): Likewise.
30641         * modules/sys_select (Makefile.am): Likewise.
30642         * modules/sys_socket (Makefile.am): Likewise.
30643         * modules/sys_times (Makefile.am): Likewise.
30644         * modules/sys_utsname (Makefile.am): Likewise.
30645         * modules/sys_wait (Makefile.am): Likewise.
30646         * modules/wchar (Makefile.am): Likewise.
30647         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30648         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30649         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30650         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30651         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30652         Likewise.
30653         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30654         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30655         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30656         Likewise.
30657         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30658         Likewise.
30659         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30660         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30661         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30663         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30664         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30665         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30666         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30667         (gl_WCHAR_H_DEFAULTS): Likewise.
30668
30669 2009-12-31  Eric Blake  <ebb9@byu.net>
30670
30671         signal, spawn: use link warnings
30672         * lib/signal.in.h (sigset_t): Make unconditional.
30673         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30674         (sigpending, sigprocmask, sigaction): Add link warnings.
30675         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30676         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30677         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30678         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30679         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30680         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30681         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30682         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30683         (posix_spawn_file_actions_destroy)
30684         (posix_spawn_file_actions_addopen)
30685         (posix_spawn_file_actions_addclose)
30686         (posix_spawn_file_actions_adddup2): Likewise.
30687         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30688         * tests/test-signal.c (main): Enhance test.
30689
30690         spawn: improve wrapper support
30691         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30692         (gl_SPAWN_H_DEFAULTS): New defaults.
30693         * modules/spawn (Makefile.am): Substitute them.
30694         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30695         Only declare if missing or broken.
30696
30697         sys_times, sys_utsname: use include_next
30698         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30699         header.
30700         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30701         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30702         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30703         * modules/sys_times (Depends-on): Add include_next.
30704         (Makefile.am): Substitute additional values.
30705         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30706         * lib/sys_times.in.h (includes): Include native header, if
30707         available.
30708         * lib/sys_utsname.in.h (includes): Likewise.
30709         * tests/test-sys_times.c (main): Enhance test.
30710
30711         fdutimensat: revert prior patch
30712         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30713         utimens.h.
30714         Reported by Bruno Haible.
30715
30716 2009-12-30  Eric Blake  <ebb9@byu.net>
30717
30718         sys_wait: drop link-warning dependency
30719         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30720         link-warning efforts.
30721         * lib/sys_wait.in.h: Likewise.
30722
30723         fdutimensat: remove bogus dependency
30724         * modules/fdutimensat (Depends-on): Drop inline.
30725
30726         unistd: fix typo
30727         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30728
30729 2009-12-30  Bruno Haible  <bruno@clisp.org>
30730
30731         Fix compilation error with Solaris cc.
30732         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30733         * lib/unicase/u16-is-invariant.c: Likewise.
30734         * lib/unicase/u32-is-invariant.c: Likewise.
30735         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30736
30737 2009-12-30  Bruno Haible  <bruno@clisp.org>
30738
30739         Fix test crash.
30740         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30741         locales.
30742         Reported by Simon Josefsson <simon@josefsson.org>.
30743
30744 2009-12-30  Bruno Haible  <bruno@clisp.org>
30745
30746         Fix compilation error on most platforms.
30747         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30748         Reported by Simon Josefsson <simon@josefsson.org>
30749         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30750
30751 2009-12-30  Eric Blake  <ebb9@byu.net>
30752
30753         futimens, utimensat: work around ntfs-3g bug
30754         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30755         a ctime bug is present, and expand workaround to cover ntfs-3g.
30756         * lib/utimens.c (fdutimens, lutimens): Likewise.
30757         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30758         (validate_timespec): Adjust return value.
30759         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30760         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30761         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30762
30763 2009-12-29  Eric Blake  <ebb9@byu.net>
30764
30765         link-warning: make usage consistent
30766         * modules/ctype (Depends-on): Add link-warning.
30767         (Makefile.am): Update rules accordingly.
30768         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30769         * modules/locale (Depends-on, Makefile.am): Likewise.
30770         * modules/sys_file (Makefile.am): Likewise.
30771         * modules/getopt-posix (Makefile.am): Delete unused link warning
30772         efforts.
30773         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30774         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30775         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30776         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30777
30778         stdio: remove unused variables
30779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30780         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30781         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30782
30783         tests: test more substitute headers
30784         * modules/ctype-tests: New file.
30785         * modules/dirent-tests: Likewise.
30786         * modules/spawn-tests: Likewise.
30787         * modules/sys_file-tests: Likewise.
30788         * modules/sys_ioctl-tests: Likewise.
30789         * modules/sys_wait-tests: Likewise.
30790         * tests/test-ctype.c: Likewise.
30791         * tests/test-dirent.c: Likewise.
30792         * tests/test-spawn.c: Likewise.
30793         * tests/test-sys_file.c: Likewise.
30794         * tests/test-sys_ioctl.c: Likewise.
30795         * tests/test-sys_wait.c: Likewise.
30796         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30797         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30798         whether or not flock is in use.
30799
30800         tests: remove License section from module
30801         * modules/arpa_inet-tests: Remove unneeded section.
30802         * modules/byteswap-tests: Likewise.
30803         * modules/ceilf-tests: Likewise.
30804         * modules/ceill-tests: Likewise.
30805         * modules/crypto/des-tests: Likewise.
30806         * modules/crypto/gc-arcfour-tests: Likewise.
30807         * modules/crypto/gc-arctwo-tests: Likewise.
30808         * modules/crypto/gc-des-tests: Likewise.
30809         * modules/crypto/gc-hmac-md5-tests: Likewise.
30810         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30811         * modules/crypto/gc-md2-tests: Likewise.
30812         * modules/crypto/gc-md4-tests: Likewise.
30813         * modules/crypto/gc-md5-tests: Likewise.
30814         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30815         * modules/crypto/gc-rijndael-tests: Likewise.
30816         * modules/crypto/gc-sha1-tests: Likewise.
30817         * modules/crypto/gc-tests: Likewise.
30818         * modules/crypto/md2-tests: Likewise.
30819         * modules/crypto/md4-tests: Likewise.
30820         * modules/fcntl-h-tests: Likewise.
30821         * modules/floorf-tests: Likewise.
30822         * modules/floorl-tests: Likewise.
30823         * modules/frexp-nolibm-tests: Likewise.
30824         * modules/frexp-tests: Likewise.
30825         * modules/frexpl-nolibm-tests: Likewise.
30826         * modules/frexpl-tests: Likewise.
30827         * modules/getaddrinfo-tests: Likewise.
30828         * modules/inttypes-tests: Likewise.
30829         * modules/isfinite-tests: Likewise.
30830         * modules/isinf-tests: Likewise.
30831         * modules/ldexpl-tests: Likewise.
30832         * modules/locale-tests: Likewise.
30833         * modules/math-tests: Likewise.
30834         * modules/netdb-tests: Likewise.
30835         * modules/netinet_in-tests: Likewise.
30836         * modules/printf-frexp-tests: Likewise.
30837         * modules/printf-frexpl-tests: Likewise.
30838         * modules/priv-set-tests: Likewise.
30839         * modules/random_r-tests: Likewise.
30840         * modules/round-tests: Likewise.
30841         * modules/roundf-tests: Likewise.
30842         * modules/roundl-tests: Likewise.
30843         * modules/search-tests: Likewise.
30844         * modules/select-tests: Likewise.
30845         * modules/signal-tests: Likewise.
30846         * modules/stdbool-tests: Likewise.
30847         * modules/stddef-tests: Likewise.
30848         * modules/stdint-tests: Likewise.
30849         * modules/stdio-tests: Likewise.
30850         * modules/stdlib-tests: Likewise.
30851         * modules/string-tests: Likewise.
30852         * modules/strings-tests: Likewise.
30853         * modules/sys_select-tests: Likewise.
30854         * modules/sys_socket-tests: Likewise.
30855         * modules/sys_stat-tests: Likewise.
30856         * modules/sys_time-tests: Likewise.
30857         * modules/sys_utsname-tests: Likewise.
30858         * modules/sysexits-tests: Likewise.
30859         * modules/time-tests: Likewise.
30860         * modules/trunc-tests: Likewise.
30861         * modules/truncf-tests: Likewise.
30862         * modules/truncl-tests: Likewise.
30863         * modules/tsearch-tests: Likewise.
30864         * modules/unistd-tests: Likewise.
30865         * modules/wchar-tests: Likewise.
30866         * modules/wctype-tests: Likewise.
30867
30868         tests: fix license on several tests
30869         * tests/test-des.c: Update to GPLv3+.
30870         * tests/test-flock.c: Likewise.
30871         * tests/test-fsync.c: Likewise.
30872         * tests/test-futimens.h: Likewise.
30873         * tests/test-gc-arcfour.c: Likewise.
30874         * tests/test-gc-arctwo.c: Likewise.
30875         * tests/test-gc-des.c: Likewise.
30876         * tests/test-gc-hmac-md5.c: Likewise.
30877         * tests/test-gc-hmac-sha1.c: Likewise.
30878         * tests/test-gc-md2.c: Likewise.
30879         * tests/test-gc-md4.c: Likewise.
30880         * tests/test-gc-md5.c: Likewise.
30881         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30882         * tests/test-gc-rijndael.c: Likewise.
30883         * tests/test-gc-sha1.c: Likewise.
30884         * tests/test-gc.c: Likewise.
30885         * tests/test-getcwd.c: Likewise.
30886         * tests/test-link.c: Likewise.
30887         * tests/test-link.h: Likewise.
30888         * tests/test-lutimens.h: Likewise.
30889         * tests/test-md2.c: Likewise.
30890         * tests/test-md4.c: Likewise.
30891         * tests/test-mkdir.h: Likewise.
30892         * tests/test-rename.c: Likewise.
30893         * tests/test-rename.h: Likewise.
30894         * tests/test-safe-alloc.c: Likewise.
30895         * tests/test-utimens-common.h: Likewise.
30896         * tests/test-utimens.h: Likewise.
30897
30898         maint: sync license texts
30899         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30900         * doc/gpl-3.0.texi: Revert copyright year update.
30901         * doc/lgpl-3.0.texi: Likewise.
30902
30903 2009-12-29  Jim Meyering  <meyering@redhat.com>
30904
30905         update nearly all FSF copyright year lists to include 2009
30906         The files named by the following are exempted:
30907             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30908               test -f "$dst" && { echo "$dst"; continue; }
30909               test -d "$dst" || continue
30910               echo "$dst"/$(basename "$src")
30911             done > exempt
30912             git ls-files tests/unictype >> exempt
30913         In the remaining files, convert to all-interval notation if
30914         - there is already at least one year interval like 2000-2003
30915         - the file is maintained by me
30916         - the file is in lib/uni*/, where that style already prevails
30917         Otherwise, use update-copyright's default.
30918
30919 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30920         and Eric Blake  <ebb9@byu.net>
30921
30922         tests: don't require debug system() to pass
30923         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30924         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30925         * tests/test-unlink.h (test_unlink_func): Likewise.
30926         * tests/test-fstatat.c (main): ...into callers.
30927         * tests/test-lstat.c (main): Likewise.
30928         * tests/test-rmdir.c (main): Likewise.
30929         * tests/test-unlink.c (main): Likewise.
30930         * tests/test-unlinkat.c (main): Likewise.
30931         * tests/test-areadlink-with-size.c (main): Don't require a
30932         debug-only system call to pass, aiding cross-testing to mingw.
30933         * tests/test-areadlink.c (main): Likewise.
30934         * tests/test-areadlinkat-with-size.c (main): Likewise.
30935         * tests/test-areadlinkat.c (main): Likewise.
30936         * tests/test-canonicalize-lgpl.c (main): Likewise.
30937         * tests/test-canonicalize.c (main): Likewise.
30938         * tests/test-chown.c (main): Likewise.
30939         * tests/test-fchownat.c (main): Likewise.
30940         * tests/test-lchown.c (main): Likewise.
30941         * tests/test-fdutimensat.c (main): Likewise.
30942         * tests/test-futimens.c (main): Likewise.
30943         * tests/test-link.c (main): Likewise.
30944         * tests/test-linkat.c (main): Likewise.
30945         * tests/test-mkdir.c (main): Likewise.
30946         * tests/test-mkdirat.c (main): Likewise.
30947         * tests/test-mkfifo.c (main): Likewise.
30948         * tests/test-mkfifoat.c (main): Likewise.
30949         * tests/test-mknod.c (main): Likewise.
30950         * tests/test-readlink.c (main): Likewise.
30951         * tests/test-remove.c (main): Likewise.
30952         * tests/test-rename.c (main): Likewise.
30953         * tests/test-renameat.c (main): Likewise.
30954         * tests/test-symlink.c (main): Likewise.
30955         * tests/test-symlinkat.c (main): Likewise.
30956         * tests/test-utimens.c (main): Likewise.
30957         * tests/test-utimensat.c (main): Likewise.
30958
30959 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30960
30961         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30962         on $(UNUSED_PARAMETER_H) to avoid build failure.
30963
30964 2009-12-28  Jim Meyering  <meyering@redhat.com>
30965
30966         update-copyright: you may specify a max. line length other than 72
30967         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30968
30969         maint: use consistent FSF copyright line syntax
30970         * lib/posixtm.c: Add missing comma in FSF copyright line.
30971         * lib/posixtm.h: Likewise.
30972         * lib/getugroups.c: Add missing ", Inc.".
30973
30974         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30975         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30976         FSF copyright line.  Remove trailing blanks.
30977
30978 2009-12-28  Eric Blake  <ebb9@byu.net>
30979
30980         test-dup2: reduce dependencies
30981         * modules/cloexec (Configure.ac): Set witness.
30982         * modules/dup2-tests (Depends-on): Drop cloexec.
30983         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30984         not present.
30985         Suggested by Bruno Haible.
30986
30987 2009-12-26  Bruno Haible  <bruno@clisp.org>
30988
30989         Remove an unneeded dependency.
30990         * modules/fseterr (Depends-on): Remove dup2.
30991
30992 2009-12-26  Eric Blake  <ebb9@byu.net>
30993
30994         tests: use macros.h in more places
30995         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30996         (ASSERT_STREAM): Provide default of stderr.
30997         * tests/test-dirent-safer.c: Include macros.h, using alternate
30998         stream for assertions.
30999         * tests/test-dup-safer.c: Likewise.
31000         * tests/test-freopen-safer.c: Likewise.
31001         * tests/test-getopt.c: Likewise.
31002         * tests/test-openat-safer.c: Likewise.
31003         * tests/test-pipe.c: Likewise.
31004         * tests/test-popen-safer.c: Likewise.
31005         * modules/dirent-safer-tests (Files): Include macros.h.
31006         * modules/unistd-safer-tests (Files): Likewise.
31007         * modules/freopen-safer-tests (Files): Likewise.
31008         * modules/getopt-posix-tests (Files): Likewise.
31009         * modules/openat-safer-tests (Files): Likewise.
31010         * modules/pipe-tests (Files): Likewise.
31011
31012 2009-12-26  Bruno Haible  <bruno@clisp.org>
31013
31014         javacomp: Portability fix.
31015         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31016         that it also works on Solaris.
31017
31018 2009-12-26  Bruno Haible  <bruno@clisp.org>
31019
31020         localename: Fix storage allocation of gl_locale_name_thread's result.
31021         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31022         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31023         all platforms that have 'uselocale'.
31024         (gl_locale_name_thread_unsafe): New function, extracted from
31025         gl_locale_name_thread.
31026         (gl_locale_name_thread): Call struniq on all platforms that have
31027         'uselocale'.
31028         * tests/test-localename.c (test_locale_name_thread): Check that the
31029         resulting strings are permanently allocated.
31030         * modules/localename-tests (Depends-on): Add strdup.
31031
31032 2009-12-26  Bruno Haible  <bruno@clisp.org>
31033
31034         * tests/test-localename.c (categories): Fill in the strings.
31035
31036 2009-12-26  Jim Meyering  <meyering@redhat.com>
31037
31038         isdir: complete the removal of m4/isdir.m4
31039         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31040
31041         isdir: clean up, since at least grep still uses it
31042         * lib/isdir.c: Include "isdir.h".
31043         (S_ISDIR): Remove now-unneeded definition.
31044         * modules/isdir (Files): Add lib/isdir.h.
31045         * lib/isdir.h: New file, with declaration.
31046         * m4/isdir.m4: Remove file -- unneeded.
31047
31048 2009-12-25  Bruno Haible  <bruno@clisp.org>
31049
31050         selinux-h: Make generated .h files standalone.
31051         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31052         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31053         * lib/se-selinux.in.h: Likewise.
31054         * modules/selinux-h (Depends-on): Add unused-parameter.
31055         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31056         selinux/selinux.h and selinux/context.h.
31057         Suggested by Eric Blake.
31058
31059 2009-12-25  Bruno Haible  <bruno@clisp.org>
31060
31061         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31062         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31063         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31064         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31065         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31066
31067 2009-12-24  Bruno Haible  <bruno@clisp.org>
31068
31069         openat: Fix warning.
31070         * lib/openat-proc.c: Include <unistd.h>.
31071
31072 2009-12-24  Bruno Haible  <bruno@clisp.org>
31073
31074         New module 'unused-parameter'.
31075         * build-aux/unused-parameter.h: New file, extracted from earlier
31076         gnulib-common.m4.
31077         * modules/unused-parameter: New file.
31078         * lib/unistr.h: Include unused-parameter.h.
31079         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31080         _GL_UNUSED.
31081         * modules/unistr/base (Depends-on): Add unused-parameter.
31082
31083 2009-12-24  Bruno Haible  <bruno@clisp.org>
31084
31085         Add missing dependencies to 'extensions' module.
31086         * m4/extensions.m4: Add comment.
31087         * modules/accept4 (Depends-on): Add extensions.
31088         * modules/dup3 (Depends-on): Likewise.
31089         * modules/fcntl (Depends-on): Likewise.
31090         * modules/futimens (Depends-on): Likewise.
31091         * modules/mknod (Depends-on): Likewise.
31092         * modules/pipe2 (Depends-on): Likewise.
31093         * modules/stat-time (Depends-on): Likewise.
31094         * modules/strcasestr-simple (Depends-on): Likewise.
31095         * modules/strsignal (Depends-on): Likewise.
31096         * modules/utimensat (Depends-on): Likewise.
31097         * modules/localcharset (Depends-on): Likewise. Needed because of
31098         gl_FCNTL_O_FLAGS.
31099         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31100         AC_TYPE_MBSTATE_T.
31101         * modules/wcsnrtombs (Depends-on): Likewise.
31102         * modules/wcsrtombs (Depends-on): Likewise.
31103
31104 2009-12-24  Bruno Haible  <bruno@clisp.org>
31105
31106         binary-io: Avoid gcc warning due to SET_BINARY.
31107         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31108         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31109
31110 2009-12-24  Bruno Haible  <bruno@clisp.org>
31111
31112         Avoid future namespace pollution on glibc systems.
31113         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31114         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31115         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31116         glibc systems.
31117
31118 2009-12-24  Bruno Haible  <bruno@clisp.org>
31119
31120         Refactor common macros used in tests.
31121         * tests/macros.h: New file.
31122         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31123         and/or <stdlib.h>, if appropriate.
31124         (ASSERT, SIZEOF): Remove macros.
31125         * tests/test-areadlink-with-size.c: Likewise.
31126         * tests/test-areadlinkat.c: Likewise.
31127         * tests/test-areadlinkat-with-size.c: Likewise.
31128         * tests/test-argmatch.c: Likewise.
31129         * tests/test-argv-iter.c: Likewise.
31130         * tests/test-array-mergesort.c: Likewise.
31131         * tests/test-array_list.c: Likewise.
31132         * tests/test-array_oset.c: Likewise.
31133         * tests/test-avltree_list.c: Likewise.
31134         * tests/test-avltree_oset.c: Likewise.
31135         * tests/test-avltreehash_list.c: Likewise.
31136         * tests/test-base64.c: Likewise.
31137         * tests/test-binary-io.c: Likewise.
31138         * tests/test-bitrotate.c: Likewise.
31139         * tests/test-btowc.c: Likewise.
31140         * tests/test-byteswap.c: Likewise.
31141         * tests/test-c-ctype.c: Likewise.
31142         * tests/test-c-stack.c: Likewise.
31143         * tests/test-c-strcasecmp.c: Likewise.
31144         * tests/test-c-strcasestr.c: Likewise.
31145         * tests/test-c-strncasecmp.c: Likewise.
31146         * tests/test-c-strstr.c: Likewise.
31147         * tests/test-canonicalize-lgpl.c: Likewise.
31148         * tests/test-canonicalize.c: Likewise.
31149         * tests/test-carray_list.c: Likewise.
31150         * tests/test-ceilf1.c: Likewise.
31151         * tests/test-ceilf2.c: Likewise.
31152         * tests/test-ceill.c: Likewise.
31153         * tests/test-chown.c: Likewise.
31154         * tests/test-cloexec.c: Likewise.
31155         * tests/test-copy-acl.c: Likewise.
31156         * tests/test-copy-file.c: Likewise.
31157         * tests/test-count-one-bits.c: Likewise.
31158         * tests/test-dprintf-posix.c: Likewise.
31159         * tests/test-dup2.c: Likewise.
31160         * tests/test-dup3.c: Likewise.
31161         * tests/test-duplocale.c: Likewise.
31162         * tests/test-fbufmode.c: Likewise.
31163         * tests/test-fchdir.c: Likewise.
31164         * tests/test-fchownat.c: Likewise.
31165         * tests/test-fcntl-safer.c: Likewise.
31166         * tests/test-fcntl.c: Likewise.
31167         * tests/test-fdopendir.c: Likewise.
31168         * tests/test-fdutimensat.c: Likewise.
31169         * tests/test-fflush2.c: Likewise.
31170         * tests/test-file-has-acl.c: Likewise.
31171         * tests/test-filevercmp.c: Likewise.
31172         * tests/test-flock.c: Likewise.
31173         * tests/test-floorf1.c: Likewise.
31174         * tests/test-floorf2.c: Likewise.
31175         * tests/test-floorl.c: Likewise.
31176         * tests/test-fnmatch.c: Likewise.
31177         * tests/test-fopen.h: Likewise.
31178         * tests/test-fpending.c: Likewise.
31179         * tests/test-fprintf-posix.c: Likewise.
31180         * tests/test-fpurge.c: Likewise.
31181         * tests/test-freadable.c: Likewise.
31182         * tests/test-freadahead.c: Likewise.
31183         * tests/test-freading.c: Likewise.
31184         * tests/test-freadptr.c: Likewise.
31185         * tests/test-freadptr2.c: Likewise.
31186         * tests/test-freadseek.c: Likewise.
31187         * tests/test-freopen.c: Likewise.
31188         * tests/test-frexp.c: Likewise.
31189         * tests/test-frexpl.c: Likewise.
31190         * tests/test-fseek.c: Likewise.
31191         * tests/test-fseeko.c: Likewise.
31192         * tests/test-fstatat.c: Likewise.
31193         * tests/test-fstrcmp.c: Likewise.
31194         * tests/test-fsync.c: Likewise.
31195         * tests/test-ftell.c: Likewise.
31196         * tests/test-ftello.c: Likewise.
31197         * tests/test-func.c: Likewise.
31198         * tests/test-futimens.c: Likewise.
31199         * tests/test-fwritable.c: Likewise.
31200         * tests/test-fwriting.c: Likewise.
31201         * tests/test-getcwd.c: Likewise.
31202         * tests/test-getdate.c: Likewise.
31203         * tests/test-getdelim.c: Likewise.
31204         * tests/test-getdtablesize.c: Likewise.
31205         * tests/test-getgroups.c: Likewise.
31206         * tests/test-getline.c: Likewise.
31207         * tests/test-getndelim2.c: Likewise.
31208         * tests/test-glob.c: Likewise.
31209         * tests/test-hash.c: Likewise.
31210         * tests/test-i-ring.c: Likewise.
31211         * tests/test-iconv-utf.c: Likewise.
31212         * tests/test-iconv.c: Likewise.
31213         * tests/test-idpriv-drop.c: Likewise.
31214         * tests/test-idpriv-droptemp.c: Likewise.
31215         * tests/test-inet_ntop.c: Likewise.
31216         * tests/test-inet_pton.c: Likewise.
31217         * tests/test-isblank.c: Likewise.
31218         * tests/test-isfinite.c: Likewise.
31219         * tests/test-isinf.c: Likewise.
31220         * tests/test-isnan.c: Likewise.
31221         * tests/test-isnand.h: Likewise.
31222         * tests/test-isnanf.h: Likewise.
31223         * tests/test-isnanl.h: Likewise.
31224         * tests/test-lchown.c: Likewise.
31225         * tests/test-ldexpl.c: Likewise.
31226         * tests/test-link.c: Likewise.
31227         * tests/test-linkat.c: Likewise.
31228         * tests/test-linked_list.c: Likewise.
31229         * tests/test-linkedhash_list.c: Likewise.
31230         * tests/test-localename.c: Likewise.
31231         * tests/test-lseek.c: Likewise.
31232         * tests/test-lstat.c: Likewise.
31233         * tests/test-mbmemcasecmp.c: Likewise.
31234         * tests/test-mbmemcasecoll.c: Likewise.
31235         * tests/test-mbrtowc.c: Likewise.
31236         * tests/test-mbscasecmp.c: Likewise.
31237         * tests/test-mbscasestr1.c: Likewise.
31238         * tests/test-mbscasestr2.c: Likewise.
31239         * tests/test-mbscasestr3.c: Likewise.
31240         * tests/test-mbscasestr4.c: Likewise.
31241         * tests/test-mbschr.c: Likewise.
31242         * tests/test-mbscspn.c: Likewise.
31243         * tests/test-mbsinit.c: Likewise.
31244         * tests/test-mbsncasecmp.c: Likewise.
31245         * tests/test-mbsnrtowcs.c: Likewise.
31246         * tests/test-mbspbrk.c: Likewise.
31247         * tests/test-mbspcasecmp.c: Likewise.
31248         * tests/test-mbsrchr.c: Likewise.
31249         * tests/test-mbsrtowcs.c: Likewise.
31250         * tests/test-mbsspn.c: Likewise.
31251         * tests/test-mbsstr1.c: Likewise.
31252         * tests/test-mbsstr2.c: Likewise.
31253         * tests/test-mbsstr3.c: Likewise.
31254         * tests/test-memchr.c: Likewise.
31255         * tests/test-memchr2.c: Likewise.
31256         * tests/test-memcmp.c: Likewise.
31257         * tests/test-memmem.c: Likewise.
31258         * tests/test-memrchr.c: Likewise.
31259         * tests/test-mkdir.c: Likewise.
31260         * tests/test-mkdirat.c: Likewise.
31261         * tests/test-mkfifo.c: Likewise.
31262         * tests/test-mkfifoat.c: Likewise.
31263         * tests/test-mknod.c: Likewise.
31264         * tests/test-nanosleep.c: Likewise.
31265         * tests/test-nl_langinfo.c: Likewise.
31266         * tests/test-obstack-printf.c: Likewise.
31267         * tests/test-open.c: Likewise.
31268         * tests/test-openat.c: Likewise.
31269         * tests/test-pipe-filter-gi1.c: Likewise.
31270         * tests/test-pipe-filter-gi2-main.c: Likewise.
31271         * tests/test-pipe-filter-ii1.c: Likewise.
31272         * tests/test-pipe-filter-ii2-main.c: Likewise.
31273         * tests/test-pipe2.c: Likewise.
31274         * tests/test-popen.h: Likewise.
31275         * tests/test-posixtm.c: Likewise.
31276         * tests/test-pread.c: Likewise.
31277         * tests/test-printf-frexp.c: Likewise.
31278         * tests/test-printf-frexpl.c: Likewise.
31279         * tests/test-printf-posix.c: Likewise.
31280         * tests/test-priv-set.c: Likewise.
31281         * tests/test-quotearg.c: Likewise.
31282         * tests/test-random_r.c: Likewise.
31283         * tests/test-rawmemchr.c: Likewise.
31284         * tests/test-rbtree_list.c: Likewise.
31285         * tests/test-rbtree_oset.c: Likewise.
31286         * tests/test-rbtreehash_list.c: Likewise.
31287         * tests/test-readlink.c: Likewise.
31288         * tests/test-remove.c: Likewise.
31289         * tests/test-rename.c: Likewise.
31290         * tests/test-renameat.c: Likewise.
31291         * tests/test-rmdir.c: Likewise.
31292         * tests/test-round1.c: Likewise.
31293         * tests/test-roundf1.c: Likewise.
31294         * tests/test-roundl.c: Likewise.
31295         * tests/test-safe-alloc.c: Likewise.
31296         * tests/test-sameacls.c: Likewise.
31297         * tests/test-set-mode-acl.c: Likewise.
31298         * tests/test-setenv.c: Likewise.
31299         * tests/test-sigaction.c: Likewise.
31300         * tests/test-signbit.c: Likewise.
31301         * tests/test-sleep.c: Likewise.
31302         * tests/test-snprintf-posix.c: Likewise.
31303         * tests/test-snprintf.c: Likewise.
31304         * tests/test-sprintf-posix.c: Likewise.
31305         * tests/test-stat-time.c: Likewise.
31306         * tests/test-stat.c: Likewise.
31307         * tests/test-strcasestr.c: Likewise.
31308         * tests/test-strchrnul.c: Likewise.
31309         * tests/test-strerror.c: Likewise.
31310         * tests/test-striconv.c: Likewise.
31311         * tests/test-striconveh.c: Likewise.
31312         * tests/test-striconveha.c: Likewise.
31313         * tests/test-strsignal.c: Likewise.
31314         * tests/test-strstr.c: Likewise.
31315         * tests/test-strtod.c: Likewise.
31316         * tests/test-strverscmp.c: Likewise.
31317         * tests/test-symlink.c: Likewise.
31318         * tests/test-symlinkat.c: Likewise.
31319         * tests/test-trunc1.c: Likewise.
31320         * tests/test-trunc2.c: Likewise.
31321         * tests/test-truncf1.c: Likewise.
31322         * tests/test-truncf2.c: Likewise.
31323         * tests/test-truncl.c: Likewise.
31324         * tests/test-uname.c: Likewise.
31325         * tests/test-unlink.c: Likewise.
31326         * tests/test-unlinkat.c: Likewise.
31327         * tests/test-unsetenv.c: Likewise.
31328         * tests/test-usleep.c: Likewise.
31329         * tests/test-utimens.c: Likewise.
31330         * tests/test-utimensat.c: Likewise.
31331         * tests/test-vasnprintf-posix.c: Likewise.
31332         * tests/test-vasnprintf-posix2.c: Likewise.
31333         * tests/test-vasnprintf.c: Likewise.
31334         * tests/test-vasprintf-posix.c: Likewise.
31335         * tests/test-vasprintf.c: Likewise.
31336         * tests/test-vdprintf-posix.c: Likewise.
31337         * tests/test-vfprintf-posix.c: Likewise.
31338         * tests/test-vprintf-posix.c: Likewise.
31339         * tests/test-vsnprintf-posix.c: Likewise.
31340         * tests/test-vsnprintf.c: Likewise.
31341         * tests/test-vsprintf-posix.c: Likewise.
31342         * tests/test-wcrtomb.c: Likewise.
31343         * tests/test-wcsnrtombs.c: Likewise.
31344         * tests/test-wcsrtombs.c: Likewise.
31345         * tests/test-wctype.c: Likewise.
31346         * tests/test-wcwidth.c: Likewise.
31347         * tests/test-xfprintf-posix.c: Likewise.
31348         * tests/test-xmemdup0.c: Likewise.
31349         * tests/test-xprintf-posix.c: Likewise.
31350         * tests/test-xvasprintf.c: Likewise.
31351         * tests/unicase/test-locale-language.c: Likewise.
31352         * tests/unicase/test-mapping-part1.h: Likewise.
31353         * tests/unicase/test-predicate-part1.h: Likewise.
31354         * tests/unicase/test-u8-casecmp.c: Likewise.
31355         * tests/unicase/test-u8-casecoll.c: Likewise.
31356         * tests/unicase/test-u8-casefold.c: Likewise.
31357         * tests/unicase/test-u8-is-cased.c: Likewise.
31358         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31359         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31360         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31361         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31362         * tests/unicase/test-u8-tolower.c: Likewise.
31363         * tests/unicase/test-u8-totitle.c: Likewise.
31364         * tests/unicase/test-u8-toupper.c: Likewise.
31365         * tests/unicase/test-u16-casecmp.c: Likewise.
31366         * tests/unicase/test-u16-casecoll.c: Likewise.
31367         * tests/unicase/test-u16-casefold.c: Likewise.
31368         * tests/unicase/test-u16-is-cased.c: Likewise.
31369         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31370         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31371         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31372         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31373         * tests/unicase/test-u16-tolower.c: Likewise.
31374         * tests/unicase/test-u16-totitle.c: Likewise.
31375         * tests/unicase/test-u16-toupper.c: Likewise.
31376         * tests/unicase/test-u32-casecmp.c: Likewise.
31377         * tests/unicase/test-u32-casecoll.c: Likewise.
31378         * tests/unicase/test-u32-casefold.c: Likewise.
31379         * tests/unicase/test-u32-is-cased.c: Likewise.
31380         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31381         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31382         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31383         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31384         * tests/unicase/test-u32-tolower.c: Likewise.
31385         * tests/unicase/test-u32-totitle.c: Likewise.
31386         * tests/unicase/test-u32-toupper.c: Likewise.
31387         * tests/unicase/test-ulc-casecmp.c: Likewise.
31388         * tests/unicase/test-ulc-casecoll.c: Likewise.
31389         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31390         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31391         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31392         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31393         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31394         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31395         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31396         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31397         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31398         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31399         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31400         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31401         * tests/unictype/test-bidi_byname.c: Likewise.
31402         * tests/unictype/test-bidi_name.c: Likewise.
31403         * tests/unictype/test-bidi_of.c: Likewise.
31404         * tests/unictype/test-bidi_test.c: Likewise.
31405         * tests/unictype/test-block_list.c: Likewise.
31406         * tests/unictype/test-block_of.c: Likewise.
31407         * tests/unictype/test-block_test.c: Likewise.
31408         * tests/unictype/test-categ_and.c: Likewise.
31409         * tests/unictype/test-categ_and_not.c: Likewise.
31410         * tests/unictype/test-categ_byname.c: Likewise.
31411         * tests/unictype/test-categ_name.c: Likewise.
31412         * tests/unictype/test-categ_none.c: Likewise.
31413         * tests/unictype/test-categ_of.c: Likewise.
31414         * tests/unictype/test-categ_or.c: Likewise.
31415         * tests/unictype/test-categ_test_withtable.c: Likewise.
31416         * tests/unictype/test-combining.c: Likewise.
31417         * tests/unictype/test-decdigit.c: Likewise.
31418         * tests/unictype/test-digit.c: Likewise.
31419         * tests/unictype/test-mirror.c: Likewise.
31420         * tests/unictype/test-numeric.c: Likewise.
31421         * tests/unictype/test-pr_byname.c: Likewise.
31422         * tests/unictype/test-pr_test.c: Likewise.
31423         * tests/unictype/test-predicate-part1.h: Likewise.
31424         * tests/unictype/test-scripts.c: Likewise.
31425         * tests/unictype/test-sy_c_ident.c: Likewise.
31426         * tests/unictype/test-sy_java_ident.c: Likewise.
31427         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31428         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31429         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31430         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31431         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31432         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31433         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31434         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31435         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31436         * tests/uninorm/test-compat-decomposition.c: Likewise.
31437         * tests/uninorm/test-composition.c: Likewise.
31438         * tests/uninorm/test-decomposing-form.c: Likewise.
31439         * tests/uninorm/test-decomposition.c: Likewise.
31440         * tests/uninorm/test-u8-nfc.c: Likewise.
31441         * tests/uninorm/test-u8-nfd.c: Likewise.
31442         * tests/uninorm/test-u8-nfkc.c: Likewise.
31443         * tests/uninorm/test-u8-nfkd.c: Likewise.
31444         * tests/uninorm/test-u8-normcmp.c: Likewise.
31445         * tests/uninorm/test-u8-normcoll.c: Likewise.
31446         * tests/uninorm/test-u16-nfc.c: Likewise.
31447         * tests/uninorm/test-u16-nfd.c: Likewise.
31448         * tests/uninorm/test-u16-nfkc.c: Likewise.
31449         * tests/uninorm/test-u16-nfkd.c: Likewise.
31450         * tests/uninorm/test-u16-normcmp.c: Likewise.
31451         * tests/uninorm/test-u16-normcoll.c: Likewise.
31452         * tests/uninorm/test-u32-nfc.c: Likewise.
31453         * tests/uninorm/test-u32-nfd.c: Likewise.
31454         * tests/uninorm/test-u32-nfkc.c: Likewise.
31455         * tests/uninorm/test-u32-nfkd.c: Likewise.
31456         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31457         * tests/uninorm/test-u32-normcmp.c: Likewise.
31458         * tests/uninorm/test-u32-normcoll.c: Likewise.
31459         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31460         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31461         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31462         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31463         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31464         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31465         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31466         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31467         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31468         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31469         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31470         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31471         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31472         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31473         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31474         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31475         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31476         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31477         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31478         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31479         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31480         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31481         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31482         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31483         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31484         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31485         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31486         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31487         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31488         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31489         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31490         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31491         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31492         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31493         * tests/uniwidth/test-u8-width.c: Likewise.
31494         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31495         * tests/uniwidth/test-u16-width.c: Likewise.
31496         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31497         * tests/uniwidth/test-u32-width.c: Likewise.
31498         * tests/uniwidth/test-uc_width.c: Likewise.
31499         * tests/uniwidth/test-uc_width2.c: Likewise.
31500         * modules/acl-tests (Files): Add tests/macros.h.
31501         * modules/areadlink-tests (Files): Likewise.
31502         * modules/areadlink-with-size-tests (Files): Likewise.
31503         * modules/areadlinkat-tests (Files): Likewise.
31504         * modules/areadlinkat-with-size-tests (Files): Likewise.
31505         * modules/argmatch-tests (Files): Likewise.
31506         * modules/argv-iter-tests (Files): Likewise.
31507         * modules/array-list-tests (Files): Likewise.
31508         * modules/array-mergesort-tests (Files): Likewise.
31509         * modules/array-oset-tests (Files): Likewise.
31510         * modules/avltree-list-tests (Files): Likewise.
31511         * modules/avltree-oset-tests (Files): Likewise.
31512         * modules/avltreehash-list-tests (Files): Likewise.
31513         * modules/base64-tests (Files): Likewise.
31514         * modules/binary-io-tests (Files): Likewise.
31515         * modules/bitrotate-tests (Files): Likewise.
31516         * modules/btowc-tests (Files): Likewise.
31517         * modules/byteswap-tests (Files): Likewise.
31518         * modules/c-ctype-tests (Files): Likewise.
31519         * modules/c-stack-tests (Files): Likewise.
31520         * modules/c-strcase-tests (Files): Likewise.
31521         * modules/c-strcasestr-tests (Files): Likewise.
31522         * modules/c-strstr-tests (Files): Likewise.
31523         * modules/canonicalize-lgpl-tests (Files): Likewise.
31524         * modules/canonicalize-tests (Files): Likewise.
31525         * modules/carray-list-tests (Files): Likewise.
31526         * modules/ceilf-tests (Files): Likewise.
31527         * modules/ceill-tests (Files): Likewise.
31528         * modules/chown-tests (Files): Likewise.
31529         * modules/cloexec-tests (Files): Likewise.
31530         * modules/copy-file-tests (Files): Likewise.
31531         * modules/count-one-bits-tests (Files): Likewise.
31532         * modules/dprintf-posix-tests (Files): Likewise.
31533         * modules/dup2-tests (Files): Likewise.
31534         * modules/dup3-tests (Files): Likewise.
31535         * modules/duplocale-tests (Files): Likewise.
31536         * modules/fbufmode-tests (Files): Likewise.
31537         * modules/fchdir-tests (Files): Likewise.
31538         * modules/fcntl-safer-tests (Files): Likewise.
31539         * modules/fcntl-tests (Files): Likewise.
31540         * modules/fdopendir-tests (Files): Likewise.
31541         * modules/fdutimensat-tests (Files): Likewise.
31542         * modules/fflush-tests (Files): Likewise.
31543         * modules/filevercmp-tests (Files): Likewise.
31544         * modules/flock-tests (Files): Likewise.
31545         * modules/floorf-tests (Files): Likewise.
31546         * modules/floorl-tests (Files): Likewise.
31547         * modules/fnmatch-tests (Files): Likewise.
31548         * modules/fopen-safer-tests (Files): Likewise.
31549         * modules/fopen-tests (Files): Likewise.
31550         * modules/fpending-tests (Files): Likewise.
31551         * modules/fprintf-posix-tests (Files): Likewise.
31552         * modules/fpurge-tests (Files): Likewise.
31553         * modules/freadable-tests (Files): Likewise.
31554         * modules/freadahead-tests (Files): Likewise.
31555         * modules/freading-tests (Files): Likewise.
31556         * modules/freadptr-tests (Files): Likewise.
31557         * modules/freadseek-tests (Files): Likewise.
31558         * modules/freopen-tests (Files): Likewise.
31559         * modules/frexp-nolibm-tests (Files): Likewise.
31560         * modules/frexp-tests (Files): Likewise.
31561         * modules/frexpl-nolibm-tests (Files): Likewise.
31562         * modules/frexpl-tests (Files): Likewise.
31563         * modules/fseek-tests (Files): Likewise.
31564         * modules/fseeko-tests (Files): Likewise.
31565         * modules/fstrcmp-tests (Files): Likewise.
31566         * modules/fsync-tests (Files): Likewise.
31567         * modules/ftell-tests (Files): Likewise.
31568         * modules/ftello-tests (Files): Likewise.
31569         * modules/func-tests (Files): Likewise.
31570         * modules/futimens-tests (Files): Likewise.
31571         * modules/fwritable-tests (Files): Likewise.
31572         * modules/fwriting-tests (Files): Likewise.
31573         * modules/getcwd-tests (Files): Likewise.
31574         * modules/getdate-tests (Files): Likewise.
31575         * modules/getdelim-tests (Files): Likewise.
31576         * modules/getdtablesize-tests (Files): Likewise.
31577         * modules/getgroups-tests (Files): Likewise.
31578         * modules/getline-tests (Files): Likewise.
31579         * modules/getndelim2-tests (Files): Likewise.
31580         * modules/glob-tests (Files): Likewise.
31581         * modules/hash-tests (Files): Likewise.
31582         * modules/i-ring-tests (Files): Likewise.
31583         * modules/iconv-tests (Files): Likewise.
31584         * modules/iconv_open-utf-tests (Files): Likewise.
31585         * modules/idpriv-drop-tests (Files): Likewise.
31586         * modules/idpriv-droptemp-tests (Files): Likewise.
31587         * modules/inet_ntop-tests (Files): Likewise.
31588         * modules/inet_pton-tests (Files): Likewise.
31589         * modules/isblank-tests (Files): Likewise.
31590         * modules/isfinite-tests (Files): Likewise.
31591         * modules/isinf-tests (Files): Likewise.
31592         * modules/isnan-tests (Files): Likewise.
31593         * modules/isnand-nolibm-tests (Files): Likewise.
31594         * modules/isnand-tests (Files): Likewise.
31595         * modules/isnanf-nolibm-tests (Files): Likewise.
31596         * modules/isnanf-tests (Files): Likewise.
31597         * modules/isnanl-nolibm-tests (Files): Likewise.
31598         * modules/isnanl-tests (Files): Likewise.
31599         * modules/lchown-tests (Files): Likewise.
31600         * modules/ldexpl-tests (Files): Likewise.
31601         * modules/link-tests (Files): Likewise.
31602         * modules/linkat-tests (Files): Likewise.
31603         * modules/linked-list-tests (Files): Likewise.
31604         * modules/linkedhash-list-tests (Files): Likewise.
31605         * modules/localename-tests (Files): Likewise.
31606         * modules/lseek-tests (Files): Likewise.
31607         * modules/lstat-tests (Files): Likewise.
31608         * modules/mbmemcasecmp-tests (Files): Likewise.
31609         * modules/mbmemcasecoll-tests (Files): Likewise.
31610         * modules/mbrtowc-tests (Files): Likewise.
31611         * modules/mbscasecmp-tests (Files): Likewise.
31612         * modules/mbscasestr-tests (Files): Likewise.
31613         * modules/mbschr-tests (Files): Likewise.
31614         * modules/mbscspn-tests (Files): Likewise.
31615         * modules/mbsinit-tests (Files): Likewise.
31616         * modules/mbsncasecmp-tests (Files): Likewise.
31617         * modules/mbsnrtowcs-tests (Files): Likewise.
31618         * modules/mbspbrk-tests (Files): Likewise.
31619         * modules/mbspcasecmp-tests (Files): Likewise.
31620         * modules/mbsrchr-tests (Files): Likewise.
31621         * modules/mbsrtowcs-tests (Files): Likewise.
31622         * modules/mbsspn-tests (Files): Likewise.
31623         * modules/mbsstr-tests (Files): Likewise.
31624         * modules/memchr-tests (Files): Likewise.
31625         * modules/memchr2-tests (Files): Likewise.
31626         * modules/memcmp-tests (Files): Likewise.
31627         * modules/memmem-tests (Files): Likewise.
31628         * modules/memrchr-tests (Files): Likewise.
31629         * modules/mkdir-tests (Files): Likewise.
31630         * modules/mkfifo-tests (Files): Likewise.
31631         * modules/mkfifoat-tests (Files): Likewise.
31632         * modules/mknod-tests (Files): Likewise.
31633         * modules/nanosleep-tests (Files): Likewise.
31634         * modules/nl_langinfo-tests (Files): Likewise.
31635         * modules/obstack-printf-tests (Files): Likewise.
31636         * modules/open-tests (Files): Likewise.
31637         * modules/openat-tests (Files): Likewise.
31638         * modules/pipe-filter-gi-tests (Files): Likewise.
31639         * modules/pipe-filter-ii-tests (Files): Likewise.
31640         * modules/pipe2-tests (Files): Likewise.
31641         * modules/popen-safer-tests (Files): Likewise.
31642         * modules/popen-tests (Files): Likewise.
31643         * modules/posixtm-tests (Files): Likewise.
31644         * modules/pread-tests (Files): Likewise.
31645         * modules/printf-frexp-tests (Files): Likewise.
31646         * modules/printf-frexpl-tests (Files): Likewise.
31647         * modules/printf-posix-tests (Files): Likewise.
31648         * modules/priv-set-tests (Files): Likewise.
31649         * modules/quotearg-tests (Files): Likewise.
31650         * modules/random_r-tests (Files): Likewise.
31651         * modules/rawmemchr-tests (Files): Likewise.
31652         * modules/rbtree-list-tests (Files): Likewise.
31653         * modules/rbtree-oset-tests (Files): Likewise.
31654         * modules/rbtreehash-list-tests (Files): Likewise.
31655         * modules/readlink-tests (Files): Likewise.
31656         * modules/remove-tests (Files): Likewise.
31657         * modules/rename-tests (Files): Likewise.
31658         * modules/renameat-tests (Files): Likewise.
31659         * modules/rmdir-tests (Files): Likewise.
31660         * modules/round-tests (Files): Likewise.
31661         * modules/roundf-tests (Files): Likewise.
31662         * modules/roundl-tests (Files): Likewise.
31663         * modules/safe-alloc-tests (Files): Likewise.
31664         * modules/setenv-tests (Files): Likewise.
31665         * modules/sigaction-tests (Files): Likewise.
31666         * modules/signbit-tests (Files): Likewise.
31667         * modules/sleep-tests (Files): Likewise.
31668         * modules/snprintf-posix-tests (Files): Likewise.
31669         * modules/snprintf-tests (Files): Likewise.
31670         * modules/sprintf-posix-tests (Files): Likewise.
31671         * modules/stat-tests (Files): Likewise.
31672         * modules/stat-time-tests (Files): Likewise.
31673         * modules/strcasestr-tests (Files): Likewise.
31674         * modules/strchrnul-tests (Files): Likewise.
31675         * modules/strerror-tests (Files): Likewise.
31676         * modules/striconv-tests (Files): Likewise.
31677         * modules/striconveh-tests (Files): Likewise.
31678         * modules/striconveha-tests (Files): Likewise.
31679         * modules/strsignal-tests (Files): Likewise.
31680         * modules/strstr-tests (Files): Likewise.
31681         * modules/strtod-tests (Files): Likewise.
31682         * modules/strverscmp-tests (Files): Likewise.
31683         * modules/symlink-tests (Files): Likewise.
31684         * modules/symlinkat-tests (Files): Likewise.
31685         * modules/trunc-tests (Files): Likewise.
31686         * modules/truncf-tests (Files): Likewise.
31687         * modules/truncl-tests (Files): Likewise.
31688         * modules/uname-tests (Files): Likewise.
31689         * modules/unicase/cased-tests (Files): Likewise.
31690         * modules/unicase/ignorable-tests (Files): Likewise.
31691         * modules/unicase/locale-language-tests (Files): Likewise.
31692         * modules/unicase/tolower-tests (Files): Likewise.
31693         * modules/unicase/totitle-tests (Files): Likewise.
31694         * modules/unicase/toupper-tests (Files): Likewise.
31695         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31696         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31697         * modules/unicase/u8-casefold-tests (Files): Likewise.
31698         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31699         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31700         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31701         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31702         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31703         * modules/unicase/u8-tolower-tests (Files): Likewise.
31704         * modules/unicase/u8-totitle-tests (Files): Likewise.
31705         * modules/unicase/u8-toupper-tests (Files): Likewise.
31706         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31707         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31708         * modules/unicase/u16-casefold-tests (Files): Likewise.
31709         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31710         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31711         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31712         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31713         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31714         * modules/unicase/u16-tolower-tests (Files): Likewise.
31715         * modules/unicase/u16-totitle-tests (Files): Likewise.
31716         * modules/unicase/u16-toupper-tests (Files): Likewise.
31717         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31718         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31719         * modules/unicase/u32-casefold-tests (Files): Likewise.
31720         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31721         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31722         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31723         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31724         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31725         * modules/unicase/u32-tolower-tests (Files): Likewise.
31726         * modules/unicase/u32-totitle-tests (Files): Likewise.
31727         * modules/unicase/u32-toupper-tests (Files): Likewise.
31728         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31729         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31730         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31731         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31732         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31733         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31734         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31735         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31736         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31737         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31738         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31739         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31740         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31741         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31742         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31743         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31744         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31745         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31746         * modules/unictype/block-list-tests (Files): Likewise.
31747         * modules/unictype/block-of-tests (Files): Likewise.
31748         * modules/unictype/block-test-tests (Files): Likewise.
31749         * modules/unictype/category-C-tests (Files): Likewise.
31750         * modules/unictype/category-Cc-tests (Files): Likewise.
31751         * modules/unictype/category-Cf-tests (Files): Likewise.
31752         * modules/unictype/category-Cn-tests (Files): Likewise.
31753         * modules/unictype/category-Co-tests (Files): Likewise.
31754         * modules/unictype/category-Cs-tests (Files): Likewise.
31755         * modules/unictype/category-L-tests (Files): Likewise.
31756         * modules/unictype/category-Ll-tests (Files): Likewise.
31757         * modules/unictype/category-Lm-tests (Files): Likewise.
31758         * modules/unictype/category-Lo-tests (Files): Likewise.
31759         * modules/unictype/category-Lt-tests (Files): Likewise.
31760         * modules/unictype/category-Lu-tests (Files): Likewise.
31761         * modules/unictype/category-M-tests (Files): Likewise.
31762         * modules/unictype/category-Mc-tests (Files): Likewise.
31763         * modules/unictype/category-Me-tests (Files): Likewise.
31764         * modules/unictype/category-Mn-tests (Files): Likewise.
31765         * modules/unictype/category-N-tests (Files): Likewise.
31766         * modules/unictype/category-Nd-tests (Files): Likewise.
31767         * modules/unictype/category-Nl-tests (Files): Likewise.
31768         * modules/unictype/category-No-tests (Files): Likewise.
31769         * modules/unictype/category-P-tests (Files): Likewise.
31770         * modules/unictype/category-Pc-tests (Files): Likewise.
31771         * modules/unictype/category-Pd-tests (Files): Likewise.
31772         * modules/unictype/category-Pe-tests (Files): Likewise.
31773         * modules/unictype/category-Pf-tests (Files): Likewise.
31774         * modules/unictype/category-Pi-tests (Files): Likewise.
31775         * modules/unictype/category-Po-tests (Files): Likewise.
31776         * modules/unictype/category-Ps-tests (Files): Likewise.
31777         * modules/unictype/category-S-tests (Files): Likewise.
31778         * modules/unictype/category-Sc-tests (Files): Likewise.
31779         * modules/unictype/category-Sk-tests (Files): Likewise.
31780         * modules/unictype/category-Sm-tests (Files): Likewise.
31781         * modules/unictype/category-So-tests (Files): Likewise.
31782         * modules/unictype/category-Z-tests (Files): Likewise.
31783         * modules/unictype/category-Zl-tests (Files): Likewise.
31784         * modules/unictype/category-Zp-tests (Files): Likewise.
31785         * modules/unictype/category-Zs-tests (Files): Likewise.
31786         * modules/unictype/category-and-not-tests (Files): Likewise.
31787         * modules/unictype/category-and-tests (Files): Likewise.
31788         * modules/unictype/category-byname-tests (Files): Likewise.
31789         * modules/unictype/category-name-tests (Files): Likewise.
31790         * modules/unictype/category-none-tests (Files): Likewise.
31791         * modules/unictype/category-of-tests (Files): Likewise.
31792         * modules/unictype/category-or-tests (Files): Likewise.
31793         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31794         * modules/unictype/combining-class-tests (Files): Likewise.
31795         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31796         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31797         * modules/unictype/ctype-blank-tests (Files): Likewise.
31798         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31799         * modules/unictype/ctype-digit-tests (Files): Likewise.
31800         * modules/unictype/ctype-graph-tests (Files): Likewise.
31801         * modules/unictype/ctype-lower-tests (Files): Likewise.
31802         * modules/unictype/ctype-print-tests (Files): Likewise.
31803         * modules/unictype/ctype-punct-tests (Files): Likewise.
31804         * modules/unictype/ctype-space-tests (Files): Likewise.
31805         * modules/unictype/ctype-upper-tests (Files): Likewise.
31806         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31807         * modules/unictype/decimal-digit-tests (Files): Likewise.
31808         * modules/unictype/digit-tests (Files): Likewise.
31809         * modules/unictype/mirror-tests (Files): Likewise.
31810         * modules/unictype/numeric-tests (Files): Likewise.
31811         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31812         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31813         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31814         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31815         Likewise.
31816         * modules/unictype/property-bidi-block-separator-tests (Files):
31817         Likewise.
31818         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31819         Likewise.
31820         * modules/unictype/property-bidi-common-separator-tests (Files):
31821         Likewise.
31822         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31823         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31824         Likewise.
31825         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31826         Likewise.
31827         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31828         Likewise.
31829         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31830         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31831         Likewise.
31832         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31833         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31834         Likewise.
31835         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31836         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31837         * modules/unictype/property-bidi-segment-separator-tests (Files):
31838         Likewise.
31839         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31840         * modules/unictype/property-byname-tests (Files): Likewise.
31841         * modules/unictype/property-combining-tests (Files): Likewise.
31842         * modules/unictype/property-composite-tests (Files): Likewise.
31843         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31844         * modules/unictype/property-dash-tests (Files): Likewise.
31845         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31846         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31847         Likewise.
31848         * modules/unictype/property-deprecated-tests (Files): Likewise.
31849         * modules/unictype/property-diacritic-tests (Files): Likewise.
31850         * modules/unictype/property-extender-tests (Files): Likewise.
31851         * modules/unictype/property-format-control-tests (Files): Likewise.
31852         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31853         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31854         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31855         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31856         * modules/unictype/property-hyphen-tests (Files): Likewise.
31857         * modules/unictype/property-id-continue-tests (Files): Likewise.
31858         * modules/unictype/property-id-start-tests (Files): Likewise.
31859         * modules/unictype/property-ideographic-tests (Files): Likewise.
31860         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31861         * modules/unictype/property-ids-trinary-operator-tests (Files):
31862         Likewise.
31863         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31864         * modules/unictype/property-iso-control-tests (Files): Likewise.
31865         * modules/unictype/property-join-control-tests (Files): Likewise.
31866         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31867         * modules/unictype/property-line-separator-tests (Files): Likewise.
31868         * modules/unictype/property-logical-order-exception-tests (Files):
31869         Likewise.
31870         * modules/unictype/property-lowercase-tests (Files): Likewise.
31871         * modules/unictype/property-math-tests (Files): Likewise.
31872         * modules/unictype/property-non-break-tests (Files): Likewise.
31873         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31874         * modules/unictype/property-numeric-tests (Files): Likewise.
31875         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31876         * modules/unictype/property-other-default-ignorable-code-point-tests
31877         (Files): Likewise.
31878         * modules/unictype/property-other-grapheme-extend-tests (Files):
31879         Likewise.
31880         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31881         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31882         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31883         * modules/unictype/property-other-math-tests (Files): Likewise.
31884         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31885         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31886         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31887         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31888         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31889         * modules/unictype/property-private-use-tests (Files): Likewise.
31890         * modules/unictype/property-punctuation-tests (Files): Likewise.
31891         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31892         * modules/unictype/property-radical-tests (Files): Likewise.
31893         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31894         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31895         * modules/unictype/property-space-tests (Files): Likewise.
31896         * modules/unictype/property-terminal-punctuation-tests (Files):
31897         Likewise.
31898         * modules/unictype/property-test-tests (Files): Likewise.
31899         * modules/unictype/property-titlecase-tests (Files): Likewise.
31900         * modules/unictype/property-unassigned-code-value-tests (Files):
31901         Likewise.
31902         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31903         * modules/unictype/property-uppercase-tests (Files): Likewise.
31904         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31905         * modules/unictype/property-white-space-tests (Files): Likewise.
31906         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31907         * modules/unictype/property-xid-start-tests (Files): Likewise.
31908         * modules/unictype/property-zero-width-tests (Files): Likewise.
31909         * modules/unictype/scripts-tests (Files): Likewise.
31910         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31911         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31912         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31913         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31914         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31915         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31916         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31917         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31918         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31919         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31920         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31921         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31922         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31923         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31924         * modules/uninorm/composition-tests (Files): Likewise.
31925         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31926         * modules/uninorm/decomposition-tests (Files): Likewise.
31927         * modules/uninorm/filter-tests (Files): Likewise.
31928         * modules/uninorm/nfc-tests (Files): Likewise.
31929         * modules/uninorm/nfd-tests (Files): Likewise.
31930         * modules/uninorm/nfkc-tests (Files): Likewise.
31931         * modules/uninorm/nfkd-tests (Files): Likewise.
31932         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31933         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31934         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31935         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31936         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31937         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31938         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31939         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31940         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31941         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31942         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31943         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31944         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31945         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31946         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31947         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31948         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31949         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31950         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31951         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31952         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31953         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31954         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31955         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31956         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31957         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31958         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31959         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31960         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31961         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31962         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31963         * modules/uniwidth/u8-width-tests (Files): Likewise.
31964         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31965         * modules/uniwidth/u16-width-tests (Files): Likewise.
31966         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31967         * modules/uniwidth/u32-width-tests (Files): Likewise.
31968         * modules/uniwidth/width-tests (Files): Likewise.
31969         * modules/unlink-tests (Files): Likewise.
31970         * modules/unsetenv-tests (Files): Likewise.
31971         * modules/usleep-tests (Files): Likewise.
31972         * modules/utimens-tests (Files): Likewise.
31973         * modules/utimensat-tests (Files): Likewise.
31974         * modules/vasnprintf-posix-tests (Files): Likewise.
31975         * modules/vasnprintf-tests (Files): Likewise.
31976         * modules/vasprintf-posix-tests (Files): Likewise.
31977         * modules/vasprintf-tests (Files): Likewise.
31978         * modules/vdprintf-posix-tests (Files): Likewise.
31979         * modules/vfprintf-posix-tests (Files): Likewise.
31980         * modules/vprintf-posix-tests (Files): Likewise.
31981         * modules/vsnprintf-posix-tests (Files): Likewise.
31982         * modules/vsnprintf-tests (Files): Likewise.
31983         * modules/vsprintf-posix-tests (Files): Likewise.
31984         * modules/wcrtomb-tests (Files): Likewise.
31985         * modules/wcsnrtombs-tests (Files): Likewise.
31986         * modules/wcsrtombs-tests (Files): Likewise.
31987         * modules/wctype-tests (Files): Likewise.
31988         * modules/wcwidth-tests (Files): Likewise.
31989         * modules/xmemdup0-tests (Files): Likewise.
31990         * modules/xprintf-posix-tests (Files): Likewise.
31991         * modules/xvasprintf-tests (Files): Likewise.
31992
31993 2009-12-24  Eric Blake  <ebb9@byu.net>
31994
31995         test-nanosleep: fix typo
31996         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31997         patch.
31998         Reported by Bruno Haible.
31999
32000 2009-12-24  Bruno Haible  <bruno@clisp.org>
32001
32002         Reduce namespace pollution on glibc systems.
32003         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32004         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32005         systems.
32006         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32007         <getopt.h> on glibc systems.
32008         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32009         systems.
32010         * lib/fcntl.c: Include <unistd.h> here instead.
32011
32012 2009-12-24  Bruno Haible  <bruno@clisp.org>
32013
32014         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32015
32016 2009-12-24  Eric Blake  <ebb9@byu.net>
32017
32018         tests: add signature checks
32019         * tests/signature.h (SIGNATURE_CHECK): New file.
32020         * modules/atexit-tests (Files): Use it.
32021         * modules/btowc-tests (Files): Likewise.
32022         * modules/canonicalize-lgpl-tests (Files): Likewise.
32023         * modules/ceilf-tests (Files): Likewise.
32024         * modules/ceill-tests (Files): Likewise.
32025         * modules/chown-tests (Files): Likewise.
32026         * modules/dprintf-posix-tests (Files): Likewise.
32027         * modules/dup2-tests (Files): Likewise.
32028         * modules/dup3-tests (Files): Likewise.
32029         * modules/duplocale-tests (Files): Likewise.
32030         * modules/fchdir-tests (Files): Likewise.
32031         * modules/fcntl-tests (Files): Likewise.
32032         * modules/fdopendir-tests (Files): Likewise.
32033         * modules/fflush-tests (Files): Likewise.
32034         * modules/flock-tests (Files): Likewise.
32035         * modules/floorf-tests (Files): Likewise.
32036         * modules/floorl-tests (Files): Likewise.
32037         * modules/fnmatch-tests (Files): Likewise.
32038         * modules/fopen-tests (Files): Likewise.
32039         * modules/fprintf-posix-tests (Files): Likewise.
32040         * modules/freopen-tests (Files): Likewise.
32041         * modules/frexp-nolibm-tests (Files): Likewise.
32042         * modules/frexp-tests (Files): Likewise.
32043         * modules/frexpl-nolibm-tests (Files): Likewise.
32044         * modules/frexpl-tests (Files): Likewise.
32045         * modules/fseek-tests (Files): Likewise.
32046         * modules/fseeko-tests (Files): Likewise.
32047         * modules/fsync-tests (Files): Likewise.
32048         * modules/ftell-tests (Files): Likewise.
32049         * modules/ftello-tests (Files): Likewise.
32050         * modules/futimens-tests (Files): Likewise.
32051         * modules/getaddrinfo-tests (Files): Likewise.
32052         * modules/getcwd-tests (Files): Likewise.
32053         * modules/getdelim-tests (Files): Likewise.
32054         * modules/getdtablesize-tests (Files): Likewise.
32055         * modules/getgroups-tests (Files): Likewise.
32056         * modules/gethostname-tests (Files): Likewise.
32057         * modules/getline-tests (Files): Likewise.
32058         * modules/getopt-posix-tests (Files): Likewise.
32059         * modules/gettimeofday-tests (Files): Likewise.
32060         * modules/glob-tests (Files): Likewise.
32061         * modules/iconv-tests (Files): Likewise.
32062         * modules/inet_ntop-tests (Files): Likewise.
32063         * modules/inet_pton-tests (Files): Likewise.
32064         * modules/isblank-tests (Files): Likewise.
32065         * modules/lchown-tests (Files): Likewise.
32066         * modules/ldexpl-tests (Files): Likewise.
32067         * modules/link-tests (Files): Likewise.
32068         * modules/linkat-tests (Files): Likewise.
32069         * modules/lseek-tests (Files): Likewise.
32070         * modules/lstat-tests (Files): Likewise.
32071         * modules/mbrtowc-tests (Files): Likewise.
32072         * modules/mbsinit-tests (Files): Likewise.
32073         * modules/mbsnrtowcs-tests (Files): Likewise.
32074         * modules/mbsrtowcs-tests (Files): Likewise.
32075         * modules/memchr-tests (Files): Likewise.
32076         * modules/memcmp-tests (Files): Likewise.
32077         * modules/memmem-tests (Files): Likewise.
32078         * modules/memrchr-tests (Files): Likewise.
32079         * modules/mkdir-tests (Files): Likewise.
32080         * modules/mkfifo-tests (Files): Likewise.
32081         * modules/mkfifoat-tests (Files): Likewise.
32082         * modules/mknod-tests (Files): Likewise.
32083         * modules/nanosleep-tests (Files): Likewise.
32084         * modules/nl_langinfo-tests (Files): Likewise.
32085         * modules/obstack-printf-tests (Files): Likewise.
32086         * modules/open-tests (Files): Likewise.
32087         * modules/openat-tests (Files): Likewise.
32088         * modules/perror-tests (Files): Likewise.
32089         * modules/pipe2-tests (Files): Likewise.
32090         * modules/poll-tests (Files): Likewise.
32091         * modules/popen-tests (Files): Likewise.
32092         * modules/posix_spawn-tests (Files): Likewise.
32093         * modules/posix_spawnp-tests (Files): Likewise.
32094         * modules/pread-tests (Files): Likewise.
32095         * modules/printf-posix-tests (Files): Likewise.
32096         * modules/pty-tests (Files): Likewise.
32097         * modules/random_r-tests (Files): Likewise.
32098         * modules/rawmemchr-tests (Files): Likewise.
32099         * modules/readlink-tests (Files): Likewise.
32100         * modules/remove-tests (Files): Likewise.
32101         * modules/rename-tests (Files): Likewise.
32102         * modules/renameat-tests (Files): Likewise.
32103         * modules/rmdir-tests (Files): Likewise.
32104         * modules/round-tests (Files): Likewise.
32105         * modules/roundf-tests (Files): Likewise.
32106         * modules/roundl-tests (Files): Likewise.
32107         * modules/select-tests (Files): Likewise.
32108         * modules/setenv-tests (Files): Likewise.
32109         * modules/sigaction-tests (Files): Likewise.
32110         * modules/sleep-tests (Files): Likewise.
32111         * modules/snprintf-posix-tests (Files): Likewise.
32112         * modules/snprintf-tests (Files): Likewise.
32113         * modules/sprintf-posix-tests (Files): Likewise.
32114         * modules/stat-tests (Files): Likewise.
32115         * modules/strcasestr-tests (Files): Likewise.
32116         * modules/strchrnul-tests (Files): Likewise.
32117         * modules/strerror-tests (Files): Likewise.
32118         * modules/strsignal-tests (Files): Likewise.
32119         * modules/strstr-tests (Files): Likewise.
32120         * modules/strtod-tests (Files): Likewise.
32121         * modules/strverscmp-tests (Files): Likewise.
32122         * modules/symlink-tests (Files): Likewise.
32123         * modules/symlinkat-tests (Files): Likewise.
32124         * modules/times-tests (Files): Likewise.
32125         * modules/trunc-tests (Files): Likewise.
32126         * modules/truncf-tests (Files): Likewise.
32127         * modules/truncl-tests (Files): Likewise.
32128         * modules/tsearch-tests (Files): Likewise.
32129         * modules/uname-tests (Files): Likewise.
32130         * modules/unlink-tests (Files): Likewise.
32131         * modules/unsetenv-tests (Files): Likewise.
32132         * modules/usleep-tests (Files): Likewise.
32133         * modules/utimensat-tests (Files): Likewise.
32134         * modules/vasprintf-tests (Files): Likewise.
32135         * modules/vdprintf-posix-tests (Files): Likewise.
32136         * modules/vfprintf-posix-tests (Files): Likewise.
32137         * modules/vprintf-posix-tests (Files): Likewise.
32138         * modules/vsnprintf-posix-tests (Files): Likewise.
32139         * modules/vsnprintf-tests (Files): Likewise.
32140         * modules/vsprintf-posix-tests (Files): Likewise.
32141         * modules/wcrtomb-tests (Files): Likewise.
32142         * modules/wcsnrtombs-tests (Files): Likewise.
32143         * modules/wcsrtombs-tests (Files): Likewise.
32144         * modules/wcwidth-tests (Files): Likewise.
32145         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32146         * tests/test-isinf.c (isinf): Likewise.
32147         * tests/test-isnan.c (isnan): Likewise.
32148         * tests/test-signbit.c (signbit): Likewise.
32149         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32150         declaration, either as macro or with correct signature.
32151         (select): Ensure function under test is declared with correct
32152         signature in correct header.
32153         * tests/test-atexit.c (atexit): Likewise.
32154         * tests/test-btowc.c (btowc): Likewise.
32155         * tests/test-canonicalize-lgpl.c (realpath)
32156         (canonicalize_file_name): Likewise.
32157         * tests/test-ceilf1.c (ceilf): Likewise.
32158         * tests/test-ceill.c (ceill): Likewise.
32159         * tests/test-chown.c (chown): Likewise.
32160         * tests/test-dprintf-posix.c (dprintf): Likewise.
32161         * tests/test-dup2.c (dup2): Likewise.
32162         * tests/test-dup3.c (dup3): Likewise.
32163         * tests/test-duplocale.c (duplocale): Likewise.
32164         * tests/test-fchdir.c (fchdir): Likewise.
32165         * tests/test-fchownat.c (fchownat): Likewise.
32166         * tests/test-fcntl.c (fcntl): Likewise.
32167         * tests/test-fdopendir.c (fdopendir): Likewise.
32168         * tests/test-fflush.c (fflush): Likewise.
32169         * tests/test-flock.c (flock): Likewise.
32170         * tests/test-floorf1.c (floorf): Likewise.
32171         * tests/test-floorl.c (floorl): Likewise.
32172         * tests/test-fnmatch.c (fnmatch): Likewise.
32173         * tests/test-fopen.c (fopen): Likewise.
32174         * tests/test-fprintf-posix.c (fprintf): Likewise.
32175         * tests/test-freopen.c (freopen): Likewise.
32176         * tests/test-frexp.c (frexp): Likewise.
32177         * tests/test-frexpl.c (frexpl): Likewise.
32178         * tests/test-fseek.c (fseek): Likewise.
32179         * tests/test-fseeko.c (fseeko): Likewise.
32180         * tests/test-fstatat.c (fstatat): Likewise.
32181         * tests/test-fsync.c (fsync): Likewise.
32182         * tests/test-ftell.c (ftell): Likewise.
32183         * tests/test-ftello.c (ftello): Likewise.
32184         * tests/test-futimens.c (futimens): Likewise.
32185         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32186         (gai_strerror): Likewise.
32187         * tests/test-getcwd.c (getcwd): Likewise.
32188         * tests/test-getdelim.c (getdelim): Likewise.
32189         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32190         * tests/test-getgroups.c (getgroups): Likewise.
32191         * tests/test-gethostname.c (gethostname): Likewise.
32192         * tests/test-getline.c (getline): Likewise.
32193         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32194         Likewise.
32195         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32196         * tests/test-glob.c (glob, globfree): Likewise.
32197         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32198         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32199         * tests/test-inet_pton.c (inet_pton): Likewise.
32200         * tests/test-isblank.c (isblank): Likewise.
32201         * tests/test-lchown.c (lchown): Likewise.
32202         * tests/test-ldexpl.c (ldexpl): Likewise.
32203         * tests/test-link.c (link): Likewise.
32204         * tests/test-linkat.c (linkat): Likewise.
32205         * tests/test-lseek.c (lseek): Likewise.
32206         * tests/test-lstat.c (lstat): Likewise.
32207         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32208         * tests/test-mbsinit.c (mbsinit): Likewise.
32209         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32210         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32211         * tests/test-memchr.c (memchr): Likewise.
32212         * tests/test-memcmp.c (memcmp): Likewise.
32213         * tests/test-memmem.c (memmem): Likewise.
32214         * tests/test-memrchr.c (memrchr): Likewise.
32215         * tests/test-mkdir.c (mkdir): Likewise.
32216         * tests/test-mkdirat.c (mkdirat): Likewise.
32217         * tests/test-mkfifo.c (mkfifo): Likewise.
32218         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32219         * tests/test-mknod.c (mknod): Likewise.
32220         * tests/test-nanosleep.c (nanosleep): Likewise.
32221         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32222         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32223         Likewise.
32224         * tests/test-open.c (open): Likewise.
32225         * tests/test-openat.c (openat): Likewise.
32226         * tests/test-perror.c (perror): Likewise.
32227         * tests/test-pipe2.c (pipe2): Likewise.
32228         * tests/test-poll.c (poll): Likewise.
32229         * tests/test-popen.c (popen, pclose): Likewise.
32230         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32231         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32232         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32233         (posix_spawn_file_actions_destroy)
32234         (posix_spawn_file_actions_addclose)
32235         (posix_spawn_file_actions_addopen)
32236         (posix_spawn_file_actions_adddup2): Likewise.
32237         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32238         * tests/test-pread.c (pread): Likewise.
32239         * tests/test-printf-posix.c (printf): Likewise.
32240         * tests/test-pty.c (openpty, forkpty): Likewise.
32241         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32242         (random_r): Likewise.
32243         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32244         * tests/test-readlink.c (readlink): Likewise.
32245         * tests/test-remove.c (remove): Likewise.
32246         * tests/test-rename.c (rename): Likewise.
32247         * tests/test-renameat.c (renameat): Likewise.
32248         * tests/test-rmdir.c (rmdir): Likewise.
32249         * tests/test-round1.c (round): Likewise.
32250         * tests/test-roundf1.c (roundf): Likewise.
32251         * tests/test-roundl.c (roundl): Likewise.
32252         * tests/test-setenv.c (setenv): Likewise.
32253         * tests/test-sigaction.c (sigaction): Likewise.
32254         * tests/test-sleep.c (sleep): Likewise.
32255         * tests/test-snprintf.c (snprintf): Likewise.
32256         * tests/test-sprintf-posix.c (sprintf): Likewise.
32257         * tests/test-stat.c (stat): Likewise.
32258         * tests/test-stpncpy.c (stpncpy): Likewise.
32259         * tests/test-strcasestr.c (strcasestr): Likewise.
32260         * tests/test-strchrnul.c (strchrnul): Likewise.
32261         * tests/test-strerror.c (strerror): Likewise.
32262         * tests/test-strsignal.c (strsignal): Likewise.
32263         * tests/test-strstr.c (strstr): Likewise.
32264         * tests/test-strtod.c (strtod): Likewise.
32265         * tests/test-strverscmp.c (strverscmp): Likewise.
32266         * tests/test-symlink.c (symlink): Likewise.
32267         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32268         * tests/test-times.c (times): Likewise.
32269         * tests/test-trunc1.c (trunc): Likewise.
32270         * tests/test-truncf1.c (truncf): Likewise.
32271         * tests/test-truncl.c (truncl): Likewise.
32272         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32273         Likewise.
32274         * tests/test-uname.c (uname): Likewise.
32275         * tests/test-unlink.c (unlink): Likewise.
32276         * tests/test-unlinkat.c (unlinkat): Likewise.
32277         * tests/test-unsetenv.c (unsetenv): Likewise.
32278         * tests/test-usleep.c (usleep): Likewise.
32279         * tests/test-utimensat.c (utimensat): Likewise.
32280         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32281         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32282         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32283         * tests/test-vprintf-posix.c (vprintf): Likewise.
32284         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32285         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32286         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32287         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32288         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32289         * tests/test-wcwidth.c (wcwidth): Likewise.
32290
32291         build: pull in conditional headers during GNULIB_POSIXCHECK
32292         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32293         definitions from any conditionally-included headers.
32294         * lib/stdlib.in.h (includes): Likewise.
32295         * lib/unistd.in.h (includes): Likewise.
32296
32297 2009-12-24  Bruno Haible  <bruno@clisp.org>
32298
32299         * tests/test-argv-iter.c: Include header file being tested immediately
32300         after config.h.
32301         * tests/test-base64.c: Likewise.
32302         * tests/test-flock.c: Likewise.
32303         * tests/test-fsync.c: Likewise.
32304         * tests/test-getdate.c: Likewise.
32305         * tests/test-getndelim2.c: Likewise.
32306         * tests/test-isfinite.c: Likewise.
32307         * tests/test-isinf.c: Likewise.
32308         * tests/test-strerror.c: Likewise.
32309         * tests/test-strsignal.c: Likewise.
32310
32311 2009-12-23  Eric Blake  <ebb9@byu.net>
32312
32313         unistd: work around cygwin bug
32314         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32315         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32316         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32317
32318 2009-12-23  Bruno Haible  <bruno@clisp.org>
32319
32320         localename: More tests.
32321         * tests/test-localename.c (SIZEOF): New macro.
32322         (categories): New variable.
32323         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32324         test_locale_name_default): Add test w.r.t. thread locale.
32325         (test_locale_name_thread): New function.
32326         (main): Invoke it.
32327
32328         localename: Make aware of thread locale.
32329         * lib/localename.h (gl_locale_name_thread): New declaration.
32330         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32331         behaviour with respect to thread locale.
32332         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32333         <langinfo.h>, glthread/lock.h.
32334         (SIZE_BITS): New macro.
32335         (string_hash): New function.
32336         (struct hash_node): New type.
32337         (HASH_TABLE_SIZE): New macro.
32338         (struniq_hash_table, struniq_lock): New variables.
32339         (struniq): New function.
32340         (gl_locale_name_thread): New function.
32341         (gl_locale_name): Invoke it.
32342         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32343         * modules/localename (Depends-on): Add lock.
32344         Reported by Mike Gran <spk121@yahoo.com>.
32345
32346 2009-12-23  Eric Blake  <ebb9@byu.net>
32347
32348         va-args: new module
32349         * modules/va-args: New file.
32350         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32351         * MODULES.html.sh (Core language properties): Mention it.
32352
32353         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32354         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32355         named alias for __attribute__((__unused__)).
32356         * lib/chown.c: Update client.
32357         * lib/fchmodat.c: Likewise.
32358         * lib/fts.c: Likewise.
32359         * lib/getdate.y: Likewise.
32360         * lib/getgroups.c: Likewise.
32361         * lib/getopt.c: Likewise.
32362         * lib/getugroups.c: Likewise.
32363         * lib/mkdir.c: Likewise.
32364         * lib/mkfifo.c: Likewise.
32365         * lib/mkfifoat.c: Likewise.
32366         * lib/mknod.c: Likewise.
32367         * lib/mknodat.c: Likewise.
32368         * lib/readlink.c: Likewise.
32369         * lib/se-context.in.h: Likewise.
32370         * lib/se-selinux.in.h: Likewise.
32371         * lib/sockets.c: Likewise.
32372         * lib/symlink.c: Likewise.
32373         * lib/symlinkat.c: Likewise.
32374         * lib/unicodeio.c: Likewise.
32375         * lib/unistr.h: Likewise.
32376         * tests/test-areadlink.c: Likewise.
32377         * tests/test-areadlinkat.c: Likewise.
32378         * tests/test-filenamecat.c: Likewise.
32379         * tests/test-fseeko.c: Likewise.
32380         * tests/test-ftello.c: Likewise.
32381         * tests/test-getdate.c: Likewise.
32382         * tests/test-getgroups.c: Likewise.
32383         * tests/test-gethostname.c: Likewise.
32384         * tests/test-quotearg.c: Likewise.
32385         * tests/test-version-etc.c: Likewise.
32386         * tests/test-xalloc-die.c: Likewise.
32387         * tests/test-xfprintf-posix.c: Likewise.
32388         * tests/test-xprintf-posix.c: Likewise.
32389         * tests/test-xvasprintf.c: Likewise.
32390
32391         tests: avoid compiler warnings
32392         * tests/test-fcntl.c (main): Delete unused parameters.
32393         * tests/test-freopen-safer.c (main): Likewise.
32394         * tests/test-xalloc-die.c (main): Mark unused parameters.
32395         * tests/test-fseeko.c (main): Likewise.
32396         * tests/test-ftello.c (main): Likewise.
32397         * tests/test-nanosleep.c (main): Avoid declaration warning.
32398         * tests/test-sleep.c (main): Likewise.
32399         * tests/test-unsetenv.c (main): Silence warning about string
32400         literal.
32401         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32402
32403 2009-12-23  Bruno Haible  <bruno@clisp.org>
32404
32405         * tests/test-localename.c (test_locale_name): New function, extracted
32406         from main. Also test mixed situations.
32407         (test_locale_name_posix, test_locale_name_environ,
32408         test_locale_name_default): New functions.
32409         (main): Invoke them all.
32410         * modules/localename-tests (configure.ac): Test for newlocale.
32411
32412 2009-12-23  Bruno Haible  <bruno@clisp.org>
32413
32414         unistd: Ensure getcwd gets declared before being overridden.
32415         * lib/unistd.in.h: Conditionally include <io.h>.
32416
32417 2009-12-22  Bruno Haible  <bruno@clisp.org>
32418
32419         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32420         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32421         (gl_WCHAR_H): Invoke it.
32422         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32423         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32424         Reported by Karl Berry <karl@freefriends.org>.
32425
32426 2009-12-22  Eric Blake  <ebb9@byu.net>
32427
32428         math, unistd: avoid redundant includes
32429         * lib/math.in.h (isnan): No need to re-include <math.h>.
32430         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32431
32432         getsubopt: work around cygwin bug
32433         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32434         avoid conflicting with system getsubopt.
32435         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32436         bug.
32437
32438         getopt: synchronize from glibc
32439         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32440         parameter order.  Adjust all callers.
32441         (_getopt_internal_r, main): Adjust quoting in error messages.
32442         Drop considerations for outdated POSIX 1003.2 error message.
32443         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32444         callers.
32445         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32446
32447         test-getopt: test stderr behavior
32448         * modules/getopt-posix-tests (Depends-on): Add dup2.
32449         * tests/test-getopt.c (ASSERT): Avoid stderr.
32450         (main): Move stderr to a temporary file.
32451         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32452         Instead, add parameter to inform caller if output occurred.
32453         (test_getopt): Adjust all existing tests to expect silence, and
32454         add new tests of leading ":".
32455         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32456         glibc shortcomings with leading "-:" or "+:" in optstring.
32457         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32458         Likewise.
32459         * doc/posix-functions/getopt.texi (getopt): Likewise.
32460
32461         test-getopt: enhance test
32462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32463         supports optind=0.
32464         * tests/test-getopt.c (OPTIND_MIN): Move...
32465         * tests/test-getopt.h (OPTIND_MIN): ...here.
32466         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32467         Require that optind=0 works, since modern BSD supports it in
32468         addition to optreset, and since coreutils expects it.
32469         (test_getopt_long_only): New test.
32470         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32471         glibc shortcomings with 'W;', and enforcement of optind=0.
32472         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32473         Likewise.
32474
32475 2009-12-21  Bruno Haible  <bruno@clisp.org>
32476
32477         localename: Improvements for MacOS X and Cygwin.
32478         * lib/localename.h (gl_locale_name_environ): New declaration.
32479         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32480         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32481         (gl_locale_name_posix): Invoke it.
32482         (gl_locale_name_default): Add comments. Use Windows native API also on
32483         Cygwin.
32484
32485 2009-12-21  Bruno Haible  <bruno@clisp.org>
32486
32487         Update list of Win32 locale ids.
32488         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32489         (LANG_SAMI): Renamed from LANG_SAAMI.
32490         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32491         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32492         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32493         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32494         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32495         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32496         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32497         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32498         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32499         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32500         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32501         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32502         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32503         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32504         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32505         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32506         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32507         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32508         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32509         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32510         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32511         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32512         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32513         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32514         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32515         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32516         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32517         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32518         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32519         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32520         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32521         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32522         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32523         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32524         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32525         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32526         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32527         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32528         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32529         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32530         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32531         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32532         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32533         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32534         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32535         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32536         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32537         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32538         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32539         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32540         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32541         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32542         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32543         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32544         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32545         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32546         Add more languages and countries for Sami, Sorbian. Add more countries
32547         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32548         for Pashto. Change country for Syriac, Tswana.
32549
32550 2009-12-21  Eric Blake  <ebb9@byu.net>
32551
32552         test-utimens: avoid spurious failure
32553         * tests/test-chown.h (nap): Factor...
32554         * tests/nap.h: ...into new file.
32555         * tests/test-lchown.h (nap): Avoid duplication.
32556         * tests/test-utimens-common.h (nap): Use shared implementation,
32557         necessary on file systems with 1-second resolution.
32558         * modules/chown-tests (Files): Include new file.
32559         * modules/fdutimensat-tests (Files): Likewise.
32560         * modules/futimens-tests (Files): Likewise.
32561         * modules/lchown-tests (Files): Likewise.
32562         * modules/openat-tests (Files): Likewise.
32563         * modules/utimens-tests (Files): Likewise.
32564         * modules/utimensat-tests (Files): Likewise.
32565
32566 2009-12-19  Eric Blake  <ebb9@byu.net>
32567
32568         futimens, utimensat: work around Linux bug
32569         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32570         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32571         * lib/utimensat.c (rpl_utimensat): Work around it.
32572         * lib/futimens.c (rpl_futimens): Adjust comment.
32573
32574         utimens: work around Linux ctime bug
32575         * lib/utimens.c (detect_ctime_bug): New helper function.
32576         (update_timespec): Differentiate between workaround needed for
32577         this bug vs. what is needed for systems that lack utimensat.
32578         (fdutimens, lutimens): Work around bug.
32579
32580         utimens: check for ctime update
32581         * tests/test-utimens-common.h (check_ctime): Define.
32582         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32583         * tests/test-futimens.h (test_futimens): Likewise.
32584         * tests/test-lutimens.h (test_lutimens): Likewise.
32585         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32586         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32587
32588 2009-12-19  Bruno Haible  <bruno@clisp.org>
32589
32590         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32591         * tests/test-dprintf-posix2.sh: New file.
32592         * tests/test-dprintf-posix2.c: New file.
32593         * modules/dprintf-posix-tests (Files): Add them.
32594         (configure.ac): Check for getrlimit and setrlimit.
32595         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32596
32597 2009-12-19  Bruno Haible  <bruno@clisp.org>
32598
32599         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32600         * tests/test-fprintf-posix3.sh: New file.
32601         * tests/test-fprintf-posix3.c: New file.
32602         * modules/fprintf-posix-tests (Files): Add them.
32603         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32604
32605 2009-12-19  Eric Blake  <ebb9@byu.net>
32606
32607         dirfd: fix prototype
32608         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32609         * lib/dirfd.c (dirfd): Likewise.
32610
32611         canonicalize: reduce memory usage
32612         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32613         allocation to size.
32614         Reported by Solar Designer <solar@openwall.com>.
32615
32616 2009-12-19  Bruno Haible  <bruno@clisp.org>
32617
32618         New module attribute 'Applicability'.
32619         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32620         * gnulib-tool: New option --extract-applicability.
32621         (func_usage): Document it.
32622         (sed_extract_prog): Recognize it.
32623         (func_get_applicability): New function.
32624         (func_import): Generalize handling of 'link-warning' module.
32625         * modules/link-warning (Applicability): New section.
32626         * modules/arg-nonnull (Applicability): New section.
32627         Repoted by Simon Josefsson <simon@josefsson.org>.
32628
32629 2009-12-19  Bruno Haible  <bruno@clisp.org>
32630
32631         fflush: tweak
32632         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32633         * lib/fseeko.c (rpl_fseeko): Likewise.
32634
32635 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32636
32637         * lib/gl_list.h: Fix typo in comment.
32638
32639 2009-12-16  Eric Blake  <ebb9@byu.net>
32640
32641         fcntl: use to simplify other modules
32642         * modules/cloexec (Depends-on): Add fcntl.
32643         * modules/fchdir (Depends-on): Likewise.
32644         * modules/fd-safer-flag (Depends-on): Likewise.
32645         * modules/unistd-safer (Depends-on): Likewise.
32646         * modules/dup3 (configure.ac): Set module indicator.
32647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32648         missing.
32649         * lib/fchdir.c (_gl_register_dup): Fix comment.
32650         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32651         * lib/dup-safer.c (dup_safer): Likewise.
32652         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32653         * lib/dup3.c (dup3): Likewise.
32654         * tests/test-fchdir.c (main): Enhance test.
32655         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32656
32657         fcntl: port portions of fcntl to mingw
32658         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32659         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32660         replacement for mingw.
32661         * modules/fcntl (Description): Update.
32662         (Depends-on): Add dup2.
32663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32664         * modules/fcntl-h (Makefile.am): Substitute it.
32665         * lib/fcntl.in.h (fcntl): Update declaration.
32666         (F_DUPFD, F_GETFD): New macros, when needed.
32667         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32668         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32669         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32670         we now guarantee.
32671
32672         fcntl: work around cygwin bug in F_DUPFD
32673         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32674         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32675         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32676         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32677         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32678
32679         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32680         * modules/fcntl (Files): List new files.
32681         (configure.ac): Run a test.
32682         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32683         * lib/fcntl.c (rpl_fcntl): Likewise.
32684         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32685         (gl_FCNTL_H): Always replace fcntl.h.
32686         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32687         * lib/fcntl.in.h (fcntl): Declare replacement.
32688         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32689         needed, plus a witness.
32690         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32691         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32692         * tests/test-fcntl.c: New file.
32693         * modules/fcntl-tests: Likewise.
32694
32695         binary-io: avoid potential compilation warning
32696         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32697         directives.
32698
32699         fflush: avoid compilation error on NetBSD
32700         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32701         between off_t and fpos_t, since the latter is sometimes a struct.
32702         * lib/fseeko.c (rpl_fseeko): Likewise.
32703         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32704
32705 2009-12-15  Eric Blake  <ebb9@byu.net>
32706
32707         fcntl-h, stdio, sys_ioctl: fix declarations
32708         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32709         function must not take arguments.
32710         * lib/sys_ioctl.in.h (ioctl): Likewise.
32711         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32712         (open): Add a link warning.
32713
32714 2009-12-15  Jim Meyering  <meyering@redhat.com>
32715
32716         areadlink, areadlink-with-size: relax license to LGPLv2+
32717         * modules/areadlink (License): Relax to LGPLv2+.
32718         * modules/areadlink-with-size (License): Likewise.
32719
32720 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32721             Bruno Haible  <bruno@clisp.org>
32722
32723         *printf: Fix memory leak.
32724         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32725         * lib/vfprintf.c (vfprintf): Likewise.
32726         * lib/dprintf.c (dprintf): Likewise.
32727         * lib/vdprintf.c (vdprintf): Likewise.
32728
32729 2009-12-14  Eric Blake  <ebb9@byu.net>
32730
32731         accept4: adjust module dependencies
32732         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32733
32734         utimens: one more try at avoiding compiler warning
32735         * lib/utimens.c (lutimens): Lower scope of result.
32736
32737 2009-12-13  Bruno Haible  <bruno@clisp.org>
32738
32739         Move the malloc checking from module 'list' to new module 'xlist'.
32740         * modules/xlist: New file.
32741         * lib/gl_xlist.h: New file.
32742         * lib/gl_xlist.c: New file.
32743         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32744         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32745         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32746         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32747         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32748         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32749         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32750         gl_sortedlist_nx_add): New declarations.
32751         (struct gl_list_implementation): Rename and change methods accordingly.
32752         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32753         (gl_list_nx_create): Renamed from gl_list_create.
32754         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32755         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32756         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32757         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32758         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32759         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32760         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32761         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32762         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32763         gl_list_create_empty.
32764         (gl_list_nx_create): Renamed from gl_list_create.
32765         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32766         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32767         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32768         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32769         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32770         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32771         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32772         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32773         * lib/gl_array_list.c: Don't include xalloc.h.
32774         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32775         NULL upon out-of-memory.
32776         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32777         out-of-memory.
32778         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32779         Change return type to 'int'.
32780         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32781         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32782         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32783         upon out-of-memory.
32784         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32785         upon out-of-memory.
32786         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32787         upon out-of-memory.
32788         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32789         upon out-of-memory.
32790         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32791         out-of-memory.
32792         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32793         Update.
32794         (gl_array_list_implementation): Update.
32795         * lib/gl_carray_list.c: Don't include xalloc.h.
32796         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32797         Return NULL upon out-of-memory.
32798         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32799         out-of-memory.
32800         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32801         Change return type to 'int'.
32802         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32803         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32804         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32805         upon out-of-memory.
32806         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32807         upon out-of-memory.
32808         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32809         out-of-memory.
32810         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32811         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32812         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32813         Update.
32814         (gl_carray_list_implementation): Update.
32815         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32816         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32817         gl_linked_create_empty. Return NULL upon out-of-memory.
32818         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32819         out-of-memory.
32820         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32821         Change return type to 'int'. Return -1 upon out-of-memory.
32822         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32823         out-of-memory.
32824         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32825         upon out-of-memory.
32826         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32827         upon out-of-memory.
32828         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32829         NULL upon out-of-memory.
32830         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32831         upon out-of-memory.
32832         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32833         out-of-memory.
32834         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32835         Update.
32836         * lib/gl_linked_list.c: Don't include xalloc.h.
32837         (gl_linked_list_implementation): Update.
32838         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32839         (add_to_bucket): Change return type to 'int'.
32840         (gl_linkedhash_list_implementation): Update.
32841         * lib/gl_anytree_list1.h (free_subtree): New function.
32842         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32843         gl_tree_create_empty. Return NULL upon out-of-memory.
32844         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32845         Change return type to 'int'. Return -1 upon out-of-memory.
32846         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32847         out-of-memory.
32848         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32849         (gl_tree_remove_node): New function, moved here from
32850         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32851         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32852         Update.
32853         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32854         malloc, not xmalloc. Return NULL upon out-of-memory.
32855         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32856         out-of-memory.
32857         (gl_tree_remove_node_from_tree): New function, extracted from
32858         gl_tree_remove_node.
32859         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32860         upon out-of-memory.
32861         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32862         out-of-memory.
32863         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32864         upon out-of-memory.
32865         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32866         upon out-of-memory.
32867         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32868         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32869         not xmalloc. Return NULL upon out-of-memory.
32870         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32871         out-of-memory.
32872         (gl_tree_remove_node_from_tree): New function, extracted from
32873         gl_tree_remove_node.
32874         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32875         upon out-of-memory.
32876         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32877         out-of-memory.
32878         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32879         upon out-of-memory.
32880         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32881         upon out-of-memory.
32882         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32883         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32884         gl_anytree_list1.h before gl_anyavltree_list2.h.
32885         (gl_avltree_list_implementation): Update.
32886         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32887         gl_anytree_list1.h before gl_anyavltree_list2.h.
32888         (gl_rbtree_list_implementation): Update.
32889         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32890         Change return type to 'int'. Return -1 upon out-of-memory. Use
32891         __builtin_expect.
32892         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32893         (gl_avltreehash_list_implementation): Update.
32894         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32895         (gl_rbtreehash_list_implementation): Update.
32896         * modules/array-list (Depends-on): Remove xalloc.
32897         * modules/carray-list (Depends-on): Likewise.
32898         * modules/linked-list (Depends-on): Likewise.
32899         * modules/linkedhash-list (Depends-on): Likewise.
32900         * modules/avltree-list (Depends-on): Likewise.
32901         * modules/rbtree-list (Depends-on): Likewise.
32902         * modules/avltreehash-list (Depends-on): Likewise.
32903         * modules/rbtreehash-list (Depends-on): Likewise.
32904
32905         * modules/xsublist: New file.
32906         * lib/gl_xsublist.h: New file.
32907         * lib/gl_xsublist.c: New file.
32908         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32909         (gl_sublist_nx_create): New declaration.
32910         * lib/gl_sublist.c: Don't include xalloc.h.
32911         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32912         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32913         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32914         Change return type to 'int'. Return -1 upon out-of-memory.
32915         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32916         upon out-of-memory.
32917         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32918         NULL upon out-of-memory.
32919         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32920         upon out-of-memory.
32921         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32922         NULL upon out-of-memory.
32923         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32924         NULL upon out-of-memory.
32925         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32926         upon out-of-memory.
32927         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32928         (gl_sublist_list_implementation): Update.
32929         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32930         upon out-of-memory.
32931         * modules/sublist (Depends-on): Remove xalloc.
32932
32933         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32934         * tests/test-carray_list.c: Likewise.
32935         * tests/test-linked_list.c: Likewise.
32936         * tests/test-linkedhash_list.c: Likewise.
32937         * tests/test-avltree_list.c: Likewise.
32938         * tests/test-rbtree_list.c: Likewise.
32939         * tests/test-avltreehash_list.c: Likewise.
32940         * tests/test-rbtreehash_list.c: Likewise.
32941         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32942         * modules/carray-list-tests (Makefile.am): Likewise.
32943         * modules/linked-list-tests (Makefile.am): Likewise.
32944         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32945         * modules/avltree-list-tests (Makefile.am): Likewise.
32946         * modules/rbtree-list-tests (Makefile.am): Likewise.
32947         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32948         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32949
32950         * NEWS: Mention the changes.
32951
32952         * lib/clean-temp.c: Include gl_xlist.h.
32953         * modules/clean-temp (Depends-on): Add xlist.
32954
32955         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32956         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32957
32958         * tests/test-array_oset.c: Include gl_xlist.h.
32959         * modules/array-oset-tests (Depends-on): Add xlist.
32960
32961         Reported by José E. Marchesi <jemarch@gnu.org>.
32962
32963 2009-12-13  Bruno Haible  <bruno@clisp.org>
32964
32965         Move the malloc checking from module 'oset' to new module 'xoset'.
32966         * modules/xoset: New file.
32967         * lib/gl_xoset.h: New file.
32968         * lib/gl_xoset.c: New file.
32969         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32970         declarations.
32971         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32972         (struct gl_oset_implementation): Rename and change methods accordingly.
32973         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32974         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32975         'int'. Mark as __warn_unused_result__.
32976         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32977         gl_oset_create_empty.
32978         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32979         'int'.
32980         * lib/gl_array_oset.c: Don't include xalloc.h.
32981         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32982         malloc, not xmalloc.
32983         (grow): Change return type to 'int'. Don't call xalloc_die.
32984         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32985         to 'int'.
32986         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32987         'int'.
32988         (gl_array_oset_implementation): Update.
32989         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32990         gl_tree_create_empty.
32991         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32992         'int'.
32993         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32994         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32995         xmalloc.
32996         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32997         not xmalloc.
32998         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32999         xmalloc.
33000         (gl_avltree_oset_implementation): Update.
33001         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33002         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33003         xmalloc.
33004         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33005         not xmalloc.
33006         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33007         xmalloc.
33008         (gl_rbtree_oset_implementation): Update.
33009         * modules/array-oset (Depends-on): Remove xalloc.
33010         * modules/avltree-oset (Depends-on): Likewise.
33011         * modules/rbtree-oset (Depends-on): Likewise.
33012         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33013         * tests/test-avltree_oset.c: Likewise.
33014         * tests/test-rbtree_oset.c: Likewise.
33015         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33016         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33017         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33018         * NEWS: Mention the change.
33019
33020 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33021
33022         maint.mk: allow a project to override release-prep commands
33023         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33024         commands into a new rule.
33025         (release-prep): New rule.
33026         (release-prep-hook): New overridable variable.
33027
33028 2009-12-13  Bruno Haible  <bruno@clisp.org>
33029
33030         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33031
33032 2009-12-13  Jim Meyering  <meyering@redhat.com>
33033
33034         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33035         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33036
33037 2009-12-12  Bruno Haible  <bruno@clisp.org>
33038
33039         duplocale: Tweak.
33040         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33041
33042 2009-12-12  Karl Berry  <karl@gnu.org>
33043
33044         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33045
33046 2009-12-12  Bruno Haible  <bruno@clisp.org>
33047
33048         * m4/po.m4: Undo incorrect untabification.
33049
33050 2009-12-12  Bruno Haible  <bruno@clisp.org>
33051
33052         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33053         * modules/c-strtod (Depends-on): Add locale.
33054         * modules/c-strtold (Depends-on): Likewise.
33055
33056 2009-12-12  Bruno Haible  <bruno@clisp.org>
33057
33058         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33059
33060 2009-12-11  Eric Blake  <ebb9@byu.net>
33061
33062         setenv: relax requirement in light of POSIX ruling
33063         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33064         not NULL.
33065         * tests/test-setenv.c (main): Relax test.
33066         * tests/test-unsetenv.c (main): Likewise.
33067         * doc/posix-functions/setenv.texi (setenv): Document this.
33068         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33069
33070 2009-12-11  Bruno Haible  <bruno@clisp.org>
33071
33072         New module 'fd-safer-flag'.
33073         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33074         * lib/dup-safer.c (dup_safer_flag): Remove function.
33075         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33076         * lib/fd-safer.c (fd_safer_flag): Remove function.
33077         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33078         * modules/cloexec (configure.ac): Drop indicator macro.
33079         * modules/fd-safer-flag: New file.
33080         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33081         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33082         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33083
33084 2009-12-11  Bruno Haible  <bruno@clisp.org>
33085
33086         Tests for module 'nl_langinfo'.
33087         * modules/nl_langinfo-tests: New file.
33088         * tests/test-nl_langinfo.sh: New file.
33089         * tests/test-nl_langinfo.c: New file.
33090
33091         New module 'nl_langinfo'.
33092         * lib/nl_langinfo.c: New file.
33093         * m4/nl_langinfo.m4: New file.
33094         * modules/nl_langinfo: New file.
33095         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33096
33097 2009-12-11  Bruno Haible  <bruno@clisp.org>
33098
33099         Tests for module 'langinfo'.
33100         * modules/langinfo-tests: New file.
33101         * tests/test-langinfo.c: New file.
33102
33103         New module 'langinfo'.
33104         * lib/langinfo.in.h: New file.
33105         * m4/langinfo_h.m4: New file.
33106         * modules/langinfo: New file.
33107         * doc/posix-headers/langinfo.texi: Mention the new module.
33108
33109 2009-12-11  Bruno Haible  <bruno@clisp.org>
33110
33111         * lib/config.charset: Untabify.
33112
33113 2009-12-11  Bruno Haible  <bruno@clisp.org>
33114
33115         * modules/unistd-safer (configure.ac): Drop indicator macro.
33116
33117 2009-12-11  Bruno Haible  <bruno@clisp.org>
33118
33119         Move pipe2-safer code to its own file.
33120         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33121         * lib/pipe-safer.c (pipe2_safer): Remove function.
33122         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33123         (Makefile.am): Add it to lib_SOURCES.
33124
33125 2009-12-10  Bruno Haible  <bruno@clisp.org>
33126
33127         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33128
33129 2009-12-10  Bruno Haible  <bruno@clisp.org>
33130
33131         Declare which arguments expect non-NULL values, for GCC and clang.
33132         * build-aux/arg-nonnull.h: New file.
33133         * modules/arg-nonnull: New file.
33134         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33135         (inet_ntop, inet_pton): Use it.
33136         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33137         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33138         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33139         (open, openat): Use it.
33140         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33141         (fnmatch): Use it.
33142         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33143         (getopt, getopt_long, getopt_long_only): Use it.
33144         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33145         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33146         Use it.
33147         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33148         (iconv_open): Use it.
33149         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33150         (strtoimax, strtoumax): Use it.
33151         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33152         (duplocale): Use it.
33153         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33154         (frexp, frexpl): Use it.
33155         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33156         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33157         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33158         (tsearch, tfind, tdelete, twalk): Use it.
33159         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33160         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33161         sigpending): Use it.
33162         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33163         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33164         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33165         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33166         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33167         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33168         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33169         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33170         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33171         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33172         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33173         Use it.
33174         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33175         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33176         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33177         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33178         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33179         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33180         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33181         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33182         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33183         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33184         strtoull, unsetenv): Use it.
33185         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33186         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33187         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33188         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33189         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33190         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33191         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33192         (strcasecmp, strncasecmp): Use it.
33193         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33194         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33195         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33196         rpl_setsockopt): Use it.
33197         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33198         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33199         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33200         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33201         (gettimeofday): Use it.
33202         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33203         (times): Use it.
33204         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33205         (uname): Use it.
33206         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33207         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33208         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33209         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33210         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33211         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33212         unlinkat, write): Use it.
33213         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33214         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33215         * lib/argv-iter.h: Include arg-nonnull.h.
33216         (_ATTRIBUTE_NONNULL_): Remove macro.
33217         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33218         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33219         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33220         optimization.
33221         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33222         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33223         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33224         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33225         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33226         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33227         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33228         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33229         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33230         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33231         * modules/dirent (Depends-on): Add arg-nonnull.
33232         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33233         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33234         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33235         * modules/fnmatch (Depends-on): Add arg-nonnull.
33236         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33237         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33238         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33239         * modules/glob (Depends-on): Add arg-nonnull.
33240         (Makefile.am): Insert arg-nonnull.h into glob.h.
33241         * modules/iconv_open (Depends-on): Add arg-nonnull.
33242         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33243         * modules/inttypes (Depends-on): Add arg-nonnull.
33244         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33245         * modules/locale (Depends-on): Add arg-nonnull.
33246         (Makefile.am): Insert arg-nonnull.h into locale.h.
33247         * modules/math (Depends-on): Add arg-nonnull.
33248         (Makefile.am): Insert arg-nonnull.h into math.h.
33249         * modules/netdb (Depends-on): Add arg-nonnull.
33250         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33251         * modules/search (Depends-on): Add arg-nonnull.
33252         (Makefile.am): Insert arg-nonnull.h into search.h.
33253         * modules/signal (Depends-on): Add arg-nonnull.
33254         (Makefile.am): Insert arg-nonnull.h into signal.h.
33255         * modules/spawn (Depends-on): Add arg-nonnull.
33256         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33257         * modules/stdio (Depends-on): Add arg-nonnull.
33258         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33259         * modules/stdlib (Depends-on): Add arg-nonnull.
33260         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33261         * modules/string (Depends-on): Add arg-nonnull.
33262         (Makefile.am): Insert arg-nonnull.h into string.h.
33263         * modules/strings (Depends-on): Add arg-nonnull.
33264         (Makefile.am): Insert arg-nonnull.h into strings.h.
33265         * modules/sys_socket (Depends-on): Add arg-nonnull.
33266         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33267         * modules/sys_stat (Depends-on): Add arg-nonnull.
33268         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33269         * modules/sys_time (Depends-on): Add arg-nonnull.
33270         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33271         * modules/sys_times (Depends-on): Add arg-nonnull.
33272         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33273         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33274         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33275         * modules/time (Depends-on): Add arg-nonnull.
33276         (Makefile.am): Insert arg-nonnull.h into time.h.
33277         * modules/unistd (Depends-on): Add arg-nonnull.
33278         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33279         * modules/wchar (Depends-on): Add arg-nonnull.
33280         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33281         * modules/argv-iter (Depends-on): Add arg-nonnull.
33282         * tests/test-canonicalize.c (null_ptr): New function.
33283         (main): Use it.
33284         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33285         (main): Use it.
33286         * tests/test-memmem.c (null_ptr): New function.
33287         (main): Use it.
33288         Reported by Jim Meyering.
33289
33290 2009-12-10  Bruno Haible  <bruno@clisp.org>
33291
33292         Use spaces for indentation, not tabs.
33293         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33294         * m4/*.m4: Untabify.
33295         * build-aux/*.h: Untabify.
33296         * tests/**/*.[hc]: Untabify.
33297         * README: New section "Indent with spaces, not TABs", based on
33298         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33299         * NEWS: Mention the change.
33300
33301 2009-12-10  Bruno Haible  <bruno@clisp.org>
33302
33303         pty test: Fix link error.
33304         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33305         test_pty_LDADD.
33306
33307 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33308
33309         * modules/pty: New file.
33310         * modules/pty-tests: New file.
33311         * m4/pty.m4: New file.
33312         * tests/test-pty.c: New file.
33313         * doc/glibc-headers/pty.texi: Modified.
33314         * doc/glibc-functions/forkpty.texi: Modified.
33315         * doc/glibc-functions/openpty.texi: Modified.
33316
33317 2009-12-10  Bruno Haible  <bruno@clisp.org>
33318
33319         Avoid syntax error in C++ mode.
33320         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33321
33322 2009-12-10  Bruno Haible  <bruno@clisp.org>
33323
33324         Use sed with option -e.
33325         * gnulib-tool (func_version, func_emit_copyright_notice,
33326         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33327         option -e to sed.
33328         * modules/link-warning (Makefile.am): Likewise.
33329
33330 2009-12-10  Jim Meyering  <meyering@redhat.com>
33331
33332         mgetgroups: do not write bytes beyond end of malloc'd buffer
33333         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33334         username, we call getgroups with a one-element-shorter buffer,
33335         but still told it the length was original, max_n_groups.
33336
33337 2009-12-09  Eric Blake  <ebb9@byu.net>
33338
33339         cloexec: relax license
33340         * modules/cloexec (Maintainer): Add myself.
33341         (License): Use LGPL, not GPL.
33342
33343         link-warning: optimize generation
33344         * modules/link-warning (Makefile.am): Reduce process usage.
33345
33346 2009-12-09  Bruno Haible  <bruno@clisp.org>
33347
33348         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33349         workaround was added on 2009-11-17.
33350
33351 2009-12-09  Jim Meyering  <meyering@redhat.com>
33352             Bruno Haible  <bruno@clisp.org>
33353
33354         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33355         * modules/link-warning (Makefile.am): Make the comment-removing sed
33356         command more robust in the face of bootstrap-prepended comment lines.
33357
33358 2009-12-09  Bruno Haible  <bruno@clisp.org>
33359
33360         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33361         most one group.
33362
33363 2009-12-09  Simon Josefsson <simon@josefsson.org>
33364             Bruno Haible  <bruno@clisp.org>
33365
33366         * build-aux/link-warning.h: Add copyright notice.
33367         * modules/link-warning (Makefile.am): Generate link-warning.h from
33368         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33369         * NEWS: Mention change in link-warning module.
33370         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33371         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33372         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33373         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33374         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33375         * modules/math (Makefile.am): Add dependency to math.h.
33376         * modules/search (Makefile.am): Add dependency to search.h.
33377         * modules/signal (Makefile.am): Add dependency to signal.h.
33378         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33379         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33380         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33381         * modules/string (Makefile.am): Add dependency to string.h.
33382         * modules/strings (Makefile.am): Add dependency to strings.h.
33383         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33384         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33385         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33386         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33387         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33388         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33389         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33390         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33391         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33392
33393 2009-12-09  Bruno Haible  <bruno@clisp.org>
33394
33395         fchdir: Optimize away rpl_fstat when possible.
33396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33397         REPLACE_OPEN_DIRECTORY.
33398         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33399
33400 2009-12-09  Bruno Haible  <bruno@clisp.org>
33401
33402         * lib/fchdir.c: Update comment.
33403
33404 2009-12-09  Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33407
33408 2009-12-08  Eric Blake  <ebb9@byu.net>
33409
33410         fchdir: avoid memory leak on re-registration.
33411         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33412
33413 2009-12-08  Jim Meyering  <meyering@redhat.com>
33414
33415         init.sh: avoid Solaris 10 /bin/sh portability problem
33416         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33417         sourced script:
33418           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33419           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33420           bar
33421         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33422         and two tests used that idiom.
33423         * tests/init.sh: Update suggested usage comments.
33424         (path_prepend_): New function, to be used in place
33425         of the --src-path=DIR option.
33426         (setup_): Move PATH-prepending code into path_prepend_.
33427         * tests/test-pread.sh: Adapt to new usage.
33428         * tests/test-xalloc-die.sh: Likewise.
33429
33430 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33431
33432         * doc/gnulib.texi (Glibc pty.h): Add.
33433         * doc/glibc-functions/forkpty.texi: Add.
33434         * doc/glibc-functions/openpty.texi: Add.
33435         Suggested by Bruno Haible.
33436
33437 2009-12-08  Eric Blake  <ebb9@byu.net>
33438
33439         fchdir: fix logic bugs
33440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33441         * tests/test-fchdir.c (main): Enhance test.
33442         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33443         is in use.
33444
33445         dup2: fix logic bugs
33446         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33447         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33448         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33449         exists.
33450         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33451
33452 2009-12-07  Eric Blake  <ebb9@byu.net>
33453
33454         unlink: fix m4 detection
33455         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33456
33457         unistd-safer: add unit test
33458         * modules/unistd-safer-tests: New file.
33459         * tests/test-dup-safer.c: Likewise.
33460         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33461         * tests/test-dup2.c (setmode): Likewise.
33462         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33463
33464         cloexec: preserve text vs. binary across dup_cloexec
33465         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33466         mode.
33467         * modules/dup2-tests (Depends-on): Add binary-io.
33468         * modules/cloexec-tests (Depends-on): Likewise.
33469         * tests/test-dup2.c (setmode, is_mode): New helpers.
33470         (main): Add tests that translation mode is preserved.
33471         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33472         Reported by Bruno Haible.
33473
33474         mgetgroups: reduce duplicate listings
33475         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33476         resulting array.
33477         * tests/test-chown.h (test_chown): Simplify client.
33478         * tests/test-lchown.h (test_lchown): Likewise.
33479
33480 2009-12-06  Bruno Haible  <bruno@clisp.org>
33481
33482         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33483         value.
33484
33485 2009-12-06  Bruno Haible  <bruno@clisp.org>
33486
33487         * lib/progname.c: Include stdio.h, stdlib.h.
33488         (set_program_name): Reject a NULL argument.
33489
33490 2009-12-05  Eric Blake  <ebb9@byu.net>
33491
33492         pipe2-safer: new module
33493         * modules/pipe2-safer: New file.
33494         * lib/unistd-safer.h (pipe2_safer): New prototype.
33495         * lib/unistd--.h (pipe2): New wrapper.
33496         * lib/pipe-safer.c (pipe2_safer): New function.
33497         * modules/pipe (Depends-on): Add pipe2-safer.
33498         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33499
33500         stdlib-safer: preserve cloexec flag for mkostemp[s]
33501         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33502         fd_safer_flag.
33503
33504         unistd-safer: allow preservation of cloexec status via flag
33505         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33506         prototypes.
33507         * lib/dup-safer.c (dup_safer_flag): New function.
33508         * lib/fd-safer.c (fd_safer_flag): Likewise.
33509         * modules/cloexec (configure.ac): Set witness.
33510
33511         test-dup2: enhance test
33512         * modules/dup2-tests (Depends-on): Add cloexec.
33513         * tests/test-dup2.c (main): Enhance test.
33514
33515         cloexec: add dup_cloexec
33516         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33517         header and comments.
33518         * lib/cloexec.c (set_cloexec_flag): Add comments.
33519         (dup_cloexec): New function, with mingw implementation borrowed
33520         from...
33521         * lib/w32spawn.h (dup_noinherit): ...here.
33522         * modules/execute (Depends-on): Add cloexec.
33523         * modules/pipe (Depends-on): Likewise.
33524         * modules/cloexec (Depends-on): Add dup2.
33525         * modules/cloexec-tests (Files): New file.
33526         * tests/test-cloexec.c: Likewise.
33527
33528         test-xalloc-die: fix test for mingw
33529         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33530         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33531         directory and .exe suffix off argv[0] output.
33532
33533         test-fseeko: fix test for mingw
33534         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33535         than undefining fseek, so test will pass on mingw.
33536
33537 2009-12-05  Bruno Haible  <bruno@clisp.org>
33538
33539         * lib/progname.h (set_program_name): Clarify specification.
33540         * lib/progname.c (set_program_name): Likewise.
33541         Reported by Jim Meyering.
33542
33543 2009-12-05  Jim Meyering  <meyering@redhat.com>
33544
33545         maint.mk: backslash-escape parens in default regexp
33546         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33547         backslash-escape the literal parentheses.
33548
33549         maint.mk: news-date-check: use grep -E
33550         * top/maint.mk (today): Define a Make variable, not a...
33551         (news-date-check): ...shell variable.
33552         (news-date-regexp): Use the Make variable.
33553         Use grep's -E option.  Change the failing diagnostic to mention
33554         the variable, $(news-date-regexp).
33555
33556 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33557
33558         maintainer-makefile: allow customization of NEWS entry format
33559         * top/maint.mk (news-date-regexp): New overridable variable.
33560         (news-date-check): Use it.
33561
33562 2009-12-04  Eric Blake  <ebb9@byu.net>
33563
33564         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33565         * lib/mgetgroups.h (xgetgroups): New prototype.
33566         * lib/mgetgroups.c (xgetgroups): New wrapper.
33567         (mgetgroups): Handle ENOSYS.
33568         * modules/mgetgroups (Depends-on): Add realloc.
33569         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33570
33571         mgetgroups: avoid argument promotion issues with -1
33572         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33573         for invalid gid_t.
33574         * tests/test-chown.h (getegid, test_chown): Likewise.
33575         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33576
33577 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33578
33579         exclude: Fix header file problems.
33580         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33581
33582 2009-12-01  Jim Meyering  <meyering@redhat.com>
33583
33584         fts: fts_open: do not let an empty string cause immediate failure
33585         This is required in support of GNU rm, for which the command
33586         "rm A '' B" must process and remove both A and B, in spite of
33587         the empty string argument.
33588         * lib/fts.c (fts_open): Do not let the presence of an empty string
33589         cause fts_open to fail immediately.  Most fts-using tools must be
33590         able to process all arguments, in order, and can be expected to
33591         diagnose such arguments themselves.
33592
33593 2009-11-30  Eric Blake  <ebb9@byu.net>
33594
33595         utimens: fix compilation error
33596         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33597         Declare variable at right scope.
33598
33599 2009-11-29  Jim Meyering  <meyering@redhat.com>
33600
33601         bootstrap: handle perl-5.11's changed --version output
33602         * build-aux/bootstrap (get_version): Handle perl separately,
33603         since perl-5.11's --version output is different.
33604
33605 2009-11-28  Jim Meyering  <meyering@redhat.com>
33606
33607         userspec: depend on the inttostr module, too
33608         * modules/userspec (Depends-on): Add inttostr.
33609
33610         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33611         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33612         number of MAXUID when it evaluates to (uid_t) -1.
33613         Likewise for group ID.  Reported by Matt McCutchen in
33614         <http://savannah.gnu.org/bugs/?28113>
33615
33616         userspec: reformat to use spaces, not TABs
33617         * lib/userspec.c: Expand TABs to spaces.
33618         Add Emacs' "indent-tabs-mode: nil" hint.
33619
33620 2009-11-27  Eric Blake  <ebb9@byu.net>
33621
33622         getopt-gnu: flush out another BSD bug
33623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33624         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33625         flush out BSD bug.
33626         * tests/test-getopt.h (test_getopt): End lists with NULL.
33627         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33628         (test_getopt_long_posix): Enhance test.
33629         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33630         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33631         getopt-gnu.
33632         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33633         Likewise.
33634
33635 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33636
33637         * modules/idpriv-droptemp-tests (Notice): Fix text.
33638
33639 2009-11-27  Jim Meyering  <meyering@redhat.com>
33640
33641         test-xalloc-die: avoid spurious failure due to libtool argv difference
33642         In a libtool-enabled project, this test would fail due to a difference
33643         in the emitted program name, e.g.,
33644         -test-xalloc-die: memory exhausted
33645         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33646         Use program to avoid that.
33647         * modules/xalloc-die-tests (Depends-on): Add progname.
33648         * tests/test-xalloc-die.c: Include progname.h".
33649         (program_name): Remove decl.
33650         (main): Call set_program_name.
33651         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33652
33653 2009-11-26  Richard Jones  <rjones@redhat.com>
33654
33655         w32sock: leave win32 error in place.
33656         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33657
33658 2009-11-26  Eric Blake  <ebb9@byu.net>
33659
33660         init.sh: suggest to use skip_ and fail_ functions in comments
33661         * tests/init.sh: Add a sentence.
33662
33663 2009-11-25  Bruno Haible  <bruno@clisp.org>
33664
33665         init.sh: add documentation in comments
33666         * tests/init.sh: Add some developer and user documentation.
33667
33668 2009-11-26  Jim Meyering  <meyering@redhat.com>
33669
33670         init.sh: accommodate even those who specify bogus srcdir manually
33671         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33672         configure-time tests to be sanitized, so that there is no need to
33673         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33674         (with no double quotes) suffices.  However, since tests may be
33675         invoked manually, and since you may explicitly set srcdir to the
33676         name of a directory containing spaces, do quote its uses here.
33677         * tests/test-pread.sh: Likewise.
33678         Suggested by Bruno Haible.
33679
33680         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33681         * tests/test-pread.sh: Write no data into the pipe, because
33682         test-pread actually reads none.  This avoids a diagnostic,
33683         "bash: echo: write error: Broken pipe", that arises in the unusual
33684         event something is ignoring SIGPIPE, and might be interpreted
33685         as some sort of failure.  Reported by Bruno Haible.
33686
33687 2009-11-25  Jim Meyering  <meyering@redhat.com>
33688
33689         test-pread: cover failure with ESPIPE and EINVAL
33690         * tests/test-pread.c (main): Test for failure, too.
33691         * tests/test-pread.sh: Invoke with stdin on a pipe.
33692         Suggested by Eric Blake.
33693
33694         pread: improvement and fix
33695         * modules/pread (Depends-on): Depend on lseek, for portability to
33696         e.g., mingw.  Suggested by Eric Blake.
33697         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33698
33699         unistd.in.h: correct declaration of pread
33700         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33701         Reported by Richard W.M. Jones.
33702
33703         test-pread.sh: distribute the test script
33704         * modules/pread-tests (Files): Include test-pread.sh.
33705
33706         test-pread.sh: clean up
33707         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33708         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33709         That is unnecessary, since it's always ".".
33710         Suggestion from Eric Blake.
33711
33712         test-pread.sh: make executable
33713         * tests/test-pread.sh: Set executable bit.
33714         Reported by Eric Blake.
33715
33716         correct typo in test-pread.sh
33717         * tests/test-pread.sh: Add #! line.
33718
33719         test pread
33720         * tests/test-pread.c: New file.
33721         * tests/test-pread.sh: Likewise.
33722         * modules/pread-tests: Likewise.
33723
33724         pread: new module
33725         * modules/pread: New file.
33726         * lib/unistd.in.h (pread): Define/declare.
33727         * lib/pread.c (pread): New file.
33728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33729         * modules/unistd (Makefile.am): Substitute witnesses.
33730         * doc/posix-functions/pread.texi (pread): Update.
33731         * MODULES.html.sh: Add pread.
33732
33733 2009-11-25  Jim Meyering  <meyering@redhat.com>
33734
33735         tests/init.sh: new file to be used via most *.sh tests
33736         * tests/init.sh: New file.
33737
33738 2009-11-25  Eric Blake  <ebb9@byu.net>
33739
33740         utimens: work around older Linux failure with symlinks
33741         * lib/utimens.c (lutimensat_works_really): New variable.
33742         (fdutimens, lutimens): Use it to manage kernels that support
33743         nanosecond times on files, but not on symlinks.
33744         Reported by OndÅ™ej Vašík.
33745
33746         utimes: fix configure grammar
33747         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33748
33749 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33750
33751         regex: Fix fastmap for multibyte character ranges.
33752         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33753         characters when a multibyte character range is included.
33754
33755 2009-11-22  Andy Wingo  <wingo@pobox.com>
33756
33757         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33758         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33759
33760 2009-11-24  Bruno Haible  <bruno@clisp.org>
33761
33762         doc: Most *_l functions exist in MacOS X 10.5.
33763         * doc/posix-functions/duplocale.texi: Update platforms list.
33764         * doc/posix-functions/freelocale.texi: Likewise.
33765         * doc/posix-functions/newlocale.texi: Likewise.
33766         * doc/posix-functions/uselocale.texi: Likewise.
33767         * doc/posix-functions/isalnum_l.texi: Likewise.
33768         * doc/posix-functions/isalpha_l.texi: Likewise.
33769         * doc/posix-functions/isblank_l.texi: Likewise.
33770         * doc/posix-functions/iscntrl_l.texi: Likewise.
33771         * doc/posix-functions/isdigit_l.texi: Likewise.
33772         * doc/posix-functions/isgraph_l.texi: Likewise.
33773         * doc/posix-functions/islower_l.texi: Likewise.
33774         * doc/posix-functions/isprint_l.texi: Likewise.
33775         * doc/posix-functions/ispunct_l.texi: Likewise.
33776         * doc/posix-functions/isspace_l.texi: Likewise.
33777         * doc/posix-functions/isupper_l.texi: Likewise.
33778         * doc/posix-functions/iswalnum_l.texi: Likewise.
33779         * doc/posix-functions/iswalpha_l.texi: Likewise.
33780         * doc/posix-functions/iswblank_l.texi: Likewise.
33781         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33782         * doc/posix-functions/iswctype_l.texi: Likewise.
33783         * doc/posix-functions/iswdigit_l.texi: Likewise.
33784         * doc/posix-functions/iswgraph_l.texi: Likewise.
33785         * doc/posix-functions/iswlower_l.texi: Likewise.
33786         * doc/posix-functions/iswprint_l.texi: Likewise.
33787         * doc/posix-functions/iswpunct_l.texi: Likewise.
33788         * doc/posix-functions/iswspace_l.texi: Likewise.
33789         * doc/posix-functions/iswupper_l.texi: Likewise.
33790         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33791         * doc/posix-functions/isxdigit_l.texi: Likewise.
33792         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33793         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33794         * doc/posix-functions/strcoll_l.texi: Likewise.
33795         * doc/posix-functions/strfmon_l.texi: Likewise.
33796         * doc/posix-functions/strftime_l.texi: Likewise.
33797         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33798         * doc/posix-functions/strxfrm_l.texi: Likewise.
33799         * doc/posix-functions/tolower_l.texi: Likewise.
33800         * doc/posix-functions/toupper_l.texi: Likewise.
33801         * doc/posix-functions/towctrans_l.texi: Likewise.
33802         * doc/posix-functions/towlower_l.texi: Likewise.
33803         * doc/posix-functions/towupper_l.texi: Likewise.
33804         * doc/posix-functions/wcscoll_l.texi: Likewise.
33805         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33806         * doc/posix-functions/wctrans_l.texi: Likewise.
33807         * doc/posix-functions/wctype_l.texi: Likewise.
33808         * doc/glibc-functions/strptime_l.texi: Likewise.
33809         * doc/glibc-functions/strtod_l.texi: Likewise.
33810         * doc/glibc-functions/strtof_l.texi: Likewise.
33811         * doc/glibc-functions/strtol_l.texi: Likewise.
33812         * doc/glibc-functions/strtold_l.texi: Likewise.
33813         * doc/glibc-functions/strtoll_l.texi: Likewise.
33814         * doc/glibc-functions/strtoul_l.texi: Likewise.
33815         * doc/glibc-functions/strtoull_l.texi: Likewise.
33816         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33817         * doc/glibc-functions/wcstod_l.texi: Likewise.
33818         * doc/glibc-functions/wcstof_l.texi: Likewise.
33819         * doc/glibc-functions/wcstol_l.texi: Likewise.
33820         * doc/glibc-functions/wcstold_l.texi: Likewise.
33821         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33822         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33823         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33824
33825 2009-11-24  Bruno Haible  <bruno@clisp.org>
33826
33827         duplocale: Fix logic bug.
33828         * lib/duplocale.c: Don't include <langinfo.h>.
33829         (_NL_LOCALE_NAME): Remove macro.
33830         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33831         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33832
33833 2009-11-23  Jim Meyering  <meyering@redhat.com>
33834
33835         test-update-copyright: don't hard-code /usr/bin/perl
33836         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33837         perl to print the current year.  Gilles Espinasse reported that
33838         the replaced use of perl was hard-coded as /usr/bin/perl.
33839
33840 2009-11-23  Bruno Haible  <bruno@clisp.org>
33841
33842         duplocale: Add support for glibc 2.3.x.
33843         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33844
33845 2009-11-22  Bruno Haible  <bruno@clisp.org>
33846
33847         vasnprintf: Tiny optimization.
33848         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33849         MacOS X.
33850
33851 2009-11-22  Bruno Haible  <bruno@clisp.org>
33852
33853         Tests for module 'duplocale'.
33854         * modules/duplocale-tests: New file.
33855         * tests/test-duplocale.c: New file.
33856
33857         New module 'duplocale'.
33858         * m4/duplocale.m4: New file.
33859         * lib/locale.in.h (duplocale): New declaration.
33860         * lib/duplocale.c: New file.
33861         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33862         gl_LOCALE_H_DEFAULTS): New macros.
33863         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33864         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33865         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33866         REPLACE_DUPLOCALE.
33867         * modules/duplocale: New file.
33868         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33869
33870 2009-11-22  Bruno Haible  <bruno@clisp.org>
33871
33872         * modules/locale-tests (configure.ac): Test for newlocale function.
33873         * tests/test-locale.c: When the system has extended locale functions,
33874         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33875
33876         locale: Make locale_t available when possible.
33877         * lib/locale.in.h: Include <xlocale.h> when it exists.
33878         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33879         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33880         * modules/locale (Depends-on): Add extensions.
33881         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33882         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33883
33884 2009-11-22  Bruno Haible  <bruno@clisp.org>
33885
33886         Add comments.
33887         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33888         invocation.
33889         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33890         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33891         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33892
33893 2009-11-22  Bruno Haible  <bruno@clisp.org>
33894
33895         error: account for the possibility of freopen (stdout).
33896         * lib/error.c: Include <unistd.h>.
33897         (flush_stdout): New function, extracted from error and error_at_line.
33898         Determine stdout's fd dynamically.
33899         (error, error_at_line): Invoke flush_stdout.
33900         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33901         * modules/error (Depends-on): Add unistd.
33902
33903 2009-11-22  Bruno Haible  <bruno@clisp.org>
33904
33905         diffseq: Add comment.
33906         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33907
33908 2009-11-22  Jim Meyering  <meyering@redhat.com>
33909
33910         c-stack: avoid defining an unused static function
33911         * lib/c-stack.c (find_stack_direction): Do not define this function
33912         when it will not be used.
33913
33914         diffseq: avoid spurious gcc warnings
33915         * lib/diffseq.h (IF_LINT2): Define.
33916         (compareseq): Use it to initialize two members of "part".
33917         This avoids two used-uninitialized warnings.
33918
33919 2009-11-21  Jim Meyering  <meyering@redhat.com>
33920
33921         c-stack: avoid "ignoring return value of `write'" warning
33922         * lib/c-stack.c: Include "ignore-value.h".
33923         (die): Explicitly ignore each write return value.
33924         * modules/c-stack (Depends-on): Add ignore-value.
33925
33926 2009-11-21  Bruno Haible  <bruno@clisp.org>
33927
33928         diffseq: reduce scope of variable 'best'.
33929         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33930         variable, earlier used for two different purposes.
33931
33932 2009-11-21  Jim Meyering  <meyering@redhat.com>
33933
33934         diffseq: remove useless assignment to "best"
33935         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33936         assignment.  At that point "best" is already guaranteed to be zero.
33937
33938 2009-11-20  Eric Blake  <ebb9@byu.net>
33939
33940         build: mention ftp redirector in release announcements
33941         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33942         values that used to come from cfg.mk; mention FTP redirect URL.
33943         * build-aux/announce-gen: Mention the mirror list.
33944         Suggested by Karl Berry.
33945
33946         nanosleep: improve port to mingw
33947         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33949         LIB_NANOSLEEP, but only when needed.
33950         * modules/select (Link): Document LIBSOCKET.
33951         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33952         enough.
33953
33954         nanosleep: work around cygwin bug
33955         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33956         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33957         bug.
33958         (getnow): Delete, not needed.
33959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33960         LIB_CLOCK_GETTIME.
33961         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33962         clock-time, gettime.
33963         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33964         bug.
33965         * modules/nanosleep-tests: New test.
33966         * tests/test-nanosleep.c: New file.
33967
33968         sleep: work around cygwin bug
33969         * lib/sleep.c (rpl_sleep): Work around the bug.
33970         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33971         (gl_PREREQ_SLEEP): Delete unused macro.
33972         * modules/sleep (Depends-on): Add verify.
33973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33974         * modules/unistd (Makefile.am): Substitute witness.
33975         * lib/unistd.in.h (sleep): Update prototype.
33976         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33977         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33978         * modules/sleep-tests (Depends-on): Check for alarm.
33979
33980 2009-11-20  Jim Meyering  <meyering@redhat.com>
33981
33982         maint.mk: improve sc_prohibit_magic_number_exit
33983         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33984         so it does not match uses like System.exit(1).
33985         Add comments showing how to correct all offenders.
33986
33987 2009-11-19  Eric Blake  <ebb9@byu.net>
33988
33989         xalloc-die-tests: add missing library
33990         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33991
33992         test-xvasprintf: silence compiler warnings
33993         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33994         empty string from gcc.
33995
33996 2009-11-19  Jim Meyering  <meyering@redhat.com>
33997
33998         xfreopen: new module, from coreutils
33999         * modules/xfreopen: New module.
34000         * lib/xfreopen.c: New file.
34001         * lib/xfreopen.h: New file.
34002         * MODULES.html.sh (File stream based Input/Output"): Add it.
34003
34004 2009-11-19  Eric Blake  <ebb9@byu.net>
34005
34006         manywarnings: depend on warnings
34007         * modules/manywarnings (Depends-on): Add warnings.
34008
34009         build: avoid compiler warnings
34010         * lib/select.c (rpl_select): Delete unused variable.
34011         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34012
34013 2009-11-18  Eric Blake  <ebb9@byu.net>
34014
34015         tests: avoid false negative with --with-packager
34016         * tests/test-version-etc.sh: Discard packager information.
34017         * tests/test-argp-version-etc-1.sh: Likewise.
34018         Reported by Mike Frysinger.
34019
34020         utimens: fix regression on Solaris
34021         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34022         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34023         can only change fd timestamps via futimesat.  Instead, use an
34024         additional witness macro to avoid BSD bug.
34025         Reported by Jim Meyering.
34026
34027 2009-11-17  Eric Blake  <ebb9@byu.net>
34028
34029         usleep: use it to simplify tests
34030         * modules/stat-time-tests (Depends-on): Add usleep.
34031         (configure.ac): Drop usleep check.
34032         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34033         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34034         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34035         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34036         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34037         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34038         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34039         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34040         Likewise.
34041         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34042         * tests/test-lchown.h (nap): Likewise.
34043         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34044         * tests/test-stat-time.c (nap): Likewise.
34045         * tests/test-utimens-common.h (nap): Update comments.
34046
34047         usleep: new module
34048         * modules/usleep: New file.
34049         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34050         * lib/usleep.c (usleep): Likewise.
34051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34052         * modules/unistd (Makefile.am): Substitute witnesses.
34053         * lib/unistd.in.h (usleep): Add declaration.
34054         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34055         * MODULES.html.sh (Date and time): Likewise.
34056         * modules/usleep-tests (Depends-on): New test.
34057         * tests/test-usleep.c: New file.
34058
34059         chown: work around OpenBSD bug
34060         * lib/chown.c (rpl_chown): Work around the bug.
34061         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34062         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34063         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34064         * modules/chown (Depends-on): Add stdbool.
34065         * modules/lchown (Depends-on): Likewise.
34066         * doc/posix-functions/chown.texi (chown): Document the bug.
34067         * doc/posix-functions/lchown.texi (lchown): Likewise.
34068         * tests/test-lchown.h (test_chown): Relax test.
34069
34070         mkstemp: avoid conflict with C++ keyword template
34071         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34072         * lib/mkostemp.c (mkostemp): Likewise.
34073         * lib/mkostemps.c (mkostemps): Likewise.
34074         * lib/mkstemp.c (mkstemp): Likewise.
34075         * lib/mkstemps.c (mkstemps): Likewise.
34076
34077         xalloc-die-tests: optimize
34078         * tests/test-xalloc-die.sh: Reduce number of processes.
34079
34080 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34081
34082         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34083         patch from ludo@gnu.org (Ludovic Courtès).
34084
34085 2009-11-17  Jim Meyering  <meyering@redhat.com>
34086
34087         version-etc: use proper license string
34088         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34089         * modules/version-etc-fsf: Likewise.
34090
34091 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34092
34093         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34094         printed to stdout.  Deal with EOL differences.
34095
34096 2009-11-17  Eric Blake  <ebb9@byu.net>
34097
34098         unsetenv: work around Solaris bug
34099         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34100         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34101         Reported by Jim Meyering.
34102
34103         vasnprintf: avoid compiler warnings
34104         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34105         variables.
34106         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34107
34108 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34109
34110         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34111         settings since xalloc-die is no longer the self test,
34112         xalloc-die.sh is.
34113
34114 2009-11-17  Jim Meyering  <meyering@redhat.com>
34115
34116         test-xalloc-die.sh: make the code agree with the commit log
34117         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34118         at the end, just in case you happen to have a test-xalloc-die
34119         program in some other PATH directory.
34120
34121         test-xalloc-die.sh: fix a portability bug
34122         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34123         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34124         Otherwise, argv[0] (as often seen in diagnostics) would be too
34125         system-dependent, sometimes with, and sometimes without the leading "./".
34126
34127         version-etc-fsf: relax license to LGPLv3+
34128         * modules/version-etc-fsf (License): Relax license.
34129
34130 2009-11-16  Eric Blake  <ebb9@byu.net>
34131
34132         xalloc-die-tests: avoid printing null pointer
34133         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34134         shell script.
34135         * tests/test-xalloc-die.c (program_name): Declare.
34136         * tests/test-xalloc-die.sh (tmpfiles): New file.
34137
34138         setenv, unsetenv: work around various bugs
34139         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34140         (setenv) [HAVE_SETENV]: Work around bugs.
34141         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34142         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34143         for bugs.
34144         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34145         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34147         * modules/stdlib (Makefile.am): Update substitutions.
34148         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34149         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34150         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34151         * modules/setenv-tests: New test.
34152         * modules/unsetenv-tests: Likewise.
34153         * tests/test-setenv.c: New file.
34154         * tests/test-unsetenv.c: Likewise.
34155
34156 2009-11-16  Jim Meyering  <meyering@redhat.com>
34157
34158         version-etc: relax license to LGPLv3+
34159         * modules/version-etc (License): Relax license.
34160
34161         better AC_REQUIRE expanded-before-required-warning avoidance
34162         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34163         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34164         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34165         which is no longer needed.
34166
34167 2009-11-16  Eric Blake  <ebb9@byu.net>
34168
34169         test-freading: clean up temporary file
34170         * tests/test-freading.c (main): Remove file on success, and use
34171         ASSERT more liberally.
34172         Reported by Jim Meyering.
34173
34174 2009-11-16  Jim Meyering  <meyering@redhat.com>
34175
34176         avoid new AC_REQUIRE expanded-before-required warnings
34177         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34178         merely using it.
34179         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34180         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34181
34182 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34183
34184         * tests/test-xalloc-die.c: New file.
34185         * modules/xalloc-die-tests: New file.
34186         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34187         XFAIL_TESTS so it can be appended by modules.
34188
34189 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34190
34191         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34192         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34193
34194 2009-11-14  Eric Blake  <ebb9@byu.net>
34195
34196         fnmatch: avoid compiler warning
34197         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34198         to silence compiler warning about mismatch signedness in ?:.
34199         Reported by Robert Millan.
34200
34201         intprops: add double-inclusion guard
34202         * lib/intprops.h: Allow idempotent includes.
34203         Suggested by Bruce Korb.
34204
34205         openat: detect Solaris fchownat bug
34206         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34207         penalizing glibc chownat when only lchownat is broken.
34208         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34209         trailing slash bugs.
34210         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34211         * modules/openat-tests (Files): Include more files.
34212         (Depends-on): Add mgetgroups, sleep, stat-time.
34213         (configure.ac): Add additional checks.
34214         (Makefile.am): Build new test.
34215         * tests/test-fchownat.c: New file.
34216
34217         lchown: detect Solaris and FreeBSD bug
34218         * lib/lchown.c (rpl_lchown): Work around bug.
34219         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34221         * modules/unistd (Makefile.am): Populate it.
34222         * lib/unistd.in.h (lchown): Update declaration.
34223         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34224         * modules/lchown-tests: New file.
34225         * tests/test-lchown.h (test_lchown): Likewise.
34226         * tests/test-lchown.c (main): Likewise.
34227
34228         chown: detect Solaris and FreeBSD bug
34229         * lib/chown.c (rpl_chown): Work around bug.
34230         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34231         (gl_PREREQ_CHOWN): Delete.
34232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34233         * modules/unistd (Makefile.am): Populate it.
34234         * lib/unistd.in.h (chown): Update declaration.
34235         * lib/lchown.c (chown): Update client.
34236         * modules/lchown (Depends-on): Add lstat.
34237         * doc/posix-functions/chown.texi (chown): Document the bug.
34238         * doc/posix-functions/getgroups.texi (getgroups): Document
34239         getgroups pitfall.
34240         * modules/chown-tests: New file.
34241         * tests/test-chown.h (test_chown): Likewise.
34242         * tests/test-chown.c (main): Likewise.
34243
34244 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34245
34246         gnulib-tool: correctly detect absence of m4 directories
34247         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34248
34249 2009-11-14  Jim Meyering  <meyering@redhat.com>
34250
34251         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34252         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34253
34254 2009-11-14  John W. Eaton  <jwe@gnu.org>
34255
34256         strftime.h: wrap funtion declaration in extern "C" block
34257         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34258
34259 2009-11-13  Eric Blake  <ebb9@byu.net>
34260
34261         getgroups: avoid compiler warning
34262         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34263
34264         getgroups: work around FreeBSD bug
34265         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34266         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34267         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34268         * tests/test-getgroups.c (main): Fix buffer overrun.
34269
34270         getgroups: avoid compilation failure
34271         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34272         * modules/getgroups (Depends-on): Add stdint.
34273
34274 2009-11-13  Jim Meyering  <meyering@redhat.com>
34275
34276         test-getgroups: avoid compilation failure
34277         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34278
34279 2009-11-13  Eric Blake  <ebb9@byu.net>
34280
34281         mgetgroups: new module, taken from coreutils
34282         * modules/mgetgroups: New file.
34283         * lib/mgetgroups.h: Likewise.
34284         * lib/mgetgroups.c (mgetgroups): Likewise.
34285         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34286         * MODULES.html.sh (Users and groups): Mention it.
34287
34288         getgroups: don't expose GETGROUPS_T to user
34289         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34290         an element at a time if GETGROUPS_T is wrong size.
34291         * lib/getugroups.h (getugroups): Change signature.
34292         * lib/unistd.in.h (getgroups): Likewise.
34293         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34294         signature needs fixing.
34295         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34296         AC_TYPE_GETGROUPS.
34297         * modules/group-member (Depends-on): Add getgroups.
34298         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34299         (group_member): Rely on getgroups replacement.
34300         * lib/getugroups.c (getugroups): Use gid_t.
34301         * tests/test-getgroups.c (main): Likewise.
34302         * NEWS: Mention the signature change.
34303         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34304         problem with signature.
34305         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34306         GETGROUPS_T is still useful for setgroups.
34307
34308         getgroups, getugroups: provide stubs for mingw
34309         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34310         * lib/getugroups.c (getugroups): Likewise.
34311         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34312         function.  Modernize replacement scheme.
34313         (gl_PREREQ_GETGROUPS): Delete.
34314         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34315         * modules/getgroups (configure.ac): Declare witness.
34316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34317         * modules/unistd (Depends-on): Substitute witness.
34318         * lib/unistd.in.h (getgroups): Declare replacement.
34319
34320         getgroups: avoid calling exit
34321         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34322         drop xalloc.
34323         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34324         dependencies.
34325         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34326         exiting, in the rare case of malloc failure.
34327
34328         getgroups: fix logic error
34329         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34330         has more than 20 groups.
34331         * modules/getgroups-tests: New test.
34332         * tests/test-getgroups.c: New file.
34333
34334 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34335
34336         * tests/test-base64.c: Improve.
34337
34338 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34339
34340         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34341         Blake <ebb9@byu.net>.
34342
34343 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34344
34345         * tests/test-xvasprintf.c: Add %s%s related checks.
34346
34347 2009-11-12  Eric Blake  <ebb9@byu.net>
34348
34349         version-etc: match standards.texi style
34350         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34351         and use <> only for URLs.
34352
34353 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34354
34355         fts: do not fail on a submount during traversal
34356         * lib/fts.c (fts_build): Read the stat info again after opening
34357         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34358         Original report at http://bugzilla.redhat.com/501848.
34359
34360 2009-11-12  Jim Meyering  <meyering@redhat.com>
34361
34362         bootstrap: sync from coreutils
34363         * build-aux/bootstrap (bootstrap_epilogue): New function.
34364         Use git_modules_config in one more place.  This make bootstrap's
34365         --gnulib-srcdir option more useful for testing.
34366
34367         bootstrap: generalize autoheader check
34368         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34369         AC_CONFIG_HEADERS.
34370
34371 2009-11-11  Eric Blake  <ebb9@byu.net>
34372
34373         mkfifoat: use new modules for Solaris and BSD bugs
34374         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34375         * lib/mkfifoat.c (mknodat): Split...
34376         * lib/mknodat.c (mknodat): ...into new file.
34377         * modules/mkfifoat (Files): Ship new file.
34378         (Depends-on): Add mkfifo, mknod.
34379         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34380         (Depends-on): Add symlink.
34381         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34382         redundant with test_mkfifo.h.
34383         (do_mkfifoat, do_mknodat): New helpers.
34384
34385         mknod: new module
34386         * modules/mknod: New file.
34387         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34388         * lib/mknod.c (mknod): Likewise.
34389         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34390         defaults.
34391         * modules/sys_stat (Makefile.am): Substitute them.
34392         * lib/sys_stat.in.h (mknod): Declare replacement.
34393         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34394         Document it.
34395         * doc/posix-functions/mknod.texi (mknod): Likewise.
34396         * modules/mknod-tests: New test.
34397         * tests/test-mknod.c: Likewise.
34398
34399         mkfifo: new module
34400         * modules/mkfifo: New file.
34401         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34402         * lib/mkfifo.c (mkfifo): Likewise.
34403         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34404         defaults.
34405         * modules/sys_stat (Makefile.am): Substitute them.
34406         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34407         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34408         Document it.
34409         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34410         * modules/mkfifo-tests: New test.
34411         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34412         from test-mkfifoat.c.
34413         * tests/test-mkfifo.c: New file.
34414
34415         readlink: detect FreeBSD bug
34416         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34417         slash on symlink.
34418         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34419         * tests/test-readlink.h (test_readlink): Enhance test.
34420
34421         symlink: detect FreeBSD bug
34422         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34423         slash on symlink.
34424         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34425         * tests/test-symlink.h (test_symlink): Enhance test.
34426
34427 2009-11-10  Eric Blake  <ebb9@byu.net>
34428
34429         link: detect FreeBSD bug
34430         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34431         symlink.
34432         * doc/posix-functions/link.texi (link): Document the bug.
34433         * tests/test-link.h (test_link): Enhance test.
34434         * tests/test-linkat.c (main): Update caller.
34435
34436         unlink, remove: detect FreeBSD bug
34437         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34438         slash on symlink.
34439         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34440         * doc/posix-functions/remove.texi (remove): Likewise.
34441         * tests/test-unlink.h (test_unlink): Enhance test.
34442         * tests/test-remove.c (main): Likewise.
34443
34444 2009-11-09  Eric Blake  <ebb9@byu.net>
34445
34446         rename: detect FreeBSD bug
34447         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34448         slash on symlink.
34449         * modules/renameat-tests (Depends-on): Add filenamecat.
34450         * tests/test-rename.h (test_rename): Allow one more errno.
34451         * tests/test-renameat.c (main): Likewise.
34452         * doc/posix-functions/rename.texi (rename): Document the bug.
34453
34454         open: detect FreeBSD bug
34455         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34456         symlink.
34457         * doc/posix-functions/open.texi (open): Document the bug.
34458         * doc/posix-functions/utimes.texi (utimes): Likewise.
34459         * tests/test-open.h (test_open): Add parameters, and test symlink
34460         handling.
34461         * tests/test-open.c (main): Adjust caller.
34462         * tests/test-fcntl-safer.c (main): Likewise.
34463         * modules/open-tests (Depends-on): Add stdbool, symlink.
34464         * modules/fcntl-safer-tests (Depends-on): Likewise.
34465         * tests/test-openat.c (main): Add test-open tests.
34466
34467         stat: detect FreeBSD bug
34468         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34469         symlink.
34470         * doc/posix-functions/stat.texi (stat): Document the bug.
34471         * tests/test-stat.h (test_stat_func): Add argument.
34472         * tests/test-stat.c (main): Adjust caller.
34473         * tests/test-fstatat.c (main): Likewise.
34474         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34475         Reported by Jim Meyering.
34476
34477 2009-11-09  James Youngman  <jay@gnu.org>
34478
34479         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34480         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34481
34482 2009-11-08  Jim Meyering  <meyering@redhat.com>
34483
34484         utimens: remove invalid futimesat call
34485         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34486         It used the file descriptor of the target file as the DIR_FD
34487         parameter and NULL as the file name.  That caused failure with
34488         errno == EFAULT on FreeBSD-8.0-rc2
34489
34490 2009-11-07  Eric Blake  <ebb9@byu.net>
34491
34492         fflush, freadseek: use fseeko, not fseek
34493         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34494         (clear_ungetc_buffer): Avoid potential problems on large files.
34495         * lib/freadseek.c (freadseek): Likewise.
34496         * modules/freadseek (Depends-on): Add fseeko.
34497         * modules/fseek (configure.ac): Set a witness.
34498         * tests/test-fflush.c (main): Use fseeko.
34499         * tests/test-fpurge.c (fseek): Disable link warning.
34500         * tests/test-freadable.c (fseek): Likewise.
34501         * tests/test-freading.c (fseek): Likewise.
34502         * tests/test-fseeko.c (fseek): Likewise.
34503         * tests/test-ftell.c (fseek): Likewise.
34504         * tests/test-ftello.c (fseek): Likewise.
34505         * tests/test-fwritable.c (fseek): Likewise.
34506         * tests/test-fwriting.c (fseek): Likewise.
34507
34508 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34509
34510         * modules/memchr (Depends-on): Drop getpagesize dependency.
34511
34512 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34513
34514         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34515         Reported by Ludovic Courtès.
34516         * build-aux/pmccabe2html: Improve example usage.
34517         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34518
34519 2009-11-06  Jim Meyering  <meyering@redhat.com>
34520
34521         do-release-commit-and-tag: New module.
34522         Automate the release-commit and tag process.
34523         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34524         * modules/do-release-commit-and-tag: New file.
34525         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34526
34527 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34528
34529         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34530         because test-select.c uses inet_pton.
34531
34532 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34533
34534         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34535         GETADDRINFO_LIB.  Bump serial number.
34536         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34537         Suggested by Eric Blake <ebb9@byu.net>.
34538
34539 2009-11-05  Eric Blake  <ebb9@byu.net>
34540
34541         strtod: detect darwin bug
34542         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34543         Reported by Leo Davis.
34544
34545         freopen-safer: new module
34546         * modules/freopen-safer: New module.
34547         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34548         * lib/freopen-safer.c (freopen_safer): New file.
34549         * lib/stdio-safer.h (freopen_safer): New declaration.
34550         * lib/stdio--.h (freopen): New override.
34551         * MODULES.html.sh (File stream based Input/Output): Mention it.
34552         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34553         freopen-safer module.
34554         * doc/posix-functions/stderr.texi (stderr): Likewise.
34555         * doc/posix-functions/stdin.texi (stdin): Likewise.
34556         * doc/posix-functions/stdout.texi (stdout): Likewise.
34557         * modules/freopen-safer-tests: New test.
34558         * tests/test-reopen-safer.c: New file.
34559
34560 2009-11-05  Jim Meyering  <meyering@redhat.com>
34561
34562         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34563         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34564
34565 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34566
34567         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34568
34569 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34570
34571         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34572
34573 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34574
34575         Fix link error.
34576         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34577         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34578
34579 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34580
34581         * tests/test-func.c: Also test value of __func__.
34582
34583 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34584
34585         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34586         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34587
34588 2009-11-05  Bruno Haible  <bruno@clisp.org>
34589
34590         Fix link error.
34591         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34592         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34593         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34594
34595 2009-11-05  Bruno Haible  <bruno@clisp.org>
34596
34597         Tests for module 'inet_pton'.
34598         * modules/inet_pton-tests: New file.
34599         * tests/test-inet_pton.c: New file.
34600
34601 2009-11-05  Bruno Haible  <bruno@clisp.org>
34602
34603         Tests for module 'inet_ntop'.
34604         * modules/inet_ntop-tests: New file.
34605         * tests/test-inet_ntop.c: New file.
34606
34607 2009-11-04  Eric Blake  <ebb9@byu.net>
34608
34609         stdlib-safer: wrap all mkstemp variants
34610         * modules/mkostemp (configure.ac): Set witness.
34611         * modules/mkostemps (configure.ac): Likewise.
34612         * modules/mkstemps (configure.ac): Likewise.
34613         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34614         (mkstemps_safer): Wrap more functions.
34615         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34616         wrapping.
34617         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34618         (mkstemps_safer): Implement the wrappers.
34619
34620         mkstemps, mkostemps: new modules
34621         * modules/mkostemps: New module.
34622         * modules/mkstemps: Likewise.
34623         * lib/mkostemps.c (mkostemps): New file.
34624         * lib/mkstemps.c (mkstemps): Likewise.
34625         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34626         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34628         * modules/stdlib (Makefile.am): Substitute them.
34629         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34630         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34631         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34632         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34633         * MODULES.html.sh (File system functions): Mention them.
34634
34635         tempname: resync from glibc
34636         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34637         same values for __GT_FILE as glibc.  Abort even when assertions
34638         are disabled.
34639         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34640         match its value otherwise.  Allow idempotent inclusion.
34641         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34642         * lib/mkostemp.c (mkostemp): Likewise.
34643         * lib/mkstemp.c (mkstemp): Likewise.
34644         * lib/tmpfile.c (tmpfile): Likewise.
34645         * NEWS: Document this.
34646
34647         utimens: fix use of futimens on older Linux
34648         * lib/utimens.c (fdutimens): Use updated, rather than original,
34649         timespec to avoid bug in older Linux kernel.
34650         Reported by Simon Josefsson.
34651
34652 2009-11-04  Bruno Haible  <bruno@clisp.org>
34653
34654         Make num_processors more flexible and consistent.
34655         * lib/nproc.h (enum nproc_query): New type.
34656         (num_processors): Add a 'query' argument.
34657         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34658         (num_processors): Add a 'query' argument. Test the value of the
34659         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34660         mingw, count the number of CPUs available for the current process.
34661         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34662         Check for sched_getaffinity and sched_getaffinity_np.
34663         * modules/nproc (Depends-on): Add c-ctype, extensions.
34664         * NEWS: Mention the change.
34665
34666 2009-11-03  Bruno Haible  <bruno@clisp.org>
34667
34668         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34669
34670 2009-11-03  Jim Meyering  <meyering@redhat.com>
34671
34672         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34673         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34674         if it is defined.
34675
34676 2009-11-02  Eric Blake  <ebb9@byu.net>
34677
34678         mktime, timegm: share common declaration
34679         * lib/mktime-internal.h: New file.
34680         * lib/mktime.c: Use it rather than open-coding a declaration.
34681         * lib/timegm.c: Likewise.
34682         * modules/mktime (Files): Ship it.
34683         * modules/timegm (Files): Likewise.
34684         Suggested by Bruno Haible.
34685
34686         test-update-copyright: update test to match script changes
34687         * tests/test-update-copyright.sh: Avoid hard-coding perl
34688         location.  Don't update *.bak created by earlier runs.
34689
34690 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34691             Simon Josefsson  <simon@josefsson.org>
34692             Bruno Haible  <bruno@clisp.org>
34693
34694         Fix link error on Solaris 8.
34695         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34696         also in libnsl. Define also INET_PTON_LIB.
34697         * modules/inet_pton (Link): New section.
34698
34699 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34700             Bruno Haible  <bruno@clisp.org>
34701
34702         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34703         * modules/inet_ntop (Link): New section.
34704         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34705
34706 2009-11-02  Eric Blake  <ebb9@byu.net>
34707
34708         maint: avoid compiler warnings in m4 macros
34709         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34710         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34711
34712 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34713
34714         * m4/pmccabe2html.m4: Remove file.
34715         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34716         function.  Change maintainer.
34717         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34718         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34719         Courtès).
34720
34721 2009-10-31  Eric Blake  <ebb9@byu.net>
34722
34723         fseeko: fix m4 regression
34724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34725         regression from 2009-10-27.
34726         Reported by Ralf Wildenhues.
34727
34728 2009-10-31  Jim Meyering  <meyering@redhat.com>
34729
34730         inttostr: aesthetics and improved (compile-time) safety
34731         Define inttype_is_signed rather than inttype_is_unsigned,
34732         since the sole use is via "#if inttype_is_signed".
34733         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34734         inttype_is_unsigned.
34735         * lib/offtostr.c (inttype_is_signed): Likewise.
34736         * lib/uinttostr.c (inttype_is_signed): Likewise.
34737         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34738         * lib/inttostr.c (inttostr): Use verify to cross-check the
34739         inttype_is_signed value and the signedness of the actual type.
34740         * modules/inttostr (Depends-on): Add verify.
34741
34742 2009-10-30  Eric Blake  <ebb9@byu.net>
34743
34744         build: avoid compiler warnings
34745         * lib/fchmodat.c (lchmod): Mark unused variables.
34746         * lib/getopt.c (_getopt_initialize): Likewise.
34747         * lib/mktime.c (__mktime_internal): Provide prototype.
34748         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34749         older gcc that do not understand #pragma GCC diagnostic.
34750         * lib/uinttostr.c (inttype_is_unsigned): Define.
34751         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34752
34753 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34754
34755         stat: fix compilation on AIX
34756         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34757         only see struct stat64.
34758
34759 2009-10-30  Eric Blake  <ebb9@byu.net>
34760
34761         exclude: make more robust
34762         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34763         rather than masking a coding bug.
34764         Suggested by Bruno Haible.
34765
34766 2009-10-30  Jim Meyering  <meyering@redhat.com>
34767
34768         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34769         Rather than putting #!/usr/bin/perl on the first line,
34770         start with a variant of what's recommended by "man perlrun" that
34771         invokes the first "perl" program from your shell's search path.
34772         * build-aux/gitlog-to-changelog: Replace #!... as above.
34773         Add a "Local Variables" perl mode setting.
34774         Prompted by a patch from Ludovic Courtès.
34775         Improved by Eric Blake.
34776         * build-aux/useless-if-before-free: Likewise.
34777         * build-aux/announce-gen: Likewise.
34778         * build-aux/update-copyright: Likewise.
34779
34780 2009-10-29  Eric Blake  <ebb9@byu.net>
34781
34782         filenamecat-lgpl: adjust clients
34783         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34784         filenamecat.
34785         * modules/renameat (Depends-on): Likewise.
34786
34787         filenamecat: split into filenamecat-lgpl
34788         * modules/filenamecat-lgpl: New module.
34789         * modules/filenamecat (Files): Move library-safe files into
34790         filenamecat-lgpl.
34791         (Depends-on): Add filenamecat-lgpl.
34792         (configure.ac): Declare witness.
34793         * lib/filenamecat.h (file_name_concat): Only declare when using
34794         GPL module.
34795         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34796         Move...
34797         * lib/filenamecat-lgpl.c: ...into new file.
34798         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34799         (gl_FILE_NAME_CONCAT): Use it.
34800         * MODULES.html.sh (File system functions): Mention new module.
34801
34802         argp: avoid memory leak
34803         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34804         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34805         base_name, since the latter malloc()s and can call exit().
34806         Leak introduced 2006-07-03.
34807
34808         dirname-lgpl: adjust clients that don't need full dirname
34809         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34810         * modules/filenamecat (Depends-on): Likewise.
34811         * modules/linkat (Depends-on): Likewise.
34812         * modules/mkancesdirs (Depends-on): Likewise.
34813         * modules/mkdir (Depends-on): Likewise.
34814         * modules/openat (Depends-on): Likewise.
34815         * modules/savewd (Depends-on): Likewise.
34816         * modules/rename (Depends-on): Likewise.
34817         (License): Relax license.
34818         * modules/mkdir-tests (Depends-on): Drop progname.
34819         (Makefile.am): Delete unneeded LDADD.
34820         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34821
34822         dirname: split into dirname-lgpl
34823         * modules/dirname-lgpl: New module.
34824         * modules/dirname (Files): Move library-safe files into
34825         dirname-lgpl.
34826         (Depends-on): Add dirname-lgpl.
34827         (configure.ac): Declare witness.
34828         * modules/double-slash-root (License): Relax license.
34829         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34830         module.
34831         * lib/dirname.c (dir_len, mdir_name): Move...
34832         * lib/dirname-lgpl.c: ...into new file.
34833         * lib/basename.c (last_component, base_len): Move...
34834         * lib/basename-lgpl.c: ...into new file.
34835         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34836         (gl_DIRNAME): Use it.
34837         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34838         Mention new module.
34839         * modules/dirname-tests (Depends-on): Add progname.
34840         * tests/test-dirname.c (program_name): Delete.
34841
34842         mkdir: make safe for libraries
34843         * modules/mkdir (Depends-on): Drop xalloc.
34844         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34845         exit.
34846
34847         tests: avoid some compiler warnings
34848         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34849         literals.
34850         * tests/test-memchr.c (main): Avoid type mismatch.
34851         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34852         * tests/test-base64.c (main): Likewise.
34853         * tests/test-getdelim.c (main): Likewise.
34854         * tests/test-gethostname.c (main): Likewise.
34855         * tests/test-getline.c (main): Likewise.
34856         * tests/test-netinet_in.c (main): Likewise.
34857         * tests/test-select.c (open_server_socket, main): Likewise.
34858         * tests/test-select-stdin.c (main): Likewise.
34859         * tests/test-sockets.c (main): Likewise.
34860         * tests/test-strsignal.c (main): Likewise.
34861         * tests/test-sys_select.c (main): Likewise.
34862         * tests/test-sys_socket.c (main): Likewise.
34863         * tests/test-u64.c (main): Likewise.
34864         * tests/test-xfprintf-posix.c (main): Likewise.
34865         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34866
34867         sockets: avoid compiler warning
34868         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34869
34870         maint: detect usage(1) and other suspicious exits
34871         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34872
34873 2009-10-29  Jim Meyering  <meyering@redhat.com>
34874
34875         timespec: long-to-int truncation could make timespec_cmp malfunction
34876         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34877         a multiple of 2^32 nanoseconds as no difference.
34878
34879 2009-10-28  Jim Meyering  <meyering@redhat.com>
34880
34881         fprintftime: wrap macro code argument in "do {...} while(0)"
34882         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34883         cpy macro must be a statement that can be followed by a semicolon.
34884         Now that the else clause contains a comment and is hence longer
34885         than one line, I require curly braces.  That in turn requires
34886         that we wrap this code block in the standard do...while(0).
34887
34888         fprintftime: remove stray semicolon from previous change
34889         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34890
34891         fprintftime: avoid a warning about ignored fwrite return value
34892         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34893         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34894         that is unsafe.
34895         * modules/fprintftime (Depends-on): Add ignore-value.
34896
34897         exclude: avoid an unwarranted warning
34898         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34899
34900 2009-10-27  Eric Blake  <ebb9@byu.net>
34901
34902         fseek: avoid compilation failure when fflush is replaced
34903         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34904         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34905         module is in use.
34906         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34907         module is not in use; since REPLACE_FSEEK worked otherwise.
34908         (GNULIB_FTELLO): Likewise for ftell.
34909         Reported by Ian Beckwith and others.
34910
34911 2009-10-27  Bruno Haible  <bruno@clisp.org>
34912
34913         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34914         Reported by Jim Meyering.
34915
34916 2009-10-27  Jim Meyering  <jim@meyering.net>
34917             Bruno Haible  <bruno@clisp.org>
34918
34919         Avoid warning despite dropping the return value of fwrite.
34920         * lib/unicodeio.c: Include ignore-value.h.
34921         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34922         * modules/unicodeio (Depends-on): Add ignore-value.
34923
34924 2009-10-26  Eric Blake  <ebb9@byu.net>
34925
34926         areadlinkat: fix fallback path
34927         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34928         pointer and zero.
34929
34930 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34931
34932         Use a better IO block size for modern systems
34933         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34934         * lib/md2.c: Likewise.
34935         * lib/md4.c: Likewise.
34936         * lib/md5.c: Likewise.
34937         * lib/sha1.c: Likewise.
34938         * lib/sha256.c: Likewise.
34939         * lib/sha512.c: Likewise.
34940
34941 2009-10-22  Eric Blake  <ebb9@byu.net>
34942
34943         tests: avoid several compiler warnings
34944         * tests/test-getcwd.c (main): Avoid buffer underflow.
34945         * tests/test-getdate.c (main): String literals are not safe with
34946         putenv, so use setenv.  Declare unused argument.
34947         * modules/getdate-tests (Depends-on): Add setenv.
34948         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34949         problems with string literals in char *.
34950         * tests/test-hash.c (main): Avoid shadowing declaration.
34951         (insert_new): Treat string literals as char const *.
34952         * tests/test-getopt.h (test_getopt): Likewise.
34953         (getopt_loop): Alter types to minimize casting elsewhere.
34954         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34955         (test_getopt_long_posix): Likewise.
34956         (do_getopt_long): Add wrapper to minimize casting.
34957         * tests/test-atexit.c (clear_temp_file): Use void.
34958         * tests/test-areadlink-with-size.c (main): Declare unused
34959         arguments.
34960         * tests/test-areadlink.c (main): Likewise.
34961         * tests/test-areadlinkat-with-size.c (main): Likewise.
34962         * tests/test-areadlinkat.c (main): Likewise.
34963         * tests/test-canonicalize-lgpl.c (main): Likewise.
34964         * tests/test-canonicalize.c (main): Likewise.
34965         * tests/test-dirent-safer.c (main): Likewise.
34966         * tests/test-dirname.c (main): Likewise.
34967         * tests/test-dup2.c (main): Likewise.
34968         * tests/test-fchdir.c (main): Likewise.
34969         * tests/test-fcntl-h.c (main): Likewise.
34970         * tests/test-fcntl-safer.c (main): Likewise.
34971         * tests/test-fdopendir.c (main): Likewise.
34972         * tests/test-fdutimensat.c (main): Likewise.
34973         * tests/test-fflush.c (main): Likewise.
34974         * tests/test-filenamecat.c (main): Likewise.
34975         * tests/test-filevercmp.c (main): Likewise.
34976         * tests/test-fopen-safer.c (main): Likewise.
34977         * tests/test-fopen.c (main): Likewise.
34978         * tests/test-fpending.c (main): Likewise.
34979         * tests/test-fpurge.c (main): Likewise.
34980         * tests/test-freading.c (main): Likewise.
34981         * tests/test-fstatat.c (main): Likewise.
34982         * tests/test-fsync.c (main): Likewise.
34983         * tests/test-futimens.c (main): Likewise.
34984         * tests/test-getndelim2.c (main): Likewise.
34985         * tests/test-gettimeofday.c (main): Likewise.
34986         * tests/test-getopt.c (main): Likewise.
34987         * tests/test-i-ring.c (main): Likewise.
34988         * tests/test-inttypes.c (main): Likewise.
34989         * tests/test-link.c (main): Likewise.
34990         * tests/test-lstat.c (main): Likewise.
34991         * tests/test-math.c (main): Likewise.
34992         * tests/test-md5.c (main): Likewise.
34993         * tests/test-memchr2.c (main): Likewise.
34994         * tests/test-memrchr.c (main): Likewise.
34995         * tests/test-mkdir.c (main): Likewise.
34996         * tests/test-mkdirat.c (main): Likewise.
34997         * tests/test-mkfifoat.c (main): Likewise.
34998         * tests/test-open.c (main): Likewise.
34999         * tests/test-openat-safer.c (main): Likewise.
35000         * tests/test-openat.c (main): Likewise.
35001         * tests/test-quotearg.c (main): Likewise.
35002         * tests/test-rawmemchr.c (main): Likewise.
35003         * tests/test-readlink.c (main): Likewise.
35004         * tests/test-remove.c (main): Likewise.
35005         * tests/test-rename.c (main): Likewise.
35006         * tests/test-renameat.c (main): Likewise.
35007         * tests/test-rmdir.c (main): Likewise.
35008         * tests/test-sha1.c (main): Likewise.
35009         * tests/test-signal.c (main): Likewise.
35010         * tests/test-sigaction.c (main): Likewise.
35011         * tests/test-stat.c (main): Likewise.
35012         * tests/test-stat-time.c (main): Likewise.
35013         * tests/test-stddef.c (main): Likewise.
35014         * tests/test-stdint.c (main): Likewise.
35015         * tests/test-stdio.c (main): Likewise.
35016         * tests/test-stdlib.c (main): Likewise.
35017         * tests/test-strchrnul.c (main): Likewise.
35018         * tests/test-strerror.c (main): Likewise.
35019         * tests/test-string.c (main): Likewise.
35020         * tests/test-strtod.c (main): Likewise.
35021         * tests/test-strverscmp.c (main): Likewise.
35022         * tests/test-symlink.c (main): Likewise.
35023         * tests/test-symlinkat.c (main): Likewise.
35024         * tests/test-sys_stat.c (main): Likewise.
35025         * tests/test-sys_time.c (main): Likewise.
35026         * tests/test-time.c (main): Likewise.
35027         * tests/test-unistd.c (main): Likewise.
35028         * tests/test-unlink.c (main): Likewise.
35029         * tests/test-unlinkat.c (main): Likewise.
35030         * tests/test-utimens.c (main): Likewise.
35031         * tests/test-utimensat.c (main): Likewise.
35032         * tests/test-version-etc.c (main): Likewise.
35033         * tests/test-wchar.c (main): Likewise.
35034         * tests/test-wctype.c (main): Likewise.
35035         * tests/test-xprintf-posix.c (main): Likewise.
35036         * tests/test-posixtm.c (main): Likewise.
35037         (STREQ): Delete unused macro.
35038         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35039         shadowed variables.
35040         * tests/test-memchr.c (main): Likewise.
35041
35042 2009-10-21  Eric Blake  <ebb9@byu.net>
35043
35044         areadlinkat: avoid failure on older glibc
35045         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35046         rather than mis-comparing 0 against FUNC_RESULT of char*.
35047
35048 2009-10-21  Bruno Haible  <bruno@clisp.org>
35049
35050         * modules/stpncpy (License): Relicense under LGPLv2+.
35051         Reported by David Lutterkort <lutter@redhat.com>.
35052
35053 2009-10-20  Eric Blake  <ebb9@byu.net>
35054
35055         utimensat: work around Solaris 9 bug
35056         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35057         has trailing slash bugs.
35058         * tests/test-lutimens.h (test_lutimens): Enhance test.
35059         * tests/test-utimens.h (test_utimens): Likewise.
35060         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35061         * doc/posix-functions/utimes.texi (utimes): Likewise.
35062         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35063         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35064         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35065         * doc/posix-functions/futimens.texi (futimens): Likewise.
35066
35067         fdutimensat: new module
35068         * modules/fdutimensat: New file.
35069         * lib/fdutimensat.c (fdutimensat): Likewise.
35070         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35071         * MODULES.html.sh (File system functions): Mention module.
35072         * modules/fdutimensat-tests: New test.
35073         * tests/test-fdutimensat.c: Likewise.
35074
35075         doc: regenerate INSTALL
35076         * doc/INSTALL: Reflect recent autoconf update.
35077         * doc/INSTALL.ISO: Likewise.
35078         * doc/INSTALL.UTF-8: Likewise.
35079
35080 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35081
35082         acl: warn if ACL support is not detected
35083         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35084
35085 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35086
35087         * lib/nproc.h: Add extern "C" block for C++.
35088
35089 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35090             Bruno Haible  <bruno@clisp.org>
35091
35092         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35093         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35094         * doc/posix-functions/isalpha.texi: Likewise.
35095         * doc/posix-functions/isblank.texi: Likewise.
35096         * doc/posix-functions/iscntrl.texi: Likewise.
35097         * doc/posix-functions/isdigit.texi: Likewise.
35098         * doc/posix-functions/isgraph.texi: Likewise.
35099         * doc/posix-functions/islower.texi: Likewise.
35100         * doc/posix-functions/isprint.texi: Likewise.
35101         * doc/posix-functions/ispunct.texi: Likewise.
35102         * doc/posix-functions/isspace.texi: Likewise.
35103         * doc/posix-functions/isupper.texi: Likewise.
35104         * doc/posix-functions/isxdigit.texi: Likewise.
35105
35106 2009-10-18  Bruno Haible  <bruno@clisp.org>
35107
35108         Tests for module 'isblank'.
35109         * modules/isblank-tests: New file.
35110         * tests/test-isblank.c: New file.
35111
35112         New module 'isblank'.
35113         * lib/isblank.c: New file.
35114         * m4/isblank.m4: New file.
35115         * modules/isblank: New file.
35116         * doc/posix-functions/isblank.texi: Mention the new module.
35117
35118 2009-10-18  Bruno Haible  <bruno@clisp.org>
35119
35120         New module 'ctype'.
35121         * lib/ctype.in.h: New file.
35122         * m4/ctype.m4: New file.
35123         * modules/ctype: New file.
35124         * doc/posix-headers/ctype.texi: Mention the new module.
35125
35126 2009-10-18  Jim Meyering  <meyering@redhat.com>
35127
35128         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35129         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35130         right after its initialization, rather than farther down.
35131         Keeping these in close proximity makes it easier to ensure
35132         that each such variable is initialized.  E.g.,
35133
35134             LIB_CLOCK_GETTIME=
35135             AC_SUBST([LIB_CLOCK_GETTIME])
35136
35137         This change also increments these serial numbers.
35138         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35139         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35141
35142 2009-10-18  Bruno Haible  <bruno@clisp.org>
35143
35144         Don't let environment variables perturb build.
35145         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35146         (gl_PREREQ_GETHRXTIME): ... not here.
35147
35148 2009-10-18  Bruno Haible  <bruno@clisp.org>
35149
35150         Avoid symlink attack in localcharset module.
35151         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35152         (O_NOFOLLOW): Define fallback.
35153         (get_charset_aliases): Don't open the file if it is a symbolic link.
35154         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35155         gl_FCNTL_H.
35156         (gl_FCNTL_H): Require it.
35157         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35158         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35159         Reported by Fergal Glynn <fglynn@veracode.com>.
35160
35161 2009-10-18  Bruno Haible  <bruno@clisp.org>
35162
35163         Implement nproc for mingw.
35164         * lib/nproc.c: Include <windows.h>
35165         (num_processors): On native Windows platforms, try GetSystemInfo.
35166
35167 2009-10-18  Bruno Haible  <bruno@clisp.org>
35168
35169         Implement nproc for IRIX.
35170         * lib/nproc.c: Include <sys/sysmp.h>.
35171         (num_processors): On IRIX systems, try sysmp.
35172         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35173
35174 2009-10-18  Bruno Haible  <bruno@clisp.org>
35175
35176         Implement nproc for HP-UX.
35177         * lib/nproc.c: Include <sys/pstat.h>
35178         (num_processors): On HP-UX systems, try pstat_getdynamic.
35179         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35180         pstat_getdynamic.
35181
35182 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35183             Bruno Haible  <bruno@clisp.org>
35184
35185         Implement nproc for NetBSD, OpenBSD.
35186         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35187         (ARRAY_SIZE): New macro.
35188         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35189         * m4/nproc.m4: New file.
35190         * modules/nproc (Files): Add m4/nproc.m4.
35191         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35192         (Makefile.am): Instead, augment lib_SOURCES.
35193
35194 2009-10-18  Bruno Haible  <bruno@clisp.org>
35195
35196         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35197         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35198         sys/param.h.
35199
35200 2009-10-16  Eric Blake  <ebb9@byu.net>
35201
35202         utimensat: new module
35203         * modules/utimensat: New file.
35204         * lib/utimensat.c (utimensat): Likewise.
35205         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35206         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35207         so we can work around Linux bugs.
35208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35209         * modules/sys_stat (Makefile.am): Substitute them.
35210         * lib/sys_stat.in.h (utimensat): Declare it.
35211         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35212         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35213         * modules/utimensat-tests: New test.
35214         * tests/test-utimensat.c: Likewise.
35215
35216         utimens: let lutimens work on non-symlinks
35217         * lib/utimens.c (lutimens): Fall back to utimens rather than
35218         failing with ENOSYS, when file is not a symlink.
35219         (utimens): Reduce redirection.
35220         * tests/test-lutimens.h (test_lutimens): Update test to cover
35221         non-symlinks.
35222         * tests/test-utimens.h (test_utimens): Update test to cover
35223         symlinks.
35224         * tests/test-utimens.c (main): Update caller.
35225
35226         utimens: cache whether utimensat syscall works
35227         * lib/utimens.c (utimensat_works_really): New cache variable.
35228         (fdutimens, lutimens): Use it to avoid failing syscall.
35229
35230         test-stat-time, test-utimens: improve portability
35231         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35232         ext4 on alpha, and for cygwin.
35233         * tests/test-utimens-common.h: New file.
35234         (nap): Factor delays into single function.
35235         * tests/test-lutimens.h (test_lutimens): Use new header.
35236         * tests/test-futimens.h (test_futimens): Likewise.
35237         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35238         timestamps to occur from same machine, as was done previously for
35239         test_utimens.
35240         * modules/utimens-tests (Files): Ship new file.
35241         * modules/futimens-tests (Files): Likewise.
35242         Reported in part by Jim Meyering.
35243
35244         sys_stat: sort replacement declarations
35245         * lib/sys_stat.in.h: Sort declarations.
35246         * lib/futimens.c (futimens): Fix typo.
35247
35248 2009-10-15  Jim Meyering  <meyering@redhat.com>
35249
35250         don't let environment settings perturb build
35251         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35252         could cause a configure-time and/or build-time malfunction.
35253         Typically, a configure-time function-in-library test is performed
35254         via code like this:
35255
35256           LIB_VAR=
35257           AC_SUBST([LIB_VAR])
35258           prefix_saved_LIBS=$LIBS
35259             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35260                        [test "$ac_cv_search_FUNC" = "none required" ||
35261                         LIB_VAR=$ac_cv_search_FUNC])
35262           LIBS=$prefix_saved_LIBS
35263
35264         However, in each of the files affected by this change, the LIB_VAR=
35265         initialization was omitted.  Thus, when set in the environment, its
35266         value would propagate into generated Makefiles when FUNC is not found
35267         in LIB_NAME.
35268         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35269         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35271
35272 2009-10-14  Eric Blake  <ebb9@byu.net>
35273
35274         fchdir: avoid infinite recursion in mingw
35275         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35276         recursing.
35277
35278         test-stat-time: port to mingw
35279         * tests/test-stat-time.c (force_unlink): Return a value.
35280         (test_ctime) [W32]: Fix compilation error.
35281         (nap): Don't call usleep with too large an argument.  Use
35282         force_unlink.
35283         * doc/pastposix-functions/usleep.texi (usleep): Document the
35284         portability issue.
35285
35286 2009-10-13  Jim Meyering  <meyering@redhat.com>
35287
35288         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35289         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35290         * modules/pipe-filter-ii: Likewise.
35291         * modules/sys_socket-tests: Likewise.
35292         * modules/tsearch-tests: Likewise.
35293         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35294         (check): Depend on it.
35295
35296 2009-10-12  Eric Blake  <ebb9@byu.net>
35297
35298         utimens-tests: port to NFS file systems
35299         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35300         comparisons to avoid spurious failures from timestamp drift
35301         between NFS machines.
35302
35303 2009-10-12  Eric Blake  <ebb9@byu.net>
35304
35305         stat-time-tests: minor cleanups
35306         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35307         * tests/test-stat-time.c (nap): Separate assignment from call.
35308         Suggested by Paolo Bonzini and Bruno Haible.
35309
35310         sys_stat: guarantee struct timespec
35311         * lib/sys_stat.in.h (includes): Always include <time.h>
35312         * modules/sys_stat (Depends-on): Add time.
35313         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35314         mode_t permission values.
35315         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35316         get at subsecond timestamps.
35317
35318 2009-10-10  Eric Blake  <ebb9@byu.net>
35319
35320         futimens: new module
35321         * modules/futimens: New file.
35322         * lib/futimens.c (futimens): Likewise.
35323         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35324         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35325         we can work around Linux bugs.
35326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35327         * modules/sys_stat (Makefile.am): Substitute them.
35328         * lib/sys_stat.in.h (futimens): Declare it.
35329         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35330         * doc/posix-functions/futimens.texi (futimens): Likewise.
35331         * modules/futimens-tests: New test.
35332         * tests/test-futimens.c: Likewise.
35333
35334         utimens: introduce fdutimens
35335         * lib/utimens.h (fdutimens): New prototype.
35336         * lib/utimens.c (gl_futimens): Move guts...
35337         (fdutimens): ...to new interface.
35338         * tests/test-utimens.c (do_fdutimens): Use it.
35339
35340         utimens: add UTIME_NOW and UTIME_OMIT support
35341         * lib/utimens.c (validate_timespec, update_timespec): New helper
35342         functions.
35343         (gl_futimens, lutimens): Use them.
35344         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35345         stdbool, sys_stat.
35346         (Link): Mention resulting library dependency.
35347         * modules/utimecmp (Link): Likewise.
35348         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35349         (Makefile.am): Pick up library dependency.
35350         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35351         definition.
35352         * tests/test-sys_stat.c: Test the definitions.
35353         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35354         * NEWS: Document library dependency.
35355
35356         utimecmp: support symlink timestamps
35357         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35358         hashing when possible.  Use pathconf when available.
35359         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35360         * modules/utimecmp (Depends-on): Add lstat.
35361
35362         utimens: add lutimens interface
35363         * lib/utimens.c (lutimens): New function.
35364         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35365         * lib/utimens.h (lutimens): Declare new interface.
35366         * tests/test-utimens.c (main): Enhance test.
35367         * tests/test-lutimens.h (test_lutimens): New file.
35368         * modules/utimens-tests (Files): Distribute it.
35369         (Depends-on): Add symlink.
35370         (configure.ac): Check for usleep.
35371
35372         utimens: validate futimens usage
35373         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35374         fewer syscalls on failure later on.  Avoid compiler warning on
35375         mingw.
35376         * modules/utimens (Depends-on): Add dup2.
35377
35378         utimens: add test
35379         * modules/utimens-tests: New test.
35380         * tests/test-utimens.h: New file.
35381         * tests/test-futimens.h: Likewise.
35382         * tests/test-utimens.c: Likewise.
35383
35384         doc: mention timestamp portability issues
35385         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35386         instead.
35387         * doc/posix-functions/utime.texi (utime): Likewise.
35388         * doc/posix-functions/utimes.texi (utimes): Likewise.
35389         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35390         instead.
35391         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35392         module.
35393         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35394         Mention weakness with symlink timestamps.
35395         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35396         to utimensat/futimens instead.
35397         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35398
35399         test-dup2: enhance test
35400         * tests/test-dup2.c (main): Also check AT_FDCWD.
35401
35402         test-stat-time: avoid more spurious failures
35403         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35404         xfs; and avoid race if the two timestamps cross quantization edge.
35405
35406         relocatable: prefer 'file system' over 'filesystem'
35407         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35408         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35409         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35410         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35411         * lib/relocatable.c (compute_curr_prefix): Likewise.
35412
35413 2009-10-10  Jim Meyering  <meyering@redhat.com>
35414
35415         stat-time-tests: check for the usleep function
35416         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35417
35418 2009-10-10  Bruno Haible  <bruno@clisp.org>
35419
35420         * modules/xnanosleep: Put the Link section after the Include section.
35421
35422 2009-10-09  Eric Blake  <ebb9@byu.net>
35423
35424         dup2: work around FreeBSD 6.1 bug
35425         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35426         * doc/posix-functions/dup2.texi (dup2): Document it.
35427         Reported by Nelson H. F. Beebe and Jim Meyering.
35428
35429         test-stat-time: port to buggy NFS clients
35430         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35431         (test_ctime): Also skip test if mtime and ctime are skewed.
35432
35433         maint: prefer 'file system' over 'filesystem'
35434         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35435         * doc/posix-functions/lstat.texi (lstat): Likewise.
35436         * lib/file-has-acl.c (file_has_acl): Likewise.
35437         * lib/fwriteerror.c [TEST]: Likewise.
35438         * tests/test-areadlink.h (test_areadlink): Likewise.
35439         * tests/test-areadlinkat-with-size.c (main): Likewise.
35440         * tests/test-areadlinkat.c (main): Likewise.
35441         * tests/test-canonicalize-lgpl.c (main): Likewise.
35442         * tests/test-canonicalize.c (main): Likewise.
35443         * tests/test-fstatat.c (main): Likewise.
35444         * tests/test-linkat.c (main): Likewise.
35445         * tests/test-lstat.h (test_lstat_func): Likewise.
35446         * tests/test-mkdir.h (test_mkdir): Likewise.
35447         * tests/test-readlink.h (test_readlink): Likewise.
35448         * tests/test-remove.c (main): Likewise.
35449         * tests/test-rename.h (test_rename): Likewise.
35450         * tests/test-renameat.c (main): Likewise.
35451         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35452         * tests/test-symlink.h (test_symlink): Likewise.
35453         * tests/test-symlinkat.c (main): Likewise.
35454         * tests/test-unlink.h (test_unlink_func): Likewise.
35455         * tests/test-unlinkat.c (main): Likewise.
35456
35457         maint: make realtime library usage explicit
35458         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35459         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35460         * modules/settime (Link): Likewise.
35461         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35462
35463         test-stat-time: speed up execution
35464         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35465         warning on mingw.
35466         (nap): New helper function.
35467         (prepare_test): Use it to reduce sleep time.
35468         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35469         execution.
35470         * modules/stat-time-tests (configure.ac): Check for usleep.
35471
35472 2009-10-09  Jim Meyering  <meyering@redhat.com>
35473
35474         selinux-h: always use getfilecon wrappers
35475         * lib/getfilecon.c: New file.
35476         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35477         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35478         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35479         (fgetfilecon): Provide a stub.
35480         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35481         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35482         file unconditionally.
35483         When <selinux/selinux.h> is found, arrange to use wrappers.
35484         * modules/selinux-h (Files): Add getfilecon.c.
35485         (Makefile.am): Substitute include-next-related bits
35486         into the now-always-generated selinux/selinux.h file.
35487         * doc/glibc-functions/lgetfilecon.texi: New file.
35488         * doc/glibc-functions/fgetfilecon.texi: New file.
35489         * doc/glibc-functions/getfilecon.texi: New file.
35490         * doc/glibc-functions/getfilecon-desc.texi: New file.
35491         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35492         which to pull in the new files.
35493         * MODULES.html.sh (Misc): Add selinux-h.
35494
35495 2009-10-08  Jim Meyering  <meyering@redhat.com>
35496
35497         unistd: fix comment typo
35498         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35499
35500 2009-10-08  Eric Blake  <ebb9@byu.net>
35501
35502         areadlink: use SIZE_MAX consistently
35503         * modules/areadlink (Depends-on): Add stdint.
35504         * modules/areadlink-with-size (Depends-on): Likewise.
35505         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35506         gives NULL; drop sys/types, since unistd gives size_t; and add
35507         stdint for SIZE_MAX.
35508         (SIZE_MAX): Rely on headers.
35509         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35510         and add stdint.
35511         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35512         (SIZE_MAX): Likewise.
35513         (INITIAL_BUF_SIZE): Turn into enum.
35514         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35515
35516 2009-10-08  Jim Meyering  <meyering@redhat.com>
35517
35518         areadlinkat: avoid compilation failure
35519         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35520         Fix typo in comment.
35521
35522 2009-10-07  Eric Blake  <ebb9@byu.net>
35523
35524         areadlinkat-with-size: new module
35525         * modules/areadlinkat-with-size: New module.
35526         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35527         * lib/areadlink.h (areadlinkat): Declare it.
35528         * MODULES.html.sh (File system functions): Mention it.
35529         * modules/areadlinkat-with-size-tests: New test.
35530         * tests/test-areadlinkat-with-size.c: New file.
35531
35532         xreadlinkat: new module
35533         * modules/xreadlinkat: New module.
35534         * lib/xreadlinkat.c (xreadlinkat): New file.
35535         * lib/xreadlink.h (xreadlinkat): Declare it.
35536         * MODULES.html.sh (File system functions): Mention it.
35537
35538         areadlinkat: new module
35539         * lib/at-func.c (FUNC_FAIL): New define.
35540         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35541         * modules/areadlinkat: New module.
35542         * lib/linkat.c (areadlinkat): Move...
35543         * lib/areadlinkat.c (areadlinkat): ...to new file.
35544         * lib/areadlink.h (areadlinkat): Declare it.
35545         * modules/linkat (Depends-on): Add areadlinkat.
35546         * MODULES.html.sh (File system functions): Mention it.
35547         * modules/areadlinkat-tests: New test.
35548         * tests/test-areadlinkat.c: New file.
35549
35550         areadlink, areadlink-with-size: add tests
35551         * modules/areadlink-tests: New test.
35552         * modules/areadlink-with-size-tests: Likewise.
35553         * tests/test-areadlink.h: New file.
35554         * tests/test-areadlink.c: Likewise.
35555         * tests/test-areadlink-with-size.c: Likewise.
35556
35557         maint: minor cleanups
35558         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35559         _UNUSED_PARAMETER_ instead.
35560         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35561         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35562         * modules/linkat-tests (Files): Distribute test-link.h.
35563
35564         openat, utimens: whitespace cleanup
35565         * lib/openat.c: Prefer space throughout, rather than mix of 8
35566         spaces vs. tabs.
35567         * lib/at-func.c: Likewise.
35568         * lib/utimens.c: Likewise.
35569
35570         openat: avoid using wrong fd
35571         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35572         working directory chooses same fd.
35573         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35574
35575         mkdir, mkdirat: fix cygwin 1.5.x bug
35576         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35577         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35578         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35579         bug.
35580         (gl_PREREQ_MKDIR): Delete unused macro.
35581         * modules/mkdir (Files): Track file rename.
35582         (configure.ac): Update macro name.
35583         * modules/openat (Depends-on): Add mkdir.
35584         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35585
35586         mkdir, mkdirat: add tests
35587         * modules/mkdir-tests: New test.
35588         * tests/test-mkdir.h: New file.
35589         * tests/test-mkdir.c: Likewise.
35590         * tests/test-mkdirat.c: Likewise.
35591         * modules/openat-tests (Files): Add new files.
35592         (Makefile.am): Run new test.
35593
35594 2009-10-06  Eric Blake  <ebb9@byu.net>
35595
35596         doc: tweak *at function documentation
35597         * doc/posix-functions/faccessat.texi (faccessat): Mention
35598         known issue with replacement.
35599         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35600         * doc/posix-functions/linkat.texi (linkat): Likewise.
35601         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35602         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35603         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35604         * doc/posix-functions/renameat.texi (renameat): Likewise.
35605         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35606
35607         openat: fix GNU/Hurd bug in unlinkat
35608         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35609         broken.
35610         * doc/posix-functions/unlink.texi (unlink): Document this.
35611         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35612
35613         fdopendir: fix GNU/Hurd bug
35614         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35615         allowing non-directory fds.
35616         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35617         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35618         * modules/dirent (Makefile.am): Substitute it.
35619         * lib/dirent.in.h (fdopendir): Declare replacement.
35620         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35621         * tests/test-fdopendir.c (main): Test something other than
35622         /dev/null, since on Hurd that behaves like a directory.
35623
35624         test-symlink: port to GNU/Hurd
35625         * tests/test-symlink.h (test_symlink): Relax expected errno.
35626
35627         doc: tweak more cygwin information
35628         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35629         now compatible with glibc.
35630         * doc/posix-functions/getopt.texi (getopt): Likewise.
35631
35632         getopt-gnu: add another test
35633         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35634         guarantee behavior relied on by m4.
35635         * tests/test-getopt.c (main): Use it.
35636         * modules/getopt-posix-tests (Depends-on): Add setenv.
35637         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35638
35639         getopt: fix compilation on darwin
35640         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35641         include.
35642         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35643         Reported by Ludovic Courtès.
35644
35645 2009-10-06  Bruno Haible  <bruno@clisp.org>
35646
35647         * modules/size_max (Description): Discourage its use.
35648         Reported by Simon Josefsson.
35649
35650 2009-10-06  Jim Meyering  <meyering@redhat.com>
35651
35652         linkat: avoid compilation failure
35653         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35654
35655 2009-10-05  Eric Blake  <ebb9@byu.net>
35656
35657         linkat: support Linux 2.6.17
35658         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35659         linkat on Linux, but allow cache variable override.
35660         * lib/linkat.c (rpl_linkat): Define override.
35661         * modules/linkat (Depends-on): Add symlinkat.
35662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35663         * modules/unistd (Makefile.am): Substitute it.
35664         * lib/unistd.in.h (linkat): Declare replacement.
35665         Reported by Pádraig Brady.
35666
35667         quotearg: port test to systems with C.UTF-8 locale
35668         * tests/test-quotearg.c (struct result_strings): Add another
35669         member, differentiating between C.ASCII and C.UTF-8 handling.
35670         (compare_strings): Add parameter.
35671         (main): Adjust all callers.
35672
35673         getopt: avoid clash with FreeBSD _getopt_internal
35674         * lib/getopt.in.h (_getopt_internal): Override the name.
35675         * lib/getopt_int.h (includes): Pick up any overrides.
35676         Reported by Reuben Thomas.
35677
35678         hash: allow C89 compilation
35679         * lib/hash.c (check_tuning): Move declaration before statement.
35680         Reported by Reuben Thomas.
35681
35682 2009-10-05  Karl Berry  <karl@gnu.org>
35683
35684         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35685
35686 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35687             Bruno Haible  <bruno@clisp.org>
35688
35689         * lib/uname.c (uname): Use a table-driven algorithm to compute
35690         Windows NT versions.
35691
35692 2009-10-04  Bruno Haible  <bruno@clisp.org>
35693
35694         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35695         program_invocation_short_name.
35696         * modules/progname (configure.ac): Test for presence of
35697         program_invocation_short_name.
35698         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35699
35700 2009-10-04  Bruno Haible  <bruno@clisp.org>
35701
35702         * lib/progname.c (set_program_name): Fix comment.
35703         Reported by Jim Meyering.
35704
35705 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35706             Bruno Haible  <bruno@clisp.org>
35707
35708         * lib/uname.c: Include <string.h>.
35709         (uname): Do only one call to GetVersionEx in the common case.
35710
35711 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35712             Bruno Haible  <bruno@clisp.org>
35713
35714         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35715         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35716         (uname): Add support for Windows CE and various non-x86 CPU types.
35717
35718 2009-10-03  Bruno Haible  <bruno@clisp.org>
35719
35720         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35721         invocation to tests/configure.ac.
35722         Reported by Ian Beckwith <ianb@erislabs.net>.
35723
35724 2009-10-02  Eric Blake  <ebb9@byu.net>
35725
35726         fchdir: avoid compiler warning
35727         * lib/fchdir.c (canonicalize_file_name)
35728         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35729
35730         test-open: support mingw errno values
35731         * tests/test-open.h (test_open): Relax test.
35732         * tests/test-fopen.h (test_fopen): Likewise.
35733         * tests/test-openat-safer.c (main): Likewise.
35734
35735         open: fix opening directory on mingw
35736         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35737
35738         test-open: on GNU/Hurd, /dev/null is a directory
35739         * tests/test-fopen.h (main): Rename...
35740         (test_fopen): ...to this.  Use a guaranteed non-directory when
35741         confirming open behavior on trailing slash.
35742         * tests/test-openat-safer.c (main): Likewise.
35743         * tests/test-open.h (main): Likewise....
35744         (test_open): ...to this.
35745         * tests/test-fopen.c (main): Adjust caller.
35746         * tests/test-fopen-safer.c (main): Likewise.
35747         * tests/test-open.c (main): Likewise.
35748         * tests/test-fcntl-safer.c (main): Likewise.
35749         Reported by Samuel Thibault.
35750
35751         rename, fchdir: don't ignore chdir failure
35752         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35753         * lib/rename.c (rpl_rename) [W32]: Likewise.
35754         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35755         an empty destination directory if source cannot be renamed,
35756         although there is still possibility for failure.
35757         * doc/posix-functions/rename.texi (rename): Document the race.
35758         Reported by Jim Meyering.
35759
35760         maint: cleanup whitespace in recent commits
35761         * lib/rename.c (rpl_rename): Remove tabs.
35762         * tests/test-link.h (test_link): Likewise.
35763         * lib/fchdir.c (get_name): Likewise.
35764         Reported by Jim Meyering.
35765
35766 2009-10-02  Ben Pfaff  <blp@gnu.org>
35767
35768         relocatable-prog-wrapper: Add missing dependency on
35769         double-slash-root.
35770         * modules/relocatable-prog-wrapper: Add dependency.
35771         Reported by Ian Beckwith <ianb@erislabs.net>.
35772
35773 2009-10-02  Eric Blake  <ebb9@byu.net>
35774
35775         renameat: fix Solaris bugs
35776         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35777         needed fixing.
35778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35779         * modules/stdio (Makefile.am): Substitute it.
35780         * lib/stdio.in.h (renameat): Declare replacement.
35781         * lib/renameat.c (rpl_renameat): Implement fix.
35782
35783         renameat: new module
35784         * modules/renameat: New file.
35785         * lib/renameat.c (renameat): Likewise.
35786         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35788         * modules/stdio (Makefile.am): Substitute them.
35789         * lib/stdio.in.h (renameat): Declare it.
35790         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35791         * doc/posix-functions/renameat.texi (renameat): Likewise.
35792         * modules/renameat-tests: New test.
35793         * tests/test-renameat.c: Likewise.
35794
35795         rename: fix mingw bugs
35796         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35797         directory overwrite bugs.
35798
35799         rename: fix another cygwin 1.5 bug
35800         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35801         checks.
35802         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35803         unnecessary cygwin workarounds.  Also work around bug with moving
35804         full directory onto an empty one.
35805         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35806
35807         rename-dest-slash: merge into rename module
35808         * modules/rename-dest-slash (Status): Mark obsolete.
35809         (Depends-on): Add rename.
35810         (Files): Let rename do it all.
35811         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35812         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35813         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35814         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35815         * lib/rename.c (rpl_rename): Update comments.
35816
35817         rename: fix cygwin 1.5.x bugs
35818         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35819         * lib/rename.c (rpl_rename): Work around them.
35820         * modules/rename (Depends-on): Add same-inode.
35821
35822         rename: fix Solaris 10 bug
35823         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35824         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35825         was the only bug.
35826
35827         rename: fix Solaris 9 bug
35828         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35829         on non-directory.  Avoid calling exit.
35830         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35831         strdup.
35832         * modules/rename-tests (Depends-on): Drop lstat.
35833         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35834         (gl_PREREQ_RENAME): Delete unused macro.
35835
35836         rename-dest-slash: fix NetBSD bug
35837         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35838         links.
35839         * modules/rename-dest-slash (Depends-on): Add same-inode.
35840
35841         rename-tests: new test, exposes several platform bugs
35842         * modules/rename-tests: New file.
35843         * tests/test-rename.h: Likewise.
35844         * tests/test-rename.c: Likewise.
35845         * doc/posix-functions/rename.texi (rename): Improve documentation,
35846         including bugs that will eventually be fixed in gnulib.
35847
35848 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35849
35850         * lib/uname.c: Include <stdlib.h>
35851         (uname): Assume version info is available.
35852
35853 2009-10-02  Jim Meyering  <meyering@redhat.com>
35854
35855         gnu-web-doc-update: correct --help output
35856         * build-aux/gnu-web-doc-update: Make --help output relevant.
35857
35858         gnu-web-doc-update: add standard options
35859         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35860
35861         gnu-web-doc-update: New module.
35862         Use this script to automatically update the on-line web documentation
35863         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35864         * modules/gnu-web-doc-update: New file, from coreutils.
35865         * build-aux/gnu-web-doc-update: New script.
35866
35867 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35868
35869         link: LoadLibrary is not needed.
35870         * lib/link.c: Use GetModuleHandle.
35871
35872 2009-10-01  Eric Blake  <ebb9@byu.net>
35873
35874         getopt: bump serial number
35875         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35876         change.
35877
35878         tests: tighten link, rmdir, and remove tests
35879         * tests/test-link.h (includes): No need to use <config.h> here.
35880         Clean up if directory hard link was created, otherwise test for
35881         trailing '.'.
35882         * tests/test-linkat.c (main): Simplify.
35883         * tests/test-remove.c (main): Enhance test for trailing '.'.
35884         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35885
35886 2009-10-01  Jim Meyering  <meyering@redhat.com>
35887
35888         maint.mk: requiring "make major" was annoying, for a "minor" release.
35889         What is intended is "stable", to contrast with alpha and beta,
35890         so require "make stable", not "make major".
35891         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35892         (get_tool_versions): Likewise.
35893         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35894
35895 2009-09-30  Ben Pfaff  <blp@gnu.org>
35896
35897         Fix broken build of replacement for Windows tmpfile().
35898         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35899         flags argument added along with the 'mkostemp' module.
35900
35901 2009-09-28  Bruno Haible  <bruno@clisp.org>
35902
35903         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35904         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35905         to 'remove_elt'.
35906         (gl_list_remove): Update.
35907         * lib/gl_list.c (gl_list_remove): Update.
35908         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35909         to 'remove_elt'.
35910         (gl_oset_remove): Update.
35911         * lib/gl_list.c (gl_oset_remove): Update.
35912         Reported by Eric Blake.
35913
35914 2009-09-28  Eric Blake  <ebb9@byu.net>
35915
35916         doc: mention yet more cygwin 1.7 status
35917         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35918         cygwin.
35919         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35920         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35921
35922         argp: fix test failure
35923         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35924         that are not upper-case.  Pass correct range to tolower.
35925
35926 2009-09-27  Jim Meyering  <meyering@redhat.com>
35927
35928         test-yesno: work around sparc-dash here-document infelicity
35929         Without this change, the literal \177 byte in a here document
35930         would make dash 0.5.5.1-3 access uninitialized memory.
35931         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35932         Instead, use a marker, "@", and filter through tr to create the desired
35933         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35934
35935 2009-09-27  Bruno Haible  <bruno@clisp.org>
35936
35937         Disable untested support for new flavours of ACLs on AIX.
35938         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35939         progress.
35940         * lib/set-mode-acl.c (qset_acl): Likewise.
35941
35942 2008-12-07  Bruno Haible  <bruno@clisp.org>
35943
35944         Add support for new flavours of ACLs on AIX. (Untested.)
35945         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35946         (file_has_acl): Add support for newer AIX.
35947         * lib/set-mode-acl.c (qset_acl): Likewise.
35948         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35949         Rainer Tammer <tammer@tammer.net>.
35950
35951 2009-09-26  Eric Blake  <ebb9@byu.net>
35952
35953         argp: fix compilation of getopt
35954         * lib/getopt.in.h (includes): Use different guard than glibc.
35955         Reported by Sergey Poznyakoff.
35956
35957         doc: mention more cygwin 1.7 status
35958         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35959         bug.
35960         * doc/posix-functions/execl.texi (execl): Likewise.
35961         * doc/posix-functions/execle.texi (execle): Likewise.
35962         * doc/posix-functions/execlp.texi (execlp): Likewise.
35963         * doc/posix-functions/execv.texi (execv): Likewise.
35964         * doc/posix-functions/execve.texi (execve): Likewise.
35965         * doc/posix-functions/execvp.texi (execvp): Likewise.
35966         * doc/glibc-functions/canonicalize_file_name.texi
35967         (canonicalize_file_name): Cygwin 1.7 now provides this.
35968         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35969         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35970         on AT_SYMLINK_NOFOLLOW.
35971
35972 2009-09-24  Eric Blake  <ebb9@byu.net>
35973
35974         test-linkat: make test more robust
35975         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35976
35977         getopt: fix inclusion guards for cygwin
35978         * modules/getopt-posix (Depends-on): Add include-next.
35979         (Makefile.am): Substitute more items in replacement header.
35980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35981         <getopt.h>.
35982         * lib/getopt.in.h (includes): Use split inclusion guard, and
35983         prefer <getopt.h> over include <unistd.h> when one is present.
35984         (option): Also override name of 'struct option'.
35985
35986         same-inode: revert prior change; it is not yet ready
35987         * NEWS: Undo mention of this change.
35988         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35989         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35990         * lib/cycle-check.c (cycle_check): Likewise.
35991         * lib/same.c (same_name): Likewise.
35992         * lib/at-func2.c (at_func2): Likewise.
35993
35994 2009-09-23  Eric Blake  <ebb9@byu.net>
35995
35996         linkat: new module
35997         * modules/linkat: New file.
35998         * lib/at-func2.c (at_func2): Likewise.
35999         * lib/linkat.c (linkat): Likewise.
36000         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36001         * lib/openat-priv.h (at_func2): Add declaration.
36002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36003         * modules/unistd (Makefile.am): Substitute them.
36004         * lib/unistd.in.h (linkat): Declare it.
36005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36006         * doc/posix-functions/linkat.texi (linkat): Likewise.
36007         * doc/posix-functions/link.texi (link): Tweak wording.
36008         * tests/test-link.c (main): Move guts...
36009         * tests/test-link.h (test_link): ...into new file.
36010         * modules/linkat-tests: New test.
36011         * tests/test-linkat.c: Likewise.
36012         * modules/link-tests (Files): Ship new file.
36013         (Depends-on): Add stdbool.
36014
36015         dirname: add library-safe mdir_name
36016         * lib/dirname.h (mdir_name): New prototype.
36017         * lib/dirname.c (dir_name): Move guts...
36018         (mdir_name): ...to new function that avoids xalloc_die.
36019
36020         fchdir: another mingw fix
36021         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36022         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36023         on mingw (where it has not yet been ported), and make it optional
36024         elsewhere.
36025         (_gl_register_fd): Use it.
36026
36027         same-inode: make SAME_INODE tri-state, to port to mingw
36028         * NEWS: Mention this change.
36029         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36030         st_ino always being 0.
36031         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36032         * lib/cycle-check.c (cycle_check): Likewise.
36033         * lib/same.c (same_name): Likewise.
36034
36035         lstat: avoid mingw compilation error
36036         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36037         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36038         lstat ourselves.
36039         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36040         was adequate.
36041         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36042         the checks for lstat.
36043         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36044
36045         link: fix test failure on Solaris 9
36046         * lib/link.c (rpl_link): Don't assume link will catch bogus
36047         trailing slash on source.
36048
36049         test-symlinkat: enhance test
36050         * tests/test-readlink.c (main): Move guts...
36051         * tests/test-readlink.h (test_readlink): ...into new file.
36052         * tests/test-symlink.c (main): Move guts...
36053         * tests/test-symlink.h (test_symlink): ...into new file.
36054         * tests/test-symlinkat.c (main): Use new files for further
36055         coverage.
36056         (do_symlink, do_readlink): New helper functions.
36057         * modules/symlink-tests (Files): Ship new file.
36058         (Depends-on): Add stdbool.
36059         * modules/readlink-tests (Files): Ship new file.
36060         (Depends-on): Add stdbool.
36061         * modules/symlinkat-tests (Files): Use new files.
36062
36063 2009-09-23  Eric Blake  <ebb9@byu.net>
36064
36065         readlink: document portability issue with symlink length
36066         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36067         systems have bogus st_size on symlinks, and mention the
36068         areadlink-with-size module.
36069         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36070         * doc/posix-functions/readlink.texi (readlink): Mention the
36071         areadlink module, and ERANGE failure.
36072         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36073         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36074
36075         readlink: fix Solaris 9 bug with trailing slash
36076         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36077         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36078         * doc/posix-functions/readlink.texi (readlink): Document this.
36079         * modules/readlink-tests: New test.
36080         * tests/test-readlink.c: Likewise.
36081
36082         readlink: fix cygwin 1.5.x bug with return type
36083         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36084         * lib/unistd.in.h (readlink): Use ssize_t.
36085         * lib/readlink.c (readlink): Likewise.
36086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36087         * modules/unistd (Makefile.am): Substitute it.
36088         * lib/unistd.in.h (readlink): Declare replacement.
36089         * doc/posix-functions/readlink.texi (readlink): Document this.
36090
36091         symlink: use throughout gnulib
36092         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36093         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36094         symlink is not used.
36095         * modules/symlinkat (Depends-on): Add symlink.
36096         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36097         * modules/canonicalize-tests (Depends-on): Likewise.
36098         * modules/lstat-tests (Depends-on): Likewise.
36099         * modules/openat-tests (Depends-on): Likewise.
36100         * modules/remove-tests (Depends-on): Likewise.
36101         * modules/rmdir-tests (Depends-on): Likewise.
36102         * modules/unlink-tests (Depends-on): Likewise.
36103         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36104         * tests/test-canonicalize.c (symlink): Likewise.
36105         * tests/test-fstatat.c (symlink): Likewise.
36106         * tests/test-lstat.c (symlink): Likewise.
36107         * tests/test-remove.c (symlink): Likewise.
36108         * tests/test-rmdir.c (symlink): Likewise.
36109         * tests/test-unlink.c (symlink): Likewise.
36110         * tests/test-unlinkat.c (symlink): Likewise.
36111
36112         symlink: new module, for Solaris 9 bug
36113         * modules/symlink: New file.
36114         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36115         * lib/symlink.c: Likewise.
36116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36117         * modules/unistd (Makefile.am): Substitute them.
36118         * lib/unistd.in.h (symlink): Declare replacement.
36119         * MODULES.html.sh (File system functions): Mention it.
36120         * doc/posix-functions/symlink.texi (symlink): Likewise.
36121         * modules/symlink-tests: New test.
36122         * tests/test-symlink.c: Likewise.
36123
36124 2009-09-23  Bruno Haible  <bruno@clisp.org>
36125
36126         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36127         when needed.
36128         Test case: gnulib-tool --import --with-tests atexit inttypes.
36129         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36130
36131 2009-09-23  Bruno Haible  <bruno@clisp.org>
36132
36133         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36134         subcommand, not in a subshell.
36135
36136 2009-09-22  Eric Blake  <ebb9@byu.net>
36137
36138         unistd: sort replacement declarations
36139         * lib/unistd.in.h: Sort declarations.
36140
36141         open, openat: minor optimization
36142         * lib/open.c (open): If open succeeded, len is non-zero.
36143         * lib/openat.c (rpl_openat): Likewise.
36144
36145         link-follow: ensure correct result
36146         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36147         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36148         distinguish between possible failures.
36149
36150 2009-09-21  Eric Blake  <ebb9@byu.net>
36151
36152         fts: avoid compiler warning
36153         * lib/fts.c (dirent_inode_sort_may_be_useful)
36154         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36155
36156 2009-09-19  Bruno Haible  <bruno@clisp.org>
36157
36158         * lib/progreloc.c (canonicalize_file_name): New declaration.
36159
36160 2009-09-19  Eric Blake  <ebb9@byu.net>
36161
36162         link: fix quoting
36163         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36164
36165         openat: fix openat bugs on Solaris 9
36166         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36167         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36168         * modules/openat (Depends-on): Add open.
36169         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36170         * modules/fcntl-h (Makefile.am): Substitute it.
36171         * lib/fcntl.in.h (openat): Declare replacement.
36172         * doc/posix-functions/openat.texi (openat): Document this.
36173
36174         openat: move fstatat and unlinkat into correct files
36175         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36176         compiled.
36177         * lib/openat.c (fstatat, unlinkat): Move...
36178         * lib/fstatat.c (fstatat): ...into correct files.
36179         * lib/unlinkat.c (unlinkat): Likewise.
36180
36181         openat: fix unlinkat bugs on Solaris 9
36182         * lib/unlinkat.c (unlinkat): New file.
36183         * modules/openat (Depends-on): Add unlink.
36184         (Files): Distribute it.
36185         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36186         trailing slash behavior is broken.
36187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36188         * modules/unistd (Makefile.am): Substitute it.
36189         * lib/unistd.in.h (unlinkat): Declare replacement.
36190         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36191
36192         openat: fix fstatat bugs on Solaris 9
36193         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36194         stat.
36195         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36196
36197         test-unlinkat: enhance test, to expose Solaris 9 bug
36198         * tests/test-unlink.c (main): Factor guts...
36199         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36200         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36201         * tests/test-rmdir.c (main): Adjust caller.
36202         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36203         (unlinker): New helper function.
36204         (rmdirat): Enhance check.
36205         * modules/rmdir-tests (Depends-on): Add stdbool.
36206         * modules/unlink-tests (Depends-on): Likewise.
36207         (Files): Add test-unlink.h.
36208         * modules/openat-tests (Files): Likewise.
36209         (Depends-on): Add unlinkdir.
36210
36211         test-fstatat: new test, to expose Solaris 9 bugs
36212         * tests/test-stat.c (main): Factor guts...
36213         * tests/test-stat.h (test_stat_func): ...into new file.
36214         * tests/test-lstat.c (main): Factor guts...
36215         * tests/test-lstat.h (test_lstat_func): ...into new file.
36216         * tests/test-fstatat.c: New file.
36217         * modules/stat-tests (Files): Add test-stat.h.
36218         * modules/lstat-tests (Files): Add test-lstat.h.
36219         (Depends-on): Add stdbool.
36220         * modules/openat-tests (Depends-on): Add pathmax.
36221         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36222         (Makefile.am): Run new test.
36223
36224         remove: new module, for mingw and Solaris 9 bugs
36225         * modules/remove: New file.
36226         * lib/remove.c: Likewise.
36227         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36229         * modules/stdio (Makefile.am): Use them.
36230         * lib/stdio.in.h (remove): Declare replacement.
36231         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36232         * doc/posix-functions/remove.texi (remove): Likewise.
36233         * modules/remove-tests: New test.
36234         * tests/test-remove.c: Likewise.
36235
36236         unlink: new module, for Solaris 9 bug
36237         * modules/unlink: New file.
36238         * lib/unlink.c: Likewise.
36239         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36241         * modules/unistd (Makefile.am): Use them.
36242         * lib/unistd.in.h (stat): Declare replacement.
36243         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36244         * doc/posix-functions/unlink.texi (unlink): Likewise.
36245         * modules/unlink-tests: New test.
36246         * tests/test-unlink.c: Likewise.
36247
36248         lstat: fix Solaris 9 bug
36249         * lib/lstat.c (lstat): Also check for trailing slash on
36250         non-symlink, non-directories.  Use stat module to simplify logic.
36251         * doc/posix-functions/lstat.texi (lstat): Document it.
36252         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36253         (configure.ac): Check for symlink.
36254         * tests/test-lstat.c (main): Add more tests.
36255
36256         stat: add as dependency to other modules
36257         * modules/chown (Depends-on): Add stat.
36258         * modules/euidaccess (Depends-on): Likewise.
36259         * modules/fchdir (Depends-on): Likewise.
36260         * modules/isdir (Depends-on): Likewise.
36261         * modules/link (Depends-on): Likewise.
36262         * modules/lstat (Depends-on): Likewise.
36263         * modules/mkdir-p (Depends-on): Likewise.
36264         * modules/modechange (Depends-on): Likewise.
36265         * modules/open (Depends-on): Likewise.
36266         * modules/readlink (Depends-on): Likewise.
36267         * modules/same (Depends-on): Likewise.
36268
36269         stat: fix Solaris 9 bug
36270         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36271         slash.
36272         * lib/stat.c (rpl_stat): Work around it.
36273         * doc/posix-functions/stat.texi (stat): Update documentation.
36274
36275         stat: new module, for mingw bug
36276         * modules/stat: New file.
36277         * lib/stat.c: Likewise.
36278         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36280         * modules/sys_stat (Makefile.am): Use them.
36281         * lib/sys_stat.in.h (stat): Declare replacement.
36282         * lib/openat.c (fstatat): Deal with lstat and stat being function
36283         macros.
36284         * modules/openat (Depends-on): Add inline.
36285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36286         * doc/posix-functions/stat.texi (stat): Likewise.
36287         * modules/stat-tests: New test.
36288         * tests/test-stat.c: Likewise.
36289
36290 2009-09-19  Jim Meyering  <meyering@redhat.com>
36291
36292         syntax-check: detect unnecessary inclusion of canonicalize.h
36293         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36294
36295 2009-09-19  Eric Blake  <ebb9@byu.net>
36296
36297         canonicalize-lgpl: adjust clients to use correct header
36298         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36299         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36300         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36301         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36302         * lib/progreloc.c (includes): Likewise.
36303
36304 2009-09-19  Jim Meyering  <meyering@redhat.com>
36305
36306         test-posixtm.c: correct a comment
36307         * tests/test-posixtm.c: Correct first-line comment.
36308         Spotted by Eric Blake.
36309
36310 2009-09-16  Jim Meyering  <meyering@redhat.com>
36311
36312         posixtm-tests: make T const-correct; add a test case
36313         * tests/test-posixtm.c (T): Declare const.
36314         Add a test for -(2^31+1).
36315         Remove useless can-succeed-only-in-2002 test.
36316
36317         posixtm-tests: adjust the sole failing test
36318         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36319         expected output matches what mktime now produces.  Cross-checked via
36320         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36321
36322         posixtm: move #ifdef'd tests into a new module
36323         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36324         * tests/test-posixtm.c: ... this new file.
36325         * modules/posixtm-tests: New module.
36326
36327 2009-09-19  Eric Blake  <ebb9@byu.net>
36328
36329         openat: simplify use of at-func.c
36330         * lib/at-func.c (includes): Include prerequisites here, to
36331         simplify requirements on client files.
36332         * lib/openat-priv.h: Add double-inclusion guard.
36333         * lib/faccessat.c (includes): Simplify.
36334         * lib/fchmodat.c (includes): Likewise.
36335         * lib/fchownat.c (includes): Likewise.
36336         * lib/mkdirat.c (includes): Likewise.
36337         * lib/mkfifoat.c (includes): Likewise.
36338         * lib/symlinkat.c (includes): Likewise.
36339
36340         openat: allow return of fd 0
36341         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36342         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36343         unistd-safer.
36344         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36345         <fcntl.h>; this module does not leak fds.
36346         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36347         must be allowed to return 0, leaving openat_safer to add the
36348         safety.
36349         (openat_permissive): Avoid writing to just-opened fd 2 if
36350         restoring the current directory fails.
36351         * lib/openat-die.c (openat_restore_fail): Add comment.
36352         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36353         (save_cwd): Guarantee safe fd, but without use of open_safer.
36354         * tests/test-openat.c: New test.
36355         * modules/openat-tests (Files, Makefile.am): Distribute and build
36356         new file.
36357
36358         relocatable-prog-wrapper: fix build
36359         * modules/relocatable-prog-wrapper (Files): Update name of
36360         canonicalize m4 file, broken on 2009-09-17.
36361         Reported by emad hajjar <aleppos@hotmail.com>.
36362
36363 2009-09-19  Bruno Haible  <bruno@clisp.org>
36364
36365         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36366         * lib/safe-alloc.c: Likewise.
36367         Reported by Ian Beckwith <ianb@erislabs.net>.
36368
36369 2009-09-18  Bruno Haible  <bruno@clisp.org>
36370
36371         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36372         Reported by <erobles@sensacd.com.mx>.
36373
36374 2009-09-17  Eric Blake  <ebb9@byu.net>
36375
36376         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36377         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36378         slashes when checking if last component is missing.
36379         * tests/test-canonicalize.c (main): Test this.
36380
36381         canonicalize, canonicalize-lgpl: honor // if distinct from /
36382         * modules/canonicalize (Files): Add double-slash-root.m4.
36383         * modules/canonicalize-lgpl (Files): Likewise.
36384         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36385         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36386         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36387         fallback definition.
36388         (canonicalize_filename_mode): Use it to protect //.
36389         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36390         (__realpath): Likewise.
36391         * tests/test-canonicalize.c (main): Test this.
36392         * tests/test-canonicalize-lgpl.c (main): Likewise.
36393         * modules/canonicalize-tests (Depends-on): Add same-inode.
36394         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36395
36396         canonicalize-lgpl: fix glibc bug with trailing slash
36397         * m4/canonicalize-lgpl.m4: Move contents...
36398         * m4/canonicalize.m4: ...here.
36399         (gl_CANONICALIZE_LGPL): Factor realpath check...
36400         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36401         glibc 2.3.5 bug, fixed 2005-04-27.
36402         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36403         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36404         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36405         * modules/canonicalize-lgpl (Files): Manage file rename.
36406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36407         * modules/stdlib (Makefile.am): Substitute witness.
36408         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36409         is needed.
36410         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36411         replacement is required.
36412         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36413         * doc/glibc-functions/canonicalize_file_name.texi
36414         (canonicalize_file_name): Document this.
36415         * doc/posix-functions/realpath.texi (realpath): Likewise.
36416
36417         canonicalize-lgpl: reject non-directory with trailing slash
36418         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36419         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36420         catches failures in glibc 2.3.5.
36421         * tests/test-canonicalize.c (main): Likewise.
36422
36423         canonicalize-lgpl: use native realpath if it works
36424         * lib/canonicalize-lgpl.c (realpath): Guard with
36425         FUNC_REALPATH_WORKS.
36426         * lib/stdlib.in.h (realpath): Make declaration optional based on
36427         HAVE_REALPATH.
36428         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36429         native realpath works.
36430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36431         * modules/stdlib (Makefile.am): Substitute witness.
36432
36433         canonicalize, canonicalize-lgpl: use <stdlib.h>
36434         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36435         (Include): Mention <stdlib.h>.
36436         (configure.ac): Mention functions we provide.
36437         * modules/canonicalize (configure.ac): Likewise.
36438         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36439         realpath if canonicalize_file_name is missing.
36440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36441         * modules/stdlib (Makefile.am): Substitute witnesses.
36442         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36443         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36444         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36445         * NEWS: Document this.
36446         * doc/glibc-functions/canonicalize_file_name.texi
36447         (canonicalize_file_name): Likewise.
36448         * doc/posix-functions/realpath.texi (realpath): Likewise.
36449         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36450
36451         test-canonicalize: consolidate into single C program
36452         * tests/test-canonicalize.sh: Delete; move setup into...
36453         * tests/test-canonicalize.c (main): ...the program, making it
36454         easier to run in debugger.  Add some tests.
36455         * modules/canonicalize-tests (Files): Remove unused file.
36456         (Depends-on): Add progname.
36457         (configure.ac, Makefile.am): Simplify.
36458
36459         test-canonicalize-lgpl: consolidate into single C program
36460         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36461         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36462         easier to run in debugger.  Add some tests.
36463         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36464         (configure.ac, Makefile.am): Simplify.
36465
36466         canonicalize: avoid resolvepath
36467         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36468         unnecessary checks.
36469         * lib/canonicalize.c (includes): Simplify.
36470         (canonicalize_file_name): Drop resolvepath implementation.
36471         * modules/canonicalize (Depends-on): Drop filenamecat.
36472
36473         canonicalize: don't lose errno
36474         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36475         over calls to free.
36476
36477         canonicalize: simplify errno handling
36478         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36479         assignment.
36480
36481         canonicalize, canonicalize-lgpl: update module dependencies
36482         * modules/canonicalize (Depends-on): Add extensions, lstat,
36483         pathmax, stdlib.
36484         (Files): Drop pathmax.h.
36485         (configure.ac): Adjust macro name.
36486         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36487         lstat, stdlib, sys_stat.
36488         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36489         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36490         extensions.
36491         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36492         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36493         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36494         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36495         declaration, if available.
36496         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36497         we can rely on the readlink module.
36498         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36499         (includes): Use <unistd.h> unconditionally.
36500
36501 2009-09-17  Eric Blake  <ebb9@byu.net>
36502
36503         maint: make Include sections of modules consistent
36504         * modules/alloca: Use only header name; no need to list #include.
36505         * modules/alloca-opt: Likewise.
36506         * modules/arpa_inet: Likewise.
36507         * modules/canon-host: Likewise.
36508         * modules/configmake: Likewise.
36509         * modules/dirent: Likewise.
36510         * modules/eealloc: Likewise.
36511         * modules/environ: Likewise.
36512         * modules/fchdir: Likewise.
36513         * modules/fcntl: Likewise.
36514         * modules/fcntl-h: Likewise.
36515         * modules/gethrxtime: Likewise.
36516         * modules/gettime: Likewise.
36517         * modules/ignore-value: Likewise.
36518         * modules/inet_ntop: Likewise.
36519         * modules/inet_pton: Likewise.
36520         * modules/inttypes: Likewise.
36521         * modules/isnand-nolibm: Likewise.
36522         * modules/isnanf-nolibm: Likewise.
36523         * modules/mbchar: Likewise.
36524         * modules/mbfile: Likewise.
36525         * modules/mbiter: Likewise.
36526         * modules/mbuiter: Likewise.
36527         * modules/netdb: Likewise.
36528         * modules/netinet_in: Likewise.
36529         * modules/nproc: Likewise.
36530         * modules/pagealign_alloc: Likewise.
36531         * modules/poll: Likewise.
36532         * modules/printf-frexp: Likewise.
36533         * modules/pthread: Likewise.
36534         * modules/putenv: Likewise.
36535         * modules/random_r: Likewise.
36536         * modules/relocatable-prog: Likewise.
36537         * modules/search: Likewise.
36538         * modules/select: Likewise.
36539         * modules/selinux-h: Likewise.
36540         * modules/settime: Likewise.
36541         * modules/signal: Likewise.
36542         * modules/size_max: Likewise.
36543         * modules/socklen: Likewise.
36544         * modules/ssize_t: Likewise.
36545         * modules/stdarg: Likewise.
36546         * modules/stdbool: Likewise.
36547         * modules/stddef: Likewise.
36548         * modules/stdint: Likewise.
36549         * modules/stdio: Likewise.
36550         * modules/stdlib: Likewise.
36551         * modules/string: Likewise.
36552         * modules/strings: Likewise.
36553         * modules/sys_file: Likewise.
36554         * modules/sys_ioctl: Likewise.
36555         * modules/sys_select: Likewise.
36556         * modules/sys_socket: Likewise.
36557         * modules/sys_stat: Likewise.
36558         * modules/sys_time: Likewise.
36559         * modules/sys_times: Likewise.
36560         * modules/sys_utsname: Likewise.
36561         * modules/sys_wait: Likewise.
36562         * modules/sysexits: Likewise.
36563         * modules/time: Likewise.
36564         * modules/times: Likewise.
36565         * modules/tmpfile: Likewise.
36566         * modules/trim: Likewise.
36567         * modules/unistd: Likewise.
36568         * modules/wchar: Likewise.
36569         * modules/wctype: Likewise.
36570
36571 2009-09-17  Bruno Haible  <bruno@clisp.org>
36572
36573         Make getdate.y compile on QNX and NetBSD 5 / i386.
36574         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36575         TIME_T_FITS_IN_LONG_INT.
36576         * lib/getdate.y (long_time_t): New type.
36577         (relative_time): Change type of 'seconds' field to long_time_t.
36578         (get_date): Update types of local variables. Check against overflow
36579         during conversion from long_time_t to time_t.
36580         Reported by Matt Kraai <kraai@ftbfs.org>
36581         and Hasso Tepper <hasso@netbsd.org>.
36582
36583 2009-09-17  Bruno Haible  <bruno@clisp.org>
36584
36585         * modules/COPYING: Update copyright years.
36586         * modules/README: Likeiwse.
36587         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36588         Reported by Ian Beckwith <ianb@erislabs.net>.
36589
36590 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36591
36592         * users.txt: Update references for gnuit package.
36593
36594 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36595
36596         * m4/getdelim.m4: Fix typo in copyright line.
36597
36598 2009-09-17  Bruno Haible  <bruno@clisp.org>
36599
36600         * lib/atoll.c: Use the standard header with GPL copyright.
36601         * lib/argz.in.h: Likewise.
36602         * lib/glob.c: Likewise.
36603         * lib/glob-libc.h: Likewise.
36604         * lib/random_r.c: Likewise.
36605         * lib/siglist.h: Likewise.
36606         * lib/strsignal.c: Likewise.
36607         Reported by Ian Beckwith <ianb@erislabs.net>.
36608
36609 2009-09-17  Eric Blake  <ebb9@byu.net>
36610
36611         rmdir: ensure correct dependency order
36612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36613
36614 2009-09-17  Bruno Haible  <bruno@clisp.org>
36615
36616         Disable assertion that fails on NetBSD 5 / i386.
36617         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36618         Reported by Sam Steingold <sds@gnu.org>
36619         and Hasso Tepper <hasso@netbsd.org>.
36620
36621 2009-09-16  Eric Blake  <ebb9@byu.net>
36622
36623         unlinkdir: port to mingw
36624         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36625         on which no one can unlink a directory.
36626
36627         stdlib: sort witness names
36628         * modules/stdlib (Makefile.am): Sort replacements.
36629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36630         * lib/stdlib.in.h: Likewise.
36631
36632         parse-duration-tests: avoid link failure
36633         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36634         LIBINTL.
36635         Reported by Tom G. Christensen.
36636
36637         openat-tests: ensure unlinkat behaves like rmdir
36638         * tests/test-rmdir.c (main): Factor guts...
36639         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36640         * modules/rmdir-tests (Files): Ship new file.
36641         * modules/openat-tests: New test.
36642         * tests/test-unlinkat.c: Likewise.
36643
36644         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36645         * modules/rmdir-errno (Status, Notice): Now obsolete.
36646
36647         rmdir: work around cygwin 1.5.x and mingw bugs
36648         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36649         * lib/rmdir.c (rmdir): Work around it.
36650         * modules/rmdir (Status, Notice): No longer obsolete.
36651         (Files): Add dos.m4.
36652         (Depends-on): Add unistd.
36653         (configure.ac): Set witnesses.
36654         (License): Relax to LGPLv2+.
36655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36656         * modules/unistd (Makefile.am): Substitute witnesses.
36657         * lib/unistd.in.h (rmdir): Declare replacement.
36658         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36659         * modules/rmdir-tests: New tests.
36660         * tests/test-rmdir.c: Likewise.
36661
36662 2009-09-15  Eric Blake  <ebb9@byu.net>
36663
36664         fchdir: improve use of replacement functions
36665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36666         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36668         REPLACE_CLOSEDIR.
36669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36670         * modules/sys_stat (Makefile.am): Substitute correct witness.
36671         * modules/dirent (Makefile.am): Likewise.
36672         * modules/unistd (Makefile.am): Likewise.
36673         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36674         * lib/unistd.in.h (dup): Likewise.
36675         * lib/sys_stat.in.h (fstat): Likewise.
36676
36677         maint: ignore gnulib-tool temp files
36678         * .gitignore: Ignore files created during gnulib-tool --test.
36679
36680 2009-09-13  Jim Meyering  <meyering@redhat.com>
36681
36682         posixtm: don't reject a time that specify "60" as the number of seconds
36683         * lib/posixtm.c (posixtime): The code to reject invalid dates
36684         would also reject a time specified with the .60 suffix.
36685         But POSIX allows that, in order to accommodate leap seconds.
36686         So don't reject it.
36687         (main): Adjust tests accordingly.
36688         * modules/posixtm (Depends-on): Add stpcpy.
36689
36690 2009-09-11  Jim Meyering  <meyering@redhat.com>
36691
36692         announce-gen: include [$release_type] in emitted Subject:
36693         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36694         e.g., [stable] in the emitted Subject: line.
36695
36696 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36697
36698         Remove obsolete macros from several modules.
36699         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36700         obsolete Autoconf macros with their modern counterparts.
36701         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36702         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36704         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36705         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36706         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36708         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36709         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36710         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36711         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36712         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36713         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36714         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36715         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36716         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36717         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36718         * m4/time_r.m4 (gl_TIME_R): Likewise.
36719         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36720         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36721         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36722
36723         Fix copyright header in build-aux scripts.
36724         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36725         recommendation.
36726         * build-aux/ncftpput-ftp: Likewise.
36727         * build-aux/update-copyright: Likewise.
36728
36729 2009-09-09  Eric Blake  <ebb9@byu.net>
36730
36731         test-link: allow Linux choice of errno
36732         * tests/test-link.c (main): Relax test for alternate error.
36733
36734         strndup: fix improper m4 caching
36735         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36736         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36737         (gl_PREREQ_STRNDUP): Delete.
36738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36739         * modules/string (Makefile.am): Substitute it.
36740         * lib/string.in.h (strndup): Modernize prototype.
36741
36742         getcwd: port to mingw
36743         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36744         different from the POSIX assumptions made throughout the getcwd
36745         module; fortunately, the mingw getcwd does not need replacement.
36746         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36747         * modules/getcwd-tests: New test.
36748         * tests/test-getcwd.c: Likewise.
36749
36750         link: fix platform bugs
36751         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36752         * lib/link.c (link): Work around them.  Fix related mingw bug.
36753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36754         * modules/unistd (Makefile.am): Substitute it.
36755         * lib/unistd.in.h (link): Declare replacement.
36756         * doc/posix-functions/link.texi (link): Document this.
36757         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36758
36759         test-link: consolidate into single C program, test more cases
36760         * tests/test-link.sh: Delete.
36761         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36762         at least Cygwin and Solaris.
36763         * modules/link-tests (Files): Remove unused file.
36764         (Depends-on): Add errno, sys_stat.
36765         (Makefile.am): Simplify.
36766
36767 2009-09-08  Bruno Haible  <bruno@clisp.org>
36768
36769         Work around towlower, towupper bug on mingw.
36770         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36771         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36772         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36773         * doc/posix-functions/towupper.texi: Likewise.
36774         Reported by Eric Blake.
36775
36776 2009-09-08  Jim Meyering  <meyering@redhat.com>
36777
36778         build: don't try to run autoheader if we don't use it
36779         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36780         is not used in configure.ac.
36781
36782 2009-09-08  Eric Blake  <ebb9@byu.net>
36783
36784         euidaccess: fix compilation error
36785         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36786
36787         rawmemchr: relax license
36788         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36789         okay.
36790         Reported by Jim Meyering.
36791
36792         mkfifoat: new module
36793         * modules/mkfifoat: New file.
36794         * lib/mkfifoat.c: Likewise.
36795         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36797         * modules/sys_stat (Makefile.am): Use them.
36798         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36799         * MODULES.html.sh (File system functions): Mention module.
36800         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36801         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36802         * modules/mkfifoat-tests: New test.
36803         * tests/test-mkfifoat.c: Likewise.
36804
36805         strchrnul: relax license
36806         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36807         okay.
36808         Reported by Jim Meyering.
36809
36810 2009-09-08  Eric Blake  <ebb9@byu.net>
36811
36812         fstatat: fix compilation on Solaris
36813         * lib/fstatat.c (includes): Add fcntl.h.
36814         Reported by Pádraig Brady.
36815
36816 2009-09-07  Eric Blake  <ebb9@byu.net>
36817
36818         rename: modernize replacement
36819         * modules/rename (Depends-on): Add stdio.
36820         (configure.ac): Declare witness.
36821         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36822         stdio take care of replacement.
36823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36824         * modules/stdio (Makefile.am): Substitute them.
36825         * lib/stdio.in.h (rename): Declare replacement.
36826         * lib/rename.c (includes): Allow cross-compilation to non-windows
36827         machines.
36828         * doc/posix-functions/rename.texi (rename): Improve
36829         documentation.
36830
36831         stdio: sort witness names
36832         * modules/stdio (Makefile.am): Sort replacements.
36833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36834         * lib/stdio.in.h: Likewise.
36835
36836         getcwd: minor cleanups
36837         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36838         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36839
36840         openat: provide more convenience names
36841         * modules/faccessat (configure.ac): Add C witness.
36842         * lib/unistd.in.h (readlinkat): Fix typo.
36843         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36844         convenience wrappers.
36845         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36846         wrappers in syntax checks.
36847
36848 2009-09-06  Eric Blake  <ebb9@byu.net>
36849
36850         doc: fix comments in recent patches
36851         * lib/faccessat.c: Mention correct function.
36852         * lib/fchmodat.c: Likewise.
36853         * lib/fchownat.c: Likewise.
36854         * lib/symlinkat.c: Likewise.
36855         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36856         constants.
36857
36858         faccessat, symlinkat: continue cleanup of previous patch
36859         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36860         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36861         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36863         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36864         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36865         set.
36866
36867 2009-09-06  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36870         (fstatat): Declare if GNULIB_FSTATAT is set.
36871         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36872         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36873         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36874         * modules/fcntl-h (Files): Remove m4/openat.m4.
36875         * modules/sys_stat (Files): Remove m4/openat.m4.
36876         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36877         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36878         * modules/unistd (Files): Remove m4/openat.m4.
36879         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36880         GNULIB_OPENAT.
36881         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36882         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36884         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36885         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36886         gl_OPENAT_DEFAULTS.
36887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36888         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36889         Don't require gl_OPENAT_DEFAULTS.
36890         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36891         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36892         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36893         (gl_OPENAT_DEFAULTS): Remove macro.
36894
36895 2009-09-06  Bruno Haible  <bruno@clisp.org>
36896
36897         * modules/openat (configure.ac): Remove unneeded witness.
36898
36899 2009-09-06  Bruno Haible  <bruno@clisp.org>
36900
36901         Set errno to ENOSYS when a function is entirely unsupported.
36902         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36903         EOPNOTSUPP.
36904         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36905         * modules/chown (Depends-on): Remove errno.
36906
36907 2009-09-06  Bruno Haible  <bruno@clisp.org>
36908
36909         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36910
36911 2009-09-06  Bruno Haible  <bruno@clisp.org>
36912
36913         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36914
36915 2009-09-06  Ben Pfaff  <blp@gnu.org>
36916             Bruno Haible  <bruno@clisp.org>
36917
36918         Work around a glibc bug in strtok_r.
36919         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36920         Undefine if UNDEFINE_STRTOK_R is set.
36921         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36923         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36925         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36926         UNDEFINE_STRTOK_R.
36927         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36928
36929 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36930
36931         exclude: minor fix
36932         * lib/exclude.c: Include wctype.h
36933
36934 2009-09-06  Akim Demaille  <demaille@gostai.com>
36935
36936         bootstrap: improve error message
36937         * build-aux/bootstrap (find_tool): Upon failure, report the list
36938         of candidates.
36939         Honor the initial value of the envvar.
36940
36941 2009-09-05  Eric Blake  <ebb9@byu.net>
36942
36943         symlinkat: new module
36944         * modules/symlinkat: New file.
36945         * lib/symlinkat.c: Likewise.
36946         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36948         * modules/unistd (Makefile.am): Use them.
36949         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36950         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36951         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36952         * MODULES.html.sh (File system functions): Mention module.
36953         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36954         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36955         * modules/symlinkat-tests: New test.
36956         * tests/test-symlinkat.c: Likewise.
36957
36958         test-openat-safer: add more checks
36959         * tests/test-openat-safer.c (main): Check more code paths.
36960
36961 2009-09-05  Jim Meyering  <meyering@redhat.com>
36962
36963         syntax-check: detect unnecessary inclusion of openat.h
36964         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36965
36966 2009-09-05  Bruno Haible  <bruno@clisp.org>
36967
36968         Support towlower, towupper.
36969         * doc/posix-functions/towlower.texi: Mention module wctype.
36970         * doc/posix-functions/towupper.texi: Likewise.
36971         * lib/wctype.in.h (towlower, towupper): New functions.
36972         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36973         (ASSERT): New macro.
36974         (e): New variable.
36975         (main): Test also towlower, towupper. Test WEOF argument.
36976         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36977
36978 2009-09-05  Bruno Haible  <bruno@clisp.org>
36979
36980         Fix conversion behaviour when the input is invalid.
36981         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36982         mark occurring in first pass of indirect conversion.
36983         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36984         input.
36985         Found by clang's static analyzer.
36986
36987 2009-09-05  Bruno Haible  <bruno@clisp.org>
36988
36989         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36990         where direct conversion is possible.
36991
36992 2009-09-04  Eric Blake  <ebb9@byu.net>
36993
36994         openat: fail with ENOENT on empty name
36995         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36996         buffer.
36997
36998         link-follow: fix logic bug in prior patch
36999         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37000         reversed sense of yes and no in prior patch.  Avoid confusing
37001         compilation failure with desired semantics.
37002
37003         link-follow: accomodate mingw and cross-compilation
37004         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37005         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37006         cross-compilation results to -1, to make linkat easier to
37007         implement when cross-compiling.  Trivially support mingw.
37008         * modules/link-follow (configure.ac): Call new name.
37009         * NEWS: Mention this.
37010
37011 2009-09-03  Eric Blake  <ebb9@byu.net>
37012
37013         faccessat: compile replacement
37014         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37015         needed.
37016
37017         fts: fix compilation error
37018         * lib/fts.c (includes): Re-add "openat.h", for
37019         openat_needs_fchdir.
37020
37021         faccessat: new module
37022         * modules/faccessat: New file.
37023         * lib/faccessat.c: Likewise.
37024         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37026         * modules/unistd (Makefile.am): Use it.
37027         * lib/unistd.in.h (faccessat): Declare it.
37028         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37029         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37030         * MODULES.html.sh (File system functions): Mention it.
37031         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37032         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37033
37034         euidaccess: prefer POSIX over non-standard implementation
37035         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37036         * lib/euidaccess.c (euidaccess): Use it if available.
37037
37038         openat: make template easier to use
37039         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37040         AT_FUNC_F2 to be undefined.
37041         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37042         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37043         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37044         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37045         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37046         Likewise.
37047         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37048         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37049         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37050         Likewise.
37051
37052         openat: declare in POSIX headers
37053         * NEWS: Mention this.
37054         * modules/openat (configure.ac): Declare witnesses.
37055         (Depends-on): Add fcntl-h, sys_stat, unistd.
37056         (Include): Mention correct headers.
37057         * modules/fcntl-h (Depends-on): Add link-warning.
37058         (Files): Add openat.m4.
37059         (Makefile.am): Substitute witnesses.
37060         * modules/sys_stat (Files, Makefile.am): Likewise.
37061         * modules/unistd (Files, Makefile.am): Likewise.
37062         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37063         (gl_OPENAT_DEFAULTS): New macro.
37064         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37067         (SYS_STAT_H): Remove unused variable.
37068         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37069         * lib/fcntl--.h (includes): Remove unneeded header.
37070         * lib/openat-safer.c (includes): Likewise.
37071         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37072         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37073         appropriate headers.
37074         (__OPENAT_PREFIX): Delete.
37075         * lib/fcntl.in.h (openat): Provide declaration.
37076         (AT_FDCWD): Fix Solaris bug.
37077         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37078         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37079         * lib/fchmodat.c (includes):  Adjust to find declaration.
37080         * lib/fchownat.c (includes): Likewise.
37081         * lib/mkdirat.c (includes): Likewise.
37082         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37083         still visible.
37084
37085 2009-09-02  Eric Blake  <ebb9@byu.net>
37086
37087         errno: use consistently
37088         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37089         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37090         * lib/canonicalize.c (ELOOP): Likewise.
37091         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37092         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37093         * lib/lchown.c (EOPNOTSUPP): Likewise.
37094         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37095         * lib/savewd.c (ESTALE): Likewise.
37096         * lib/settime.c (ENOSYS): Likewise.
37097         * lib/utimens.c (ENOSYS): Likewise.
37098         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37099         * lib/chdir-safer.c (ELOOP): Likewise.
37100         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37101         * modules/c-stack (Depends-on): Add errno.
37102         * modules/canonicalize (Depends-on): Likewise.
37103         * modules/chdir-safer (Depends-on): Likewise.
37104         * modules/fdopendir (Depends-on): Likewise.
37105         * modules/inet_ntop (Depends-on): Likewise.
37106         * modules/inet_pton (Depends-on): Likewise.
37107         * modules/lchown (Depends-on): Likewise.
37108         * modules/openat (Depends-on): Likewise.
37109         * modules/savewd (Depends-on): Likewise.
37110         * modules/settime (Depends-on): Likewise.
37111         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37112
37113         fts: avoid leaking fds
37114         * modules/fts (Depends-on): Add cloexec.
37115         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37116         flag.
37117
37118         fts: make directory fds more robust
37119         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37120         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37121
37122         backupfile, chdir-long, fts, savedir: make safer
37123         * lib/backupfile.c (includes): Use "dirent--.h", since
37124         numbered_backup can write to stderr during readdir.
37125         * lib/savedir.c (includes): Likewise.
37126         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37127         emulation can write to stderr on failure.
37128         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37129         * lib/getcwd.c: Document why opendir_safer is unused.
37130         * lib/glob.c: Likewise.
37131         * lib/scandir.c: Likewise.
37132         * lib/openat-proc.c: Likewise, for open_safer.
37133         * modules/backupfile (Depends-on): Add dirent-safer.
37134         * modules/savedir (Depends-on): Likewise.
37135         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37136         * modules/chdir-long (Depends-on): Add openat-safer.
37137
37138         openat-safer: new module
37139         * modules/openat-safer: New file.
37140         * lib/openat-safer.c: Likewise.
37141         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37142         * lib/fcntl-safer.h (openat_safer): Declare.
37143         * lib/fcntl--.h (openat): Override.
37144         * MODULES.html.sh (File descriptor based I/O): Mention it.
37145         * lib/openat.h: Add double-inclusion guards.
37146         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37147         "fcntl--.h", so we can implement openat.
37148         * modules/openat-safer-tests: New test.
37149         * tests/test-openat-safer.c: New file.
37150
37151         dirent-safer: new module
37152         * modules/dirent-safer: New file.
37153         * lib/dirent--.h: Likewise.
37154         * lib/dirent-safer.h: Likewise.
37155         * lib/opendir-safer.c: Likewise.
37156         * m4/dirent-safer.m4: Likewise.
37157         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37158         * modules/dirent-safer-tests: New test.
37159         * tests/test-dirent-safer.c: New file.
37160         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37161
37162         fdopendir: optimize on mingw
37163         * lib/unistd.in.h (_gl_directory_name): New prototype.
37164         * lib/fchdir.c (_gl_directory_name): Implement it.
37165         (fchdir): Use it to simplify implementation.
37166         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37167         fchdir, when available, to avoid calling [f]chdir().
37168
37169         fdopendir: split into its own module
37170         * lib/openat.c (fdopendir): Move...
37171         * lib/fdopendir.c: ...into new file.
37172         * modules/fdopendir: New module.
37173         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37174         * modules/openat (Depends-on): Add fdopendir.
37175         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37176         fdopendir here.
37177         * modules/savedir (Depends-on): Only need fdopendir, not full
37178         openat.
37179         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37180         * lib/openat.h (fdopendir): Drop prototype.
37181         * lib/dirent.in.h (fdopendir): Provide prototype.
37182         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37183         * modules/dirent (Makefile.am): Substitute them.
37184         * MODULES.html.sh (File system functions): Mention it.
37185         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37186         * modules/fdopendir-tests: New file.
37187         * tests/test-fdopendir.c: Likewise.
37188
37189         fchdir: use more consistent macro convention
37190         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37191         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37192         REPLACE_FCHDIR, rather than relying on config.h macros.
37193         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37194         inside a single make-time REPLACE_FCHDIR block, rather than using
37195         the config.h FCHDIR_REPLACEMENT.
37196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37197         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37198         Manage fstat replacement.
37199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37200         REPLACE_FCHDIR.
37201         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37202         (Makefile.am): Substitute REPLACE_FCHDIR.
37203         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37204         FCHDIR_REPLACEMENT.
37205         * lib/dup-safer.c (dup_safer): Likewise.
37206         * lib/dup2.c (rpl_dup2): Likewise.
37207         * lib/dup3.c (rpl_dup3): Likewise.
37208         * lib/open.c (rpl_open): Likewise.
37209
37210         fchdir: simplify error handling, and support dup3
37211         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37212         stdbool, malloc-posix, realloc-posix.
37213         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37214         (ensure_dirs_slot): Return false on allocation failure.
37215         (rpl_dup2): Delete.
37216         (_gl_register_dup): New function.
37217         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37218         (_gl_register_fd): Close fd on allocation failure.
37219         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37220         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37221         prototype.
37222         (rpl_dup2_fchdir): Delete prototype.
37223         * lib/open.c (open): Update caller.
37224         * lib/dup2.c (dup2): Track fchdir metadata.
37225         * lib/dup3.c (dup3): Likewise.
37226         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37228
37229 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37230
37231         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37232         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37233         don't pass arguments to AC_OUTPUT.
37234
37235 2009-09-02  Bruno Haible  <bruno@clisp.org>
37236
37237         * modules/mkdtemp (License): Relicense under LGPLv2+.
37238         Reported by Paolo Bonzini.
37239
37240 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37241
37242         Replace uses of obsolete autoconf macros in Jim's modules.
37243         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37244         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37245         can evoke a warning from autoconf when run with -Wobsolete
37246         enabled.  They were declared obsolete for good reasons (see
37247         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37248         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37249         should not continue using the deprecated macros.
37250         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37251         obsolete Autoconf macros with modern counterparts.
37252         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37253         * m4/dos.m4 (gl_AC_DOS): Likewise.
37254         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37255         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37256         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37257         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37258         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37260         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37261         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37262         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37263         Likewise.
37264         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37265         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37266         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37267         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37268         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37269         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37270
37271 2009-09-01  Eric Blake  <ebb9@byu.net>
37272
37273         fchdir: fix off-by-one bug in previous patch
37274         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37275         (_gl_unregister_fd): Delete useless if.
37276
37277 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37278
37279         maint.mk: sort the list of syntax-check rules
37280         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37281         easier to get a sense of progress when the rules are run sequentially
37282         and take a long time.
37283
37284 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37285
37286         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37287         * modules/netinet_in: Likewise.
37288         * modules/sys_file: Likewise.
37289         * modules/sys_ioctl: Likewise.
37290         * modules/sys_select: Likewise.
37291         * modules/sys_socket: Likewise.
37292         * modules/sys_stat: Likewise.
37293         * modules/sys_time: Likewise.
37294         * modules/sys_times: Likewise.
37295         * modules/sys_utsname: Likewise.
37296         * modules/sys_wait: Likewise.
37297
37298 2009-09-01  Jim Meyering  <meyering@redhat.com>
37299
37300         fts: help ensure that return values are not ignored
37301         * lib/fts_.h (__GNUC_PREREQ): Define.
37302         (__attribute_warn_unused_result__): Define.
37303         (fts_children, fts_close, fts_open, fts_read): Declare with
37304         __attribute_warn_unused_result__.
37305
37306         fts: fts_close now fails also when closing a dir file descriptor fails
37307         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37308         and propagate to caller, along with errno.
37309
37310         announce-gen: correct formatting in --help output
37311         * build-aux/announce-gen (usage): Move the one-line description in
37312         --help output "up", to where it belongs, just after Usage:.
37313
37314 2009-08-31  Eric Blake  <ebb9@byu.net>
37315
37316         fchdir: port to mingw
37317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37318         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37319         opened, then use a substitute.
37320         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37321         replacement.
37322         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37323         (_gl_register_fd): No need to check stat if open already filters
37324         all directories.
37325         (fchdir): Fix error condition to match POSIX.
37326         * modules/fchdir (Depends-on): Add sys_stat.
37327         * doc/posix-functions/open.texi (open): Document the limitation.
37328         * modules/fchdir-tests: New file.
37329         * tests/test-fchdir.c: Likewise.
37330
37331         canonicalize: allow cross-testing from cygwin to mingw
37332         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37333         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37334         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37335         Likewise.
37336         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37337         target does not support symlinks.
37338         * tests/test-canonicalize-lgpl.sh: Likewise.
37339
37340         chown: avoid compilation warning on mingw
37341         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37342         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37343         mingw.
37344         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37345         * modules/chown (Depends-on): Add errno.
37346
37347 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37348
37349         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37350         command.
37351
37352 2009-08-31  Jim Meyering  <meyering@redhat.com>
37353
37354         canonicalize: remove useless initialization
37355         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37356         initialization of local, "end".
37357
37358 2009-08-30  Bruno Haible  <bruno@clisp.org>
37359
37360         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37361         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37362         ENOSYS.
37363
37364 2009-08-30  Bruno Haible  <bruno@clisp.org>
37365
37366         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37367         /usr/xpg4/bin/tr when it exists.
37368         * tests/test-pipe-filter-gi1.sh: Likewise.
37369
37370 2009-08-30  Bruno Haible  <bruno@clisp.org>
37371
37372         Work around deficient /usr/bin/id program on Solaris.
37373         * tests/test-file-has-acl.sh (ID): New variable.
37374         * tests/test-set-mode-acl.sh (ID): Likewise.
37375         * tests/test-copy-acl.sh (ID): Likewise.
37376         * tests/test-copy-file.sh (ID): Likewise.
37377
37378 2009-08-30  Bruno Haible  <bruno@clisp.org>
37379
37380         New module 'xstriconveh'.
37381         * lib/xstriconveh.h: New file.
37382         * lib/xstriconveh.c: New file.
37383         * modules/xstriconveh: New file.
37384
37385 2009-08-30  Bruno Haible  <bruno@clisp.org>
37386
37387         Make it easier to use mem_cd_iconveh.
37388         * lib/striconveh.h (iconveh_t): New type.
37389         (iconveh_open, iconveh_close): New declarations.
37390         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37391         with a single 'const iconveh_t *' argument.
37392         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37393         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37394         with a single 'const iconveh_t *' argument.
37395         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37396         * tests/test-striconveh.c (main): Update.
37397         * NEWS: Mention the change.
37398
37399 2009-08-30  Bruno Haible  <bruno@clisp.org>
37400
37401         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37402         problem.
37403
37404 2009-08-30  Bruno Haible  <bruno@clisp.org>
37405
37406         Work around iconv_open problem on Solaris.
37407         * lib/iconv_open-solaris.gperf: New file.
37408         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37409         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37410         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37411         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37412         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37413         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37414
37415 2009-08-29  Jim Meyering  <meyering@redhat.com>
37416
37417         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37418         * top/maint.mk (cvs-check): Remove target; it was just an alias
37419         to the better-named vc-diff-check.
37420         (maintainer-distcheck): Remove rule.  It was used only from
37421         the (alpha/beta/major) target, and all of its commands but one
37422         were coreutils-specific.
37423         (vc-dist): Remove rule.
37424         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37425         Run vc-diff-check, not vc-dist.
37426         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37427
37428 2009-08-27  Bruno Haible  <bruno@clisp.org>
37429
37430         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37431         of 0.
37432
37433 2009-08-27  Bruno Haible  <bruno@clisp.org>
37434
37435         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37436         compilers.
37437         * doc/func.texi: Document the SunPRO C bug.
37438
37439 2009-08-27  Bruno Haible  <bruno@clisp.org>
37440
37441         Fix link error on Solaris.
37442         * tests/test-parse-duration.c (xstrdup): Remove function.
37443
37444 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37445
37446         ignore-value: handle pointer types, too
37447         * lib/ignore-value.h (__attribute__): Remove definition.
37448         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37449         of a more concise and more-often effective "(void) i" statement.
37450         (ignore_ptr): New function to suppress warnings from functions that
37451         return pointers, and to make it explicit that one function doesn't
37452         handle all cases.
37453
37454 2009-08-25  Bruno Haible  <bruno@clisp.org>
37455
37456         dup2: work around a Linux bug.
37457         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37458         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37459         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37460         Reported by Simon Josefsson.
37461
37462 2009-08-25  Jim Meyering  <meyering@redhat.com>
37463
37464         libguestfs uses gnulib
37465         * users.txt: Add libguestfs.
37466
37467 2009-08-24  Eric Blake  <ebb9@byu.net>
37468
37469         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37470         * lib/pipe2.c (includes): Add binary-io.h.
37471         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37472
37473 2009-08-24  Bruno Haible  <bruno@clisp.org>
37474
37475         Tolerate declared but missing accept4 syscall.
37476         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37477         available.
37478         * lib/sys_socket.in.h (accept4): If the function is already present,
37479         override it.
37480         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37481         * modules/accept4 (Makefile.am): Compile accept4.c always.
37482         Reported by Paolo Bonzini and Eric Blake.
37483
37484 2009-08-23  Bruno Haible  <bruno@clisp.org>
37485
37486         New module 'accept4'.
37487         * lib/sys_socket.in.h (accept4): New declaration.
37488         * lib/accept4.c: New file.
37489         * m4/accept4.m4: New file.
37490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37491         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37492         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37493         HAVE_ACCEPT4.
37494         * modules/accept4: New file.
37495         * doc/glibc-functions/accept4.texi: Mention the new module.
37496
37497 2009-08-24  Jim Meyering  <meyering@redhat.com>
37498
37499         progname: also set global program_invocation_name, when possible
37500         Before this change, a libtool-enabled program that calls glibc's
37501         error function would report the program name as
37502         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37503         * modules/progname (configure.ac): Check for a declaration of
37504         program_invocation_name.
37505         * lib/progname.c:  Include <errno.h>.
37506         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37507         Set program_invocation_name.
37508
37509 2009-08-23  Bruno Haible  <bruno@clisp.org>
37510
37511         * lib/dup3.c: Include <string.h>.
37512
37513 2009-08-23  Bruno Haible  <bruno@clisp.org>
37514
37515         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37516         * lib/pipe2.c (pipe2): Likewise.
37517         Suggested by Eric Blake.
37518
37519 2009-08-23  Bruno Haible  <bruno@clisp.org>
37520
37521         Tolerate declared but missing dup3 syscall.
37522         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37523         * lib/unistd.in.h (dup3): If the function is already present,
37524         override it.
37525         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37526         * modules/dup3 (Makefile.am): Compile dup3.c always.
37527         Reported by Paolo Bonzini.
37528
37529 2009-08-23  Bruno Haible  <bruno@clisp.org>
37530
37531         Tolerate declared but missing pipe2 syscall.
37532         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37533         available.
37534         * lib/unistd.in.h (pipe2): If the function is already present,
37535         override it.
37536         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37537         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37538         Reported by Paolo Bonzini.
37539
37540 2009-08-23  Bruno Haible  <bruno@clisp.org>
37541
37542         * lib/pipe2.c (pipe2): Move #ifs inside function.
37543
37544 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37545
37546         quotearg: document limitations of quote_these_too
37547         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37548         those limitations are created.
37549         * lib/quotearg.h (set_char_quoting): Document that digits and
37550         letters that are special after backslash are not permitted.
37551         (quotearg_char): Cross-reference set_char_quoting documentation.
37552
37553 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37554
37555         quotearg: implement custom_quoting_style
37556         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37557         right_quote fields.
37558         (set_custom_quoting): New public function.
37559         (quotearg_buffer_restyled): Add left_quote and right_quote
37560         arguments, handle them very much like locale quoting, and update
37561         all uses.
37562         (quotearg_n_custom): New public function.
37563         (quotearg_n_custom_mem): New public function.
37564         (quotearg_custom): New public function.
37565         (quotearg_custom_mem): New public function.
37566         * lib/quotearg.h: Prototype and document new public functions.
37567         (enum quoting_style): For escape_quoting_style and
37568         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37569         ignored even though they're otherwise like c_quoting_style.
37570         Add custom_quoting_style member and document with comparison to
37571         clocale_quoting_style.
37572         * tests/test-quotearg.c (custom_quotes): New array.
37573         (custom_results): New array.
37574         (main): Extend to test custom quoting.
37575
37576 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37577
37578         quotearg: fix right quote escaping when it's in quote_these_too
37579         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37580         quote, be sure to prepend only one backslash.
37581         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37582         (main): Test it.
37583
37584 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37585
37586         quotearg-tests: test escaping of embedded locale quotes
37587         * tests/test-quotearg.c (struct result_strings): Add member for
37588         new input.
37589         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37590         (inputs): Add new input.
37591         (results_g): Add expected results.
37592         (flag_results): Likewise.
37593         (locale_results): Likewise.
37594         (compare_strings): Check those.
37595
37596 2009-08-23  Bruno Haible  <bruno@clisp.org>
37597
37598         Tests for module 'dup3'.
37599         * modules/dup3-tests: New file.
37600         * tests/test-dup3.c: New file.
37601
37602         New module 'dup3'.
37603         * lib/unistd.in.h (dup3): New declaration.
37604         * lib/dup3.c: New file.
37605         * m4/dup3.m4: New file.
37606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37607         HAVE_DUP3.
37608         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37609         * modules/dup3: New file.
37610         * doc/glibc-functions/dup3.texi: Mention the new module.
37611
37612 2009-08-23  Bruno Haible  <bruno@clisp.org>
37613
37614         Tweak the dup2 test.
37615         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37616         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37617         the test file is still empty. Fix argument order of lseek.
37618
37619 2009-08-23  Bruno Haible  <bruno@clisp.org>
37620
37621         Avoid test link errors when the modules getopt-gnu, gettext are used.
37622         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37624
37625 2009-08-23  Bruno Haible  <bruno@clisp.org>
37626
37627         Fix getdtablesize() on mingw.
37628         * lib/getdtablesize.c (getdtablesize): Implement differently.
37629         * lib/unistd.in.h (getdtablesize): Improve comment.
37630
37631 2009-08-23  Bruno Haible  <bruno@clisp.org>
37632
37633         New module 'mkostemp'.
37634         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37635         * lib/stdlib.in.h (mksotemp): New declaration.
37636         * lib/mkostemp.c: New file, from glibc with modifications.
37637         * lib/tempname.h (GT_FILE): Remove outdated comment.
37638         (gen_tempname): Add flags argument.
37639         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37640         (__GT_FILE): Map to 1.
37641         (small_open, large_open): Remove macros.
37642         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37643         * lib/mkstemp.c (mkstemp): Update.
37644         * lib/mkdtemp.c (mkdtemp): Likewise.
37645         * m4/mkostemp.m4: New file.
37646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37647         HAVE_MKOSTEMP.
37648         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37649         HAVE_MKOSTEMP.
37650         * modules/mkostemp: New file, based on modules/mkstemp.
37651         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37652         * NEWS: Mention the change.
37653
37654 2009-08-23  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37657         Reported by Eric Blake.
37658
37659 2009-08-23  Bruno Haible  <bruno@clisp.org>
37660
37661         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37662         Reported by Eric Blake.
37663
37664 2009-08-23  Bruno Haible  <bruno@clisp.org>
37665
37666         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37667         * modules/pipe2 (Depends-on): Likewise.
37668
37669 2009-08-23  Eric Blake  <ebb9@byu.net>
37670
37671         fcntl-h: add O_TTY_INIT support
37672         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37673         * tests/test-fcntl-h.c (o): Test it.
37674         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37675
37676         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37677         * modules/fcntl: Move <fcntl.h> header replacement...
37678         * modules/fcntl-h: ...to new name, so as not to collide with
37679         like-named function.
37680         * tests/test-fcntl.c: Rename...
37681         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37682         * modules/fcntl-tests: Rename...
37683         * modules/fcntl-h-tests: ...to this.  Update test file name.
37684         * modules/chdir-long (Depends-on): Update clients.
37685         * modules/chdir-safer (Depends-on): Likewise.
37686         * modules/fcntl-safer (Depends-on): Likewise.
37687         * modules/fts (Depends-on): Likewise.
37688         * modules/mkancesdirs (Depends-on): Likewise.
37689         * modules/mkdir-p (Depends-on): Likewise.
37690         * modules/open (Depends-on): Likewise.
37691         * modules/savewd (Depends-on): Likewise.
37692         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37693         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37694
37695 2009-08-22  Bruno Haible  <bruno@clisp.org>
37696
37697         * modules/binary-io (License): Relicense under LGPL.
37698         * modules/pipe2 (License): Likewise.
37699
37700 2009-08-22  Bruno Haible  <bruno@clisp.org>
37701
37702         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37703         return value.
37704         * lib/pipe-filter-gi.c (filter_init): Likewise.
37705         Reported by Eric Blake.
37706
37707 2009-08-22  Bruno Haible  <bruno@clisp.org>
37708
37709         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37710         * modules/pipe (Depends-on): Add pipe2.
37711
37712 2009-08-22  Bruno Haible  <bruno@clisp.org>
37713
37714         Tests for module 'pipe2'.
37715         * modules/pipe2-tests: New file.
37716         * tests/test-pipe2.c: New file.
37717
37718         New module 'pipe2'.
37719         * lib/unistd.in.h (pipe2): New declaration.
37720         * lib/pipe2.c: New file.
37721         * m4/pipe2.m4: New file.
37722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37723         HAVE_PIPE2.
37724         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37725         * modules/pipe2: New file.
37726         * doc/glibc-functions/pipe2.texi: Mention the new module.
37727
37728 2009-08-22  Bruno Haible  <bruno@clisp.org>
37729
37730         Reference some new glibc functions.
37731         * doc/glibc-functions/accept4.texi: New file.
37732         * doc/glibc-functions/dup3.texi: New file.
37733         * doc/glibc-functions/mkostemp.texi: New file.
37734         * doc/glibc-functions/pipe2.texi: New file.
37735         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37736         (Glibc sys/socket.h): Refer to accept4.
37737         (Glibc unistd.h): Refer to dup3, pipe2.
37738         Reported by Eric Blake.
37739
37740 2009-08-22  Jim Meyering  <meyering@redhat.com>
37741             Bruno Haible  <bruno@clisp.org>
37742
37743         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37744         This makes it so packages using automake-1.11's silent-rules option
37745         can print e.g., a single "GEN    configmake.h" line, rather than
37746         the 30+ statements that perform the job.  If you want to see the
37747         actual commands, you can still run "make V=1".
37748         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37749         so that make output is abbreviated when those variables are defined
37750         appropriately.
37751         * modules/argz: Likewise.
37752         * modules/arpa_inet: Likewise.
37753         * modules/byteswap: Likewise.
37754         * modules/configmake: Likewise.
37755         * modules/dirent: Likewise.
37756         * modules/errno: Likewise.
37757         * modules/fcntl: Likewise.
37758         * modules/float: Likewise.
37759         * modules/fnmatch: Likewise.
37760         * modules/getopt-posix: Likewise.
37761         * modules/glob: Likewise.
37762         * modules/iconv_open: Likewise.
37763         * modules/inttypes: Likewise.
37764         * modules/localcharset: Likewise.
37765         * modules/locale: Likewise.
37766         * modules/math: Likewise.
37767         * modules/netdb: Likewise.
37768         * modules/netinet_in: Likewise.
37769         * modules/poll: Likewise.
37770         * modules/posix_spawnp-tests: Likewise.
37771         * modules/sched: Likewise.
37772         * modules/search: Likewise.
37773         * modules/selinux-h: Likewise.
37774         * modules/signal: Likewise.
37775         * modules/spawn: Likewise.
37776         * modules/stdarg: Likewise.
37777         * modules/stdbool: Likewise.
37778         * modules/stddef: Likewise.
37779         * modules/stdint: Likewise.
37780         * modules/stdio: Likewise.
37781         * modules/stdlib: Likewise.
37782         * modules/string: Likewise.
37783         * modules/strings: Likewise.
37784         * modules/sys_file: Likewise.
37785         * modules/sys_ioctl: Likewise.
37786         * modules/sys_select: Likewise.
37787         * modules/sys_socket: Likewise.
37788         * modules/sys_stat: Likewise.
37789         * modules/sys_time: Likewise.
37790         * modules/sys_times: Likewise.
37791         * modules/sys_utsname: Likewise.
37792         * modules/sys_wait: Likewise.
37793         * modules/sysexits: Likewise.
37794         * modules/time: Likewise.
37795         * modules/unistd: Likewise.
37796         * modules/wchar: Likewise.
37797         * modules/wctype: Likewise.
37798
37799 2009-08-22  Jim Meyering  <meyering@redhat.com>
37800
37801         announce-gen: detect write failure
37802         * build-aux/announce-gen: Add Coda at end.
37803         Remove equivalent-but-more-verbose block at top.
37804
37805 2009-08-19  Akim Demaille  <demaille@gostai.com>
37806
37807         bootstrap: --help to stdout.
37808         * bootstrap (usage): Don't send --help to stderr.
37809         Use a here doc instead of a long string.
37810
37811 2009-08-21  Eric Blake  <ebb9@byu.net>
37812
37813         test-popen-safer: split from test-popen
37814         * tests/test-popen.c (main): Move...
37815         * tests/test-popen.h: ...into new file.
37816         * tests/test-popen-safer2.c: New file.
37817         * modules/popen-tests (Files): Add test-popen.h.
37818         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37819         Suggested by Bruno Haible.
37820
37821         test-fcntl-safer: split from test-open
37822         * tests/test-open.c (main): Move...
37823         * tests/test-open.h: ...into new file.
37824         * tests/test-fcntl-safer.c: New file.
37825         * modules/open-tests (Files): Add test-open.h.
37826         * modules/fcntl-safer-tests: New file.
37827         Suggested by Bruno Haible.
37828
37829         test-fopen-safer: split from test-fopen
37830         * tests/test-fopen.c (main): Move...
37831         * tests/test-fopen.h: ...into new file.
37832         * tests/test-fopen-safer.c: New file.
37833         * modules/fopen-tests (Files): Add test-fopen.h.
37834         * modules/fopen-safer-tests: New file.
37835         Suggested by Bruno Haible.
37836
37837 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37838
37839         popen-safer: test O_CLOEXEC at run-time.
37840         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37841
37842 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37843
37844         fcntl: move more flags to the header
37845         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37846         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37847         * lib/fcntl.in.h: Do both things here.
37848
37849 2009-08-21  Jim Meyering  <meyering@redhat.com>
37850
37851         consistently remove $@-t before redirecting to it
37852         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37853         * modules/alloca-opt: Likewise.
37854         * modules/byteswap: Likewise.
37855         * modules/fnmatch: Likewise.
37856         * modules/getopt-posix: Likewise.
37857         * modules/glob: Likewise.
37858         * modules/poll: Likewise.
37859         * modules/posix_spawnp-tests: Likewise.
37860         * modules/sys_socket: Likewise.
37861         * modules/sysexits: Likewise.
37862
37863 2009-08-21  Eric Blake  <ebb9@byu.net>
37864
37865         popen: simplify access to original popen
37866         * lib/popen.c (rpl_popen): No need to worry about popen being a
37867         macro.
37868         Reported by Bruno Haible.
37869
37870 2009-08-20  Eric Blake  <ebb9@byu.net>
37871
37872         build: avoid some compiler warnings
37873         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37874         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37875         type.
37876         (new_exclude_segment, excluded_file_pattern_p)
37877         (excluded_file_name_p): Reduce scope.
37878         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37879         old-style declaration.
37880
37881 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37882
37883         * tests/test-exclude1.sh: Handle Windows EOL.
37884         * tests/test-exclude2.sh: Likewise.
37885         * tests/test-exclude3.sh: Likewise.
37886         * tests/test-exclude4.sh: Likewise.
37887         * tests/test-exclude5.sh: Likewise.
37888         * tests/test-exclude6.sh: Likewise.
37889         * tests/test-exclude7.sh: Likewise.
37890
37891 2009-08-19  Akim Demaille  <demaille@gostai.com>
37892
37893         bootstrap: find sha1sum when named gsha1sum.
37894         * bootstrap (find_tool): New.
37895         ($SHA1SUM): New.
37896         Use it.
37897
37898 2009-08-20  Jim Meyering  <meyering@redhat.com>
37899
37900         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37901         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37902         expression that converts "." in a file name to "\." in the resulting
37903         regexp.  Start with a dummy statement, so that prior shell variable
37904         definitions are expanded portably.  Reported by Simon Josefsson.
37905
37906 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37907
37908         Fix polling for writeability of a screen buffer.
37909         * lib/poll.c: Distinguish input and screen buffers for the
37910         Win32 implementation.
37911         * lib/select.c: Likewise.
37912
37913 2009-08-19  Eric Blake  <ebb9@byu.net>
37914
37915         popen-safer: prevent popen from clobbering std descriptors
37916         * modules/popen-safer: New file.
37917         * lib/popen-safer.c: Likewise.
37918         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37919         * lib/stdio--.h (popen): Provide override.
37920         * lib/stdio-safer.h (popen_safer): Provide declaration.
37921         * tests/test-popen.c (includes): Partially test this.
37922         * modules/popen-safer-tests: New file, for more tests.
37923         * tests/test-popen-safer.c: Likewise.
37924         * MODULES.html.sh (file stream based Input/Output): Mention it.
37925
37926         tests: test some of the *-safer modules
37927         * modules/fopen-safer (Depends-on): Add fopen.
37928         * modules/fcntl-safer (Depends-on): Add fcntl.
37929         * modules/stdlib-safer (Depends-on): Add stdlib.
37930         (configure.ac): Set indicator.
37931         * modules/unistd-safer (configure.ac): Likewise.
37932         * modules/tmpfile-safer (configure.ac): Likewise.
37933         (Depends-on): Add tmpfile.
37934         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37935         active.
37936         * tests/test-fopen.c (includes): Test safer versions when they are
37937         in use.
37938         * tests/test-open.c (includes): Likewise.
37939
37940         popen: fix cygwin 1.5 bug when stdin closed
37941         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37942         * modules/popen: New file.
37943         * modules/popen-tests: Likewise.
37944         * tests/test-popen.c: Likewise.
37945         * m4/popen.m4: Likewise.
37946         * lib/popen.c: Likewise.
37947         * lib/stdio.in.h (popen): New declaration.
37948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37949         * modules/stdio (Makefile.am): Likewise.
37950         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37951
37952 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37953
37954         maint.mk: give full control over update-copyright exclusions
37955         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37956         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37957         (update-copyright): Don't force inclusion of top-level
37958         ChangeLog.  Don't force exclusion of all COPYING files, but make
37959         them the default exclusion instead.
37960
37961 2009-08-16  Bruno Haible  <bruno@clisp.org>
37962
37963         Fix test failures on Solaris 10.
37964         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37965         tests when Solaris iconv() is used.
37966         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37967         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37968         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37969         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37970         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37971
37972 2009-08-16  Bruno Haible  <bruno@clisp.org>
37973
37974         Fix test failures on Solaris 10.
37975         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37976         'tr' program and pass it as first argument.
37977         * tests/test-pipe-filter-gi1.sh: Likewise.
37978         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37979         program as first argument.
37980         * tests/test-pipe-filter-gi1.c (main): Likewise.
37981
37982 2009-08-16  Eric Blake  <ebb9@byu.net>
37983
37984         fpurge: fix previous commits
37985         * modules/fpurge (Makefile.am): Make replacement conditional,
37986         partially reverting 2007-04-29 change; missed in previous
37987         attempt.
37988         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37989         is missing.
37990
37991 2009-08-16  Bruno Haible  <bruno@clisp.org>
37992
37993         Clarify fpurge's effect on the file position.
37994         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37995         * tests/test-fpurge.c (main): Make a second pass for checking the file
37996         position.
37997
37998 2009-08-16  Bruno Haible  <bruno@clisp.org>
37999
38000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38001         declaration of fpurge is missing.
38002         * tests/test-fpurge.c (main): Check that the file has not more contents
38003         than expected. Close the file before removing it.
38004
38005 2009-08-15  Eric Blake  <ebb9@byu.net>
38006
38007         fpurge: don't wrap working cygwin implementation
38008         * lib/fpurge.c (fpurge): Fix comment typo.
38009         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38010         1.7 to avoid replacement.
38011         * tests/test-fpurge.c (main): Enhance test.
38012
38013 2009-08-15  Eric Blake  <ebb9@byu.net>
38014         and Jim Meyering  <meyering@redhat.com>
38015
38016         test-update-copyright: skip if perl is insufficient
38017         * tests/test-update-copyright.sh: Failure to run maintainer tool
38018         should not cause testsuite failure on cygwin 1.5.
38019
38020 2009-08-14  Eric Blake  <ebb9@byu.net>
38021
38022         doc: mention more functions added in cygwin 1.7.0
38023         * doc/posix-headers/limits.texi (limits.h): Update for recent
38024         cygwin additions.
38025         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38026         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38027         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38028         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38029         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38030
38031 2009-08-14  Eric Blake  <ebb9@byu.net>
38032
38033         maint.mk: simplify update-copyright rule
38034         * top/maint.mk (update-copyright-local): Delete, and document how
38035         to do it in cfg.mk instead.
38036         (update-copyright-exclude-regexp): Delete, and document how to do
38037         it in .x-update-copyright instead.
38038         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38039         exclude ChangeLog.
38040
38041 2009-08-14  Bruno Haible  <bruno@clisp.org>
38042
38043         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38044
38045 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38046
38047         maint.mk: support update-copyright-env
38048         * top/maint.mk (update-copyright-env): Define place-holder.
38049         (update-copyright): Expand $(update-copyright-env) before
38050         invoking update-copyright.
38051
38052 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38053
38054         update-copyright: implement forced reformatting
38055         * build-aux/update-copyright: Implement and document
38056         UPDATE_COPYRIGHT_FORCE.
38057         * tests/test-update-copyright.sh: Test it.
38058
38059 2009-08-14  Eric Blake  <ebb9@byu.net>
38060         and Bruno Haible  <bruno@clisp.org>
38061
38062         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38063         * tests/test-locale.c: Revert previous patch related to NULL.
38064         * tests/test-stdio.c: Likewise.
38065         * tests/test-stdlib.c: Likewise.
38066         * tests/test-string.c: Likewise.
38067         * tests/test-unistd.c: Likewise.
38068         * modules/time-tests (Depends-on): Add verify.
38069         * modules/wchar-tests (Depends-on): Likewise.
38070         * tests/test-time.c: Test for NULL compliance.
38071         * tests/test-wchar.c: Likewise.
38072         * modules/locale (Depends-on): Add stddef.
38073         * modules/stdio (Depends-on): Likewise.
38074         * modules/stdlib (Depends-on): Likewise.
38075         * modules/string (Depends-on): Likewise.
38076         * modules/time (Depends-on): Likewise.
38077         * modules/unistd (Depends-on): Likewise.
38078         * modules/wchar (Depends-on): Likewise.
38079         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38080         * lib/stdlib.in.h (includes): Likewise.
38081         * lib/string.in.h (includes): Likewise.
38082         * lib/time.in.h (includes): Likewise.
38083         * lib/unistd.in.h (includes): Likewise.
38084         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38085         replaced.
38086         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38087         * m4/stddef_h.m4: New file.
38088         * modules/stddef: Likewise.
38089         * lib/stddef.in.h: Likewise.
38090         * modules/stddef-tests: Likewise.
38091         * tests/test-stddef.c: Likewise.
38092         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38093         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38094         * doc/posix-headers/locale.texi (locale.h): Likewise.
38095         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38096         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38097         * doc/posix-headers/string.texi (string.h): Likewise.
38098         * doc/posix-headers/time.texi (time.h): Likewise.
38099         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38100         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38101
38102 2009-08-14  Eric Blake  <ebb9@byu.net>
38103
38104         doc: improve git diff of texinfo files
38105         * .gitattributes: Add rule for *.texi files, with hint on how to
38106         use it.
38107         Copied from m4, and based on a report by Bruno Haible.
38108
38109 2009-08-14  Bruno Haible  <bruno@clisp.org>
38110
38111         Disable multithread support by default on Cygwin 1.5.x for real.
38112         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38113
38114 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38115
38116         update-copyright: much ado about intervals
38117         * build-aux/update-copyright: Implement and document
38118         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38119         of copyright year intervals.
38120         Also, document UPDATE_COPYRIGHT_YEAR.
38121         * tests/test-update-copyright.sh: Test it.
38122
38123         update-copyright: convert 2-digit to 4-digit years
38124         * build-aux/update-copyright: Implement and document.
38125         * tests/test-update-copyright.sh: Update.
38126
38127 2009-08-14  Jim Meyering  <meyering@redhat.com>
38128
38129         test-exclude: avoid coreutils "make check" failure
38130         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38131         just as in test-argmatch.c.
38132
38133 2009-08-13  Eric Blake  <ebb9@byu.net>
38134
38135         test-dup2: fix bad assumption
38136         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38137         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38138
38139         test-version-etc: fix CRLF portability issue
38140         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38141         recognize \r.
38142         * tests/test-argp-version-etc-1.sh: Likewise.
38143
38144         getopt: update client modules
38145         * modules/argp (Depends-on): Use getopt-gnu.
38146         * modules/git-merge-changelog (Depends-on): Likewise.
38147         * modules/long-options (Depends-on): Likewise.
38148         * modules/xstrtol (Depends-on): Likewise.
38149
38150 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38151
38152         * tests/test-version-etc.sh: Don't fail on different
38153         project/version.  Don't fail on CRLF differences.  Rewrite to use
38154         multiple -e instead of multiple sed forks, suggested by Eric Blake
38155         <ebb9@byu.net>.
38156         * tests/test-argp-version-etc-1.sh: Likewise.
38157
38158 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38159
38160         * tests/test-version-etc.sh: Don't fail on different
38161         project/version.
38162
38163 2009-08-12  Bruno Haible  <bruno@clisp.org>
38164
38165         Tests for modules 'getopt-posix', 'getopt-gnu'.
38166         * modules/getopt-posix-tests: New file.
38167         * tests/test-getopt.c: New file.
38168         * tests/test-getopt.h: New file.
38169         * tests/test-getopt_long.h: New file.
38170
38171         New modules 'getopt-posix', 'getopt-gnu'.
38172         * modules/getopt-gnu: New file, renamed from modules/getopt.
38173         * modules/getopt-posix: New file.
38174         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38175         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38176         (gl_GETOPT): Remove macro.
38177         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38178         Disable the test against BSD systems that declare optreset. Test
38179         against mingw bug. Test against lack of support of optional arguments
38180         on many platforms.
38181         * doc/glibc-headers/getopt.texi: Update module name and list of
38182         relevant platforms.
38183         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38184         'getopt-gnu' and more portability problems.
38185         * NEWS: Mention the changes.
38186
38187 2009-08-12  Bruno Haible  <bruno@clisp.org>
38188
38189         Ensure that optarg etc. get declared by <unistd.h>.
38190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38191         AC_USE_SYSTEM_EXTENSIONS.
38192         * modules/getopt (Depends-on): Add 'extensions'.
38193
38194 2009-08-12  Bruno Haible  <bruno@clisp.org>
38195
38196         Avoid test link errors.
38197         * modules/pipe-filter-ii-tests (Makefile.am): Define
38198         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38199         * modules/pipe-filter-gi-tests (Makefile.am): Define
38200         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38202
38203 2009-08-12  Bruno Haible  <bruno@clisp.org>
38204
38205         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38206         gl_GETOPT_SUBSTITUTE before.
38207         (gl_GETOPT): Use it.
38208         * m4/argp.m4 (gl_ARGP): Update.
38209         Reported by Sergey Poznyakoff.
38210
38211         * m4/getopt.m4: Reorder macros.
38212         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38213         (gl_GETOPT_SUBSTITUTE): Remove macro.
38214
38215 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38216
38217         Minor improvement in gitlog-to-changelog
38218
38219         * build-aux/gitlog-to-changelog: New option `--format' makes
38220         output format string configurable.
38221
38222 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38223
38224         Optimize exclude: use hash tables for non-wildcard patterns.
38225
38226         * lib/exclude.c: Include hash.h and mbuiter.h
38227         (struct exclude_pattern, exclude_segment): New data types.
38228         (struct exclude): Rewrite.
38229         (fnmatch_pattern_has_wildcards): New function.
38230         (new_exclude_segment, free_exclude_segment): New functions.
38231         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38232         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38233         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38234         * modules/exclude: Depend on hash and mbuiter.
38235
38236         * modules/exclude-tests: New file.
38237         * tests/test-exclude.c: New file.
38238         * tests/test-exclude1.sh: New file.
38239         * tests/test-exclude2.sh: New file.
38240         * tests/test-exclude3.sh: New file.
38241         * tests/test-exclude4.sh: New file.
38242         * tests/test-exclude5.sh: New file.
38243         * tests/test-exclude6.sh: New file.
38244         * tests/test-exclude7.sh: New file.
38245
38246 2009-08-12  Bruno Haible  <bruno@clisp.org>
38247
38248         Ensure that getopt() gets declared by <unistd.h>.
38249         * lib/unistd.in.h: Conditionally include getopt.h.
38250         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38251         Set GNULIB_UNISTD_H_GETOPT.
38252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38253         GNULIB_UNISTD_H_GETOPT.
38254         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38255
38256 2009-08-12  Bruno Haible  <bruno@clisp.org>
38257
38258         Clarify logic.
38259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38260         gl_replace_getopt instead of GETOPT_H.
38261
38262 2009-08-12  Bruno Haible  <bruno@clisp.org>
38263
38264         * m4/getopt.m4: Add comments.
38265
38266 2009-08-12  Bruno Haible  <bruno@clisp.org>
38267
38268         Disable multithread support by default on Cygwin 1.5.x.
38269         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38270         set gl_use_threads=no if not specified otherwise.
38271
38272 2009-08-11  Bruno Haible  <bruno@clisp.org>
38273
38274         Avoid compilation error on NetBSD 5.0.
38275         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38276         * tests/test-stdio.c: Likewise.
38277         * tests/test-stdlib.c: Likewise.
38278         * tests/test-string.c: Likewise.
38279         * tests/test-unistd.c: Likewise.
38280         Reported by Greg Troxel <gdt@ir.bbn.com>
38281         at <https://savannah.gnu.org/support/?106973>.
38282
38283 2009-08-11  Bruno Haible  <bruno@clisp.org>
38284
38285         * modules/dup2-tests (Depends-on): Remove close.
38286
38287         Undo 2009-07-19 commit.
38288         * modules/acl-tests (Depends-on): Remove close.
38289         * modules/binary-io-tests (Depends-on): Likewise.
38290         * modules/closein-tests (Depends-on): Likewise.
38291         * modules/flock-tests (Depends-on): Likewise.
38292         * modules/fsync-tests (Depends-on): Likewise.
38293         * modules/lseek-tests (Depends-on): Likewise.
38294         * modules/pipe-tests (Depends-on): Likewise.
38295         * modules/posix_spawn-tests (Depends-on): Likewise.
38296         * modules/posix_spawnp-tests (Depends-on): Likewise.
38297         * modules/stat-time-tests (Depends-on): Likewise.
38298         * modules/yesno-tests (Depends-on): Likewise.
38299
38300 2009-08-10  Bruno Haible  <bruno@clisp.org>
38301
38302         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38303
38304 2009-08-10  Bruno Haible  <bruno@clisp.org>
38305
38306         Fix a gcc warning.
38307         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38308
38309 2009-08-10  Bruno Haible  <bruno@clisp.org>
38310
38311         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38312         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38313         not only the first time.
38314         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38315         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38316         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38317         is 1, not only the the first time.
38318
38319 2009-08-10  Bruno Haible  <bruno@clisp.org>
38320
38321         Make it possible to use module 'gethostname' without module 'close'.
38322         * lib/unistd.in.h (close): Evoke a link error only if
38323         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38325         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38326         * modules/unistd (Makefile.am): Substitute
38327         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38328         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38329         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38330         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38331         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38332         * modules/sys_ioctl (Makefile.am): Substitute
38333         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38334         * modules/socket (configure.ac): On native Windows, set
38335         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38336         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38337         Reported by Sam Steingold <sds@gnu.org>.
38338
38339 2009-08-10  Bruno Haible  <bruno@clisp.org>
38340
38341         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38342         * modules/ioctl (configure.ac): Likewise.
38343
38344 2009-08-10  Bruno Haible  <bruno@clisp.org>
38345
38346         Avoid collision between gnulib wrapper and libintl wrapper.
38347         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38348         already defined in intl/printf.c.
38349         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38350         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38351
38352 2009-08-09  Bruno Haible  <bruno@clisp.org>
38353
38354         Make <sys/select.h> really self-contained, also on Solaris 10.
38355         * lib/sys_select.in.h: Include <string.h>.
38356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38357         Solaris 10 problem.
38358         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38359         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38360         Reported by Jim Meyering.
38361
38362 2009-08-09  Bruno Haible  <bruno@clisp.org>
38363
38364         Avoid warnings from 'aclocal' that are due to a use of macro name
38365         AM_XGETTEXT_OPTION that is not defined in automake.
38366         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38367         automake.
38368         * modules/error (configure.ac): Likewise.
38369         * modules/propername (configure.ac): Likewise.
38370         * modules/vasprintf (configure.ac): Likewise.
38371         * modules/verror (configure.ac): Likewise.
38372         * modules/xprintf (configure.ac): Likewise.
38373         * modules/xvasprintf (configure.ac): Likewise.
38374
38375 2009-08-08  Bruno Haible  <bruno@clisp.org>
38376
38377         Avoid compilation error in C++ mode.
38378         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38379         Reported by Sam Steingold <sds@gnu.org>.
38380
38381 2009-08-08  Bruno Haible  <bruno@clisp.org>
38382
38383         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38384         for the various Unix platforms.
38385         * doc/posix-headers/limits.texi: Update platforms list regarding
38386         HOST_NAME_MAX.
38387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38388
38389 2009-08-07  Jim Meyering  <meyering@redhat.com>
38390
38391         selinux-at: fix typo in a comment
38392         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38393         Spotted by Paolo Bonzini.
38394
38395         selinux-at: remove redundant m4 code, add documentation
38396         * modules/selinux-at (configure.ac): Remove redundant code.
38397         LIB_SELINUX is already set via the dependent module, selinux-h.
38398         (Include): Add quotes around selinux-at.h.
38399         * lib/selinux-at.h: Add documentation.
38400         Reported by Bruno Haible in
38401         http://marc.info/?l=gnulib-bug&m=124958988300749
38402
38403 2009-08-07  Bruno Haible  <bruno@clisp.org>
38404
38405         Avoid link error on MacOS X 10.3 and 10.4.
38406         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38407         on non-ELF systems.
38408         * lib/argp-pv.c (argp_program_version): Likewise.
38409         Reported by Simon Josefsson.
38410
38411 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38412
38413         * tests/test-version-etc.sh: Use $EXEEXT.
38414
38415 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38416
38417         update-copyright: update documentation to point to maint.mk
38418         * build-aux/update-copyright: Here.
38419
38420 2009-08-06  Jim Meyering  <meyering@redhat.com>
38421
38422         maint.mk: support update-copyright-local
38423         * top/maint.mk (update-copyright-local): Define place-holder.
38424         (update-copyright): Depend on $(update-copyright-local).
38425
38426 2009-08-06  Jim Meyering  <meyering@redhat.com>
38427
38428         selinux-at: new module
38429         Initially written for coreutils, this module will soon be
38430         used by findutils, too.
38431         * MODULES.html.sh [Misc]: Add selinux-at.
38432         * lib/selinux-at.h: New file, from coreutils.
38433         * lib/selinux-at.c: Likewise.
38434         * modules/selinux-at: Likewise.
38435         (License): Change from LGPL to GPL, since it depends
38436         on the GPL'd openat module.
38437
38438         doc: update README
38439         * README: Remove references to cogito.
38440         Remove cvs-repo-updating instructions from 2007.
38441         Don't imply that CVS is better if you have limited disk space.
38442
38443 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38444
38445         update-copyright: support C-style comments
38446         * build-aux/update-copyright: Implement and document.
38447         * tests/test-update-copyright.sh: Test.
38448
38449 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38450
38451         update-copyright: support omitted "(C)"
38452         * build-aux/update-copyright: Implement and document.  Also,
38453         allow variable whitespace before "(C)".
38454         * tests/test-update-copyright.sh: Test.
38455
38456 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38457
38458         update-copyright: don't trip on non-FSF copyright statements
38459         * build-aux/update-copyright: Fix so that the first correctly
38460         formatted FSF copyright statement is recognized no matter what
38461         appears before it.  Update documentation.
38462         * tests/test-update-copyright.sh: Test that.
38463
38464 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38465
38466         update-copyright: clean up code a little
38467         * build-aux/update-copyright: Append "_re" to the name of any
38468         variable holding a regular expression.
38469         Replace "old" and "new" with "stmt" in variable names.
38470         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38471         handled correctly.
38472         Format code more consistently.
38473
38474 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38475
38476         update-copyright-tests: improve portability
38477         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38478         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38479
38480 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38481
38482         update-copyright: support @copyright{} and &copy;
38483         * build-aux/update-copyright: Implement and document.
38484         * tests/test-update-copyright.sh: Test.
38485
38486 2009-08-04  Jim Meyering  <meyering@redhat.com>
38487
38488         update-copyright-tests: correctly test EOL=\r\n handling
38489         * tests/test-update-copyright.sh: Put \r at the end of some lines
38490         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38491
38492         maint.mk: make update-copyright exclusion list more configurable
38493         * top/maint.mk (update-copyright): Default to excluding COPYING,
38494         but allow an override, in case someone does want to update that file.
38495
38496         maint.mk: don't update copyright date in COPYING
38497         * top/maint.mk (update-copyright): Exclude COPYING.
38498
38499         maint.mk: add a copyright-updating rule
38500         * top/maint.mk (update-copyright): New rule.
38501         Derived from coreutils/Makefile.am.
38502
38503         update-copyright: rename some variables
38504         * build-aux/update-copyright: Rename a few variables for clarity.
38505         Tweak syntax.  List Joel E. Denny as coauthor.
38506
38507 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38508
38509         update-copyright: fix bug for 2-digit last year and add tests
38510         * build-aux/update-copyright: Fix bug.
38511         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38512         specified.
38513         * modules/update-copyright-tests: New
38514         * tests/test-update-copyright.sh: New.
38515
38516 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38517
38518         update-copyright: handle leading tabs in line prefix
38519         * build-aux/update-copyright: Count leading tabs as 8 spaces
38520         when computing margin.  This helps with the formatting of
38521         ChangeLogs, for example.
38522         Fix documentation a little.
38523
38524 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38525
38526         update-copyright: support EOL=\r\n
38527         * build-aux/update-copyright: Implement that.
38528
38529 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38530
38531         update-copyright: automatically format copyright statements
38532         * build-aux/update-copyright: Implement that.
38533         Also, be a little more predictable and safer by always failing
38534         when the full copyright format is not perfectly recognized as an
38535         unbroken whole.  Discussed at
38536         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38537         Rewrite documentation.
38538
38539 2009-08-03  Bruno Haible  <bruno@clisp.org>
38540
38541         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38542
38543 2009-08-02  Bruno Haible  <bruno@clisp.org>
38544
38545         Tests for module 'uname'.
38546         * modules/uname-tests: New file.
38547         * tests/test-uname.c: New file.
38548
38549         New module 'uname'.
38550         * lib/uname.c: New file.
38551         * m4/uname.m4: New file.
38552         * modules/uname: New file.
38553         * doc/posix-functions/uname.texi: Mention the new module.
38554
38555 2009-08-02  Bruno Haible  <bruno@clisp.org>
38556
38557         Tests for module 'sys_utsname'.
38558         * modules/sys_utsname-tests: New file.
38559         * tests/test-sys_utsname.c: New file.
38560
38561         New module 'sys_utsname'.
38562         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38563         * m4/sys_utsname_h.m4: New file.
38564         * modules/sys_utsname: New file.
38565         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38566
38567 2009-08-02  Bruno Haible  <bruno@clisp.org>
38568
38569         Implicitly initialize the sockets library.
38570         * lib/gethostname.c: Include sockets.h.
38571         (rpl_gethostname): Invoke gl_sockets_startup.
38572         * lib/socket.c: Include sockets.h.
38573         (rpl_socket): Invoke gl_sockets_startup.
38574         * modules/gethostname (Depends-on): Add sockets.
38575         * modules/socket (Depends-on): Likewise.
38576         * tests/test-poll.c: Don't include sockets.h.
38577         (main): Don't invoke gl_sockets_startup.
38578         * tests/test-select.c: Don't include sockets.h.
38579         (main): Don't invoke gl_sockets_startup.
38580
38581 2009-08-02  Bruno Haible  <bruno@clisp.org>
38582
38583         Allow multiple calls to gl_sockets_startup.
38584         * lib/sockets.c (initialized_sockets_version): New variable.
38585         (gl_sockets_startup): Do nothing if already called for this or a higher
38586         version.
38587         (gl_sockets_cleanup): Reset initialized_sockets_version.
38588
38589 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38590
38591         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38592         different project/version.
38593
38594 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38595             Bruno Haible  <bruno@clisp.org>
38596
38597         Tests for module 'pipe-filter-gi'.
38598         * modules/pipe-filter-gi-tests: New file.
38599         * tests/test-pipe-filter-gi1.sh: New file.
38600         * tests/test-pipe-filter-gi1.c: New file.
38601         * tests/test-pipe-filter-gi2.sh: New file.
38602         * tests/test-pipe-filter-gi2-main.c: New file.
38603         * tests/test-pipe-filter-gi2-child.c: New file.
38604
38605         New module 'pipe-filter-gi'.
38606         * lib/pipe-filter-gi.c: New file.
38607         * modules/pipe-filter-gi: New file.
38608
38609 2009-08-02  Bruno Haible  <bruno@clisp.org>
38610             Paolo Bonzini  <bonzini@gnu.org>
38611
38612         Tests for module 'pipe-filter-ii'.
38613         * modules/pipe-filter-ii-tests: New file.
38614         * tests/test-pipe-filter-ii1.sh: New file.
38615         * tests/test-pipe-filter-ii1.c: New file.
38616         * tests/test-pipe-filter-ii2.sh: New file.
38617         * tests/test-pipe-filter-ii2-main.c: New file.
38618         * tests/test-pipe-filter-ii2-child.c: New file.
38619
38620         New module 'pipe-filter-ii'.
38621         * lib/pipe-filter.h: New file.
38622         * lib/pipe-filter-ii.c: New file.
38623         * lib/pipe-filter-aux.h: New file.
38624         * modules/pipe-filter-ii: New file.
38625
38626 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38627
38628         * lib/gc-libgcrypt.c: Change copyright to FSF.
38629         * lib/gc-gnulib.c: Likewise.
38630
38631 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38632
38633         * lib/gethostname.c: Include limits.h.
38634
38635 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38636             Bruno Haible  <bruno@clisp.org>
38637
38638         Ensure HOST_NAME_MAX as part of the gethostname module.
38639         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38640         define also HOST_NAME_MAX.
38641         * tests/test-gethostname.c: Include <limits.h>.
38642         (main): Check also HOST_NAME_MAX.
38643         * doc/posix-headers/limits.texi: Document the mingw problem.
38644
38645 2009-08-02  Bruno Haible  <bruno@clisp.org>
38646
38647         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38648         Add comments.
38649
38650 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38651
38652         * lib/gethostname.c: Add Windows wrapper.
38653         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38654         * modules/gethostname: Depend on sys_socket & errno, for also
38655         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38656         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38657
38658 2009-07-31  Jim Meyering  <meyering@redhat.com>
38659
38660         getloadavg: fix symbol name in comment
38661         * lib/getloadavg.c: Correct a typo I introduced when adding
38662         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38663         Matt Kraai spotted the problem.
38664
38665 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38666
38667         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38668         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38669         code also if ! defined N_NAME_POINTER.
38670         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38671         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38672         but the n_name member is a 12-byte array.
38673
38674 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38675
38676         update-copyright: generalize comment handling
38677         * build-aux/update-copyright: Handle copyright statements
38678         within more comment styles.
38679         Document usage.
38680         Report any file with an external copyright holder or parse failure.
38681
38682 2009-07-29  Jim Meyering  <meyering@redhat.com>
38683
38684         mktime: correct setting of REPLACE_MKTIME
38685         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38686
38687         update-copyright: new module
38688         * modules/update-copyright: New file.
38689         * build-aux/update-copyright: New file.
38690         * MODULES.html.sh (maint+release support): Add update-copyright.
38691
38692 2009-07-27  Bruno Haible  <bruno@clisp.org>
38693
38694         Fix compilation error when <ctime> is used and mktime is replaced.
38695         * lib/time.in.h (mktime): New declaration.
38696         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38697         REPLACE_MKTIME instead of defining mktime in config.h.
38698         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38699         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38700         Reported by Ross McFarland <rwmcfa1@neces.com>.
38701
38702 2009-07-27  Bruno Haible  <bruno@clisp.org>
38703
38704         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38705         Reported by Matt Kraai <mkraai@beckman.com>.
38706
38707 2009-07-25  Jim Meyering  <meyering@redhat.com>
38708
38709         maint.mk: avoid warnings about missing files
38710         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38711         diagnostic when .prev-version does not exist.
38712         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38713         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38714         nonexistent cfg.mk.
38715         Suggestions from Simon Josefsson.
38716
38717 2009-07-25  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38720         defined as macros. Needed on QNX 6.4.1.
38721         Reported by Matt Kraai <mkraai@beckman.com>.
38722
38723 2009-07-23  Jim Meyering  <meyering@redhat.com>
38724
38725         maint.mk: invoke "make dist" with a working value of XZ_OPT
38726         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38727
38728 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38729
38730         Make fseeko.c compile on QNX.
38731         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38732
38733 2009-07-22  Peter Simons  <simons@cryp.to>
38734
38735         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38736         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38737         * lib/md4.h: Likewise.
38738         * lib/md5.h: Likewise.
38739         * lib/sha1.h: Likewise.
38740         * lib/sha256.h: Likewise.
38741         * lib/sha512.h: Likewise.
38742
38743         tests-sha1: don't assign literal string to 'char *' variable
38744         * tests/test-sha1.c (main): Declare locals with "const" to match
38745         attributes of the right hand side.
38746
38747 2009-07-21  Eric Blake  <ebb9@byu.net>
38748
38749         dup2: fix more mingw problems
38750         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38751         fd to itself.
38752         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38753         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38754         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38755         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38756         care of mingw bugs.
38757
38758 2009-07-21  Jim Meyering  <meyering@redhat.com>
38759
38760         vc-list-files: avoid failure when /bin/sh is dash
38761         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38762         On some Debian based systems, /bin/sh is a symlink to dash, and running
38763         this command would omit the "/" following each 'tests' prefix:
38764           dash -x build-aux/vc-list-files -C . tests
38765         That is because bash and dash work differently:
38766           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38767           bash ok
38768           dash odd
38769
38770 2009-07-21  Eric Blake  <ebb9@byu.net>
38771
38772         dup2-tests: test previous patch
38773         * modules/dup2-tests: New file.
38774         * tests/test-dup2.c: Likewise.
38775         * tests/test-open.c (main): Avoid unspecified behavior.
38776         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38777         test.
38778
38779         dup2: work around mingw and cygwin 1.5 bug
38780         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38782         * modules/unistd (Makefile.am): Substitute it.
38783         * lib/unistd.in.h (dup2): Declare the replacement.
38784         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38785         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38786         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38787         * modules/execute (Depends-on): Add dup2.
38788         * modules/fseterr (Depends-on): Likewise.
38789         * modules/pipe (Depends-on): Likewise.
38790         * modules/posix_spawn-internal (Depends-on): Likewise.
38791
38792 2009-07-21  Bruno Haible  <bruno@clisp.org>
38793
38794         * modules/.gitattributes: New file.
38795
38796 2009-07-20  Bruno Haible  <bruno@clisp.org>
38797
38798         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38799         (main): Use it.
38800
38801 2009-07-20  Eric Blake  <ebb9@byu.net>
38802
38803         test-pipe: make a bit more robust.
38804         * tests/test-pipe.c (myerr): Allow error messages regardless of
38805         what we do to stderr.
38806         (test_pipe): Rearrange to avoid deadlock.
38807         (child_main): Try a larger read, to ensure we avoided deadlock.
38808         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38809         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38810         if misused.
38811
38812 2009-07-19  Jim Meyering  <meyering@redhat.com>
38813
38814         fts: avoid false-positive cycle-detection
38815         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38816         for each new command line argument.
38817
38818 2009-07-19  Bruno Haible  <bruno@clisp.org>
38819
38820         Fix build error on mingw with the modules sys_select and unistd.
38821         * modules/acl-tests (Depends-on): Add close.
38822         * modules/binary-io-tests (Depends-on): Likewise.
38823         * modules/closein-tests (Depends-on): Likewise.
38824         * modules/flock-tests (Depends-on): Likewise.
38825         * modules/fsync-tests (Depends-on): Likewise.
38826         * modules/lseek-tests (Depends-on): Likewise.
38827         * modules/pipe-tests (Depends-on): Likewise.
38828         * modules/posix_spawn-tests (Depends-on): Likewise.
38829         * modules/posix_spawnp-tests (Depends-on): Likewise.
38830         * modules/stat-time-tests (Depends-on): Likewise.
38831         * modules/yesno-tests (Depends-on): Likewise.
38832
38833 2009-07-19  Bruno Haible  <bruno@clisp.org>
38834
38835         Unify conditionals.
38836         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38837         macros, not at the compiler macros.
38838         * lib/pipe.c: Likewise.
38839         * lib/execute.c: Likewise.
38840         * lib/spawni.c: Likewise.
38841
38842 2009-07-19  Bruno Haible  <bruno@clisp.org>
38843
38844         Fix handling of closed stdin/stdout/stderr on mingw.
38845         * lib/w32spawn.h: Include unistd.h.
38846         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38847         file descriptor with O_NOINHERIT flag.
38848         (fd_safer_noinherit): New function, based on fd-safer.c.
38849         (dup_safer_noinherit): New function, based on dup-safer.c.
38850         (undup_safer_noinherit): New function.
38851         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38852         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38853         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38854         instead of fd_safer.
38855         * tests/test-pipe.c: Include <windows.h>.
38856         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38857         result.
38858
38859         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38860         from main.
38861         (test_pipe): Pass an extra argument for disambiguation.
38862         (main): Invoke parent_main or child_main.
38863
38864         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38865         consistently.
38866
38867 2009-07-18  Eric Blake  <ebb9@byu.net>
38868
38869         test-pipe: fix mingw build
38870         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38871
38872 2009-07-18  Bruno Haible  <bruno@clisp.org>
38873
38874         * modules/pipe-tests (Makefile.am): Fix typo.
38875
38876 2009-07-18  Eric Blake  <ebb9@byu.net>
38877
38878         error: fix mingw build
38879         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38880         Reported by Bruno Haible.
38881
38882         error: avoid undefined use of stdout
38883         * lib/error.c (error, error_at_line): Check that fd 1 is open
38884         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38885         is handling faults and the close_stdout module wants to report the
38886         detection of closed stdout as an error.
38887
38888 2009-07-17  Eric Blake  <ebb9@byu.net>
38889
38890         pipe: be robust in face of closed fds
38891         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38892         should cause child to misbehave.
38893         * modules/pipe-tests: New module.
38894         * tests/test-pipe.c: New file.
38895         * tests/test-pipe.sh: New file.
38896         Reported by Akim Demaille.
38897
38898 2009-07-14  Bruno Haible  <bruno@clisp.org>
38899
38900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38901         Reported by anonymous kc.
38902
38903 2009-07-07  Jim Meyering  <meyering@redhat.com>
38904
38905         maint.mk: don't look for translatable strings in *.m4 or *.mk
38906         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38907         when searching for translatable strings.
38908
38909 2009-07-05  Jim Meyering  <meyering@redhat.com>
38910
38911         remove superfluous parentheses in STREQ definition
38912         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38913         * lib/getugroups.c (STREQ): Likewise.
38914         * lib/fnmatch.c (STREQ): Likewise.
38915         Spotted by Bruno Haible.
38916
38917 2009-07-04  Jim Meyering  <meyering@redhat.com>
38918
38919         argv-iter: new module
38920         * MODULES.html.sh: Add argv-iter.
38921         * lib/argv-iter.c, lib/argv-iter.h: New files.
38922         * modules/argv-iter: New file.
38923         * modules/argv-iter-tests: New file.
38924         * tests/test-argv-iter.c: Test it.
38925
38926 2009-07-04  Bruno Haible  <bruno@clisp.org>
38927
38928         Fix assertion.
38929         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38930         contains more exact copies of a given entry than file2, leave the extra
38931         copies unpaired rather than aborting.
38932         Reported by Eric Blake.
38933
38934 2009-07-02  Bruno Haible  <bruno@clisp.org>
38935
38936         Speedup git-merge-changelog for git cherry-pick.
38937         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38938         (entries_mapping_get): New function, extracted from compute_mapping.
38939         (entries_mapping_reverse_get): New function.
38940         (compute_mapping): Add a 'full' argument. Return the result in a
38941         'struct entries_mapping'.
38942         (main): Update. Access the mappings through entries_mapping_get.
38943         Reported by Eric Blake.
38944
38945 2009-07-02  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38948         best_i.
38949
38950 2009-07-02  Bruno Haible  <bruno@clisp.org>
38951
38952         Speed up approximate search for matching ChangeLog entries.
38953         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38954         argument. Call fstrcmp_bounded instead of fstrcmp.
38955         (compute_mapping, try_split_merged_entry, main): Update callers.
38956
38957 2009-07-02  Bruno Haible  <bruno@clisp.org>
38958
38959         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38960
38961 2009-06-30  Bruno Haible  <bruno@clisp.org>
38962
38963         Reduce the number of uc_is_cased calls.
38964         * lib/unicase.h (casing_suffix_context_t): Add
38965         'first_char_except_ignorable' field.
38966         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38967         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38968         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38969         Update initializer.
38970         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38971         case-ignorable characters.
38972         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38973         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38974         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38975         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38976         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38977
38978 2009-06-30  Bruno Haible  <bruno@clisp.org>
38979
38980         Tests for module 'unicase/ignorable'.
38981         * modules/unicase/ignorable-tests: New file.
38982         * tests/unicase/test-ignorable.c: New file, generated by
38983         gen-uni-tables.
38984
38985         Tests for module 'unicase/cased'.
38986         * modules/unicase/cased-tests: New file.
38987         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38988         * tests/unicase/test-predicate-part1.h: New file, derived from
38989         tests/unictype/test-predicate-part1.h.
38990         * tests/unicase/test-predicate-part2.h: New file, same as
38991         tests/unictype/test-predicate-part2.h.
38992
38993         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38994         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38995         (output_casing_properties): New function.
38996         (main): Call it.
38997         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38998         * lib/unicase/cased.c: Include unictype/bitmap.h.
38999         (uc_is_cased): Define through a bitmap lookup.
39000         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39001         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39002         (uc_is_case_ignorable): Define through a bitmap lookup.
39003         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39004         lib/unictype/bitmap.h.
39005         (Depends-on): Add inline. Clean up.
39006         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39007         lib/unictype/bitmap.h.
39008         (Depends-on): Add inline. Clean up.
39009         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39010         recognition.
39011         * tests/unicase/test-u16-tolower.c (main): Likewise.
39012         * tests/unicase/test-u32-tolower.c (main): Likewise.
39013
39014 2009-06-30  Bruno Haible  <bruno@clisp.org>
39015
39016         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39017         * lib/unicase/u16-casemap.c: Likewise.
39018         * lib/unicase/u32-casemap.c: Likewise.
39019
39020 2009-06-29  Bruno Haible  <bruno@clisp.org>
39021
39022         Define u32_casefold as a wrapper around u32_ct_casefold.
39023         * lib/unicase/u32-casefold.c: Update.
39024         * modules/unicase/u32-casefold (Depends-on): Add
39025         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39026         unicase/empty-suffix-context. Clean up.
39027
39028         Define u16_casefold as a wrapper around u16_ct_casefold.
39029         * lib/unicase/u16-casefold.c: Update.
39030         * modules/unicase/u16-casefold (Depends-on): Add
39031         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39032         unicase/empty-suffix-context. Clean up.
39033
39034         Define u8_casefold as a wrapper around u8_ct_casefold.
39035         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39036         * lib/unicase/u8-casefold.c: Update.
39037         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39038         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39039
39040         Define u32_totitle as a wrapper around u32_ct_totitle.
39041         * lib/unicase/u32-totitle.c: Update.
39042         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39043         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39044
39045         Define u16_totitle as a wrapper around u16_ct_totitle.
39046         * lib/unicase/u16-totitle.c: Update.
39047         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39048         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39049
39050         Define u8_totitle as a wrapper around u8_ct_totitle.
39051         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39052         functions.
39053         (FUNC): Delegate to U_CT_TOTITLE.
39054         * lib/unicase/u8-totitle.c: Update.
39055         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39056         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39057
39058         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39059         invocation.
39060         * modules/unicase/u32-tolower (Depends-on): Add
39061         unicase/empty-prefix-context, unicase/empty-suffix-context.
39062
39063         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39064         invocation.
39065         * modules/unicase/u16-tolower (Depends-on): Add
39066         unicase/empty-prefix-context, unicase/empty-suffix-context.
39067
39068         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39069         * modules/unicase/u8-tolower (Depends-on): Add
39070         unicase/empty-prefix-context, unicase/empty-suffix-context.
39071
39072         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39073         invocation.
39074         * modules/unicase/u32-toupper (Depends-on): Add
39075         unicase/empty-prefix-context, unicase/empty-suffix-context.
39076
39077         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39078         invocation.
39079         * modules/unicase/u16-toupper (Depends-on): Add
39080         unicase/empty-prefix-context, unicase/empty-suffix-context.
39081
39082         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39083         * modules/unicase/u8-toupper (Depends-on): Add
39084         unicase/empty-prefix-context, unicase/empty-suffix-context.
39085
39086         New module 'unicase/u32-ct-casefold'.
39087         * lib/unicase/u32-ct-casefold.c: New file.
39088         * modules/unicase/u32-ct-casefold: New file.
39089
39090         New module 'unicase/u16-ct-casefold'.
39091         * lib/unicase/u16-ct-casefold.c: New file.
39092         * modules/unicase/u16-ct-casefold: New file.
39093
39094         New module 'unicase/u8-ct-casefold'.
39095         * lib/unicase/u8-ct-casefold.c: New file.
39096         * lib/unicase/u-ct-casefold.h: New file, derived from
39097         lib/unicase/u-casefold.h.
39098         * modules/unicase/u8-ct-casefold: New file.
39099
39100         New module 'unicase/u32-ct-totitle'.
39101         * lib/unicase/u32-ct-totitle.c: New file.
39102         * modules/unicase/u32-ct-totitle: New file.
39103
39104         New module 'unicase/u16-ct-totitle'.
39105         * lib/unicase/u16-ct-totitle.c: New file.
39106         * modules/unicase/u16-ct-totitle: New file.
39107
39108         New module 'unicase/u8-ct-totitle'.
39109         * lib/unicase/u8-ct-totitle.c: New file.
39110         * lib/unicase/u-ct-totitle.h: New file, derived from
39111         lib/unicase/u-totitle.h.
39112         * modules/unicase/u8-ct-totitle: New file.
39113
39114         New module 'unicase/u32-ct-tolower'.
39115         * lib/unicase/u32-ct-tolower.c: New file.
39116         * modules/unicase/u32-ct-tolower: New file.
39117
39118         New module 'unicase/u16-ct-tolower'.
39119         * lib/unicase/u16-ct-tolower.c: New file.
39120         * modules/unicase/u16-ct-tolower: New file.
39121
39122         New module 'unicase/u8-ct-tolower'.
39123         * lib/unicase/u8-ct-tolower.c: New file.
39124         * modules/unicase/u8-ct-tolower: New file.
39125
39126         New module 'unicase/u32-ct-toupper'.
39127         * lib/unicase/u32-ct-toupper.c: New file.
39128         * modules/unicase/u32-ct-toupper: New file.
39129
39130         New module 'unicase/u16-ct-toupper'.
39131         * lib/unicase/u16-ct-toupper.c: New file.
39132         * modules/unicase/u16-ct-toupper: New file.
39133
39134         New module 'unicase/u8-ct-toupper'.
39135         * lib/unicase/u8-ct-toupper.c: New file.
39136         * modules/unicase/u8-ct-toupper: New file.
39137
39138         Add context arguments to u*_casemap functions.
39139         * lib/unicase/unicasemap.h: Include unicase.h.
39140         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39141         suffix_context arguments.
39142         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39143         functions.
39144         (FUNC): Add prefix_context and suffix_context arguments. Use
39145         uc_is_cased and uc_is_case_ignorable.
39146         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39147         * lib/unicase/u16-casemap.c: Likewise.
39148         * lib/unicase/u32-casemap.c: Likewise.
39149         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39150         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39151         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39152         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39153         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39154         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39155
39156         New module 'unicase/u32-suffix-context'.
39157         * lib/unicase/u32-suffix-context.c: New file.
39158         * modules/unicase/u32-suffix-context: New file.
39159
39160         New module 'unicase/u16-suffix-context'.
39161         * lib/unicase/u16-suffix-context.c: New file.
39162         * modules/unicase/u16-suffix-context: New file.
39163
39164         New module 'unicase/u8-suffix-context'.
39165         * lib/unicase/u8-suffix-context.c: New file.
39166         * lib/unicase/u-suffix-context.h: New file.
39167         * modules/unicase/u8-suffix-context: New file.
39168
39169         New module 'unicase/empty-suffix-context'.
39170         * lib/unicase/empty-suffix-context.c: New file.
39171         * modules/unicase/empty-suffix-context: New file.
39172
39173         New module 'unicase/u32-prefix-context'.
39174         * lib/unicase/u32-prefix-context.c: New file.
39175         * modules/unicase/u32-prefix-context: New file.
39176
39177         New module 'unicase/u16-prefix-context'.
39178         * lib/unicase/u16-prefix-context.c: New file.
39179         * modules/unicase/u16-prefix-context: New file.
39180
39181         New module 'unicase/u8-prefix-context'.
39182         * lib/unicase/u8-prefix-context.c: New file.
39183         * lib/unicase/u-prefix-context.h: New file.
39184         * lib/unicase/context.h: New file.
39185         * modules/unicase/u8-prefix-context: New file.
39186
39187         New module 'unicase/empty-prefix-context'.
39188         * lib/unicase/empty-prefix-context.c: New file.
39189         * modules/unicase/empty-prefix-context: New file.
39190
39191         New module 'unicase/ignorable'.
39192         * lib/unicase/ignorable.c: New file.
39193         * modules/unicase/ignorable: New file.
39194
39195         New module 'unicase/cased'.
39196         * lib/unicase/caseprop.h: New file.
39197         * lib/unicase/cased.c: New file.
39198         * modules/unicase/cased: New file.
39199
39200         New functions for case mapping of substrings.
39201         * lib/unicase.h (casing_prefix_context_t): New type.
39202         (unicase_empty_prefix_context): New variable.
39203         (u8_casing_prefix_context, u16_casing_prefix_context,
39204         u32_casing_prefix_context, u8_casing_prefixes_context,
39205         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39206         declarations.
39207         (casing_suffix_context_t): New type.
39208         (unicase_empty_suffix_context): New variable.
39209         (u8_casing_suffix_context, u16_casing_suffix_context,
39210         u32_casing_suffix_context, u8_casing_suffixes_context,
39211         u16_casing_suffixes_context, u32_casing_suffixes_context,
39212         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39213         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39214         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39215         declarations.
39216
39217 2009-06-28  Jim Meyering  <meyering@redhat.com>
39218
39219         boostrap: indent only with spaces
39220         * build-aux/bootstrap: Indent only with spaces, never TABs.
39221
39222         bootstrap: split long lines
39223         * build-aux/bootstrap: Keep line length < 80.
39224
39225         bootstrap: sync from coreutils
39226         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39227         just as autoreconf does.  Verify a list of prerequisite
39228         package-name,version-number pairs if defined in bootstrap.conf.
39229         Refer to README-prereq, if prerequisites are not satisfied.
39230
39231 2009-06-27  Eric Blake  <ebb9@byu.net>
39232
39233         tests: add test for bogus NULL definition
39234         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39235         * tests/test-stdlib.c: Likewise.
39236         * tests/test-string.c: Likewise.
39237         * tests/test-locale.c: Likewise.
39238         * tests/test-unistd.c: Likewise.
39239         * modules/stdio-tests (Depends-on): Add verify.
39240         * modules/stdlib-tests (Depends-on): Likewise.
39241         * modules/string-tests (Depends-on): Likewise.
39242         * modules/locale-tests (Depends-on): Likewise.
39243         * modules/unistd-tests (Depends-on): Likewise.
39244
39245 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39246
39247         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39248         self-explaining comment.
39249         * m4/selinux-selinux-h: Update serial.
39250         (gl_LIBSELINUX): New macro, adding a warning for missing development
39251         packages to code extracted from...
39252         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39253         Add warning for missing development packages here, too.
39254
39255 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39256
39257         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39258
39259 2009-06-25  Eric Blake  <ebb9@byu.net>
39260
39261         version-etc: fix regression
39262         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39263         gcc.
39264         (version_etc): Use it, to catch bugs with trailing NULL.
39265         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39266         (version_etc_va): Fix logic bug.
39267         * modules/version-etc-tests: Add test.
39268         * tests/test-version-etc.c: New file.
39269         * tests/test-version-etc.sh: Likewise.
39270
39271 2009-06-25  Sam Steingold  <sds@gnu.org>
39272
39273         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39274         mbtowc declaration.
39275
39276 2009-06-25  Eric Blake  <ebb9@byu.net>
39277
39278         fpurge: migrate into <stdio.h>
39279         * lib/fpurge.h: Delete...
39280         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39281         * lib/fpurge.c (fpurge): Change declaring header.
39282         * modules/fpurge (Files): Drop deleted file.
39283         (Depends-on): Add stdio.
39284         (configure.ac): Set witness.
39285         * modules/stdio (Makefile.am): Support fpurge macros.
39286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39287         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39288         * lib/fflush.c: Update client.
39289         * tests/test-fpurge.c: Likewise.
39290         * NEWS: Mention the change.
39291
39292 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39293
39294         * lib/argp-version-etc.c (program_authors): Add const
39295         qualifier.
39296         * lib/version-etc.c: Fix typos in the comments.
39297         * modules/argp-version-etc: Depends on version-etc.
39298
39299 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39300
39301         argp-version-etc: new module.
39302
39303         * lib/argp-version-etc.c: New file.
39304         * lib/argp-version-etc.h: New file.
39305         * modules/argp-version-etc: New file.
39306         * modules/argp-version-etc-tests: New file.
39307         * tests/test-argp-version-etc.c: New test.
39308         * tests/test-argp-version-etc-1.sh: New test.
39309
39310 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39311
39312         Provide additional interfaces and documentation for version-etc
39313         module.
39314
39315         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39316         interfaces.
39317         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39318         prototypes.
39319
39320 2009-06-24  Bruno Haible  <bruno@clisp.org>
39321
39322         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39323         HAVE_LIB${NAME} macro.
39324         Reported by Sam Steingold <sds@gnu.org>.
39325
39326 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39327
39328         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39329         needed.
39330
39331 2009-06-21  Bruno Haible  <bruno@clisp.org>
39332
39333         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39334         work.
39335         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39336         together with LIB${NAME}, LTLIB${NAME}.
39337         Reported by Sam Steingold <sds@gnu.org>.
39338
39339 2009-06-20  Jim Meyering  <meyering@redhat.com>
39340
39341         tests: make sc_require_test_exit_idiom more generic
39342         * top/maint.mk (Exit_witness_file): New overridable variable.
39343         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39344         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39345
39346 2009-06-19  Jim Meyering  <meyering@redhat.com>
39347
39348         hash: reverse order of src/dst parameters in an internal interface
39349         * lib/hash.c (transfer_entries): Reverse order of parameters to
39350         put DST before SRC.  Adjust callers.
39351
39352         tests: test-hash: avoid wholesale duplication
39353         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39354         Instead, use a loop and add a single conditional.
39355
39356         tests: test-hash: allow seed selection via a command line argument
39357         * tests/test-hash.c (get_seed): New function.
39358         (main): Use it.
39359
39360 2009-06-19  Eric Blake  <ebb9@byu.net>
39361
39362         hash: avoid memory leak on allocation failure
39363         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39364         failure.  Factor repeated algorithm...
39365         (transfer_entries): ...into new helper routine.
39366         (hash_delete): React to hash_rehash return value.
39367
39368         hash: reduce memory pressure in hash_rehash no-op case
39369         * lib/hash.c (next_prime): Avoid overflow.
39370         (hash_initialize): Factor bucket size computation...
39371         (compute_bucket_size): ...into new helper function.
39372         (hash_rehash): Use new function and open coding to reduce memory
39373         pressure, and avoid a memory leak in USE_OBSTACK code.
39374         Reported by Jim Meyering.
39375
39376 2009-06-18  Eric Blake  <ebb9@byu.net>
39377
39378         hash: make rotation more obvious
39379         * modules/hash (Depends-on): Add bitrotate and stdint.
39380         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39381         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39382         (SIZE_MAX): Rely on headers for definition.
39383         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39384         (raw_hasher): Use rotr_sz.
39385         Suggested by Jim Meyering.
39386
39387         hash: fix memory leak in last patch
39388         * lib/hash.c (hash_rehash): Avoid memory leak.
39389
39390         hash: avoid no-op rehashing
39391         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39392
39393         hash: provide default callback functions
39394         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39395         (hash_initialize): Use them as defaults.
39396         * tests/test-hash.c (main): Test this.
39397
39398         hash: minor optimization
39399         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39400         when possible.
39401         (hash_initialize): Document this promise.
39402         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39403         * tests/test-hash.c (hash_compare_strings): Test this.
39404
39405 2009-06-18  Bruno Haible  <bruno@clisp.org>
39406
39407         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39408         going to be replaced anyway.
39409
39410 2009-06-18  Bruno Haible  <bruno@clisp.org>
39411
39412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39413         in one place.
39414         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39415         be replaced anyway.
39416
39417 2009-06-18  Eric Blake  <ebb9@byu.net>
39418
39419         hash: check for resize before insertion
39420         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39421         threshold before insertion, so that a pathological hash_rehash
39422         that fills every bucket can still trigger another rehash.
39423
39424 2009-06-18  Jim Meyering  <meyering@redhat.com>
39425
39426         hash-tests: add a loop around the small tests
39427         * tests/test-hash.c (main): Repeat small tests with selected
39428         small initial table sizes.
39429
39430 2009-06-17  Eric Blake  <ebb9@byu.net>
39431
39432         hash: minor cleanups
39433         * lib/hash.h (hash_entry): Make opaque, by moving...
39434         * lib/hash.c (hash_entry): ...here.
39435         (hash_insert): Clarify restrictions on what can be inserted.
39436         (hash_get_next): Clarify when it is safe to remove an element
39437         during traversal.
39438         (check_tuning): Skip verification when tuning is known safe.
39439         (hash_initialize): Clarify restrictions on tuning.
39440
39441 2009-06-17  Jim Meyering  <jim@meyering.net>
39442         and Eric Blake  <ebb9@byu.net>
39443
39444         hash-tests: new module
39445         * modules/hash-tests: New file.
39446         * tests/test-hash.c: New file.
39447
39448 2009-06-17  Eric Blake  <ebb9@byu.net>
39449
39450         strstr-simple: document new module
39451         * MODULES.html.sh: Document new module.
39452
39453         strstr, strcasestr: replace on platforms with broken memchr
39454         * modules/strstr: Split into...
39455         * modules/strstr-simple: ...new module that does not care about
39456         performance, but does care about glibc bug.
39457         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39458         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39459         if platform memchr is broken, per Debian bug 521737.
39460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39461         memchr.
39462         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39463         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39464         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39465         * modules/mountlist (Depends-on): Add strstr-simple.
39466         * modules/gen-uni-tables (Depends-on): Likewise.
39467         * modules/argz (Depends-on): Add strstr.
39468
39469 2009-06-17  Bruno Haible  <bruno@clisp.org>
39470
39471         * modules/posix_spawn-internal (Depends-on): Add errno.
39472
39473 2009-06-17  Bruno Haible  <bruno@clisp.org>
39474
39475         Define missing ESTALE on Interix 3.5.
39476         * lib/errno.in.h (ESTALE): Assign a value if missing.
39477         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39478         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39479         missing.
39480         * doc/posix-headers/errno.texi: Mention the Interix bug.
39481         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39482
39483 2009-06-15  Eric Blake  <ebb9@byu.net>
39484
39485         memchr, memchr2: add valgrind exception
39486         * lib/memchr.valgrind: New file.
39487         * lib/memchr2.valgrind: New file.
39488         * modules/memchr (Files): Distribute valgrind file.
39489         * modules/memchr2 (Files): Likewise.
39490
39491         docs: memchr is no longer obsolete
39492         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39493         * lib/string.in.h (memchr): Simplify logic.
39494
39495 2009-06-14  Jim Meyering  <meyering@redhat.com>
39496
39497         link-follow: fix the "checking..." message to not mention trailing slash
39498         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39499         never considered trailing slashes.
39500
39501 2009-06-14  Bruno Haible  <bruno@clisp.org>
39502
39503         * m4/memchr.m4: Mention also the bug on IA-64.
39504         * doc/posix-functions/memchr.texi: Likewise.
39505
39506 2009-06-12  Eric Blake  <ebb9@byu.net>
39507
39508         memchr: detect broken x86_64 and alpha implementations
39509         * modules/memchr-tests (Depends-on): Move mmap detection...
39510         * modules/memchr (Depends-on): ...here.
39511         (configure.ac): Set indicator.
39512         * lib/string.in.h (memchr): Declare replacement.
39513         * modules/string (Makefile.am): Trigger replacement.
39514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39515         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39516         bugs.
39517         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39518         * modules/getpagesize (License): Relax license.
39519
39520 2009-06-11  Bruno Haible  <bruno@clisp.org>
39521
39522         * lib/idpriv.h: Add more references.
39523
39524 2009-06-08  Bruno Haible  <bruno@clisp.org>
39525
39526         Tests for module 'idpriv-droptemp'.
39527         * modules/idpriv-droptemp-tests: New file.
39528         * tests/test-idpriv-droptemp.sh: New file.
39529         * tests/test-idpriv-droptemp.su.sh: New file.
39530         * tests/test-idpriv-droptemp.c: New file.
39531
39532         New module 'idpriv-droptemp'.
39533         * lib/idpriv-droptemp.c: New file.
39534         * modules/idpriv-droptemp: New file.
39535
39536 2009-06-08  Bruno Haible  <bruno@clisp.org>
39537
39538         Tests for module 'idpriv-drop'.
39539         * modules/idpriv-drop-tests: New file.
39540         * tests/test-idpriv-drop.sh: New file.
39541         * tests/test-idpriv-drop.su.sh: New file.
39542         * tests/test-idpriv-drop.c: New file.
39543
39544         New module 'idpriv-drop'.
39545         * lib/idpriv.h: New file.
39546         * lib-idpriv-drop.c: New file.
39547         * m4/idpriv.m4: New file.
39548         * modules/idpriv-drop: New file.
39549
39550 2009-06-08  Bruno Haible  <bruno@clisp.org>
39551
39552         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39553         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39554         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39555         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39556         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39557         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39558         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39559
39560 2009-06-08  Eric Blake  <ebb9@byu.net>
39561
39562         test-strstr: use memory fence, when possible
39563         * tests/test-strstr.c (main): Use memory fence, in order to be
39564         more likely to trigger Debian bug 521737.
39565         * modules/strstr-tests (Files): Pull in additional files.
39566
39567         memchr: no longer obsolete, for wider field testing
39568         * modules/memchr (Status, Notice): Delete, this module is no
39569         longer obsolete.
39570         * modules/vasnprintf (Depends-on): Add memchr.
39571
39572 2009-06-07  Jim Meyering  <meyering@redhat.com>
39573
39574         hash: declare some functions with the warn_unused_result attribute
39575         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39576
39577 2009-06-07  Bruno Haible  <bruno@clisp.org>
39578
39579         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39580         Reported by Eric Blake.
39581
39582 2009-06-06  Eric Blake  <ebb9@byu.net>
39583
39584         test-alignof: fix typo with long double
39585         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39586         compiler error.
39587
39588 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39589
39590         Escape non-texinfo { and }s.
39591         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39592         markup error.
39593
39594 2009-06-04  Jim Meyering  <meyering@redhat.com>
39595
39596         gitlog-to-changelog: don't infloop on an empty commit log
39597         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39598         Reported by Boris Petersen <transacid@centerim.org>.
39599
39600 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39601
39602         version-etc: extend for packagers
39603         Add three new configure options, intended for packagers:
39604           --with-packager="packager name"
39605           --with-packager-version="packager-specific version"
39606           --with-packager-bug-reports="packager bug reporting"
39607         An example with coreutils:
39608           $ ./configure \
39609             --with-packager=Gentoo \
39610             --with-packager-bug-report=http://bugs.gentoo.org/ \
39611             --with-packager-version="patchset 1.6"
39612           $ ./src/ls --version | head -n2
39613           ls (GNU coreutils) 7.1-dirty
39614           Packaged by Gentoo (patchset 1.6)
39615         Note that the bug reporting info via --help doesn't show up because
39616         coreutils uses its own custom emit_bug_reporting_address() implementation
39617         in src/system.h.  If it didn't, it'd look like:
39618           $ ./src/ls --help | tail -n4
39619           Report bugs to <bug-coreutils@gnu.org>.
39620           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39621           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39622           General help using GNU software: <http://www.gnu.org/gethelp/>.
39623         * lib/version-etc.c: Print new information, if provided.
39624         * m4/version-etc.m4: New file.
39625         * modules/version-etc (Files): Add m4/version-etc.m4.
39626         (configure.ac): Add gl_VERSION_ETC.
39627
39628 2009-05-31  Bruno Haible  <bruno@clisp.org>
39629
39630         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39631         and 'int64_t'.
39632         * modules/alignof-tests (Dependencies): Add stdint.
39633         Reported by Eric Blake.
39634
39635 2009-05-31  Bruno Haible  <bruno@clisp.org>
39636
39637         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39638         restriction due to compiler bugs.
39639         Reported by Eric Blake.
39640
39641 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39642             Bruno Haible  <bruno@clisp.org>
39643
39644         Fix test-alignof failure.
39645         * lib/alignof.h (alignof_slot): New macro.
39646         (alignof_type): New macro, with the same semantics as the previous
39647         'alignof'.
39648         (alignof): Alias to alignof_slot.
39649         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39650         check that the results are usable as constant expressions.
39651
39652 2009-05-31  Bruno Haible  <bruno@clisp.org>
39653
39654         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39655         * tests/test-memchr.c (main): Check that memchr does not read past the
39656         first occurrence of the byte.
39657         * tests/test-strstr.c (main): Update comment.
39658         Suggested by Eric Blake.
39659
39660 2009-05-30  Bruno Haible  <bruno@clisp.org>
39661
39662         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39663         detail how to use dumpbin.
39664         Reported by David Byron <dbyron@dbyron.com>.
39665
39666 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39667
39668         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39669
39670 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39671
39672         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39673
39674 2009-05-28  Bruno Haible  <bruno@clisp.org>
39675
39676         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39677         build-aux/ files.
39678
39679 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39680
39681         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39682
39683 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39684
39685         * gnulib-tool (sed_transform_main_lib_file)
39686         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39687         regexps.
39688
39689 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39690
39691         * tests/test-strstr.c: Add another self-test.
39692         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39693         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39694
39695 2009-05-23  Bruno Haible  <bruno@clisp.org>
39696
39697         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39698         change.
39699
39700 2009-05-21  Bruno Haible  <bruno@clisp.org>
39701
39702         Simplify use of mode_t varargs.
39703         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39704         uses 'mode_t' or 'int'.
39705         * lib/openat.c (openat): Likewise.
39706         * lib/open-safer.c (open_safer): Likewise.
39707         * m4/mode_t.m4: New file.
39708         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39709         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39710         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39711         * modules/open (Files): Add m4/mode_t.m4.
39712         * modules/openat (Files): Likewise.
39713         * modules/fcntl-safer (Files): Likewise.
39714         Suggested by Eric Blake.
39715
39716 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39717
39718         * doc/glibc-functions/fallocate.texi: New file.
39719         * doc/gnulib.texi: Include it.
39720
39721 2009-05-21  Eric Blake  <ebb9@byu.net>
39722             Bruno Haible  <bruno@clisp.org>
39723
39724         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39725         invocations.
39726         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39727
39728 2009-05-21  Eric Blake  <ebb9@byu.net>
39729             Bruno Haible  <bruno@clisp.org>
39730
39731         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39732         include_next. Fix of 2008-11-20 commit.
39733         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39734         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39735         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39736         NEXT_MATH_H.
39737         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39738         instead of NEXT_MATH_H.
39739
39740 2009-05-21  Bruno Haible  <bruno@clisp.org>
39741
39742         Avoid redefinition warnings for SIZE_MAX.
39743         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39744         Reported by Simon Josefsson.
39745
39746 2009-05-21  Bruno Haible  <bruno@clisp.org>
39747
39748         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39749         AC_CACHE_VAL.
39750
39751 2009-05-20  Bruno Haible  <bruno@clisp.org>
39752
39753         Make zeroptr.h work on mingw.
39754         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39755         mprotect.
39756         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39757         * modules/memchr2-tests (configure.ac): Likewise.
39758         * modules/memcmp-tests (configure.ac): Likewise.
39759         * modules/memmem-tests (configure.ac): Likewise.
39760         * modules/memrchr-tests (configure.ac): Likewise.
39761         Reported by Simon Josefsson.
39762
39763 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39764
39765         * tests/test-glob.c: Include string.h for strcmp prototype.
39766
39767 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39768
39769         * modules/getdelim (Depends-on): Add explicit stdint, although it
39770         was implicitly already pulled in via realloc-posix.
39771         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39772
39773 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39774
39775         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39776         G. Christensen" <tgc@jupiterrise.com>.
39777         * m4/sys_socket_h.m4: Check for sa_family_t.
39778         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39779         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39780         * tests/test-sys_socket.c: Check that sa_family_t works.
39781
39782 2009-05-18  Eric Blake  <ebb9@byu.net>
39783
39784         maint.mk: allow gnulib_dir in VPATH build
39785         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39786
39787 2009-05-15  Jim Meyering  <meyering@redhat.com>
39788
39789         maint.mk: Give gnulib_dir a default definition.
39790         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39791         Thus, most packages no longer need to specify this variable in cfg.mk
39792
39793 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39794
39795         rename.m4: fix typos that would make non-mingw cross-configure fail
39796         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39797
39798 2009-05-13  Eric Blake  <ebb9@byu.net>
39799
39800         mmap-anon: avoid out-of-order autoconf expansion
39801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39802         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39803         * modules/memchr-tests (Depends-on): Add extensions.
39804         * modules/memchr2-tests (Depends-on): Add extensions.
39805         * modules/memcmp-tests (Depends-on): Add extensions.
39806         * modules/memmem-tests (Depends-on): Add extensions.
39807         * modules/memrchr-tests (Depends-on): Add extensions.
39808
39809 2009-05-13  Bruno Haible  <bruno@clisp.org>
39810
39811         Make some tests ISO C 99 compliant.
39812         * tests/zerosize-ptr.h: New file.
39813         * tests/test-memchr.c: Include zerosize-ptr.h.
39814         (main): Use a zero-size object pointer instead of NULL.
39815         * tests/test-memchr2.c: Include zerosize-ptr.h.
39816         (main): Use a zero-size object pointer instead of NULL.
39817         * tests/test-memcmp.c: Include zerosize-ptr.h.
39818         (main): Use a zero-size object pointer instead of NULL.
39819         * tests/test-memmem.c: Include zerosize-ptr.h.
39820         (main): Use a zero-size object pointer instead of NULL.
39821         * tests/test-memrchr.c: Include zerosize-ptr.h.
39822         (main): Use a zero-size object pointer instead of NULL.
39823         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39824         m4/mmap-anon.m4.
39825         (Depends-on): Add getpagesize.
39826         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39827         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39828         m4/mmap-anon.m4.
39829         (Depends-on): Add getpagesize.
39830         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39831         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39832         m4/mmap-anon.m4.
39833         (Depends-on): Add getpagesize.
39834         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39835         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39836         m4/mmap-anon.m4.
39837         (Depends-on): Add getpagesize.
39838         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39839         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39840         m4/mmap-anon.m4.
39841         (Depends-on): Add getpagesize.
39842         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39843
39844 2009-05-12  Bruno Haible  <bruno@clisp.org>
39845
39846         Tests for module 'alignof'.
39847         * modules/alignof-tests: New file.
39848         * tests/test-alignof.c: New file.
39849
39850 2009-05-12  Bruno Haible  <bruno@clisp.org>
39851
39852         Fix alignof macro.
39853         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39854         vendor compilers that are always correct.
39855
39856 2009-05-12  Bruno Haible  <bruno@clisp.org>
39857
39858         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39859         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39860         not whether its fully works.
39861
39862 2009-05-12  Bruno Haible  <bruno@clisp.org>
39863
39864         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39865
39866 2009-05-12  Jim Meyering  <meyering@redhat.com>
39867
39868         * top/maint.mk: Adjust backslash alignment.
39869
39870 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39871
39872         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39873
39874 2009-05-11  Eric Blake  <ebb9@byu.net>
39875
39876         argp: avoid undefined behavior
39877         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39878         macros.
39879
39880 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39881
39882         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39883         user.name to prevent git commit from complaining.
39884
39885 2009-05-10  Bruno Haible  <bruno@clisp.org>
39886
39887         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39888         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39889         it rewrites every file name only once.
39890         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39891
39892 2009-05-08  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39895         instead of 'max'.
39896
39897 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39898
39899         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39900         sockaddr_storage test.
39901
39902 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39903
39904         * modules/sys_socket (Makefile.am): Substitute
39905         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39906         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39907         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39908         * tests/test-sys_socket.c: Check sockaddr_storage.
39909
39910 2009-05-08  Bruno Haible  <bruno@clisp.org>
39911
39912         New module 'alignof'.
39913         * lib/alignof.h: New file.
39914         * modules/alignof: New file.
39915
39916 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39917             Bruno Haible  <bruno@clisp.org>
39918
39919         Fix test-file-has-acl on FreeBSD.
39920         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39921         mask is implicitly added.
39922         * tests/test-file-has-acl.c: Include <signal.h>.
39923         (main): Terminate the test after 5 seconds.
39924         * modules/acl-tests (configure.ac): Check for alarm function.
39925
39926 2009-05-04  Bruno Haible  <bruno@clisp.org>
39927
39928         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39929         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39930         * modules/errno (configure.ac): Drop AC_REQUIRE.
39931         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39932         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39933
39934 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39935
39936         * modules/glob-tests: New module.
39937         * tests/test-glob.c: Add.
39938
39939 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39940
39941         * modules/fnmatch-tests: New module.
39942         * tests/test-fnmatch.c: Add.
39943
39944 2009-05-04  Eric Blake  <ebb9@byu.net>
39945
39946         maint: make the new no-submodule-changes rule VPATH-safe
39947         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39948
39949 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39950             Bruno Haible  <bruno@clisp.org>
39951
39952         acl: Fix infinite loop on FreeBSD.
39953         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39954         of return value from acl_get_entry.
39955         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39956         Likewise.
39957
39958 2009-05-03  Bruno Haible  <bruno@clisp.org>
39959
39960         * lib/acl-internal.h (acl_entries): Clarify return value.
39961         * lib/acl_entries.c (acl_entries): Likewise.
39962
39963 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39964
39965         Bug fix in acl module.
39966         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39967
39968 2009-05-03  Bruno Haible  <bruno@clisp.org>
39969
39970         Create gperf-generated file in the source dir, not in the build dir.
39971         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39972         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39973         * modules/unicase/locale-language (unicase/locale-languages.h):
39974         Likewise.
39975         * modules/unicase/special-casing (unicase/special-casing-table.h):
39976         Likewise.
39977         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39978         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39979         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39980         Reported by Ralf Wildenhues.
39981
39982 2009-05-03  Bruno Haible  <bruno@clisp.org>
39983
39984         * modules/fnmatch (Description, configure.ac): Taken from
39985         fnmatch-posix.
39986         * modules/fnmatch-posix: Turn into a symbolic reference to the
39987         'fnmatch' module, and deprecate.
39988         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39989
39990 2009-05-03  Bruno Haible  <bruno@clisp.org>
39991
39992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39993         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39994         Reported by Ralf Wildenhues.
39995
39996 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39997
39998         * m4/fnmatch.m4: Fix fnmatch re-define.
39999
40000 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40001
40002         priv-set: new module and tests; adapt write-any-file
40003         * lib/priv-set.c: New file.
40004         * lib/priv-set.h: New file.
40005         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40006         * lib/write-any-file.c: Simplify by using priv-set module.
40007         * m4/priv-set.m4: New file.
40008         * modules/priv-set: New file.
40009         * modules/unlinkdir: Add dependency on priv-set module.
40010         * modules/write-any-file: Likewise.
40011
40012         Tests for module 'priv-set'.
40013         * modules/priv-set-tests: New file.
40014         * tests/test-priv-set.c: New file.
40015
40016 2009-05-03  Jim Meyering  <meyering@redhat.com>
40017             Bruno Haible  <bruno@clisp.org>
40018
40019         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40020         use the converted UTF-8 variant of the name instead.
40021
40022 2009-05-03  Jim Meyering  <meyering@redhat.com>
40023
40024         tests: tighten some getdate tests
40025         * tests/test-getdate.c (main): Tighten tests: require equality,
40026         not just greater than.  Set TZ envvar to UTC0.
40027
40028 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40029
40030         getdate: correctly interpret "next monday" when run on a Monday
40031         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40032         that e.g., "next tues" (when run on a tuesday) results in a date
40033         that is one week in the future, and not today's date.
40034         I.e., add a week when the wday is the same as the current one.
40035         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40036         and earlier by Martin Bernreuther and Jan Minář.
40037         * tests/test-getdate.c (main): Check that "next DAY" is always in
40038         the future and that "last DAY" is always in the past.
40039
40040 2009-05-02  Jim Meyering  <meyering@redhat.com>
40041
40042         build: ensure that a release build fails when a submodule is unclean
40043         * top/maint.mk (no-submodule-changes): New rule.
40044         (alpha beta major): Depend on it.
40045
40046 2009-05-02  Bruno Haible  <bruno@clisp.org>
40047
40048         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40049         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40050         shell variable gl_fnmatch_required to detect which variant is
40051         requested.
40052         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40053         gl_FUNC_FNMATCH_POSIX.
40054         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40055         exclude fnmatch-posix.
40056
40057 2009-05-02  Bruno Haible  <bruno@clisp.org>
40058
40059         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40060         * modules/mbsrtowcs (License): Change to LGPLv2+.
40061         * modules/strnlen1 (License): Likewise.
40062         Reported by Simon Josefsson.
40063
40064 2009-05-02  Bruno Haible  <bruno@clisp.org>
40065
40066         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40067         "cross".
40068         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40069         gnulib-tool was called with option --source-base=lib.
40070
40071 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40072
40073         Use automake *-local hooks without commands, for extensibility.
40074         * modules/localcharset (Makefile.am): Rename install-exec-local
40075         rule to install-exec-localcharset, and make it a prerequisite of
40076         install-exec-local.  Likewise, rename the uninstall-local rule to
40077         uninstall-localcharset, and make it a prerequisite of the former.
40078
40079 2009-05-01  Bruno Haible  <bruno@clisp.org>
40080
40081         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40082         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40083         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40085         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40086         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40087         m4/locale-zh.m4, m4/codeset.m4.
40088
40089         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40090         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40091         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40092         m4/locale-zh.m4.
40093
40094         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40095         REPLACE_WCRTOMB if mbstate_t must be replaced.
40096         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40097         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40098
40099 2009-05-01  Bruno Haible  <bruno@clisp.org>
40100
40101         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40102         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40103         dngettext, dcngettext, textdomain, bindtextdomain,
40104         bind_textdomain_codeset): Undefine before redefining.
40105
40106 2009-04-30  Bruno Haible  <bruno@clisp.org>
40107
40108         Fix bug introduced on 2009-04-25.
40109         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40110         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40111         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40112         is defined.
40113         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40114         is defined.
40115         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40116         is defined.
40117         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40118
40119 2009-04-28  Bruno Haible  <bruno@clisp.org>
40120
40121         Comment tweaks.
40122         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40123         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40124         * lib/unicase.h (u*_casexfrm): Likewise.
40125         Reported by Paolo Bonzini.
40126
40127 2009-04-28  Bruno Haible  <bruno@clisp.org>
40128
40129         Fix a compilation error.
40130         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40131         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40132         Reported by Jim Meyering.
40133
40134 2009-04-27  Bruno Haible  <bruno@clisp.org>
40135
40136         New module 'libunistring'.
40137         * modules/libunistring: New file.
40138         * m4/libunistring.m4: New file.
40139         * MODULES.html.sh (Unicode string functions): Add it.
40140
40141 2009-04-27  Eric Blake  <ebb9@byu.net>
40142
40143         maint.mk: allow package-specific header to provide <config.h>
40144         * top/maint.mk (sc_require_config_h): New variable.
40145         (sc_require_config_h, sc_require_config_h_first): Use it.
40146
40147 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40148
40149         * top/maint.mk (sc_avoid_if_before_free): Except
40150         useless-if-before-free script.
40151
40152 2009-04-27  Eric Blake  <ebb9@byu.net>
40153
40154         maintainer-makefile: depend on all required helper scripts
40155         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40156         useless-if-before-free.
40157         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40158         version, rather than assuming gnulib checkout is available.
40159         Reported by Simen Josefsson.
40160
40161 2009-04-26  Bruno Haible  <bruno@clisp.org>
40162
40163         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40164         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40165         "../" or "..".
40166
40167 2009-04-26  Bruno Haible  <bruno@clisp.org>
40168
40169         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40170         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40171         AC_LIB_HAVE_LINKFLAGS.
40172
40173 2009-04-26  Bruno Haible  <bruno@clisp.org>
40174
40175         Simplify calling convention of u*_conv_from_encoding.
40176         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40177         u32_conv_from_encoding): Expect a resultbuf argument and return the
40178         result directly as a pointer.
40179         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40180         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40181         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40182         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40183         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40184         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40185         Update.
40186         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40187         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40188         * lib/vasnprintf.c (VASNPRINTF): Update.
40189         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40190         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40191         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40192         * NEWS: Mention the change.
40193
40194 2009-04-26  Bruno Haible  <bruno@clisp.org>
40195
40196         Simplify calling convention of u*_conv_to_encoding.
40197         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40198         u32_conv_to_encoding): Expect a resultbuf argument and return the
40199         result directly as a pointer.
40200         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40201         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40202         freeing scaled_offsets if mem_iconveha failed.
40203         * lib/unicase/u-casexfrm.h (FUNC): Update.
40204         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40205         * lib/vasnprintf.c (VASNPRINTF): Update.
40206         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40207         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40208         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40209         * NEWS: Mention the change.
40210
40211 2009-04-26  Bruno Haible  <bruno@clisp.org>
40212
40213         Avoid test failures on AIX and OSF/1.
40214         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40215         malloc(0).
40216         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40217         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40218         Likewise.
40219         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40220         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40221         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40222         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40223         * doc/posix-functions/malloc.texi: Document the portability problem
40224         related to malloc(0).
40225
40226 2009-04-26  Bruno Haible  <bruno@clisp.org>
40227
40228         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40229         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40230         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40231
40232 2009-04-25  Bruno Haible  <bruno@clisp.org>
40233
40234         Avoid link error when creating a namespace clean library.
40235         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40236         as macro with arguments if already defined as an alias.
40237         * lib/signbitf.c (gl_signbitf): Don't undefine.
40238         * lib/signbitd.c (gl_signbitd): Don't undefine.
40239         * lib/signbitl.c (gl_signbitl): Don't undefine.
40240
40241 2009-04-25  Jim Meyering  <meyering@redhat.com>
40242
40243         vc-list-files: fix another quoting bug
40244         * build-aux/vc-list-files: Avoid sed backslash expansion
40245         of pathological directory names.
40246
40247 2009-04-25  Eric Blake  <ebb9@byu.net>
40248
40249         vc-list-files: fix shell quoting error
40250         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40251         timestamp.
40252
40253 2009-04-25  Jim Meyering  <meyering@redhat.com>
40254
40255         vc-list-files: restore lost functionality with subdir argument
40256         * build-aux/vc-list-files: When given a non-"." sub-directory
40257         argument, substitute the $dir/ prefix back onto each resulting name.
40258         Otherwise, coreutils' root_tests check would fail.
40259
40260 2009-04-24  Eric Blake  <ebb9@byu.net>
40261
40262         vc-list-files: ignore git symlinks
40263         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40264         than ls-files, to ignore git symlinks.
40265
40266         maint.mk: import improvements from m4
40267         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40268         (move_if_change): Delete unused macro.
40269         (news-date-check, vc-diff-check): Support VPATH builds.
40270         (announcement): Likewise.  Split --bootstrap-tools list...
40271         (boostrap-tools): ...into separate list, which can be overridden
40272         in cfg.mk.
40273         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40274         requiring dependency on useless-if-before-free module.
40275         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40276         Support VPATH builds.
40277
40278 2009-04-24  Jim Meyering  <meyering@redhat.com>
40279
40280         maint.mk: remove coreutils-specific rules and variables
40281         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40282         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40283         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40284
40285         maint.mk: remove obsolete rule
40286         * top/maint.mk (rel-check): Remove rule.
40287         (WGET, WGETFLAGS): Remove now-unused variables.
40288
40289 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40290
40291         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40292         consistency.
40293
40294         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40295         '$(PATH_SEPARATOR)' instead of ':'.
40296
40297 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40298
40299         * lib/getopt1.c (main): Use 'const' for static array.
40300
40301 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40302
40303         * top/maint.mk: Sync with coreutils.
40304         * NEWS: Explain incompatibilities.
40305
40306 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40307             Bruno Haible  <bruno@clisp.org>
40308
40309         Fix cross-compilation results.
40310         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40311         statement, as third argument of AC_TRY_RUN.
40312         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40313         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40314         Likewise.
40315         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40316         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40317         Likewise.
40318         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40319         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40320         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40321
40322 2009-04-20  Bruno Haible  <bruno@clisp.org>
40323
40324         Avoid test failure on mingw.
40325         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40326
40327 2009-04-20  Bruno Haible  <bruno@clisp.org>
40328
40329         Avoid compilation error on mingw.
40330         * modules/localename-tests (Depends-on): Add locale.
40331
40332 2009-04-19  Bruno Haible  <bruno@clisp.org>
40333
40334         Support for building a shared library on Windows platforms.
40335         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40336         (main): Test the presence of UNINORM_NFC here.
40337         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40338         (main): Test the presence of UNINORM_NFD here.
40339         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40340         (main): Test the presence of UNINORM_NFKC here.
40341         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40342         (main): Test the presence of UNINORM_NFKD here.
40343
40344 2009-04-19  Bruno Haible  <bruno@clisp.org>
40345
40346         Avoid a compiler warning.
40347         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40348         Change type of variable 'sequence'.
40349
40350 2009-04-19  Bruno Haible  <bruno@clisp.org>
40351
40352         * modules/configmake (Makefile.am): When the contents of configmake.h
40353         does not change, arrange to preserve its modification time.
40354
40355 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40356
40357         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40358         gettext domain.
40359
40360 2009-04-16  Jim Meyering  <meyering@redhat.com>
40361
40362         useless-if-before-free: improve conversion code
40363         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40364         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40365
40366 2009-04-14  Bruno Haible  <bruno@clisp.org>
40367
40368         * modules/fcntl (Depends-on): Add extensions.
40369         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40370
40371 2009-04-12  Ben Pfaff  <blp@gnu.org>
40372
40373         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40374         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40375
40376 2009-03-20  Ben Pfaff  <blp@gnu.org>
40377
40378         Make rename replace existing destinations on Windows.
40379         * m4/rename.m4: Add test for Mingw.
40380         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40381         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40382         * doc/posix-functions/rename.texi: Document.
40383
40384 2009-04-10  Bruno Haible  <bruno@clisp.org>
40385
40386         New include file "iconveh.h".
40387         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40388         * lib/striconveh.h: Include it.
40389         (enum iconv_ilseq_handler): Remove definition.
40390         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40391         striconveh.h.
40392         * lib/striconveha.c: Include striconveh.h.
40393         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40394         * modules/striconveh (Files): Add lib/iconveh.h.
40395         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40396         lib/striconveh.h.
40397
40398 2009-04-10  Bruno Haible  <bruno@clisp.org>
40399
40400         * lib/uniconv.h: Update comment.
40401
40402 2009-04-10  Bruno Haible  <bruno@clisp.org>
40403
40404         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40405         always.
40406         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40407         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40408         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40409         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40410         "unistring-notinline.h", so that the function gets defined always.
40411         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40412         * lib/unistr/u8-uctomb.c: Likewise.
40413         * lib/unistr/u16-mbtouc.c: Likewise.
40414         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40415         * lib/unistr/u16-uctomb.c: Likewise.
40416         * lib/unistr/u32-mbtouc.c: Likewise.
40417         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40418         * lib/unistr/u32-uctomb.c: Likewise.
40419
40420 2009-04-10  Bruno Haible  <bruno@clisp.org>
40421
40422         Mark 'utime' obsolete.
40423         * modules/utime (Status, Notice): New sections.
40424         Suggested by Jim Meyering.
40425
40426         Fix cross-compile guess for utime test.
40427         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40428         autoconf.
40429         * doc/posix-functions/utime.texi: Give more precisions.
40430         Reported by Jan <ipif@ymail.com>.
40431
40432 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40433
40434         filevercmp: correct today's change
40435         * lib/filevercmp.c: Also handle coreutils' test inputs.
40436         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40437
40438         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40439         for reporting it.
40440         * lib/filevercmp.c: Special handle for "", "." and "..".
40441         * tests/test-filevercmp.c: Enlarge the set suite.
40442
40443 2009-04-07  Jim Meyering  <meyering@redhat.com>
40444
40445         useless-if-before-free: show how to remove braced useless free, too
40446         * build-aux/useless-if-before-free: still only in a comment, though.
40447
40448 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40449
40450         maint.mk: import changes to syntax-check macros from coreutils
40451         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40452         Use them in the relevant macros.
40453
40454 2009-04-06  Bruno Haible  <bruno@clisp.org>
40455
40456         Fix unportable use of bit-fields.
40457         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40458         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40459         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40460
40461 2009-04-06  Bruno Haible  <bruno@clisp.org>
40462
40463         Avoid test failures on AIX and OSF/1.
40464         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40465         that malloc(0) = NULL.
40466         * tests/unicase/test-u8-tolower.c (check): Likewise.
40467         * tests/unicase/test-u8-totitle.c (check): Likewise.
40468         * tests/unicase/test-u8-toupper.c (check): Likewise.
40469         * tests/unicase/test-u16-casefold.c (check): Likewise.
40470         * tests/unicase/test-u16-tolower.c (check): Likewise.
40471         * tests/unicase/test-u16-totitle.c (check): Likewise.
40472         * tests/unicase/test-u16-toupper.c (check): Likewise.
40473         * tests/unicase/test-u32-casefold.c (check): Likewise.
40474         * tests/unicase/test-u32-tolower.c (check): Likewise.
40475         * tests/unicase/test-u32-totitle.c (check): Likewise.
40476         * tests/unicase/test-u32-toupper.c (check): Likewise.
40477         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40478         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40479         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40480         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40481         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40482         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40483         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40484         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40485         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40486         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40487         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40488         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40489
40490 2009-04-05  Bruno Haible  <bruno@clisp.org>
40491
40492         Work around an autoconf limitation.
40493         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40494         comment line if it would be longer than 3 KB.
40495
40496 2009-04-05  Bruno Haible  <bruno@clisp.org>
40497
40498         Avoid test failure with libiconv-1.13.
40499         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40500         of the expected test results.
40501
40502 2009-04-05  Bruno Haible  <bruno@clisp.org>
40503
40504         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40505         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40506         that it should be installed.
40507
40508 2009-04-05  Bruno Haible  <bruno@clisp.org>
40509
40510         * gnulib-tool: New option --copy-file.
40511         (func_usage): Document it.
40512         (func_dest_tmpfilename): Moved out of func_import.
40513         (func_add_file, func_update_file): New functions, extracted from
40514         func_import.
40515         (func_import): Update.
40516
40517 2009-04-05  Karl Berry  <karl@gnu.org>
40518
40519         * README: prominently mention gnulib-tool.
40520         Rearrange sections so getting the code is near the top.
40521
40522 2009-04-05  Bruno Haible  <bruno@clisp.org>
40523
40524         * lib/unicase.h: Mention u*_cmp2.
40525         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40526         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40527         * lib/unicase/ulc-casecmp.c: Likewise.
40528         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40529         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40530         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40531         unistr/u8-cmp.
40532         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40533         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40534         unistr/u16-cmp.
40535         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40536         unistr/u32-cmp.
40537
40538         * lib/uninorm.h: Mention u*_cmp2.
40539         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40540         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40541         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40542         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40543         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40544         unistr/u8-cmp.
40545         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40546         unistr/u16-cmp.
40547         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40548         unistr/u32-cmp.
40549
40550         New module 'unistr/u32-cmp2'.
40551         * lib/unistr/u32-cmp2.c: New file.
40552         * modules/unistr/u32-cmp2: New file.
40553
40554         New module 'unistr/u16-cmp2'.
40555         * lib/unistr/u16-cmp2.c: New file.
40556         * modules/unistr/u16-cmp2: New file.
40557
40558         New module 'unistr/u8-cmp2'.
40559         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40560         * lib/unistr/u8-cmp2.c: New file.
40561         * lib/unistr/u-cmp2.h: New file.
40562         * modules/unistr/u8-cmp2: New file.
40563
40564 2009-04-05  Bruno Haible  <bruno@clisp.org>
40565
40566         * lib/unictype.h (uc_property_is_valid): New macro.
40567         * tests/unictype/test-pr_byname.c (main): Use it.
40568
40569         * lib/unistr.h: Doc fixes.
40570         * lib/uniconv.h: Doc fixes.
40571         * lib/unictype.h: Doc fixes.
40572
40573 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40574
40575         Port coreutils 7.2 to Solaris 8.
40576
40577         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40578         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40579         for Solaris 8.  This is a bit of a hack, as it means it's the
40580         caller's responsibility to add -lnsl if needed, but most likely it
40581         won't be needed since only getaddrinfo uses this and getaddrinfo
40582         isn't needed on Solaris 8.
40583
40584         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40585         problem to Solaris 8 encountered with coreutils 7.2, which
40586         resulted in a message "fnmatch.c:292: warning: passing argument 4
40587         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40588         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40589
40590 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40591
40592         * m4/ld-version-script.m4: Add FIXME comment.
40593
40594 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40595
40596         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40597         SOVERSION variable.
40598
40599 2009-04-02  Bruno Haible  <bruno@clisp.org>
40600
40601         * Makefile (info, html, dvi, pdf): Combine the rules.
40602         Suggested by Jim Meyering.
40603
40604 2009-04-01  Bruno Haible  <bruno@clisp.org>
40605
40606         * Makefile (info, html, dvi, pdf): New targets.
40607         Reported by Reuben Thomas <rrt@sc3d.org>.
40608
40609 2009-04-01  Bruno Haible  <bruno@clisp.org>
40610
40611         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40612         can be put into PATH.
40613         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40614
40615 2009-04-01  Bruno Haible  <bruno@clisp.org>
40616
40617         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40618
40619 2009-04-01  Bruno Haible  <bruno@clisp.org>
40620
40621         Rename module 'visibility'.
40622         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40623         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40624         * doc/gnulib.texi: Update.
40625         * MODULES.html.sh (Misc): Update.
40626         * NEWS: Mention the change.
40627
40628 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40629
40630         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40631         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40632         Eric Blake <ebb9@byu.net> for review.
40633         * MODULES.html.sh: Add lib-msvc-compat.
40634         * doc/gnulib.texi: Link to new section.
40635         * m4/ld-output-def.m4: New file.
40636         * doc/ld-output-def.texi: New file.
40637
40638 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40639
40640         Rename ld-version-script to lib-symbol-versions.  Suggested by
40641         Bruno Haible <bruno@clisp.org>.
40642         * modules/ld-version-script: Renamed to lib-symbol-versions.
40643         * doc/ld-version-script.texi: Fix module name.
40644         * MODULES.html.sh: Add lib-symbol-versions.
40645
40646 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40647
40648         * modules/u64-tests: New file.
40649         * tests/test-u64.c: New file.
40650
40651 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40652
40653         * MODULES.html.sh: Mention u64.
40654         * modules/u64: New module.
40655         * modules/crypto/sha512: Depend on u64 module instead of providing
40656         u64.h.
40657
40658 2009-03-27  Eric Blake  <ebb9@byu.net>
40659
40660         test-strerror: make debugging EAI_SYSTEM easier
40661         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40662         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40663         failure was EAI_SYSTEM.
40664
40665 2009-03-25  Bruno Haible  <bruno@clisp.org>
40666
40667         Fix a problem with --enable-relocatable on Solaris 7.
40668         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40669         since 2008-02-24.
40670
40671 2009-03-25  Eric Blake  <ebb9@byu.net>
40672
40673         test-sockets: avoid gcc warning
40674         * tests/test-sockets.c (main): Silence compiler warning.
40675
40676 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40677
40678         New modules nproc, pthread, contributed by Glen Lenker.
40679
40680         * MODULES.html.sh: Add pthread, nproc.
40681         * lib/nproc.c: New file.
40682         * lib/nproc.h: New file.
40683         * lib/pthread.in.h: New file.
40684         * m4/pthread.m4: New file.
40685         * modules/nproc: New file.
40686         * modules/pthread: New file.
40687
40688 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40689
40690         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40691         New variable.
40692
40693 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40694
40695         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40696         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40697         * tests/test-filevercmp.c: Add tests for backup suffixes.
40698
40699 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40700
40701         * modules/stdlib (Depends-on): Add stdint, needed when defining
40702         struct random_data on, for example, HP-UX 10.20.  Reported by
40703         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40704
40705 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40706
40707         * lib/readline.c (readline): Call fflush on stdout after printing
40708         prompt.
40709
40710 2009-03-20  Bruno Haible  <bruno@clisp.org>
40711
40712         Remove dependency from 'close' module to -lws2_32 on native Windows.
40713         * lib/close-hook.h: New file.
40714         * lib/close-hook.c: New file.
40715         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40716         w32sock.h.
40717         (_gl_close_fd_maybe_socket): Remove function.
40718         (rpl_close): Invoke execute_all_close_hooks instead of
40719         _gl_close_fd_maybe_socket.
40720         * lib/sockets.c: Include close-hook.h, w32sock.h.
40721         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40722         (close_sockets_hook): New variable.
40723         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40724         (gl_sockets_cleanup): Unregister it.
40725         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40726         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40727         * modules/close-hook: New file.
40728         * modules/close (Files): Remove lib/w32sock.h.
40729         (Depends-on): Add close-hook.
40730         (Link): Remove section.
40731         * modules/sockets (Files): Add lib/w32sock.h.
40732         (Depends-on): Add close-hook.
40733         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40734         invocation.
40735         * NEWS: Mention that LIB_CLOSE is gone.
40736
40737 2009-03-23  Eric Blake  <ebb9@byu.net>
40738
40739         signal-tests: test previous patch
40740         * tests/test-signal.c: New file.
40741         * modules/signal-tests: Likewise.
40742
40743         signal.h: always support 'volatile sig_atomic_t'
40744         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40745         (gl_SIGNAL_H_DEFAULTS): Add a default.
40746         * modules/signal (Makefile.am): Substitute if needed.
40747         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40748         users can blindly add volatile.
40749         * doc/posix-headers/signal.texi (signal.h): Document it.
40750         Reported by Matthew Woehlke.
40751
40752 2009-03-23  Jim Meyering  <meyering@redhat.com>
40753
40754         pathmax: PATH_MAX: use pathconf only when available
40755         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40756         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40757         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40758         This avoids a link failure in a PSP cross-compilation environment
40759         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40760
40761         * lib/vasnprintf.c (divide): Fix typo in comment.
40762
40763 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40764
40765         * gnulib-tool (func_filter_filelist): Fix comment.
40766
40767 2009-03-20  Bruno Haible  <bruno@clisp.org>
40768
40769         Make sockets.h self-contained.
40770         * lib/sockets.c: Include sockets.h first.
40771         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40772
40773 2009-03-19  Eric Blake  <ebb9@byu.net>
40774
40775         doc: mention more functions added in cygwin 1.7.0
40776         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40777         addition.
40778         * doc/posix-functions/log2f.texi: Likewise.
40779
40780 2009-03-19  Jim Meyering  <meyering@redhat.com>
40781
40782         fsusage: avoid syntax error due to statement-before-declaration
40783         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40784         after all declarations.  Reported by Matthew Woehlke in
40785         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40786
40787 2009-03-18  Eric Blake  <ebb9@byu.net>
40788
40789         build-aux/compile: sync from automake
40790         * build-aux/compile: New file, from automake.
40791         * config/srclist.txt: Mention build-aux/compile.
40792
40793 2009-03-17  Bruno Haible  <bruno@clisp.org>
40794
40795         * lib/git-merge-changelog.c: Fix typo in comment.
40796         Reported by Reuben Thomas <rrt@sc3d.org>.
40797
40798 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40799
40800         * m4/regex.m4: update and improve help for
40801         --without-included-regex.
40802
40803 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40804
40805         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40806         failure on missing include files.
40807
40808 2009-03-17  Eric Blake  <ebb9@byu.net>
40809
40810         doc: mention more functions added in cygwin 1.7.0
40811         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40812         addition.
40813         * doc/posix-functions/fwscanf.texi: Likewise.
40814         * doc/posix-functions/swprintf.texi: Likewise.
40815         * doc/posix-functions/swscanf.texi: Likewise.
40816         * doc/posix-functions/vfwprintf.texi: Likewise.
40817         * doc/posix-functions/vfwscanf.texi: Likewise.
40818         * doc/posix-functions/vswprintf.texi: Likewise.
40819         * doc/posix-functions/vswscanf.texi: Likewise.
40820         * doc/posix-functions/vwprintf.texi: Likewise.
40821         * doc/posix-functions/vwscanf.texi: Likewise.
40822         * doc/posix-functions/wcscasecmp.texi: Likewise.
40823         * doc/posix-functions/wcsdup.texi: Likewise.
40824         * doc/posix-functions/wcsftime.texi: Likewise.
40825         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40826         * doc/posix-functions/wprintf.texi: Likewise.
40827         * doc/posix-functions/wscanf.texi: Likewise.
40828         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40829
40830 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40831
40832         maint.mk: really add $(AM_MAKEFLAGS)
40833         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40834         was inadvertently omitted in the last commit.
40835         Spotted by Bruno Haible.
40836
40837         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40838         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40839         $(AM_MAKEFLAGS)' rather than plain `make'.
40840
40841         gnulib-tool: execute $MAKE not make
40842         * gnulib-tool: Default $MAKE to 'make'.
40843         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40844         than make.  Initialize $MAKE in the do-autobuild script.
40845
40846         gnulib-tool: use $MAKE not make in generated files
40847         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40848         make, in generated files.  Initialize $MAKE in the do-autobuild
40849         script.
40850
40851         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40852
40853         GNUmakefile: disable parallelism only for multiple, recursive targets
40854         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40855         additions in the Makefile.
40856         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40857         by Automake.
40858         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40859         are listed on the command line and at least one of them is
40860         listed in $(ALL_RECURSIVE_TARGETS).
40861
40862 2009-03-14  Bruno Haible  <bruno@clisp.org>
40863
40864         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40865         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40866         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40867         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40868         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40869         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40870         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40871         unistr/u8-uctomb.
40872         * modules/unistr/u8-strchr (Depends-on): Likewise.
40873         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40874         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40875         unistr/u16-uctomb.
40876         * modules/unistr/u16-strchr (Depends-on): Likewise.
40877         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40878
40879 2009-03-12  Bruno Haible  <bruno@clisp.org>
40880
40881         Work around select() bug on Interix 3.5.
40882         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40883         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40884         * m4/select.m4: New file.
40885         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40886         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40887         * modules/select (Files): Add m4/select.m4.
40888         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40889         * modules/nanosleep (Depends-on): Add select.
40890         * modules/poll (Depends-on): Likewise.
40891         * doc/posix-functions/select.texi: Mention the Interix bug.
40892         Reported by Markus Duft <mduft@gentoo.org>.
40893
40894         * lib/select.c: Renamed from lib/winsock-select.c.
40895         * modules/select (Files): Add lib/select.c, remove
40896         lib/winsock-select.c.
40897         (configure.ac): Update.
40898
40899 2009-03-12  Jim Meyering  <meyering@redhat.com>
40900
40901         avoid gcc warnings about unused macro definitions
40902         * lib/readtokens.c (STREQ): Remove unused definition.
40903         * lib/xmalloc.c (SIZE_MAX): Likewise.
40904         * lib/openat-die.c (N_): Likewise.
40905         * lib/mountlist.c (SIZE_MAX): Remove definition.
40906         Instead, include <stdint.h>.
40907         * lib/readutmp.c: Likewise.
40908         * modules/readutmp (Depends-on): Add stdint.
40909         * modules/mountlist (Depends-on): Add stdint.
40910         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40911
40912 2009-03-10  Bruno Haible  <bruno@clisp.org>
40913
40914         Tests for module 'mbmemcasecoll'.
40915         * modules/mbmemcasecoll-tests: New file.
40916         * tests/test-mbmemcasecoll1.sh: New file.
40917         * tests/test-mbmemcasecoll2.sh: New file.
40918         * tests/test-mbmemcasecoll3.sh: New file.
40919         * tests/test-mbmemcasecoll.c: New file.
40920
40921         New module 'mbmemcasecoll'.
40922         * lib/mbmemcasecoll.h: New file.
40923         * lib/mbmemcasecoll.c: New file.
40924         * modules/mbmemcasecoll: New file.
40925
40926         * tests/test-mbmemcasecmp.h: New file, extracted from
40927         tests/test-mbmemcasecmp.c.
40928         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40929         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40930         (main): Update.
40931         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40932
40933 2009-03-09  Bruno Haible  <bruno@clisp.org>
40934
40935         Tests for module 'mbmemcasecmp'.
40936         * modules/mbmemcasecmp-tests: New file.
40937         * tests/test-mbmemcasecmp1.sh: New file.
40938         * tests/test-mbmemcasecmp2.sh: New file.
40939         * tests/test-mbmemcasecmp3.sh: New file.
40940         * tests/test-mbmemcasecmp.c: New file.
40941
40942         New module 'mbmemcasecmp'.
40943         * lib/mbmemcasecmp.h: New file.
40944         * lib/mbmemcasecmp.c: New file.
40945         * modules/mbmemcasecmp: New file.
40946
40947 2009-03-09  Bruno Haible  <bruno@clisp.org>
40948
40949         Tests for module 'unicase/ulc-casecoll'.
40950         * modules/unicase/ulc-casecoll-tests: New file.
40951         * tests/unicase/test-ulc-casecoll1.sh: New file.
40952         * tests/unicase/test-ulc-casecoll2.sh: New file.
40953         * tests/unicase/test-ulc-casecoll.c: New file.
40954
40955         New module 'unicase/ulc-casecoll'.
40956         * lib/unicase.h (ulc_casecoll): New declaration.
40957         * lib/unicase/ulc-casecoll.c: New file.
40958         * modules/unicase/ulc-casecoll: New file.
40959
40960         New module 'unicase/ulc-casexfrm'.
40961         * lib/unicase.h (ulc_casexfrm): New declaration.
40962         * lib/unicase/ulc-casexfrm.c: New file.
40963         * modules/unicase/ulc-casexfrm: New file.
40964
40965 2009-03-09  Bruno Haible  <bruno@clisp.org>
40966
40967         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40968         invocations.
40969
40970         * m4/mbscasecmp.m4: Remove file.
40971         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40972         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40973
40974         * m4/mbscasestr.m4: Remove file.
40975         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40976         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40977
40978         * m4/mbschr.m4: Remove file.
40979         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40980         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40981
40982         * m4/mbscspn.m4: Remove file.
40983         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40984         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40985
40986         * m4/mbslen.m4: Remove file.
40987         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40988         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40989
40990         * m4/mbsncasecmp.m4: Remove file.
40991         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40992         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40993
40994         * m4/mbsnlen.m4: Remove file.
40995         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40996         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40997
40998         * m4/mbspbrk.m4: Remove file.
40999         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41000         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41001
41002         * m4/mbspcasecmp.m4: Remove file.
41003         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41004         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41005
41006         * m4/mbsrchr.m4: Remove file.
41007         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41008         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41009
41010         * m4/mbssep.m4: Remove file.
41011         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41012         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41013
41014         * m4/mbsspn.m4: Remove file.
41015         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41016         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41017
41018         * m4/mbsstr.m4: Remove file.
41019         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41020         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41021
41022         * m4/mbstok_r.m4: Remove file.
41023         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41024         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41025
41026         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41027
41028         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41029         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41030
41031         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41032
41033 2009-03-08  Bruno Haible  <bruno@clisp.org>
41034
41035         Tests for module 'unicase/ulc-casecmp'.
41036         * modules/unicase/ulc-casecmp-tests: New file.
41037         * tests/unicase/test-ulc-casecmp1.sh: New file.
41038         * tests/unicase/test-ulc-casecmp2.sh: New file.
41039         * tests/unicase/test-ulc-casecmp.c: New file.
41040
41041         New module 'unicase/ulc-casecmp'.
41042         * lib/unicase.h (ulc_casecmp): New declaration.
41043         * lib/unicase/ulc-casecmp.c: New file.
41044         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41045         'const SRC_UNIT *'.
41046         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41047         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41048         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41049         * modules/unicase/ulc-casecmp: New file.
41050
41051         Tests for module 'unicase/u32-is-cased'.
41052         * modules/unicase/u32-is-cased-tests: New file.
41053         * tests/unicase/test-u32-is-cased.c: New file.
41054
41055         Tests for module 'unicase/u16-is-cased'.
41056         * modules/unicase/u16-is-cased-tests: New file.
41057         * tests/unicase/test-u16-is-cased.c: New file.
41058
41059         Tests for module 'unicase/u8-is-cased'.
41060         * modules/unicase/u8-is-cased-tests: New file.
41061         * tests/unicase/test-u8-is-cased.c: New file.
41062         * tests/unicase/test-is-cased.h: New file.
41063
41064         New module 'unicase/u32-is-cased'.
41065         * lib/unicase/u32-is-cased.c: New file.
41066         * modules/unicase/u32-is-cased: New file.
41067
41068         New module 'unicase/u16-is-cased'.
41069         * lib/unicase/u16-is-cased.c: New file.
41070         * modules/unicase/u16-is-cased: New file.
41071
41072         New module 'unicase/u8-is-cased'.
41073         * lib/unicase/u8-is-cased.c: New file.
41074         * lib/unicase/u-is-cased.h: New file.
41075         * modules/unicase/u8-is-cased: New file.
41076
41077         Tests for module 'unicase/u32-is-casefolded'.
41078         * modules/unicase/u32-is-casefolded-tests: New file.
41079         * tests/unicase/test-u32-is-casefolded.c: New file.
41080
41081         Tests for module 'unicase/u16-is-casefolded'.
41082         * modules/unicase/u16-is-casefolded-tests: New file.
41083         * tests/unicase/test-u16-is-casefolded.c: New file.
41084
41085         Tests for module 'unicase/u8-is-casefolded'.
41086         * modules/unicase/u8-is-casefolded-tests: New file.
41087         * tests/unicase/test-u8-is-casefolded.c: New file.
41088         * tests/unicase/test-is-casefolded.h: New file.
41089
41090         New module 'unicase/u32-is-casefolded'.
41091         * lib/unicase/u32-is-casefolded.c: New file.
41092         * modules/unicase/u32-is-casefolded: New file.
41093
41094         New module 'unicase/u16-is-casefolded'.
41095         * lib/unicase/u16-is-casefolded.c: New file.
41096         * modules/unicase/u16-is-casefolded: New file.
41097
41098         New module 'unicase/u8-is-casefolded'.
41099         * lib/unicase/u8-is-casefolded.c: New file.
41100         * modules/unicase/u8-is-casefolded: New file.
41101
41102         Tests for module 'unicase/u32-is-titlecase'.
41103         * modules/unicase/u32-is-titlecase-tests: New file.
41104         * tests/unicase/test-u32-is-titlecase.c: New file.
41105
41106         Tests for module 'unicase/u16-is-titlecase'.
41107         * modules/unicase/u16-is-titlecase-tests: New file.
41108         * tests/unicase/test-u16-is-titlecase.c: New file.
41109
41110         Tests for module 'unicase/u8-is-titlecase'.
41111         * modules/unicase/u8-is-titlecase-tests: New file.
41112         * tests/unicase/test-u8-is-titlecase.c: New file.
41113         * tests/unicase/test-is-titlecase.h: New file.
41114
41115         New module 'unicase/u32-is-titlecase'.
41116         * lib/unicase/u32-is-titlecase.c: New file.
41117         * modules/unicase/u32-is-titlecase: New file.
41118
41119         New module 'unicase/u16-is-titlecase'.
41120         * lib/unicase/u16-is-titlecase.c: New file.
41121         * modules/unicase/u16-is-titlecase: New file.
41122
41123         New module 'unicase/u8-is-titlecase'.
41124         * lib/unicase/u8-is-titlecase.c: New file.
41125         * modules/unicase/u8-is-titlecase: New file.
41126
41127         Tests for module 'unicase/u32-is-lowercase'.
41128         * modules/unicase/u32-is-lowercase-tests: New file.
41129         * tests/unicase/test-u32-is-lowercase.c: New file.
41130
41131         Tests for module 'unicase/u16-is-lowercase'.
41132         * modules/unicase/u16-is-lowercase-tests: New file.
41133         * tests/unicase/test-u16-is-lowercase.c: New file.
41134
41135         Tests for module 'unicase/u8-is-lowercase'.
41136         * modules/unicase/u8-is-lowercase-tests: New file.
41137         * tests/unicase/test-u8-is-lowercase.c: New file.
41138         * tests/unicase/test-is-lowercase.h: New file.
41139
41140         New module 'unicase/u32-is-lowercase'.
41141         * lib/unicase/u32-is-lowercase.c: New file.
41142         * modules/unicase/u32-is-lowercase: New file.
41143
41144         New module 'unicase/u16-is-lowercase'.
41145         * lib/unicase/u16-is-lowercase.c: New file.
41146         * modules/unicase/u16-is-lowercase: New file.
41147
41148         New module 'unicase/u8-is-lowercase'.
41149         * lib/unicase/u8-is-lowercase.c: New file.
41150         * modules/unicase/u8-is-lowercase: New file.
41151
41152         Tests for module 'unicase/u32-is-uppercase'.
41153         * modules/unicase/u32-is-uppercase-tests: New file.
41154         * tests/unicase/test-u32-is-uppercase.c: New file.
41155
41156         Tests for module 'unicase/u16-is-uppercase'.
41157         * modules/unicase/u16-is-uppercase-tests: New file.
41158         * tests/unicase/test-u16-is-uppercase.c: New file.
41159
41160         Tests for module 'unicase/u8-is-uppercase'.
41161         * modules/unicase/u8-is-uppercase-tests: New file.
41162         * tests/unicase/test-u8-is-uppercase.c: New file.
41163         * tests/unicase/test-is-uppercase.h: New file.
41164
41165         New module 'unicase/u32-is-uppercase'.
41166         * lib/unicase/u32-is-uppercase.c: New file.
41167         * modules/unicase/u32-is-uppercase: New file.
41168
41169         New module 'unicase/u16-is-uppercase'.
41170         * lib/unicase/u16-is-uppercase.c: New file.
41171         * modules/unicase/u16-is-uppercase: New file.
41172
41173         New module 'unicase/u8-is-uppercase'.
41174         * lib/unicase/u8-is-uppercase.c: New file.
41175         * modules/unicase/u8-is-uppercase: New file.
41176
41177         New module 'unicase/u32-is-invariant'.
41178         * lib/unicase/u32-is-invariant.c: New file.
41179         * modules/unicase/u32-is-invariant: New file.
41180
41181         New module 'unicase/u16-is-invariant'.
41182         * lib/unicase/u16-is-invariant.c: New file.
41183         * modules/unicase/u16-is-invariant: New file.
41184
41185         New module 'unicase/u8-is-invariant'.
41186         * lib/unicase/u8-is-invariant.c: New file.
41187         * lib/unicase/invariant.h: New file.
41188         * lib/unicase/u-is-invariant.h: New file.
41189         * modules/unicase/u8-is-invariant: New file.
41190
41191         Tests for module 'unicase/u32-casecoll'.
41192         * modules/unicase/u32-casecoll-tests: New file.
41193         * tests/unicase/test-u32-casecoll.c: New file.
41194
41195         Tests for module 'unicase/u16-casecoll'.
41196         * modules/unicase/u16-casecoll-tests: New file.
41197         * tests/unicase/test-u16-casecoll.c: New file.
41198
41199         Tests for module 'unicase/u8-casecoll'.
41200         * modules/unicase/u8-casecoll-tests: New file.
41201         * tests/unicase/test-u8-casecoll.c: New file.
41202
41203         New module 'unicase/u32-casecoll'.
41204         * lib/unicase/u32-casecoll.c: New file.
41205         * modules/unicase/u32-casecoll: New file.
41206
41207         New module 'unicase/u16-casecoll'.
41208         * lib/unicase/u16-casecoll.c: New file.
41209         * modules/unicase/u16-casecoll: New file.
41210
41211         New module 'unicase/u8-casecoll'.
41212         * lib/unicase/u8-casecoll.c: New file.
41213         * lib/unicase/u-casecoll.h: New file.
41214         * modules/unicase/u8-casecoll: New file.
41215
41216         New module 'unicase/u32-casexfrm'.
41217         * lib/unicase/u32-casexfrm.c: New file.
41218         * modules/unicase/u32-casexfrm: New file.
41219
41220         New module 'unicase/u16-casexfrm'.
41221         * lib/unicase/u16-casexfrm.c: New file.
41222         * modules/unicase/u16-casexfrm: New file.
41223
41224         New module 'unicase/u8-casexfrm'.
41225         * lib/unicase/u8-casexfrm.c: New file.
41226         * lib/unicase/u-casexfrm.h: New file.
41227         * modules/unicase/u8-casexfrm: New file.
41228
41229         Tests for module 'unicase/u32-casecmp'.
41230         * modules/unicase/u32-casecmp-tests: New file.
41231         * tests/unicase/test-u32-casecmp.c: New file.
41232
41233         Tests for module 'unicase/u16-casecmp'.
41234         * modules/unicase/u16-casecmp-tests: New file.
41235         * tests/unicase/test-u16-casecmp.c: New file.
41236
41237         Tests for module 'unicase/u8-casecmp'.
41238         * modules/unicase/u8-casecmp-tests: New file.
41239         * tests/unicase/test-u8-casecmp.c: New file.
41240         * tests/unicase/test-casecmp.h: New file.
41241
41242         New module 'unicase/u32-casecmp'.
41243         * lib/unicase/u32-casecmp.c: New file.
41244         * modules/unicase/u32-casecmp: New file.
41245
41246         New module 'unicase/u16-casecmp'.
41247         * lib/unicase/u16-casecmp.c: New file.
41248         * modules/unicase/u16-casecmp: New file.
41249
41250         New module 'unicase/u8-casecmp'.
41251         * lib/unicase/u8-casecmp.c: New file.
41252         * lib/unicase/u-casecmp.h: New file.
41253         * modules/unicase/u8-casecmp: New file.
41254
41255         Tests for module 'unicase/u32-casefold'.
41256         * modules/unicase/u32-casefold-tests: New file.
41257         * tests/unicase/test-u32-casefold.c: New file.
41258
41259         Tests for module 'unicase/u16-casefold'.
41260         * modules/unicase/u16-casefold-tests: New file.
41261         * tests/unicase/test-u16-casefold.c: New file.
41262
41263         Tests for module 'unicase/u8-casefold'.
41264         * modules/unicase/u8-casefold-tests: New file.
41265         * tests/unicase/test-u8-casefold.c: New file.
41266
41267         New module 'unicase/u32-casefold'.
41268         * lib/unicase/u32-casefold.c: New file.
41269         * modules/unicase/u32-casefold: New file.
41270
41271         New module 'unicase/u16-casefold'.
41272         * lib/unicase/u16-casefold.c: New file.
41273         * modules/unicase/u16-casefold: New file.
41274
41275         New module 'unicase/u8-casefold'.
41276         * lib/unicase/u8-casefold.c: New file.
41277         * lib/unicase/u-casefold.h: New file.
41278         * modules/unicase/u8-casefold: New file.
41279
41280         New module 'unicase/tocasefold'.
41281         * lib/unicase/casefold.h: New file.
41282         * lib/unicase/tocasefold.c: New file.
41283         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41284         * modules/unicase/tocasefold: New file.
41285
41286         Tests for module 'unicase/u32-totitle'.
41287         * modules/unicase/u32-totitle-tests: New file.
41288         * tests/unicase/test-u32-totitle.c: New file.
41289
41290         Tests for module 'unicase/u16-totitle'.
41291         * modules/unicase/u16-totitle-tests: New file.
41292         * tests/unicase/test-u16-totitle.c: New file.
41293
41294         Tests for module 'unicase/u8-totitle'.
41295         * modules/unicase/u8-totitle-tests: New file.
41296         * tests/unicase/test-u8-totitle.c: New file.
41297
41298         New module 'unicase/u32-totitle'.
41299         * lib/unicase/u32-totitle.c: New file.
41300         * modules/unicase/u32-totitle: New file.
41301
41302         New module 'unicase/u16-totitle'.
41303         * lib/unicase/u16-totitle.c: New file.
41304         * modules/unicase/u16-totitle: New file.
41305
41306         New module 'unicase/u8-totitle'.
41307         * lib/unicase/u8-totitle.c: New file.
41308         * lib/unicase/u-totitle.h: New file.
41309         * modules/unicase/u8-totitle: New file.
41310
41311         Tests for module 'unicase/u32-tolower'.
41312         * modules/unicase/u32-tolower-tests: New file.
41313         * tests/unicase/test-u32-tolower.c: New file.
41314
41315         Tests for module 'unicase/u16-tolower'.
41316         * modules/unicase/u16-tolower-tests: New file.
41317         * tests/unicase/test-u16-tolower.c: New file.
41318
41319         Tests for module 'unicase/u8-tolower'.
41320         * modules/unicase/u8-tolower-tests: New file.
41321         * tests/unicase/test-u8-tolower.c: New file.
41322
41323         New module 'unicase/u32-tolower'.
41324         * lib/unicase/u32-tolower.c: New file.
41325         * modules/unicase/u32-tolower: New file.
41326
41327         New module 'unicase/u16-tolower'.
41328         * lib/unicase/u16-tolower.c: New file.
41329         * modules/unicase/u16-tolower: New file.
41330
41331         New module 'unicase/u8-tolower'.
41332         * lib/unicase/u8-tolower.c: New file.
41333         * modules/unicase/u8-tolower: New file.
41334
41335         Tests for module 'unicase/u32-toupper'.
41336         * modules/unicase/u32-toupper-tests: New file.
41337         * tests/unicase/test-u32-toupper.c: New file.
41338
41339         Tests for module 'unicase/u16-toupper'.
41340         * modules/unicase/u16-toupper-tests: New file.
41341         * tests/unicase/test-u16-toupper.c: New file.
41342
41343         Tests for module 'unicase/u8-toupper'.
41344         * modules/unicase/u8-toupper-tests: New file.
41345         * tests/unicase/test-u8-toupper.c: New file.
41346
41347         New module 'unicase/u32-toupper'.
41348         * lib/unicase/u32-toupper.c: New file.
41349         * modules/unicase/u32-toupper: New file.
41350
41351         New module 'unicase/u16-toupper'.
41352         * lib/unicase/u16-toupper.c: New file.
41353         * modules/unicase/u16-toupper: New file.
41354
41355         New module 'unicase/u8-toupper'.
41356         * lib/unicase/u8-toupper.c: New file.
41357         * modules/unicase/u8-toupper: New file.
41358
41359         New module 'unicase/u32-casemap'.
41360         * lib/unicase/u32-casemap.c: New file.
41361         * modules/unicase/u32-casemap: New file.
41362
41363         New module 'unicase/u16-casemap'.
41364         * lib/unicase/u16-casemap.c: New file.
41365         * modules/unicase/u16-casemap: New file.
41366
41367         New module 'unicase/u8-casemap'.
41368         * lib/unicase/unicasemap.h: New file.
41369         * lib/unicase/u8-casemap.c: New file.
41370         * lib/unicase/u-casemap.h: New file.
41371         * modules/unicase/u8-casemap: New file.
41372
41373         New module 'unicase/special-casing'.
41374         * lib/unicase/special-casing.h: New file.
41375         * lib/unicase/special-casing.c: New file.
41376         * lib/unicase/special-casing-table.gperf: New file, generated by
41377         gen-uni-tables.c.
41378         * modules/unicase/special-casing: New file.
41379
41380         Tests for module 'unicase/locale-language'.
41381         * modules/unicase/locale-language-tests: New file.
41382         * tests/unicase/test-locale-language.sh: New file.
41383         * tests/unicase/test-locale-language.c: New file.
41384
41385         New module 'unicase/locale-language'.
41386         * lib/unicase/locale-language.c: New file.
41387         * lib/unicase/locale-languages.gperf: New file.
41388         * modules/unicase/locale-language: New file.
41389
41390         Generate more tables for case conversion and case folding.
41391         * lib/gen-uni-tables.c (SCC_*): New enum items.
41392         (struct special_casing_rule): New type.
41393         (casing_rules, num_casing_rules, allocated_casing_rules): New
41394         variables.
41395         (add_casing_rule, fill_casing_rules): New functions.
41396         (struct casefold_rule): New type.
41397         (casefolding_rules, num_casefolding_rules,
41398         allocated_casefolding_rules): New variables.
41399         (fill_casefolding_rules): New function.
41400         (unicode_casefold): New variable.
41401         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41402         sort_casing_rules, output_casing_rules): New functions.
41403         (main): Accept to more arguments: SpecialCasing.txt and
41404         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41405         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41406         Output mapping for casefolding.
41407
41408         * lib/unicase.h: Include stdbool.h, uninorm.h.
41409         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41410         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41411         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41412         arguments.
41413         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41414         resultp arguments.
41415         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41416         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41417         resultp arguments.
41418         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41419         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41420         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41421         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41422         declarations.
41423         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41424
41425 2009-03-08  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41428         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41429         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41430         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41431
41432 2009-03-07  Bruno Haible  <bruno@clisp.org>
41433
41434         Adjust u*_normcmp, u*_normcoll API.
41435         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41436         u16_normcoll, u32_normcoll): Change failure conventions.
41437         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41438         errno and return -1.
41439         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41440
41441 2009-03-07  Bruno Haible  <bruno@clisp.org>
41442
41443         Tests for module 'uninorm/u32-normcoll'.
41444         * modules/uninorm/u32-normcoll-tests: New file.
41445         * tests/uninorm/test-u32-normcoll.c: New file.
41446
41447         Tests for module 'uninorm/u16-normcoll'.
41448         * modules/uninorm/u16-normcoll-tests: New file.
41449         * tests/uninorm/test-u16-normcoll.c: New file.
41450
41451         Tests for module 'uninorm/u8-normcoll'.
41452         * modules/uninorm/u8-normcoll-tests: New file.
41453         * tests/uninorm/test-u8-normcoll.c: New file.
41454
41455 2009-03-07  Bruno Haible  <bruno@clisp.org>
41456
41457         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41458         tests/uninorm/test-u32-normcmp.c.
41459         * tests/uninorm/test-u32-normcmp.c: Include it.
41460         (test_nonascii): New function, extracted from main. Add some more
41461         tests.
41462         (main): Invoke test_ascii and test_nonascii.
41463         * modules/uninorm/u32-normcmp-tests (Files): Add
41464         tests/uninorm/test-u32-normcmp.h.
41465         (Depends-on): Remove uninorm/u32-normcmp.
41466
41467         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41468         tests/uninorm/test-u16-normcmp.c.
41469         * tests/uninorm/test-u16-normcmp.c: Include it.
41470         (test_nonascii): New function, extracted from main. Add some more
41471         tests.
41472         (main): Invoke test_ascii and test_nonascii.
41473         * modules/uninorm/u16-normcmp-tests (Files): Add
41474         tests/uninorm/test-u16-normcmp.h.
41475         (Depends-on): Remove uninorm/u16-normcmp.
41476
41477         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41478         tests/uninorm/test-u8-normcmp.c.
41479         * tests/uninorm/test-u8-normcmp.c: Include it.
41480         (test_nonascii): New function, extracted from main. Add some more
41481         tests.
41482         (main): Invoke test_ascii and test_nonascii.
41483         * modules/uninorm/u8-normcmp-tests (Files): Add
41484         tests/uninorm/test-u8-normcmp.h.
41485         (Depends-on): Remove uninorm/u8-normcmp.
41486
41487 2009-03-07  Bruno Haible  <bruno@clisp.org>
41488
41489         New module 'uninorm/u32-normcoll'.
41490         * lib/uninorm/u32-normcoll.c: New file.
41491         * modules/uninorm/u32-normcoll: New file.
41492
41493         New module 'uninorm/u16-normcoll'.
41494         * lib/uninorm/u16-normcoll.c: New file.
41495         * modules/uninorm/u16-normcoll: New file.
41496
41497         New module 'uninorm/u8-normcoll'.
41498         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41499         declarations.
41500         * lib/uninorm/u8-normcoll.c: New file.
41501         * lib/uninorm/u-normcoll.h: New file.
41502         * modules/uninorm/u8-normcoll: New file.
41503
41504         New module 'uninorm/u32-normxfrm'.
41505         * lib/uninorm/u32-normxfrm.c: New file.
41506         * modules/uninorm/u32-normxfrm: New file.
41507
41508         New module 'uninorm/u16-normxfrm'.
41509         * lib/uninorm/u16-normxfrm.c: New file.
41510         * modules/uninorm/u16-normxfrm: New file.
41511
41512         New module 'uninorm/u8-normxfrm'.
41513         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41514         declarations.
41515         * lib/uninorm/u8-normxfrm.c: New file.
41516         * lib/uninorm/u-normxfrm.h: New file.
41517         * modules/uninorm/u8-normxfrm: New file.
41518
41519 2009-03-07  Bruno Haible  <bruno@clisp.org>
41520
41521         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41522         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41523         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41524
41525 2009-03-07  Bruno Haible  <bruno@clisp.org>
41526
41527         New module 'memxfrm'.
41528         * lib/memxfrm.h: New file.
41529         * lib/memxfrm.c: New file.
41530         * modules/memxfrm: New file.
41531
41532 2009-03-07  Bruno Haible  <bruno@clisp.org>
41533
41534         New module 'memcmp2'.
41535         * lib/memcmp2.h: New file.
41536         * lib/memcmp2.c: New file.
41537         * modules/memcmp2: New file.
41538
41539 2009-03-07  Bruno Haible  <bruno@clisp.org>
41540
41541         Tests for module 'uninorm/decomposing-form'.
41542         * modules/uninorm/decomposing-form-tests: New file.
41543         * tests/uninorm/test-decomposing-form.c: New file.
41544
41545         New module 'uninorm/decomposing-form'.
41546         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41547         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41548         Add 'decomposing_variant' field.
41549         * lib/uninorm/decomposing-form.c: New file.
41550         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41551         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41552         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41553         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41554         * modules/uninorm/decomposing-form: New file.
41555         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41556         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41557
41558 2009-03-07  Bruno Haible  <bruno@clisp.org>
41559
41560         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41561         strings.
41562
41563 2009-03-06  Bruno Haible  <bruno@clisp.org>
41564
41565         Tests for module 'uninorm/u32-normcmp'.
41566         * tests/uninorm/test-u32-normcmp.c: New file.
41567         * modules/uninorm/u32-normcmp-tests: New file.
41568
41569         Tests for module 'uninorm/u16-normcmp'.
41570         * tests/uninorm/test-u16-normcmp.c: New file.
41571         * modules/uninorm/u16-normcmp-tests: New file.
41572
41573         Tests for module 'uninorm/u8-normcmp'.
41574         * tests/uninorm/test-u8-normcmp.c: New file.
41575         * modules/uninorm/u8-normcmp-tests: New file.
41576
41577         New module 'uninorm/u32-normcmp'.
41578         * lib/uninorm/u32-normcmp.c: New file.
41579         * modules/uninorm/u32-normcmp: New file.
41580
41581         New module 'uninorm/u16-normcmp'.
41582         * lib/uninorm/u16-normcmp.c: New file.
41583         * modules/uninorm/u16-normcmp: New file.
41584
41585         New module 'uninorm/u8-normcmp'.
41586         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41587         declarations.
41588         * lib/uninorm/u8-normcmp.c: New file.
41589         * lib/uninorm/u-normcmp.h: New file.
41590         * modules/uninorm/u8-normcmp: New file.
41591
41592 2009-03-06  Bruno Haible  <bruno@clisp.org>
41593
41594         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41595         Reported by Eric Blake.
41596
41597 2009-03-06  Eric Blake  <ebb9@byu.net>
41598             Bruno Haible  <bruno@clisp.org>
41599
41600         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41601         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41602         condition.
41603         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41604         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41605         condition.
41606         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41607
41608 2009-03-06  Eric Blake  <ebb9@byu.net>
41609
41610         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41611         to avoid compiler warnings.
41612         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41613
41614 2009-03-05  Bruno Haible  <bruno@clisp.org>
41615
41616         * tests/test-ftell.c (main): Disable test beyond end of file on
41617         FreeMiNT.
41618         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41619
41620 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41621
41622         * lib/filevercmp.c: Move hidden files up in ordering.
41623         * tests/test-filevercmp.c: Add tests for hidden files.
41624
41625 2009-03-04  Bruno Haible  <bruno@clisp.org>
41626
41627         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41628         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41629         AM_CFLAGS.
41630         Reported by Simon Josefsson.
41631
41632 2009-03-03  Bruno Haible  <bruno@clisp.org>
41633
41634         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41635         Reported by Simon Josefsson.
41636
41637         * doc/ld-version-script.texi: Update node reference.
41638
41639 2009-03-03  Bruno Haible  <bruno@clisp.org>
41640
41641         * modules/visibility (License): Change to 'unlimited'.
41642         Suggested by Simon Josefsson.
41643
41644 2009-03-03  Jim Meyering  <meyering@redhat.com>
41645
41646         unlinkdir: cannot_unlink_dir may modify process state
41647         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41648         it's neither thread-safe nor appropriate for use in a library.
41649
41650 2009-03-03  Eric Blake  <ebb9@byu.net>
41651
41652         test-closein: silence test under Darwin
41653         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41654         care if it dies from EPIPE or EBADF.
41655
41656 2009-03-03  Bruno Haible  <bruno@clisp.org>
41657
41658         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41659         earlier.
41660         * doc/visibility.texi: Fix @node and @section.
41661
41662 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41663
41664         * doc/gnulib.texi: Link to sections for ld version script and
41665         visibility.
41666         * doc/visibility.texi: Add @node and @section.
41667         * modules/ld-version-script: New module.
41668         * m4/ld-version-script.m4: New file.
41669         * doc/ld-version-script.texi: New file.
41670
41671 2009-03-02  David Lutterkort  <lutter@redhat.com>
41672
41673         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41675
41676 2009-03-02  Bruno Haible  <bruno@clisp.org>
41677
41678         * doc/visibility.texi: Mention libtool's -export-symbols option.
41679
41680 2009-03-02  Jim Meyering  <meyering@redhat.com>
41681
41682         announce-gen: new option: --no-print-checksums
41683         * build-aux/announce-gen (usage): Describe it.
41684         (print_checksums): Print a newline here, not in the [*] footnote.
41685         (main): Honor it.
41686
41687 2009-03-01  Bruno Haible  <bruno@clisp.org>
41688
41689         Use socklen_t in the native Windows replacements prototypes.
41690         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41691         instead of 'int'.
41692         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41693         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41694         * modules/getsockopt (Depends-on): Add socklen.
41695         * modules/setsockopt (Depends-on): Add socklen.
41696
41697 2009-03-01  Bruno Haible  <bruno@clisp.org>
41698
41699         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41700         least 4.2.
41701
41702 2009-03-01  Eric Blake  <ebb9@byu.net>
41703             Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41706         error messages.
41707         * lib/wait-process.c (wait_subprocess): Omit error message about
41708         deadly signal sent to the child of termsigp != NULL.
41709
41710 2009-03-01  Eric Blake  <ebb9@byu.net>
41711
41712         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41713
41714 2009-03-01  Bruno Haible  <bruno@clisp.org>
41715
41716         Avoid a gcc warning.
41717         * tests/test-sched.c (b): Make global.
41718         Reported by Eric Blake.
41719
41720 2009-01-19  Martin Lambers  <marlam@marlam.de>
41721
41722         Provide POSIX semantics for socket timeout options on W32.
41723         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41724         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41725         * modules/setsockopt: Depend on sys_time module for struct timeval.
41726         * modules/getsockopt: Depend on sys_time module for struct timeval.
41727
41728 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41729
41730         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41731         __USE_GNU, for consistency with netdb.in.h.
41732         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41733
41734 2009-03-01  Bruno Haible  <bruno@clisp.org>
41735
41736         More support for FreeMiNT.
41737         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41738         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41739
41740 2009-03-01  Bruno Haible  <bruno@clisp.org>
41741
41742         More support for FreeMiNT.
41743         * lib/fpurge.c (fpurge): Correct last commit.
41744         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41745
41746 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41747
41748         Fix unportable awk script in vc-list-files.
41749         * build-aux/vc-list-files: In the replacement awk script, use
41750         substr with a second argument of 1, not zero.
41751         Report by Simon Josefsson.
41752
41753 2009-02-28  Bruno Haible  <bruno@clisp.org>
41754
41755         More support for FreeMiNT.
41756         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41757         to FreeMiNT today.
41758         * lib/fwriting.c (fwriting): Likewise.
41759         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41760
41761 2009-02-28  Bruno Haible  <bruno@clisp.org>
41762
41763         * tests/test-freadseek.c (main): Disable test beyond end of file on
41764         FreeMiNT.
41765         * tests/test-ftello.c (main): Likewise.
41766         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41767
41768 2009-02-28  Bruno Haible  <bruno@clisp.org>
41769
41770         Add tentative support for FreeMiNT.
41771         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41772         * lib/fpurge.c (fpurge): Likewise.
41773         * lib/freadable.c (freadable): Likewise.
41774         * lib/freading.c (freading): Likewise.
41775         * lib/freadptr.c (freadptr): Likewise.
41776         * lib/freadseek.c (freadptrinc): Likewise.
41777         * lib/fseeko.c (rpl_fseeko): Likewise.
41778         * lib/fseterr.c (fseterr): Likewise.
41779         * lib/fwritable.c (fwritable): Likewise.
41780         * lib/fwriting.c (fwriting): Likewise.
41781         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41782         Hourihane.
41783         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41784
41785 2009-02-28  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41788         SIGCHLD.
41789         Reported by Jim Meyering.
41790
41791 2009-02-28  Bruno Haible  <bruno@clisp.org>
41792
41793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41794         Mention the results of these tests on various platforms.
41795         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41796         order.
41797         * doc/posix-functions/printf.texi: Likewise.
41798         * doc/posix-functions/snprintf.texi: Likewise.
41799         * doc/posix-functions/sprintf.texi: Likewise.
41800         * doc/posix-functions/vfprintf.texi: Likewise.
41801         * doc/posix-functions/vprintf.texi: Likewise.
41802         * doc/posix-functions/vsnprintf.texi: Likewise.
41803         * doc/posix-functions/vsprintf.texi: Likewise.
41804         * doc/glibc-functions/obstack_printf.texi: Likewise.
41805         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41806
41807 2009-02-28  Bruno Haible  <bruno@clisp.org>
41808
41809         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41810         Reported by Loïc Minier <lool@dooz.org>.
41811
41812 2009-02-27  Bruno Haible  <bruno@clisp.org>
41813
41814         * gnulib-tool (func_import): Make the sed expression used to create the
41815         sed script for updating the .gitignore file POSIX compliant.
41816         Reported by Eric Blake.
41817
41818 2009-02-27  Bruno Haible  <bruno@clisp.org>
41819
41820         * gnulib-tool (sed): Don't alias as "sed --posix".
41821         Reported by Eric Blake.
41822
41823 2009-02-27  Bruno Haible  <bruno@clisp.org>
41824
41825         Avoid test link errors.
41826         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41827         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41828         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41829         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41831
41832 2009-02-27  Bruno Haible  <bruno@clisp.org>
41833
41834         Avoid spurious "(cached)" in configure output.
41835         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41836         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41837         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41838         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41839         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41840         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41841         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41842         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41843         Reported by Eric Blake.
41844
41845 2009-02-27  Eric Blake  <ebb9@byu.net>
41846
41847         printf: fix regression in previous patch
41848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41849
41850 2009-02-27  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41853         value.
41854         * lib/stdint.in.h: Likewise.
41855         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41856
41857 2009-02-27  Eric Blake  <ebb9@byu.net>
41858
41859         doc: mention more functions added in cygwin 1.7.0
41860         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41861         addition.
41862         * doc/posix-functions/open_wmemstream.texi: Likewise.
41863         * doc/posix-functions/wcsnlen.texi: Likewise.
41864         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41865         * doc/posix-functions/wcstod.texi: Likewise.
41866         * doc/posix-functions/wcstof.texi: Likewise.
41867         * doc/posix-functions/wcstoimax.texi: Likewise.
41868         * doc/posix-functions/wcstok.texi: Likewise.
41869         * doc/posix-functions/wcstoumax.texi: Likewise.
41870
41871         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41872         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41873         * doc/posix-functions/fprintf.texi: Update.
41874         * doc/posix-functions/printf.texi: Update.
41875         * doc/posix-functions/snprintf.texi: Update.
41876         * doc/posix-functions/sprintf.texi: Update.
41877         * doc/posix-functions/vfprintf.texi: Update.
41878         * doc/posix-functions/vprintf.texi: Update.
41879         * doc/posix-functions/vsnprintf.texi: Update.
41880         * doc/posix-functions/vsprintf.texi: Update.
41881         * doc/glibc-functions/obstack_printf.texi: Update.
41882         * doc/glibc-functions/obstack_vprintf.texi: Update.
41883
41884 2009-02-26  Eric Blake  <ebb9@byu.net>
41885
41886         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41887         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41888         compilation bug by using runtime conversion.
41889         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41890         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41891         * modules/ceill-tests (Files): Use nan.h.
41892         * modules/floorl-tests (Files): Likewise.
41893         * modules/frexpl-tests (Files): Likewise.
41894         * modules/isnanl-tests (Files): Likewise.
41895         * modules/ldexpl-tests (Files): Likewise.
41896         * modules/roundl-tests (Files): Likewise.
41897         * modules/truncl-tests (Files): Likewise.
41898         * tests/test-ceill.c (main): Use a working NaN.
41899         * tests/test-floorl.c (main): Likewise.
41900         * tests/test-frexpl.c (main): Likewise.
41901         * tests/test-isnan.c (test_long_double): Likewise.
41902         * tests/test-isnanl.h (main): Likewise.
41903         * tests/test-ldexpl.h (main): Likewise.
41904         * tests/test-roundl.h (main): Likewise.
41905         * tests/test-truncl.h (main): Likewise.
41906         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41907
41908 2009-02-26  Eric Blake  <ebb9@byu.net>
41909             Bruno Haible  <bruno@clisp.org>
41910
41911         Work around a *printf bug with %ls on Solaris.
41912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41913         precision is specified, sprintf stops converting the wide string
41914         argument when the number of bytes that have been produced by this
41915         conversion equals or exceeds the precision.
41916         * doc/posix-functions/fprintf.texi: Update.
41917         * doc/posix-functions/printf.texi: Update.
41918         * doc/posix-functions/snprintf.texi: Update.
41919         * doc/posix-functions/sprintf.texi: Update.
41920         * doc/posix-functions/vfprintf.texi: Update.
41921         * doc/posix-functions/vprintf.texi: Update.
41922         * doc/posix-functions/vsnprintf.texi: Update.
41923         * doc/posix-functions/vsprintf.texi: Update.
41924         * doc/glibc-functions/obstack_printf.texi: Update.
41925         * doc/glibc-functions/obstack_vprintf.texi: Update.
41926
41927 2009-02-26  Eric Blake  <ebb9@byu.net>
41928
41929         stdlib: favor compiler check of random.h
41930         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41931         to avoid an ObjC random.h installed by Swarm.
41932
41933 2009-02-26  Bruno Haible  <bruno@clisp.org>
41934
41935         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41936         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41937         Reported by Gary V. Vaughan <gary@gnu.org>.
41938
41939 2009-02-26  Bruno Haible  <bruno@clisp.org>
41940
41941         Fix *printf behaviour regarding the %ls directive.
41942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41943         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41944         NEED_PRINTF_DIRECTIVE_LS.
41945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41946         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41948         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41949         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41950         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41951         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41952         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41956         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41960         * doc/posix-functions/fprintf.texi: Update.
41961         * doc/posix-functions/printf.texi: Update.
41962         * doc/posix-functions/snprintf.texi: Update.
41963         * doc/posix-functions/sprintf.texi: Update.
41964         * doc/posix-functions/vfprintf.texi: Update.
41965         * doc/posix-functions/vprintf.texi: Update.
41966         * doc/posix-functions/vsnprintf.texi: Update.
41967         * doc/posix-functions/vsprintf.texi: Update.
41968         * doc/glibc-functions/obstack_printf.texi: Update.
41969         * doc/glibc-functions/obstack_vprintf.texi: Update.
41970         Reported by Eric Blake.
41971
41972 2009-02-25  Bruno Haible  <bruno@clisp.org>
41973
41974         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41975         with known value.
41976         Reported by Gary V. Vaughan <gary@gnu.org>.
41977
41978 2009-02-25  Bruno Haible  <bruno@clisp.org>
41979
41980         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41981         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41982         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41983         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41984         Reported by Gary V. Vaughan <gary@gnu.org>.
41985
41986 2009-02-25  Bruno Haible  <bruno@clisp.org>
41987
41988         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41989         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41990         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41991         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41992         Reported by Gary V. Vaughan <gary@gnu.org>.
41993
41994 2009-02-25  Eric Blake  <ebb9@byu.net>
41995
41996         tests: skip fseek/ftell tests if ungetc is broken
41997         * m4/ungetc.m4: New file.
41998         * modules/fseek-tests: Split test, so ungetc dependency is
41999         separate from rest of test.
42000         * modules/fseeko-tests: Likewise.
42001         * modules/ftell-tests: Likewise.
42002         * modules/ftello-tests: Likewise.
42003         * tests/test-fseek.c (main): Isolate ungetc dependency.
42004         * tests/test-fseeko.c (main): Likewise.
42005         * tests/test-ftell.c (main): Likewise.
42006         * tests/test-ftello.c (main): Likewise.
42007         * tests/test-fseek2.sh: New file.
42008         * tests/test-fseeko2.sh: Likewise.
42009         * tests/test-ftell2.sh: Likewise.
42010         * tests/test-ftello2.sh: Likewise.
42011
42012 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42013
42014         test-getaddrinfo: fix usage of skip return code 77
42015         * tests/test-gettaddrinfo.c: Return skip code 77 only
42016         for first occurance of skip (4x77 is not 77)
42017
42018 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42019
42020         strtod: avoid C99 decl-after-statement
42021         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42022
42023 2009-02-24  Eric Blake  <ebb9@byu.net>
42024
42025         strtod: detect HP-UX 11.31 bug
42026         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42027         Reported by Gary V. Vaughan.
42028
42029 2009-02-23  Bruno Haible  <bruno@clisp.org>
42030
42031         Fix invalid read past end of memory block.
42032         * lib/vasnprintf.c (DCHAR_SET): Define.
42033         (local_wcslen): Define only when needed.
42034         (local_strnlen, local_wcsnlen): New functions.
42035         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42036         directives that involve a conversion ourselves.
42037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42038         wcsnlen, mbrtowc, wcrtomb.
42039         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42040         * tests/test-vasprintf-posix.c (test_function): Likewise.
42041         * tests/test-snprintf-posix.h (test_function): Likewise.
42042         * tests/test-sprintf-posix.h (test_function): Likewise.
42043         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42044
42045 2009-02-22  Bruno Haible  <bruno@clisp.org>
42046
42047         Implement new clarified decomposition of Hangul syllables.
42048         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42049         of type LTV, return only a pairwise decomposition.
42050         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42051         Likewise.
42052         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42053         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42054         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42055
42056 2009-02-22  Bruno Haible  <bruno@clisp.org>
42057
42058         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42059         zero-length results and shrink excess allocated memory.
42060         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42061         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42062         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42063         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42064         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42065         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42066         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42067         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42068         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42069         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42070         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42071         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42072
42073 2009-02-21  Bruno Haible  <bruno@clisp.org>
42074
42075         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42076         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42077         spaces after a period. Put a space between a macro name and its
42078         argument list. Trivial rewordings.
42079         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42080         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42081         (main): Return 0 explicitly.
42082
42083 2009-02-21  Bruno Haible  <bruno@clisp.org>
42084
42085         Tests for module 'uninorm/filter'.
42086         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42087         * modules/uninorm/filter-tests: New file.
42088
42089         New module 'uninorm/filter'.
42090         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42091         uninorm_filter_flush, uninorm_filter_free): New declarations.
42092         * lib/uninorm/uninorm-filter.c: New file.
42093         * modules/uninorm/filter: New file.
42094
42095 2009-02-21  Bruno Haible  <bruno@clisp.org>
42096
42097         Tests for module 'uninorm/nfkc'.
42098         * tests/uninorm/test-nfkc.c: New file.
42099         * tests/uninorm/test-u8-nfkc.c: New file.
42100         * tests/uninorm/test-u16-nfkc.c: New file.
42101         * tests/uninorm/test-u32-nfkc.c: New file.
42102         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42103         * tests/uninorm/test-u32-nfkc-big.c: New file.
42104         * modules/uninorm/nfkc-tests: New file.
42105
42106         New module 'uninorm/nfkc'.
42107         * lib/uninorm/nfkc.c: New file.
42108         * modules/uninorm/nfkc: New file.
42109
42110         Tests for module 'uninorm/nfkd'.
42111         * tests/uninorm/test-nfkd.c: New file.
42112         * tests/uninorm/test-u8-nfkd.c: New file.
42113         * tests/uninorm/test-u16-nfkd.c: New file.
42114         * tests/uninorm/test-u32-nfkd.c: New file.
42115         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42116         * tests/uninorm/test-u32-nfkd-big.c: New file.
42117         * modules/uninorm/nfkd-tests: New file.
42118
42119         New module 'uninorm/nfkd'.
42120         * lib/uninorm/nfkd.c: New file.
42121         * modules/uninorm/nfkd: New file.
42122
42123         Tests for module 'uninorm/nfc'.
42124         * tests/uninorm/test-nfc.c: New file.
42125         * tests/uninorm/test-u8-nfc.c: New file.
42126         * tests/uninorm/test-u16-nfc.c: New file.
42127         * tests/uninorm/test-u32-nfc.c: New file.
42128         * tests/uninorm/test-u32-nfc-big.sh: New file.
42129         * tests/uninorm/test-u32-nfc-big.c: New file.
42130         * modules/uninorm/nfc-tests: New file.
42131
42132         New module 'uninorm/nfc'.
42133         * lib/uninorm/nfc.c: New file.
42134         * modules/uninorm/nfc: New file.
42135
42136         Tests for module 'uninorm/nfd'.
42137         * tests/uninorm/test-nfd.c: New file.
42138         * tests/uninorm/test-u8-nfd.c: New file.
42139         * tests/uninorm/test-u16-nfd.c: New file.
42140         * tests/uninorm/test-u32-nfd.c: New file.
42141         * tests/uninorm/test-u32-nfd-big.sh: New file.
42142         * tests/uninorm/test-u32-nfd-big.c: New file.
42143         * tests/uninorm/test-u32-normalize-big.h: New file.
42144         * tests/uninorm/test-u32-normalize-big.c: New file.
42145         * tests/uninorm/NormalizationTest.txt: New file, created from
42146         Unicode 5.1.0 NormalizationTest.txt.
42147         * modules/uninorm/nfd-tests: New file.
42148
42149         New module 'uninorm/nfd'.
42150         * lib/uninorm/nfd.c: New file.
42151         * modules/uninorm/nfd: New file.
42152
42153         New module 'uninorm/u32-normalize'.
42154         * lib/uninorm/u32-normalize.c: New file.
42155         * modules/uninorm/u32-normalize: New file.
42156
42157         New module 'uninorm/u16-normalize'.
42158         * lib/uninorm/u16-normalize.c: New file.
42159         * modules/uninorm/u16-normalize: New file.
42160
42161         New module 'uninorm/u8-normalize'.
42162         * lib/uninorm/u8-normalize.c: New file.
42163         * lib/uninorm/normalize-internal.h: New file.
42164         * lib/uninorm/u-normalize-internal.h: New file.
42165         * modules/uninorm/u8-normalize: New file.
42166
42167         New module 'uninorm/decompose-internal'.
42168         * lib/uninorm/decompose-internal.c: New file.
42169         * modules/uninorm/decompose-internal: New file.
42170
42171         Tests for module 'uninorm/composition'.
42172         * tests/uninorm/test-composition.c: New file.
42173         * modules/uninorm/composition-tests: New file.
42174
42175         New module 'uninorm/composition'.
42176         * lib/uninorm/composition.c: New file.
42177         * lib/uninorm/composition-table.gperf: New file, generated by
42178         gen-uni-tables.
42179         * modules/uninorm/composition: New file.
42180
42181         Tests for module 'uninorm/compat-decomposition'.
42182         * tests/uninorm/test-compat-decomposition.c: New file.
42183         * modules/uninorm/compat-decomposition-tests: New file.
42184
42185         New module 'uninorm/compat-decomposition'.
42186         * lib/uninorm/decompose-internal.h: New file.
42187         * lib/uninorm/compat-decomposition.c: New file.
42188         * modules/uninorm/compat-decomposition: New file.
42189
42190         Tests for module 'uninorm/canonical-decomposition'.
42191         * tests/uninorm/test-canonical-decomposition.c: New file.
42192         * modules/uninorm/canonical-decomposition-tests: New file.
42193
42194         New module 'uninorm/canonical-decomposition'.
42195         * lib/uninorm/canonical-decomposition.c: New file.
42196         * modules/uninorm/canonical-decomposition: New file.
42197
42198         Tests for module 'uninorm/decomposition'.
42199         * tests/uninorm/test-decomposition.c: New file.
42200         * modules/uninorm/decomposition-tests: New file.
42201
42202         New module 'uninorm/decomposition'.
42203         * lib/uninorm/decomposition.c: New file.
42204         * modules/uninorm/decomposition: New file.
42205
42206         New module 'uninorm/decomposition-table'.
42207         * lib/uninorm/decomposition-table.h: New file.
42208         * lib/uninorm/decomposition-table.c: New file.
42209         * lib/uninorm/decomposition-table1.h: New file, generated by
42210         gen-uni-tables.
42211         * lib/uninorm/decomposition-table2.h: New file, generated by
42212         gen-uni-tables.
42213         * modules/uninorm/decomposition-table: New file.
42214
42215         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42216         (UC_DECOMP_*): New enumeration items.
42217         (get_decomposition): New function.
42218         (struct decomp_table): New type.
42219         (output_decomposition, output_decomposition_tables): New functions.
42220         (unicode_composition_exclusions): New variable.
42221         (fill_composition_exclusions, debug_output_composition_tables): New
42222         functions.
42223         (main): Accept one more argument. Invoke fill_composition_exclusions.
42224         Output decomposition and composition tables.
42225
42226         New module 'uninorm/base'.
42227         * lib/uninorm.h: New file.
42228         * lib/unictype.h: Update comment.
42229         * modules/uninorm/base: New file.
42230
42231 2009-02-21  David Lutterkort  <lutter@redhat.com>
42232
42233         Tests for module 'safe-alloc'.
42234         * tests/test-safe-alloc.c: New file.
42235         * modules/safe-alloc-tests: New file.
42236
42237         New module 'safe-alloc'.
42238         * lib/safe-alloc.h: New file.
42239         * lib/safe-alloc.c: New file.
42240         * m4/safe-alloc.m4: New file.
42241         * modules/safe-alloc: New file.
42242         * doc/safe-alloc.texi: New file.
42243         * doc/gnulib.texi: Include it.
42244         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42245         safe-alloc.
42246
42247 2009-02-18  Bruno Haible  <bruno@clisp.org>
42248
42249         Fix link error on non-glibc systems.
42250         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42251         variable.
42252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42253
42254 2009-02-18  Jim Meyering  <meyering@redhat.com>
42255
42256         fts: avoid used-uninitialized error due to recent change
42257         * lib/fts.c (fts_read): Guard uses of the new member,
42258         parent->fts_n_dirs_remaining, since it's not relevant for
42259         the parent of a directory specified on the command-line.
42260
42261 2009-02-17  James Youngman  <jay@gnu.org>
42262             Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/include_next.m4: Reformulate comment.
42265
42266 2009-02-16  Jim Meyering  <meyering@redhat.com>
42267
42268         fts: add #if guards so that the fts_lgpl module still builds
42269         * lib/fts.c: Guard just-added hash-table-using parts with
42270         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42271         Reported by Simon Josefsson.
42272
42273 2009-02-15  Bruno Haible  <bruno@clisp.org>
42274
42275         * modules/array-mergesort-tests: New file.
42276         * tests/test-array-mergesort.c: New file.
42277
42278         New module 'array-mergesort'.
42279         * modules/array-mergesort: New file.
42280         * lib/array-mergesort.h: New file.
42281
42282 2009-02-15  Bruno Haible  <bruno@clisp.org>
42283
42284         Fix 2009-02-07 commit.
42285         * lib/gen-uni-tables.c (output_predicate, output_category,
42286         output_combclass, output_bidi_category, output_decimal_digit,
42287         output_digit, output_numeric, output_mirror, output_scripts,
42288         output_ident_category, output_simple_mapping): Fix format directives.
42289         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42290
42291 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42292
42293         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42294         fixes are available from IBM.
42295
42296 2009-02-13  Jim Meyering  <meyering@redhat.com>
42297
42298         fts: arrange not to stat non-directories in more cases
42299         This makes GNU find (when it doesn't need to stat each file)
42300         *much* more efficient at traversing reiserfs file systems.
42301         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42302         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42303         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42304         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42305         (leaf_optimization_applies): New function.
42306         (LCO_hash, LCO_compare): New helper functions.
42307         (link_count_optimize_ok): New function.
42308         (fts_stat): Initialize new member (if dir).
42309         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42310         we've just stat'ed a directory.  Skip the stat call when possible.
42311         ---
42312         Note this AFS-related exchange:
42313         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42314         and note find's pioctl call in find/fstype.c.
42315         But that is necessary only if you want to enable the
42316         optimization for AFS, and for now, I don't.
42317
42318         fts: move a function definition "up" (no semantic change)
42319         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42320         "up" to precede upcoming use of a related function.
42321
42322 2009-02-11  Jim Meyering  <meyering@redhat.com>
42323
42324         fts: correct internal computation of nlinks (optimization-related)
42325         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42326         whether the current entry is a directory, so don't test it.
42327
42328 2009-02-10  Bruno Haible  <bruno@clisp.org>
42329
42330         Tests for module 'uniwbrk/ulc-wordbreaks'.
42331         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42332         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42333         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42334
42335         Tests for module 'uniwbrk/u32-wordbreaks'.
42336         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42337         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42338
42339         Tests for module 'uniwbrk/u16-wordbreaks'.
42340         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42341         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42342
42343         Tests for module 'uniwbrk/u8-wordbreaks'.
42344         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42345         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42346
42347 2009-02-10  Bruno Haible  <bruno@clisp.org>
42348
42349         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42350         property.
42351         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42352         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42353         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42354
42355 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42356
42357         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42358         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42359
42360 2009-02-10  Bruno Haible  <bruno@clisp.org>
42361
42362         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42363         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42364         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42365         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42366         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42367         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42368
42369 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42370
42371         * lib/sockets.h (gl_fd_to_handle): New function.
42372
42373         * tests/test-sockets.c: Call gl_fd_to_handle.
42374
42375 2009-02-09  Bruno Haible  <bruno@clisp.org>
42376
42377         * doc/havelib.texi: Document the conventions on bi-arch systems.
42378
42379 2009-02-08  Bruno Haible  <bruno@clisp.org>
42380
42381         Document the AC_LIB_LINKFLAGS macro.
42382         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42383         * doc/gnulib.texi: Include it.
42384
42385 2009-02-08  Bruno Haible  <bruno@clisp.org>
42386
42387         Fix wrong order of sections, compared to TOC.
42388         * doc/gnulib.texi: Include relocatable-maint.texi after the
42389         "Regular expressions" node, not before.
42390
42391 2009-02-08  Bruno Haible  <bruno@clisp.org>
42392
42393         Tests for module 'unicase/totitle'.
42394         * modules/unicase/totitle-tests: New file.
42395
42396         Tests for module 'unicase/tolower'.
42397         * modules/unicase/tolower-tests: New file.
42398
42399         Tests for module 'unicase/toupper'.
42400         * modules/unicase/toupper-tests: New file.
42401         * tests/unicase/test-mapping-part1.h: New file.
42402         * tests/unicase/test-mapping-part2.h: New file.
42403
42404         New module 'unicase/totitle'.
42405         * modules/unicase/totitle: New file.
42406         * lib/unicase/totitle.c: New file.
42407
42408         New module 'unicase/tolower'.
42409         * modules/unicase/tolower: New file.
42410         * lib/unicase/tolower.c: New file.
42411
42412         New module 'unicase/toupper'.
42413         * modules/unicase/toupper: New file.
42414         * lib/unicase/toupper.c: New file.
42415         * lib/unicase/simple-mapping.h: New file.
42416
42417         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42418         (mapping_table): New structure.
42419         (output_simple_mapping): New function.
42420         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42421         * modules/gen-uni-tables (Description): Update.
42422         * lib/unicase/toupper.h: New file, automatically generated by
42423         gen-uni-tables.
42424         * lib/unicase/tolower.h: New file, automatically generated by
42425         gen-uni-tables.
42426         * lib/unicase/totitle.h: New file, automatically generated by
42427         gen-uni-tables.
42428         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42429         gen-uni-tables.
42430         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42431         gen-uni-tables.
42432         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42433         gen-uni-tables.
42434
42435         New module 'unicase/base'.
42436         * modules/unicase/base: New file.
42437         * lib/unicase.h: New file.
42438
42439 2009-02-08  Bruno Haible  <bruno@clisp.org>
42440
42441         New module 'uniwbrk/ulc-wordbreaks'.
42442         * modules/uniwbrk/ulc-wordbreaks: New file.
42443         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42444
42445         New module 'uniwbrk/u32-wordbreaks'.
42446         * modules/uniwbrk/u32-wordbreaks: New file.
42447         * lib/uniwbrk/u32-wordbreaks.c: New file.
42448
42449         New module 'uniwbrk/u16-wordbreaks'.
42450         * modules/uniwbrk/u16-wordbreaks: New file.
42451         * lib/uniwbrk/u16-wordbreaks.c: New file.
42452
42453         New module 'uniwbrk/u8-wordbreaks'.
42454         * modules/uniwbrk/u8-wordbreaks: New file.
42455         * lib/uniwbrk/u8-wordbreaks.c: New file.
42456         * lib/uniwbrk/u-wordbreaks.h: New file.
42457
42458         New module 'uniwbrk/table'.
42459         * modules/uniwbrk/table: New file.
42460         * lib/uniwbrk/wbrktable.h: New file.
42461         * lib/uniwbrk/wbrktable.c: New file.
42462
42463         New module 'uniwbrk/wordbreak-property'.
42464         * modules/uniwbrk/wordbreak-property: New file.
42465         * lib/uniwbrk/wordbreak-property.c: New file.
42466
42467         * lib/gen-uni-tables.c (WBP_*): New enum items.
42468         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42469         (unicode_org_wbp): New variable.
42470         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42471         New functions.
42472         (wbp_table): New structure.
42473         (output_wbp, output_wbrk_tables): New functions.
42474         (main): Accept additional argument. Invoke fill_org_wbp,
42475         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42476         output_wbrk_tables.
42477         * modules/gen-uni-tables (Description): Update.
42478         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42479         gen-uni-tables.
42480
42481         New module 'uniwbrk/base'.
42482         * modules/uniwbrk/base: New file.
42483         * lib/uniwbrk.h: New file.
42484
42485 2009-02-08  Bruno Haible  <bruno@clisp.org>
42486
42487         Update to Unicode 5.1.0.
42488         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42489         U+2185..U+2188.
42490         (is_property_default_ignorable_code_point): Don't include characters
42491         of category Cc or Cs and not-a-characters.
42492         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42493         U+0D79, U+109E, U+109F, U+A60C.
42494         * lib/unictype/bidi_of.h: Regenerated.
42495         * lib/unictype/blocks.h: Regenerated.
42496         * lib/unictype/categ_C.h: Regenerated.
42497         * lib/unictype/categ_Cf.h: Regenerated.
42498         * lib/unictype/categ_Cn.h: Regenerated.
42499         * lib/unictype/categ_L.h: Regenerated.
42500         * lib/unictype/categ_Ll.h: Regenerated.
42501         * lib/unictype/categ_Lm.h: Regenerated.
42502         * lib/unictype/categ_Lo.h: Regenerated.
42503         * lib/unictype/categ_Lu.h: Regenerated.
42504         * lib/unictype/categ_M.h: Regenerated.
42505         * lib/unictype/categ_Mc.h: Regenerated.
42506         * lib/unictype/categ_Me.h: Regenerated.
42507         * lib/unictype/categ_Mn.h: Regenerated.
42508         * lib/unictype/categ_N.h: Regenerated.
42509         * lib/unictype/categ_Nd.h: Regenerated.
42510         * lib/unictype/categ_Nl.h: Regenerated.
42511         * lib/unictype/categ_No.h: Regenerated.
42512         * lib/unictype/categ_P.h: Regenerated.
42513         * lib/unictype/categ_Pd.h: Regenerated.
42514         * lib/unictype/categ_Pe.h: Regenerated.
42515         * lib/unictype/categ_Pf.h: Regenerated.
42516         * lib/unictype/categ_Pi.h: Regenerated.
42517         * lib/unictype/categ_Po.h: Regenerated.
42518         * lib/unictype/categ_Ps.h: Regenerated.
42519         * lib/unictype/categ_S.h: Regenerated.
42520         * lib/unictype/categ_Sk.h: Regenerated.
42521         * lib/unictype/categ_Sm.h: Regenerated.
42522         * lib/unictype/categ_So.h: Regenerated.
42523         * lib/unictype/categ_of.h: Regenerated.
42524         * lib/unictype/combining.h: Regenerated.
42525         * lib/unictype/ctype_alnum.h: Regenerated.
42526         * lib/unictype/ctype_alpha.h: Regenerated.
42527         * lib/unictype/ctype_graph.h: Regenerated.
42528         * lib/unictype/ctype_lower.h: Regenerated.
42529         * lib/unictype/ctype_print.h: Regenerated.
42530         * lib/unictype/ctype_punct.h: Regenerated.
42531         * lib/unictype/ctype_upper.h: Regenerated.
42532         * lib/unictype/decdigit.h: Regenerated.
42533         * lib/unictype/digit.h: Regenerated.
42534         * lib/unictype/mirror.h: Regenerated.
42535         * lib/unictype/numeric.h: Regenerated.
42536         * lib/unictype/pr_alphabetic.h: Regenerated.
42537         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42538         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42539         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42540         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42541         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42542         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42543         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42544         * lib/unictype/pr_combining.h: Regenerated.
42545         * lib/unictype/pr_dash.h: Regenerated.
42546         * lib/unictype/pr_decimal_digit.h: Regenerated.
42547         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42548         * lib/unictype/pr_deprecated.h: Regenerated.
42549         * lib/unictype/pr_diacritic.h: Regenerated.
42550         * lib/unictype/pr_extender.h: Regenerated.
42551         * lib/unictype/pr_format_control.h: Regenerated.
42552         * lib/unictype/pr_grapheme_base.h: Regenerated.
42553         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42554         * lib/unictype/pr_grapheme_link.h: Regenerated.
42555         * lib/unictype/pr_id_continue.h: Regenerated.
42556         * lib/unictype/pr_id_start.h: Regenerated.
42557         * lib/unictype/pr_ideographic.h: Regenerated.
42558         * lib/unictype/pr_ignorable_control.h: Regenerated.
42559         * lib/unictype/pr_lowercase.h: Regenerated.
42560         * lib/unictype/pr_math.h: Regenerated.
42561         * lib/unictype/pr_numeric.h: Regenerated.
42562         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42563         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42564         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42565         * lib/unictype/pr_other_id_continue.h: Regenerated.
42566         * lib/unictype/pr_other_lowercase.h: Regenerated.
42567         * lib/unictype/pr_other_math.h: Regenerated.
42568         * lib/unictype/pr_punctuation.h: Regenerated.
42569         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42570         * lib/unictype/pr_soft_dotted.h: Regenerated.
42571         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42572         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42573         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42574         * lib/unictype/pr_uppercase.h: Regenerated.
42575         * lib/unictype/pr_xid_continue.h: Regenerated.
42576         * lib/unictype/pr_xid_start.h: Regenerated.
42577         * lib/unictype/pr_zero_width.h: Regenerated.
42578         * lib/unictype/scripts.h: Regenerated.
42579         * lib/unictype/scripts_byname.gperf: Regenerated.
42580         * lib/unictype/sy_java_ident.h: Regenerated.
42581         * lib/unilbrk/lbrkprop1.h: Regenerated.
42582         * lib/unilbrk/lbrkprop2.h: Regenerated.
42583         * tests/unictype/test-categ_C.c: Regenerated.
42584         * tests/unictype/test-categ_Cf.c: Regenerated.
42585         * tests/unictype/test-categ_Cn.c: Regenerated.
42586         * tests/unictype/test-categ_L.c: Regenerated.
42587         * tests/unictype/test-categ_Ll.c: Regenerated.
42588         * tests/unictype/test-categ_Lm.c: Regenerated.
42589         * tests/unictype/test-categ_Lo.c: Regenerated.
42590         * tests/unictype/test-categ_Lu.c: Regenerated.
42591         * tests/unictype/test-categ_M.c: Regenerated.
42592         * tests/unictype/test-categ_Mc.c: Regenerated.
42593         * tests/unictype/test-categ_Me.c: Regenerated.
42594         * tests/unictype/test-categ_Mn.c: Regenerated.
42595         * tests/unictype/test-categ_N.c: Regenerated.
42596         * tests/unictype/test-categ_Nd.c: Regenerated.
42597         * tests/unictype/test-categ_Nl.c: Regenerated.
42598         * tests/unictype/test-categ_No.c: Regenerated.
42599         * tests/unictype/test-categ_P.c: Regenerated.
42600         * tests/unictype/test-categ_Pd.c: Regenerated.
42601         * tests/unictype/test-categ_Pe.c: Regenerated.
42602         * tests/unictype/test-categ_Pf.c: Regenerated.
42603         * tests/unictype/test-categ_Pi.c: Regenerated.
42604         * tests/unictype/test-categ_Po.c: Regenerated.
42605         * tests/unictype/test-categ_Ps.c: Regenerated.
42606         * tests/unictype/test-categ_S.c: Regenerated.
42607         * tests/unictype/test-categ_Sk.c: Regenerated.
42608         * tests/unictype/test-categ_Sm.c: Regenerated.
42609         * tests/unictype/test-categ_So.c: Regenerated.
42610         * tests/unictype/test-ctype_alnum.c: Regenerated.
42611         * tests/unictype/test-ctype_alpha.c: Regenerated.
42612         * tests/unictype/test-ctype_graph.c: Regenerated.
42613         * tests/unictype/test-ctype_lower.c: Regenerated.
42614         * tests/unictype/test-ctype_print.c: Regenerated.
42615         * tests/unictype/test-ctype_punct.c: Regenerated.
42616         * tests/unictype/test-ctype_upper.c: Regenerated.
42617         * tests/unictype/test-decdigit.h: Regenerated.
42618         * tests/unictype/test-digit.h: Regenerated.
42619         * tests/unictype/test-numeric.h: Regenerated.
42620         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42621         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42622         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42623         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42624         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42625         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42626         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42627         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42628         * tests/unictype/test-pr_combining.c: Regenerated.
42629         * tests/unictype/test-pr_dash.c: Regenerated.
42630         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42631         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42632         * tests/unictype/test-pr_deprecated.c: Regenerated.
42633         * tests/unictype/test-pr_diacritic.c: Regenerated.
42634         * tests/unictype/test-pr_extender.c: Regenerated.
42635         * tests/unictype/test-pr_format_control.c: Regenerated.
42636         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42637         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42638         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42639         * tests/unictype/test-pr_id_continue.c: Regenerated.
42640         * tests/unictype/test-pr_id_start.c: Regenerated.
42641         * tests/unictype/test-pr_ideographic.c: Regenerated.
42642         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42643         * tests/unictype/test-pr_lowercase.c: Regenerated.
42644         * tests/unictype/test-pr_math.c: Regenerated.
42645         * tests/unictype/test-pr_numeric.c: Regenerated.
42646         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42647         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42648         Regenerated.
42649         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42650         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42651         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42652         * tests/unictype/test-pr_other_math.c: Regenerated.
42653         * tests/unictype/test-pr_punctuation.c: Regenerated.
42654         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42655         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42656         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42657         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42658         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42659         * tests/unictype/test-pr_uppercase.c: Regenerated.
42660         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42661         * tests/unictype/test-pr_xid_start.c: Regenerated.
42662         * tests/unictype/test-pr_zero_width.c: Regenerated.
42663
42664         Update to Unicode 5.1.0.
42665         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42666         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42667         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42668         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42669         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42670         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42671         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42672         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42673         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42674         (nonspacing_table_ind): Update.
42675         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42676
42677         Update to Unicode 5.1.0.
42678         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42679         code transform.
42680         * lib/uniname/uniname.c (unicode_character_name,
42681         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42682         * lib/uniname/uninames.h: Regenerated.
42683         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42684
42685 2009-02-07  Bruno Haible  <bruno@clisp.org>
42686
42687         Merge gen-ctype and gen-lbrk into a single program.
42688         * lib/gen-uni-tables.c: New file, incorporating
42689         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42690         Add directory prefixes to the names of the generated files.
42691         * lib/unictype/gen-ctype.c: Remove file.
42692         * lib/unilbrk/gen-lbrk.c: Remove file.
42693         * modules/gen-uni-tables: New file.
42694         * modules/unictype/gen-ctype: Remove file.
42695         * modules/unilbrk/gen-lbrk: Remove file.
42696
42697 2009-02-07  Bruno Haible  <bruno@clisp.org>
42698
42699         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42700
42701         New module 'unistr/u32-strcoll'.
42702         * modules/unistr/u32-strcoll: New file.
42703         * lib/unistr/u32-strcoll.c: New file.
42704
42705         New module 'unistr/u16-strcoll'.
42706         * modules/unistr/u16-strcoll: New file.
42707         * lib/unistr/u16-strcoll.c: New file.
42708
42709         New module 'unistr/u8-strcoll'.
42710         * modules/unistr/u8-strcoll: New file.
42711         * lib/unistr/u8-strcoll.c: New file.
42712         * lib/unistr/u-strcoll.h: New file.
42713
42714 2009-02-07  Bruno Haible  <bruno@clisp.org>
42715
42716         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42717         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42718         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42719         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42720         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42721         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42722
42723 2009-02-07  Bruno Haible  <bruno@clisp.org>
42724
42725         Make 64-bit clean.
42726         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42727         output_combclass, output_bidi_category, output_decimal_digit,
42728         output_digit, output_numeric, output_mirror, output_scripts,
42729         output_ident_category): Use proper width specifier in format strings.
42730
42731 2009-02-07  Bruno Haible  <bruno@clisp.org>
42732
42733         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42734         failure behaviour.
42735
42736 2009-02-07  Jim Meyering  <meyering@redhat.com>
42737
42738         regex: avoid compilation failure with upcoming gcc-4.4
42739         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42740         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42741         "... error: integer overflow in preprocessor expression".
42742
42743 2009-02-05  Ben Pfaff  <blp@gnu.org>
42744
42745         Fix link errors on Windows when close module is used.
42746         * modules/close: Add $(LIB_CLOSE) to Link section.
42747         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42748         $(LIB_CLOSE) on Windows.
42749
42750 2009-02-05  Jim Meyering  <meyering@redhat.com>
42751
42752         still avoid unused-parameter warnings, but do it cleanly
42753         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42754         (get_fs_usage): Cast to void instead.
42755         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42756         (dev_from_mount_options, read_file_system_list): Cast to void.
42757         Prompted by Bruno Haible.
42758
42759 2009-02-04  Jim Meyering  <meyering@redhat.com>
42760
42761         fsusage.c: correct copyright year
42762         * lib/fsusage.c: Reflect year in which the change is pushed into
42763
42764         avoid misc. warnings
42765         * lib/fsusage.c (UNUSED_PARAM): Define.
42766         (get_fs_usage): Mark parameter "disk" as unused.
42767         * lib/getugroups.c (getgrent): Use "void" in prototype.
42768         * lib/mountlist.c: Mark unused parameters.
42769         (read_file_system_list): Declare a local with "const".
42770         * lib/nanosleep.c (getnow): Declare static.
42771         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42772
42773         dirfd: set errno upon failure
42774         * lib/dirfd.c: Include <errno.h>.
42775         Set errno to ENOTSUP when returning -1.
42776         * modules/dirfd (Depends-on): Add errno.
42777         Suggested by John Kodis <kodis@comcast.net>.
42778
42779 2009-02-01  Bruno Haible  <bruno@clisp.org>
42780
42781         Don't assume sizeof (long) >= sizeof (void *).
42782         * lib/memcmp.c: Include stdint.h.
42783         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42784         srcp2 to 'const byte *'.
42785         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42786         types to uintptr_t.
42787         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42788         * modules/memcmp (Depends-on): Add stdint.
42789         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42790
42791 2009-01-30  Eric Blake  <ebb9@byu.net>
42792
42793         fix more require-before-expand issues
42794         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42795         expand, AC_PROG_AWK.
42796         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42797
42798 2009-01-28  Eric Blake  <ebb9@byu.net>
42799
42800         version-etc: use consistent URL formatting
42801         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42802         Improve formatting.  Use fputs for string without %.
42803
42804 2009-01-28  Jim Meyering  <meyering@redhat.com>
42805
42806         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42807         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42808         "underquoted definition of NAME" from autoconf-2.59.
42809
42810 2009-01-28  Bruno Haible  <bruno@clisp.org>
42811
42812         * doc/gnulib.texi: Add "Obsolete modules" to index.
42813
42814 2009-01-28  Jim Meyering  <meyering@redhat.com>
42815
42816         useless-if-before-free: recognize more variants
42817         * build-aux/useless-if-before-free: Also recognize e.g.,
42818         if (NULL != p) free (p);
42819
42820 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42821
42822         test-getaddrinfo: skip (don't fail) this test when there's no network
42823         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42824         on the presumption that it means you lack network access.
42825
42826 2009-01-26  Jim Meyering  <meyering@redhat.com>
42827
42828         fflush: avoid warnings on modern systems
42829         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42830         pos and result, into scopes where they're used.
42831
42832 2009-01-26  Eric Blake  <ebb9@byu.net>
42833
42834         Silence warning reintroduced by recent extensions patch.
42835         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42836         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42837         autoconf.
42838
42839         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42840         * m4/00gnulib.m4: New file.
42841         * gnulib-tool (func_get_filelist): Always use it.
42842         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42843         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42844
42845 2009-01-25  Bruno Haible  <bruno@clisp.org>
42846
42847         Make test-quotearg work on MacOS X and AIX.
42848         * tests/test-quotearg.sh: New file.
42849         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42850         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42851         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42852         include <libintl.h>.
42853         (fake_locale): Remove variable.
42854         (gettext, dgettext, dcgettext): Remove functions.
42855         (main): Instead of setting a fake locale, set a real locale. Call
42856         textdomain and bindtextdomain.
42857         * modules/quotearg-tests (Files): Add the new files.
42858         (Depends-on): Add gettext, setenv, unsetenv.
42859         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42860         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42861         Augment TESTS_ENVIRONMENT.
42862
42863 2009-01-25  Bruno Haible  <bruno@clisp.org>
42864
42865         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42866         fr_FR.ISO8859-1 locale on MacOS X.
42867         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42868         ja_JP.eucJP locale on MacOS X.
42869         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42870         zh_CN.GB18030 locale on MacOS X.
42871
42872 2009-01-25  Bruno Haible  <bruno@clisp.org>
42873
42874         Avoid link errors on MacOS X 10.3.
42875         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42876         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42877
42878 2009-01-25  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42881         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42882         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42883         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42884         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42885         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42886         posix_spawnattr_init, posix_spawnattr_setsigmask,
42887         posix_spawnattr_setflags, posix_spawnattr_destroy.
42888
42889         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42890         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42891         * modules/execute (Files): Remove m4/posix_spawn.m4.
42892         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42893         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42894         posix_spawnattr_init, posix_spawnattr_setsigmask,
42895         posix_spawnattr_setflags, posix_spawnattr_destroy.
42896
42897 2009-01-25  Bruno Haible  <bruno@clisp.org>
42898
42899         * lib/glthread/threadlib.c: Include <stdlib.h>.
42900
42901 2009-01-25  Bruno Haible  <bruno@clisp.org>
42902
42903         * lib/glthread/threadlib.c (dummy): New declaration.
42904
42905 2009-01-25  Bruno Haible  <bruno@clisp.org>
42906
42907         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42908         multibyte characters also for the GB18030 encoding. Don't crash when
42909         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42910
42911 2009-01-25  Bruno Haible  <bruno@clisp.org>
42912
42913         Avoid redefining 'struct random_data' on OSF/1 5.1.
42914         * lib/stdlib.in.h: Include <random.h> if it exists.
42915         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42916         HAVE_RANDOM_H. Include <random.h> when testing whether
42917         'struct random_data' exists.
42918         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42919
42920 2009-01-25  Bruno Haible  <bruno@clisp.org>
42921
42922         Don't install charset.alias on MacOS X >= 10.3.
42923         * lib/localcharset.c (DARWIN7): New macro.
42924         (get_charset_aliases): Hardcode the result for Darwin7.
42925         * modules/localcharset (install-exec-local): Don't install
42926         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42927
42928 2009-01-25  Bruno Haible  <bruno@clisp.org>
42929
42930         Don't install charset.alias on mingw and Cygwin.
42931         * modules/localcharset (install-exec-local): Don't install
42932         charset.alias on mingw and Cygwin, if the file does not yet exist.
42933         The result for these platforms is hardcoded in localcharset.c.
42934
42935 2009-01-25  Bruno Haible  <bruno@clisp.org>
42936
42937         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42939         before requiring AC_USE_SYSTEM_EXTENSIONS.
42940
42941 2009-01-25  Jim Meyering  <meyering@redhat.com>
42942
42943         c-strtod: avoid warnings
42944         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42945         "assignment discards qualifiers from pointer target type" warnings.
42946
42947 2009-01-24  Bruno Haible  <bruno@clisp.org>
42948
42949         Add support for non-UTF-8 locales on MacOS X.
42950         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42951         canonical encodings. For Darwin 7 and newer, don't map traditional
42952         encodings to UTF-8.
42953         Reported by Vincent Lefevre <vincent@vinc17.org>
42954         at <http://savannah.gnu.org/bugs/?25235>.
42955
42956 2009-01-24  Bruno Haible  <bruno@clisp.org>
42957
42958         * doc/gnulib.texi (Obsolete modules): New section.
42959         Reported by Mike Frysinger <vapier@gentoo.org>.
42960
42961 2009-01-24  Bruno Haible  <bruno@clisp.org>
42962
42963         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42964         (%.dvi): New rule.
42965
42966 2009-01-24  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42969         Reported by Eric Blake.
42970
42971 2009-01-24  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42974         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42975         Reported by Gary V. Vaughan <gary@gnu.org>.
42976
42977 2009-01-24  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42980
42981 2009-01-23  Bruno Haible  <bruno@clisp.org>
42982
42983         Make c-strtod, c-strtold usable in libraries.
42984         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42985         (C_STRTOD): Call strdup instead of xstrdup.
42986         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42987         * modules/c-strtold (Depends-on): Likewise.
42988         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42989         * NEWS: Mention the change.
42990         Reported by Michael Gold <mgold@ncf.ca>.
42991
42992 2009-01-23  Jim Meyering  <meyering@redhat.com>
42993
42994         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42995         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42996         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42997
42998 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42999
43000         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43001         GNU CoreUtils.
43002         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43003         * modules/version-etc (Description): Update.
43004
43005 2009-01-22  Bruno Haible  <bruno@clisp.org>
43006
43007         Cache the C locale object.
43008         * lib/c-strtod.c (c_locale_cache): New variable.
43009         (c_locale): New function.
43010         (C_STRTOD): Use it, and don't call freelocale.
43011         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43012         Suggested by Paolo Bonzini.
43013
43014 2009-01-21  Bruno Haible  <bruno@clisp.org>
43015
43016         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43017         conditions other than overflow.
43018
43019 2009-01-21  Bruno Haible  <bruno@clisp.org>
43020
43021         * lib/c-strtod.c: Include errno.h.
43022         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43023         value from STRTOD_L and STRTOD.
43024
43025 2009-01-21  Bruno Haible  <bruno@clisp.org>
43026         and Jim Meyering  <meyering@redhat.com>
43027
43028         nanosleep: skip configure test (fail it) for apple universal builds
43029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43030         universal builds, assume that nanosleep does not work.
43031         * modules/nanosleep (Depends-on): Add multiarch.
43032
43033         mktime: skip configure test (fail it) for apple universal builds
43034         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43035         universal builds, assume that mktime does not work.
43036         * modules/mktime (Depends-on): Add multiarch.
43037
43038 2009-01-21  Eric Blake  <ebb9@byu.net>
43039
43040         multiarch: avoid expand-before-require warning
43041         * modules/multiarch (configure.ac): Require, rather than expand,
43042         gl_MULTIARCH.
43043         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43044         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43045         enforce that all clients require it.  Partial reversion of
43046         2008-12-29 patch.
43047
43048         error: avoid expand-before-require warning
43049         * modules/errno (configure.ac): Require, rather than expand,
43050         gl_HEADER_ERRNO_H.
43051         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43052         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43053         enforce that all clients require it.
43054
43055         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43056         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43057         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43058         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43059
43060 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43061
43062         Revert:
43063         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43064
43065         regex: do not depend on obsolete modules.
43066         * modules/regex: Remove memcmp and memmove.
43067
43068 2009-01-20  Bruno Haible  <bruno@clisp.org>
43069
43070         Make the 'link' module link on Windows NT 4.
43071         * lib/link.c (_WIN32_WINNT): Don't define.
43072         (CreateHardLinkFuncType): New type.
43073         (CreateHardLinkFunc, initialized): New variables.
43074         (initialize): New function.
43075         (link): Invoke CreateHardLink indirectly through the function pointer.
43076
43077 2009-01-20  Bruno Haible  <bruno@clisp.org>
43078
43079         Fix compilation failure on mingw.
43080         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43081
43082 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43083
43084         * doc/c-strtod.texi: Mention a couple of restrictions.
43085
43086 2009-01-20  Jim Meyering  <meyering@redhat.com>
43087
43088         gettimeofday: move more declarations out of functions
43089         * lib/gettimeofday.c: Move extern declarations of tzset and
43090         gmtime out of containing functions.  Prompted by Bruno Haible.
43091
43092 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43093
43094         regex: do not depend on obsolete modules.
43095         * modules/regex: Remove memcmp and memmove.
43096
43097 2009-01-19  Bruno Haible  <bruno@clisp.org>
43098
43099         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43100         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43101         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43102         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43103         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43104
43105 2009-01-19  Bruno Haible  <bruno@clisp.org>
43106
43107         * tests/test-link.c: Include <errno.h>.
43108         (main): Exit with code 77 when a hard link cannot be created due to
43109         the file system.
43110         * tests/test-link.sh: Skip test when a hard link cannot be created due
43111         to the file system.
43112         Suggested by Eric Blake.
43113
43114 2009-01-19  Martin Lambers  <marlam@marlam.de>
43115
43116         * modules/link-tests: New file.
43117         * tests/test-link.sh: New file.
43118         * tests/test-link.c: New file.
43119
43120 2009-01-19  Eric Blake  <ebb9@byu.net>
43121
43122         doc: mention another function added in cygwin 1.7.0
43123         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43124         Another new function in cygwin 1.7.
43125
43126 2009-01-19  Bruno Haible  <bruno@clisp.org>
43127
43128         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43129         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43130         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43131         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43132         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43133         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43134         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43135         * m4/md4.m4 (gl_MD4): Likewise.
43136         * m4/md5.m4 (gl_MD5): Likewise.
43137         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43138         * m4/sha1.m4 (gl_SHA1): Likewise.
43139         * m4/sha256.m4 (gl_SHA256): Likewise.
43140         * m4/sha512.m4 (gl_SHA512): Likewise.
43141
43142 2009-01-19  Bruno Haible  <bruno@clisp.org>
43143
43144         * modules/uniname/uniname-tests (Depends-on): Add progname.
43145         * tests/uniname/test-uninames.c: Include progname.h.
43146         (main): Call set_program_name.
43147
43148         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43149         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43150         (main): Call set_program_name.
43151
43152         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43153         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43154         (main): Call set_program_name.
43155
43156         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43157         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43158         (main): Call set_program_name.
43159
43160         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43161         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43162         (main): Call set_program_name.
43163
43164         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43165         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43166         (main): Call set_program_name.
43167
43168         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43169         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43170         (main): Call set_program_name.
43171
43172         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43173         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43174         (main): Call set_program_name.
43175
43176         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43177         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43178         (main): Call set_program_name.
43179
43180 2009-01-19  Eric Blake  <ebb9@byu.net>
43181
43182         test-unistd: test previous patch
43183         * tests/test-unistd.c: Test *_FILENO macros.
43184
43185         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43186         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43187         Guarantee a definition.
43188         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43189         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43190         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43191         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43192         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43193         Likewise.
43194         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43195         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43196         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43197         Likewise.
43198         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43199         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43200         (STDERR_FILENO): Likewise.
43201         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43202         (STDERR_FILENO): Likewise.
43203         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43204         (STDERR_FILENO): Likewise.
43205         Reported by Elbert Pol.
43206
43207 2009-01-19  Eric Blake  <ebb9@byu.net>
43208
43209         doc: mention more functions added in cygwin 1.7.0
43210         * doc/posix-functions/abort.texi (abort): Update wording related
43211         to cygwin.
43212         * doc/posix-functions/daylight.texi (daylight): Likewise.
43213         * doc/posix-functions/optarg.texi (optarg): Likewise.
43214         * doc/posix-functions/optarg.texi (opterr): Likewise.
43215         * doc/posix-functions/optarg.texi (optind): Likewise.
43216         * doc/posix-functions/optarg.texi (optopt): Likewise.
43217         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43218         worked in 1.5.x, and was withdrawn in 1.7.
43219         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43220         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43221         cygwin versions.
43222         * doc/posix-functions/perror.texi (perror): Likewise.
43223         * doc/posix-functions/printf.texi (printf): Likewise.
43224         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43225         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43226         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43227         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43228         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43229         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43230         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43231         Likewise.
43232         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43233         Likewise.
43234         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43235         this function.
43236         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43237         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43238         Likewise.
43239         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43240         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43241         * doc/posix-functions/confstr.texi (confstr): Likewise.
43242         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43243         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43244         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43245         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43246         * doc/posix-functions/fputws.texi (fputws): Likewise.
43247         * doc/posix-functions/fwide.texi (fwide): Likewise.
43248         * doc/posix-functions/getwc.texi (getwc): Likewise.
43249         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43250         * doc/posix-functions/putwc.texi (putwc): Likewise.
43251         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43252         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43253         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43254         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43255         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43256         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43257         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43258         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43259         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43260         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43261         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43262
43263 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43264
43265         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43266         * lib/ioctl.c: Include <sys/ioctl.h>.
43267
43268 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43269
43270         * modules/getdate-tests (Depends-on): Add progname.
43271         * tests/test-getdate.c: Use progname module, to avoid link errors
43272         on non-glibc systems.
43273
43274 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43275
43276         * modules/filenamecat-tests (Depends-on): Add progname.
43277         * modules/fstrcmp-tests (Depends-on): Likewise.
43278
43279         * tests/test-filenamecat.c: Use progname module, to avoid link
43280         errors on non-glibc systems.
43281         * tests/test-fstrcmp.c: Likewise.
43282
43283 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43284
43285         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43286         * lib/gettimeofday.c: Move extern declaration out of function.
43287
43288 2009-01-18  Bruno Haible  <bruno@clisp.org>
43289
43290         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43291         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43292         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43293
43294 2009-01-18  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/strftime.c (MEMPCPY): Remove unused macro.
43297         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43298
43299 2009-01-18  Martin Lambers  <marlam@marlam.de>
43300
43301         New module 'link'.
43302         * lib/unistd.in.h (link): New declaration.
43303         * lib/link.c: New file.
43304         * m4/link.m4: New file.
43305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43306         HAVE_LINK.
43307         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43308         * modules/link: New file.
43309         * doc/posix-functions/link.texi: Mention the new module.
43310
43311 2009-01-18  Bruno Haible  <bruno@clisp.org>
43312
43313         * tests/test-avltree_list.c (main): Call set_program_name.
43314         * tests/test-avltree_oset.c (main): Likewise.
43315         * tests/test-obstack-printf.c: Include progname.h.
43316         (main): Call set_program_name.
43317         * tests/test-quotearg.c: Include progname.h.
43318         (main): Call set_program_name.
43319         * tests/test-xmemdup0.c: Include progname.h.
43320         (main): Call set_program_name.
43321
43322 2009-01-18  Bruno Haible  <bruno@clisp.org>
43323
43324         New module 'alphasort'.
43325         * lib/dirent.in.h (alphasort): New declaration.
43326         * lib/alphasort.c: New file, from glibc with modifications.
43327         * m4/alphasort.m4: New file.
43328         * modules/alphasort: New file.
43329         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43330         HAVE_ALPHASORT.
43331         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43332         HAVE_ALPHASORT.
43333         * doc/posix-functions/alphasort.texi: Mention the new module and the
43334         portability problems.
43335
43336 2009-01-18  Bruno Haible  <bruno@clisp.org>
43337
43338         New module 'scandir'.
43339         * lib/dirent.in.h (scandir): New declaration.
43340         * lib/scandir.c: New file, from glibc with modifications.
43341         * m4/scandir.m4: New file.
43342         * modules/scandir: New file.
43343         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43344         HAVE_SCANDIR.
43345         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43346         HAVE_SCANDIR.
43347         * doc/posix-functions/scandir.texi: Mention the new module and the
43348         portability problems.
43349
43350 2009-01-17  Bruno Haible  <bruno@clisp.org>
43351
43352         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43353         Update documentation.
43354         (func_remove_suffix): Escape all dots in the suffix. Update
43355         documentation.
43356         (func_filter_filelist): Update documentation.
43357         Reported by Ralf Wildenhues.
43358
43359 2009-01-17  Bruno Haible  <bruno@clisp.org>
43360
43361         * modules/dprintf-posix-tests: New file.
43362         * tests/test-dprintf-posix.sh: New file.
43363         * tests/test-dprintf-posix.c: New file.
43364
43365         New modules 'dprintf', 'dprintf-posix'.
43366         * lib/stdio.in.h (dprintf): New declaration.
43367         * lib/dprintf.c: New file.
43368         * m4/dprintf.m4: New file.
43369         * m4/dprintf-posix.m4: New file.
43370         * modules/dprintf: New file.
43371         * modules/dprintf-posix: New file.
43372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43373         HAVE_DPRINTF, REPLACE_DPRINTF.
43374         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43375         HAVE_DPRINTF, REPLACE_DPRINTF.
43376         * doc/posix-functions/dprintf.texi: Mention the new modules.
43377
43378 2009-01-17  Bruno Haible  <bruno@clisp.org>
43379
43380         * modules/vdprintf-posix-tests: New file.
43381         * tests/test-vdprintf-posix.sh: New file.
43382         * tests/test-vdprintf-posix.c: New file.
43383
43384         New modules 'vdprintf', 'vdprintf-posix'.
43385         * lib/stdio.in.h (vdprintf): New declaration.
43386         * lib/vdprintf.c: New file.
43387         * m4/vdprintf.m4: New file.
43388         * m4/vdprintf-posix.m4: New file.
43389         * modules/vdprintf: New file.
43390         * modules/vdprintf-posix: New file.
43391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43392         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43393         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43394         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43395         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43396
43397 2009-01-17  Bruno Haible  <bruno@clisp.org>
43398
43399         Fix replacement of fopen on mingw.
43400         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43401         mingw.
43402
43403 2009-01-17  Bruno Haible  <bruno@clisp.org>
43404
43405         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43406         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43407
43408 2009-01-17  Bruno Haible  <bruno@clisp.org>
43409
43410         Avoid test-fflush2.sh failure on mingw.
43411         * tests/test-fflush2.c: Include binary-io.h.
43412         (main): Put standard input into binary mode.
43413         * modules/fflush-tests (Depends-on): Add binary-io.
43414
43415 2009-01-17  Bruno Haible  <bruno@clisp.org>
43416
43417         * lib/wchar.in.h: In another particular situation, include only the
43418         system's <wchar.h> file.
43419         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43420         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43421         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43422
43423 2009-01-17  Bruno Haible  <bruno@clisp.org>
43424
43425         Support for stripping executables in --enable-relocatable.
43426         * build-aux/install-reloc: Expect one more argument, or an environment
43427         variable RELOC_STRIP_PROG. If set, strip the destination program and
43428         its wrapper.
43429         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43430         RELOC_STRIP_PROG.
43431         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43432         to set RELOCATABLE_STRIP.
43433         * NEWS: Mention the new Makefile requirement.
43434
43435 2009-01-17  Bruno Haible  <bruno@clisp.org>
43436
43437         * build-aux/install-reloc: Remove debugging information left over by
43438         C compiler on MacOS X.
43439
43440 2009-01-17  Bruno Haible  <bruno@clisp.org>
43441
43442         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43443         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43444         _NSGetExecutablePath.
43445
43446 2009-01-16  Jim Meyering  <meyering@redhat.com>
43447
43448         strerror: avoid warnings about discarding "const"
43449         * lib/strerror.c (rpl_strerror): Instead of returning a const
43450         string from each and every "case", use a variable, and add a single
43451         cast after the switch.
43452
43453 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43454
43455         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43456
43457 2009-01-16  Bruno Haible  <bruno@clisp.org>
43458
43459         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43460         array initializer syntax that also works in C++ mode.
43461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43462
43463 2009-01-16  Jim Meyering  <meyering@redhat.com>
43464
43465         poll: suppress a warning
43466         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43467         to ignore "...unsigned expression < 0 is always false" warnings.
43468
43469 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43470
43471         poll: remove declarations of unused variables
43472         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43473         sockbuf and optlen.
43474
43475 2009-01-15  Bruno Haible  <bruno@clisp.org>
43476
43477         Make fflush-after-ungetc POSIX compliant on BSD systems.
43478         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43479         (clear_ungetc_buffer): Implement also for other systems.
43480         (rpl_fflush): On glibc systems, invoke
43481         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43482         clear_ungetc_buffer after fetching the stream's position, not before.
43483
43484 2009-01-15  Bruno Haible  <bruno@clisp.org>
43485
43486         Make fflush-after-ungetc POSIX compliant on glibc systems.
43487         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43488         after ungetc.
43489         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43490         (rpl_fflush): On glibc systems, simply call the system's fflush
43491         function after clearing the ungetc buffer.
43492         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43493         Instead, lseek only to the end of file, then use the system's fseeko
43494         for the rest. On glibc systems, reset the EOF indicator bit.
43495
43496 2009-01-15  Jim Meyering  <meyering@redhat.com>
43497
43498         openmp.m4: revert quote-adding change, for portability to older autoconf
43499         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43500         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43501         Simon Josefsson noticed the problem when using autoconf-2.61.
43502
43503 2009-01-15  Bruno Haible  <bruno@clisp.org>
43504
43505         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43506         * tests/test-fflush2.c (ASSERT): Always fail.
43507         (main): Add two tests for fflush() after ungetc(), taking into account
43508         the Austin Group's clarification.
43509         Suggested by Eric Blake.
43510
43511 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43512
43513         mktime.m4: remove K&R-style function prototypes
43514         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43515         for the Sun C++ compiler.
43516
43517 2009-01-14  Bruno Haible  <bruno@clisp.org>
43518
43519         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43520         while including <wchar.h>.
43521         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43522         the system's <wchar.h> file.
43523         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43524
43525 2009-01-14  Bruno Haible  <bruno@clisp.org>
43526
43527         * m4/csharp.m4: Don't mention gettext on the serial number line.
43528         * m4/csharpexec.m4: Likewise.
43529         * m4/eaccess.m4: Likewise.
43530         * m4/javaexec.m4: Likewise.
43531         * m4/sig_atomic_t.m4: Likewise.
43532         * m4/tmpdir.m4: Likewise.
43533         * m4/intldir.m4: Bump gettext version.
43534         * m4/lib-ld.m4: Likewise.
43535
43536 2009-01-14  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/progname.c (set_program_name): Add more comments.
43539         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43540
43541 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43542
43543         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43544         were sys/stat.h does not define it.
43545
43546 2009-01-14  Jim Meyering  <meyering@redhat.com>
43547
43548         many *.m4 files: improve m4 quoting
43549         99% of this change was performed by running the following commands:
43550         git ls-files | grep '\.m4$' | xargs perl -pi \
43551           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43552           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43553           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43554           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43555         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43556         The remainder were to add Copyright dates, increment serial numbers,
43557         undo some changes in comments, exclude m4/intl.m4, and add quotes
43558         around the "1" in ",1" where the unusual spacing prohibited the
43559         above regexps from doing the job.  For more details, see
43560         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43561         * m4/acl.m4: Modified.
43562         * m4/afs.m4: Likewise.
43563         * m4/alloca.m4: Likewise.
43564         * m4/argp.m4: Likewise.
43565         * m4/argz.m4: Likewise.
43566         * m4/atexit.m4: Likewise.
43567         * m4/bison-i18n.m4: Likewise.
43568         * m4/bison.m4: Likewise.
43569         * m4/byteswap.m4: Likewise.
43570         * m4/c-stack.m4: Likewise.
43571         * m4/c-strtod.m4: Likewise.
43572         * m4/calloc.m4: Likewise.
43573         * m4/canonicalize-lgpl.m4: Likewise.
43574         * m4/chown.m4: Likewise.
43575         * m4/clock_time.m4: Likewise.
43576         * m4/codeset.m4: Likewise.
43577         * m4/copy-file.m4: Likewise.
43578         * m4/csharp.m4: Likewise.
43579         * m4/csharpcomp.m4: Likewise.
43580         * m4/csharpexec.m4: Likewise.
43581         * m4/d-ino.m4: Likewise.
43582         * m4/d-type.m4: Likewise.
43583         * m4/dirfd.m4: Likewise.
43584         * m4/double-slash-root.m4: Likewise.
43585         * m4/eaccess.m4: Likewise.
43586         * m4/eealloc.m4: Likewise.
43587         * m4/environ.m4: Likewise.
43588         * m4/errno_h.m4: Likewise.
43589         * m4/euidaccess.m4: Likewise.
43590         * m4/execute.m4: Likewise.
43591         * m4/fatal-signal.m4: Likewise.
43592         * m4/fchdir.m4: Likewise.
43593         * m4/fcntl_h.m4: Likewise.
43594         * m4/fileblocks.m4: Likewise.
43595         * m4/filenamecat.m4: Likewise.
43596         * m4/findprog.m4: Likewise.
43597         * m4/flexmember.m4: Likewise.
43598         * m4/fnmatch.m4: Likewise.
43599         * m4/fopen.m4: Likewise.
43600         * m4/fpending.m4: Likewise.
43601         * m4/fprintf-posix.m4: Likewise.
43602         * m4/free.m4: Likewise.
43603         * m4/frexp.m4: Likewise.
43604         * m4/frexpl.m4: Likewise.
43605         * m4/fsusage.m4: Likewise.
43606         * m4/ftruncate.m4: Likewise.
43607         * m4/gc-camellia.m4: Likewise.
43608         * m4/gc-random.m4: Likewise.
43609         * m4/gc.m4: Likewise.
43610         * m4/getaddrinfo.m4: Likewise.
43611         * m4/getcwd-abort-bug.m4: Likewise.
43612         * m4/getcwd-path-max.m4: Likewise.
43613         * m4/getdate.m4: Likewise.
43614         * m4/getdomainname.m4: Likewise.
43615         * m4/getgroups.m4: Likewise.
43616         * m4/gethostname.m4: Likewise.
43617         * m4/gethrxtime.m4: Likewise.
43618         * m4/getline.m4: Likewise.
43619         * m4/getloadavg.m4: Likewise.
43620         * m4/getndelim2.m4: Likewise.
43621         * m4/getpass.m4: Likewise.
43622         * m4/gettext.m4: Likewise.
43623         * m4/gettime.m4: Likewise.
43624         * m4/gettimeofday.m4: Likewise.
43625         * m4/gnulib-common.m4: Likewise.
43626         * m4/group-member.m4: Likewise.
43627         * m4/host-os.m4: Likewise.
43628         * m4/iconv.m4: Likewise.
43629         * m4/iconv_open.m4: Likewise.
43630         * m4/inet_ntop.m4: Likewise.
43631         * m4/inet_pton.m4: Likewise.
43632         * m4/inline.m4: Likewise.
43633         * m4/intldir.m4: Likewise.
43634         * m4/intlmacosx.m4: Likewise.
43635         * m4/intmax.m4: Likewise.
43636         * m4/intmax_t.m4: Likewise.
43637         * m4/inttypes.m4: Likewise.
43638         * m4/inttypes_h.m4: Likewise.
43639         * m4/inttypes-pri.m4: Likewise.
43640         * m4/isapipe.m4: Likewise.
43641         * m4/isnand.m4: Likewise.
43642         * m4/isnanf.m4: Likewise.
43643         * m4/isnanl.m4: Likewise.
43644         * m4/javacomp.m4: Likewise.
43645         * m4/javaexec.m4: Likewise.
43646         * m4/jm-winsz1.m4: Likewise.
43647         * m4/jm-winsz2.m4: Likewise.
43648         * m4/lchown.m4: Likewise.
43649         * m4/lcmessage.m4: Likewise.
43650         * m4/ldexpl.m4: Likewise.
43651         * m4/lib-ld.m4: Likewise.
43652         * m4/lib-link.m4: Likewise.
43653         * m4/libsigsegv.m4: Likewise.
43654         * m4/link-follow.m4: Likewise.
43655         * m4/localcharset.m4: Likewise.
43656         * m4/locale-fr.m4: Likewise.
43657         * m4/locale-ja.m4: Likewise.
43658         * m4/locale-tr.m4: Likewise.
43659         * m4/locale-zh.m4: Likewise.
43660         * m4/lock.m4: Likewise.
43661         * m4/longlong.m4: Likewise.
43662         * m4/ls-mntd-fs.m4: Likewise.
43663         * m4/lstat.m4: Likewise.
43664         * m4/malloc.m4: Likewise.
43665         * m4/mathl.m4: Likewise.
43666         * m4/mbrtowc.m4: Likewise.
43667         * m4/mbstate_t.m4: Likewise.
43668         * m4/mbswidth.m4: Likewise.
43669         * m4/memchr.m4: Likewise.
43670         * m4/memcmp.m4: Likewise.
43671         * m4/memcpy.m4: Likewise.
43672         * m4/memmem.m4: Likewise.
43673         * m4/memmove.m4: Likewise.
43674         * m4/mempcpy.m4: Likewise.
43675         * m4/memrchr.m4: Likewise.
43676         * m4/memset.m4: Likewise.
43677         * m4/minmax.m4: Likewise.
43678         * m4/mkdir-slash.m4: Likewise.
43679         * m4/mkdtemp.m4: Likewise.
43680         * m4/mktime.m4: Likewise.
43681         * m4/mmap-anon.m4: Likewise.
43682         * m4/mountlist.m4: Likewise.
43683         * m4/nanosleep.m4: Likewise.
43684         * m4/nls.m4: Likewise.
43685         * m4/nocrash.m4: Likewise.
43686         * m4/open.m4: Likewise.
43687         * m4/openat.m4: Likewise.
43688         * m4/openmp.m4: Likewise.
43689         * m4/pathmax.m4: Likewise.
43690         * m4/perl.m4: Likewise.
43691         * m4/physmem.m4: Likewise.
43692         * m4/pipe.m4: Likewise.
43693         * m4/po.m4: Likewise.
43694         * m4/poll.m4: Likewise.
43695         * m4/posixtm.m4: Likewise.
43696         * m4/posixver.m4: Likewise.
43697         * m4/printf-frexp.m4: Likewise.
43698         * m4/printf-frexpl.m4: Likewise.
43699         * m4/printf-posix.m4: Likewise.
43700         * m4/printf-posix-rpl.m4: Likewise.
43701         * m4/printf.m4: Likewise.
43702         * m4/progtest.m4: Likewise.
43703         * m4/putenv.m4: Likewise.
43704         * m4/readline.m4: Likewise.
43705         * m4/readlink.m4: Likewise.
43706         * m4/readutmp.m4: Likewise.
43707         * m4/realloc.m4: Likewise.
43708         * m4/regex.m4: Likewise.
43709         * m4/relocatable.m4: Likewise.
43710         * m4/relocatable-lib.m4: Likewise.
43711         * m4/rename-dest-slash.m4: Likewise.
43712         * m4/rename.m4: Likewise.
43713         * m4/rmdir-errno.m4: Likewise.
43714         * m4/rmdir.m4: Likewise.
43715         * m4/roundf.m4: Likewise.
43716         * m4/roundl.m4: Likewise.
43717         * m4/rpmatch.m4: Likewise.
43718         * m4/save-cwd.m4: Likewise.
43719         * m4/selinux-selinux-h.m4: Likewise.
43720         * m4/setenv.m4: Likewise.
43721         * m4/settime.m4: Likewise.
43722         * m4/sig2str.m4: Likewise.
43723         * m4/sig_atomic_t.m4: Likewise.
43724         * m4/signalblocking.m4: Likewise.
43725         * m4/signbit.m4: Likewise.
43726         * m4/sigpipe.m4: Likewise.
43727         * m4/sockets.m4: Likewise.
43728         * m4/sockpfaf.m4: Likewise.
43729         * m4/st_dm_mode.m4: Likewise.
43730         * m4/stat-time.m4: Likewise.
43731         * m4/stdbool.m4: Likewise.
43732         * m4/stdint.m4: Likewise.
43733         * m4/stdint_h.m4: Likewise.
43734         * m4/stpcpy.m4: Likewise.
43735         * m4/stpncpy.m4: Likewise.
43736         * m4/strcase.m4: Likewise.
43737         * m4/strchrnul.m4: Likewise.
43738         * m4/strcspn.m4: Likewise.
43739         * m4/strdup.m4: Likewise.
43740         * m4/strftime.m4: Likewise.
43741         * m4/strndup.m4: Likewise.
43742         * m4/strnlen.m4: Likewise.
43743         * m4/strpbrk.m4: Likewise.
43744         * m4/strptime.m4: Likewise.
43745         * m4/strsep.m4: Likewise.
43746         * m4/strtod.m4: Likewise.
43747         * m4/strtoimax.m4: Likewise.
43748         * m4/strtok_r.m4: Likewise.
43749         * m4/strtol.m4: Likewise.
43750         * m4/strtoll.m4: Likewise.
43751         * m4/strtoul.m4: Likewise.
43752         * m4/strtoull.m4: Likewise.
43753         * m4/strtoumax.m4: Likewise.
43754         * m4/strverscmp.m4: Likewise.
43755         * m4/threadlib.m4: Likewise.
43756         * m4/timegm.m4: Likewise.
43757         * m4/tm_gmtoff.m4: Likewise.
43758         * m4/tmpdir.m4: Likewise.
43759         * m4/tmpfile.m4: Likewise.
43760         * m4/tzset.m4: Likewise.
43761         * m4/uintmax_t.m4: Likewise.
43762         * m4/unlinkdir.m4: Likewise.
43763         * m4/unlocked-io.m4: Likewise.
43764         * m4/uptime.m4: Likewise.
43765         * m4/userspec.m4: Likewise.
43766         * m4/utimbuf.m4: Likewise.
43767         * m4/utime.m4: Likewise.
43768         * m4/utimes-null.m4: Likewise.
43769         * m4/utimes.m4: Likewise.
43770         * m4/vararrays.m4: Likewise.
43771         * m4/vasnprintf.m4: Likewise.
43772         * m4/vfprintf-posix.m4: Likewise.
43773         * m4/vprintf-posix.m4: Likewise.
43774         * m4/wait-process.m4: Likewise.
43775         * m4/wchar_t.m4: Likewise.
43776         * m4/wint_t.m4: Likewise.
43777         * m4/write-any-file.m4: Likewise.
43778         * m4/yield.m4: Likewise.
43779
43780 2009-01-13  Bruno Haible  <bruno@clisp.org>
43781
43782         Avoid test-copy-file.sh failures when ACL support insufficient.
43783         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43784         TESTS_ENVIRONMENT.
43785         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43786         Reported by Jim Meyering.
43787
43788 2009-01-13  Bruno Haible  <bruno@clisp.org>
43789
43790         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43791         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43792         * modules/unistdio/u8-printf-parse (Files): Likewise.
43793         * modules/unistdio/u32-printf-parse (Files): Likewise.
43794         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43795
43796 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43797
43798         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43799         and m4/inttypes_h.m4 too.
43800
43801 2009-01-12  Eric Blake  <ebb9@byu.net>
43802
43803         tests: IRIX 6.2 cc can't compile -0.0 into .data
43804         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43805         rather than at compile-time.
43806         * tests/test-floorl.c (minus_zero): Likewise.
43807         * tests/test-frexpl.c (minus_zero): Likewise.
43808         * tests/test-isnan.c (minus_zerol): Likewise.
43809         * tests/test-isnanl.h (minus_zero): Likewise.
43810         * tests/test-ldexpl.c (minus_zero): Likewise.
43811         * tests/test-roundl.c (minus_zero): Likewise.
43812         * tests/test-signbit.c (minus_zerol): Likewise.
43813         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43814         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43815         * tests/test-truncl.c (minus_zero): Likewise.
43816         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43817         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43818         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43819
43820 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43821
43822         regex: fix glibc bug 9697
43823         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43824         handling.
43825
43826 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43827
43828         regex: fix glibc bug 697
43829         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43830         being NULL also if there are no backreferences.
43831
43832 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43833
43834         regex: merge glibc changes
43835         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43836         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43837         re_string_skip_chars, re_string_reconstruct): Likewise.
43838         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43839
43840 2009-01-07  Jim Meyering  <meyering@redhat.com>
43841
43842         poll: filter through cppi
43843         * lib/poll.c: Indent cpp directives to reflect nesting.
43844
43845 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43846
43847         poll: don't return uninitialized
43848         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43849
43850 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43851
43852         avoid compile failure on AIX 6.1
43853         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43854         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43855
43856 2009-01-04  Jim Meyering  <meyering@redhat.com>
43857
43858         remove duplicate inclusion of <stdio.h>
43859         * tests/test-fprintf-posix.c: Likewise.
43860         * tests/test-printf-posix.c: Likewise.
43861         * tests/test-snprintf-posix.c: Likewise.
43862         * tests/test-sprintf-posix.c: Likewise.
43863         * tests/test-vasprintf-posix.c: Likewise.
43864         * tests/test-vfprintf-posix.c: Likewise.
43865         * tests/test-vprintf-posix.c: Likewise.
43866         * tests/test-vsnprintf-posix.c: Likewise.
43867         * tests/test-vsprintf-posix.c: Likewise.
43868
43869 2009-01-03  Jim Meyering  <meyering@redhat.com>
43870
43871         gnulib-tool: fix sed-based filtering
43872         * gnulib-tool (func_filter_filelist): Remove extra backslash
43873         in sed_fff_filter definition.
43874
43875 2009-01-02  Jim Meyering  <meyering@redhat.com>
43876
43877         strftime: avoid compilation failure on Solaris 2.6
43878         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43879         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43880         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43881         be available.  Reported by Tom G. Christensen.  Details in
43882         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43883
43884 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43885             Bruno Haible  <bruno@clisp.org>
43886
43887         Speed up gnulib-tool by doing more string processing through shell
43888         built-ins.
43889         * gnulib-tool (fast_func_append): New variable.
43890         (func_remove_prefix, func_remove_suffix): New functions.
43891         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43892         (func_filter_filelist): New function.
43893         (func_get_dependencies): Use func_remove_suffix instead of sed.
43894         (func_get_automake_snippet): Use func_filter_filelist instead of a
43895         subshell and sed invocation.
43896
43897 2009-01-01  Bruno Haible  <bruno@clisp.org>
43898
43899         Fix a security bug.
43900         * gnulib-tool (func_import, import, update): Don't allow the characters
43901         '"', '$', '`', '\' in macro arguments that become part of commands that
43902         are evaluated.
43903
43904 2009-01-01  Bruno Haible  <bruno@clisp.org>
43905
43906         * gnulib-tool (func_reset_sigpipe): Add more comments.
43907
43908 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43909
43910         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43911         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43912         already know the answer.
43913
43914 2009-01-01  Jim Meyering  <meyering@redhat.com>
43915
43916         * lib/version-etc.c (version_etc_va): Update copyright year.
43917
43918 2008-12-30  Bruno Haible  <bruno@clisp.org>
43919
43920         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43921         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43922         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43923
43924 2008-12-29  Eric Blake  <ebb9@byu.net>
43925
43926         multiarch: avoid autoconf AC_REQUIRE bug
43927         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43928         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43929         2.63 and older.
43930         Reported by Bruno Haible, and analyzed in
43931         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43932
43933 2008-12-29  Bruno Haible  <bruno@clisp.org>
43934
43935         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43936         files in subdirectories correctly.
43937         Reported by Ralf Wildenhues.
43938
43939 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43940
43941         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43942         rather than 'join FILE -', for Solaris join.
43943
43944 2008-12-29  Bruno Haible  <bruno@clisp.org>
43945
43946         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43947         quoting.
43948         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43949         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43950         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43951         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43952         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43953         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43954         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43955         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43956         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43957         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43958         * m4/nls.m4 (AM_NLS): Likewise.
43959         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43960         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43961         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43962         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43963         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43964         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43965         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43966         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43967         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43968         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43969         * m4/xsize.m4 (gl_XSIZE): Likewise.
43970         Suggested by Jim Meyering.
43971
43972 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43973
43974         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43975         * lib/parse-duration.c: use a switch instead of cascading if's.
43976
43977 2008-12-29  Eric Blake  <ebb9@byu.net>
43978
43979         wchar.h: supply WEOF on Irix 5.3
43980         * lib/wchar.in.h (wint_t): Also supply WEOF.
43981         * lib/wctype.in.h (wint_t): Likewise.
43982         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43983         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43984         Reported by Tom G. Christensen.
43985
43986 2008-12-26  Bruno Haible  <bruno@clisp.org>
43987
43988         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43989         i486, i586, i686.
43990
43991 2008-12-26  Bruno Haible  <bruno@clisp.org>
43992
43993         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43994
43995 2008-12-26  Bruno Haible  <bruno@clisp.org>
43996
43997         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43998         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43999         not __STDC_CONSTANT_MACROS.
44000         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44001
44002 2008-12-25  Bruno Haible  <bruno@clisp.org>
44003
44004         Add support for universal builds to vasnprintf.
44005         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44006         universal builds, guess no.
44007         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44008         * modules/vasprintf-posix (Depends-on): Likewise.
44009         * modules/fprintf-posix (Depends-on): Likewise.
44010         * modules/vfprintf-posix (Depends-on): Likewise.
44011         * modules/snprintf-posix (Depends-on): Likewise.
44012         * modules/vsnprintf-posix (Depends-on): Likewise.
44013         * modules/sprintf-posix (Depends-on): Likewise.
44014         * modules/vsprintf-posix (Depends-on): Likewise.
44015         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44016         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44017         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44018         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44019         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44020         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44021         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44022
44023         Add support for universal builds to <inttypes.h>.
44024         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44025         _SCNu64_PREFIX): In Apple
44026         universal builds, define directly, using _LP64.
44027         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44028         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44029         * modules/inttypes (Depends-on): Add multiarch.
44030         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44031
44032         Add support for universal builds to <stdint.h>.
44033         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44034         universal builds, define directly, using _LP64.
44035         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44036         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44037         and size_t.
44038         * modules/stdint (Depends-on): Add multiarch.
44039         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44040
44041         New module 'multiarch'.
44042         * modules/multiarch: New file.
44043         * m4/multiarch.m4: New file.
44044
44045 2008-12-25  Bruno Haible  <bruno@clisp.org>
44046
44047         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44048
44049 2008-12-25  Bruno Haible  <bruno@clisp.org>
44050
44051         * modules/btowc (License): Relicense under LGPLv2+.
44052         * modules/mbsinit (License): Likewise.
44053         * modules/mbrtowc (License): Likewise.
44054         * modules/wcrtomb (License): Likewise.
44055         * modules/streq (License): Likewise.
44056         Reported by David Lutterkort <lutter@redhat.com>.
44057
44058 2008-12-23  Bruno Haible  <bruno@clisp.org>
44059
44060         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44061
44062 2008-12-23  Bruno Haible  <bruno@clisp.org>
44063
44064         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44066         GETADDRINFO_LIB, not in LIBS.
44067         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44068         * modules/canon-host (Link): Likewise.
44069         * NEWS: Mention the change.
44070         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44071         GETADDRINFO_LIB.
44072
44073 2008-12-22  Bruno Haible  <bruno@clisp.org>
44074
44075         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44076         * doc/posix-functions/iswalpha_l.texi: Likewise.
44077         * doc/posix-functions/iswblank_l.texi: Likewise.
44078         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44079         * doc/posix-functions/iswctype_l.texi: Likewise.
44080         * doc/posix-functions/iswdigit_l.texi: Likewise.
44081         * doc/posix-functions/iswgraph_l.texi: Likewise.
44082         * doc/posix-functions/iswlower_l.texi: Likewise.
44083         * doc/posix-functions/iswprint_l.texi: Likewise.
44084         * doc/posix-functions/iswpunct_l.texi: Likewise.
44085         * doc/posix-functions/iswspace_l.texi: Likewise.
44086         * doc/posix-functions/iswupper_l.texi: Likewise.
44087         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44088         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44089         * doc/posix-functions/open_wmemstream.texi: Likewise.
44090         * doc/posix-functions/swscanf.texi: Likewise.
44091         * doc/posix-functions/towctrans_l.texi: Likewise.
44092         * doc/posix-functions/towlower.texi: Likewise.
44093         * doc/posix-functions/towlower_l.texi: Likewise.
44094         * doc/posix-functions/towupper.texi: Likewise.
44095         * doc/posix-functions/towupper_l.texi: Likewise.
44096         * doc/posix-functions/vfwprintf.texi: Likewise.
44097         * doc/posix-functions/vfwscanf.texi: Likewise.
44098         * doc/posix-functions/vswscanf.texi: Likewise.
44099         * doc/posix-functions/vwprintf.texi: Likewise.
44100         * doc/posix-functions/vwscanf.texi: Likewise.
44101         * doc/posix-functions/wcpcpy.texi: Likewise.
44102         * doc/posix-functions/wcpncpy.texi: Likewise.
44103         * doc/posix-functions/wcscasecmp.texi: Likewise.
44104         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44105         * doc/posix-functions/wcscoll_l.texi: Likewise.
44106         * doc/posix-functions/wcsdup.texi: Likewise.
44107         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44108         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44109         * doc/posix-functions/wcsnlen.texi: Likewise.
44110         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44111         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44112         * doc/posix-functions/wctrans_l.texi: Likewise.
44113         * doc/posix-functions/wctype_l.texi: Likewise.
44114         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44115         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44116         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44117         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44118         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44119         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44120         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44121         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44122         * doc/glibc-functions/wcschrnul.texi: Likewise.
44123         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44124         * doc/glibc-functions/wcstod_l.texi: Likewise.
44125         * doc/glibc-functions/wcstof_l.texi: Likewise.
44126         * doc/glibc-functions/wcstol_l.texi: Likewise.
44127         * doc/glibc-functions/wcstold_l.texi: Likewise.
44128         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44129         * doc/glibc-functions/wcstoq.texi: Likewise.
44130         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44131         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44132         * doc/glibc-functions/wcstouq.texi: Likewise.
44133         * doc/glibc-functions/wmempcpy.texi: Likewise.
44134
44135 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44136             Eric Blake  <ebb9@byu.net>
44137             Paolo Bonzini  <bonzini@gnu.org>
44138             Bruno Haible  <bruno@clisp.org>
44139
44140         Make c-stack work on Haiku.
44141         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44142         (c_stack_action): Use SA_ONSTACK flag.
44143
44144 2008-12-22  Bruno Haible  <bruno@clisp.org>
44145
44146         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44147
44148 2008-12-22  Bruno Haible  <bruno@clisp.org>
44149
44150         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44151         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44152         being overridden.
44153         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44154         New macros.
44155         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44157         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44158         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44159
44160 2008-12-22  Bruno Haible  <bruno@clisp.org>
44161
44162         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44163         from test code.
44164
44165 2008-12-22  Eric Blake  <ebb9@byu.net>
44166
44167         Avoid gcc warnings on cygwin.
44168         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44169         Avoid unused variable.
44170         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44171         Likewise.
44172
44173 2008-12-22  Bruno Haible  <bruno@clisp.org>
44174
44175         Remove HAVE_MBRTOWC conditionals.
44176         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44177         (mbscasecmp): Assume mbrtowc function.
44178         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44179         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44180         * lib/mbschr.c: Include mbuiter.h unconditionally.
44181         (mbschr): Assume mbrtowc function.
44182         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44183         (mbscspn): Assume mbrtowc function.
44184         * lib/mbslen.c: Include mbuiter.h unconditionally.
44185         (mbslen): Assume mbrtowc function.
44186         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44187         (mbsncasecmp): Assume mbrtowc function.
44188         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44189         (mbsnlen): Assume mbrtowc function.
44190         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44191         (mbspbrk): Assume mbrtowc function.
44192         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44193         (mbspcasecmp): Assume mbrtowc function.
44194         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44195         (mbsrchr): Assume mbrtowc function.
44196         * lib/mbssep.c: Include mbuiter.h unconditionally.
44197         (mbssep): Assume mbrtowc function.
44198         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44199         (mbsspn): Assume mbrtowc function.
44200         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44201         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44202         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44203         (mbstok_r): Assume mbrtowc function.
44204         * lib/propername.c: Include mbuiter.h unconditionally.
44205         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44206         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44207         (trim2): Assume mbrtowc function.
44208         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44209         (mbsnwidth): Assume mbrtowc function.
44210         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44211         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44212         fallback definitions.
44213         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44214
44215 2008-12-22  Bruno Haible  <bruno@clisp.org>
44216
44217         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44218
44219 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44220
44221         * modules/regex: Request emulations for the mb*/wc* functions we need.
44222         * m4/regex.m4: Don't look for those functions here.
44223         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44224
44225 2008-12-22  Bruno Haible  <bruno@clisp.org>
44226
44227         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44228
44229 2008-12-21  Bruno Haible  <bruno@clisp.org>
44230
44231         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44232         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44233         (Include): Remove conditionalization.
44234         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44235         (Include): Remove conditionalization.
44236         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44237         (Include): Remove conditionalization.
44238         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44239         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44240         * NEWS: Mention the change.
44241         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44242         via Sergey Poznyakoff <gray@gnu.org.ua>.
44243
44244 2008-12-21  Bruno Haible  <bruno@clisp.org>
44245
44246         * MODULES.html.sh (Extended multibyte and wide character utilities
44247         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44248         wcrtomb, wcsrtombs.
44249         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44250         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44251         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44252         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44253
44254 2008-12-21  Bruno Haible  <bruno@clisp.org>
44255
44256         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44257
44258 2008-12-21  Bruno Haible  <bruno@clisp.org>
44259
44260         * modules/wcsnrtombs-tests: New file.
44261         * tests/test-wcsnrtombs1.sh: New file.
44262         * tests/test-wcsnrtombs2.sh: New file.
44263         * tests/test-wcsnrtombs3.sh: New file.
44264         * tests/test-wcsnrtombs4.sh: New file.
44265         * tests/test-wcsnrtombs.c: New file.
44266
44267         New module 'wcsnrtombs'.
44268         * lib/wchar.in.h (wcsnrtombs): New declaration.
44269         * lib/wcsnrtombs.c: New file.
44270         * lib/wcsrtombs-state.c: New file.
44271         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44272         (internal_state): Remove variable.
44273         * m4/wcsnrtombs.m4: New file.
44274         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44275         compilation units.
44276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44277         HAVE_WCSNRTOMBS.
44278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44279         HAVE_WCSNRTOMBS.
44280         * modules/wcsnrtombs: New file.
44281         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44282         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44283
44284 2008-12-21  Bruno Haible  <bruno@clisp.org>
44285
44286         * modules/wcsrtombs-tests: New file.
44287         * tests/test-wcsrtombs1.sh: New file.
44288         * tests/test-wcsrtombs2.sh: New file.
44289         * tests/test-wcsrtombs3.sh: New file.
44290         * tests/test-wcsrtombs4.sh: New file.
44291         * tests/test-wcsrtombs.c: New file.
44292
44293         New module 'wcsrtombs'.
44294         * lib/wchar.in.h (wcsrtombs): New declaration.
44295         * lib/wcsrtombs.c: New file.
44296         * m4/wcsrtombs.m4: New file.
44297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44298         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44300         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44301         * modules/wcsrtombs: New file.
44302         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44303         bugs.
44304
44305 2008-12-21  Bruno Haible  <bruno@clisp.org>
44306
44307         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44308         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44309         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44310         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44311         if not correct.
44312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44313         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44314         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44315         m4/locale-zh.m4, m4/codeset.m4.
44316         * doc/posix-functions/wcrtomb.texi: Document the bug.
44317
44318 2008-12-21  Bruno Haible  <bruno@clisp.org>
44319
44320         Work around a btowc() bug on IRIX 6.5.
44321         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44322         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44323         REPLACE_WTOBC if not.
44324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44325         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44326         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44327
44328 2008-12-21  Bruno Haible  <bruno@clisp.org>
44329
44330         * modules/wcrtomb-tests: New file.
44331         * tests/test-wcrtomb.sh: New file.
44332         * tests/test-wcrtomb.c: New file.
44333
44334         New module 'wcrtomb'.
44335         * lib/wchar.in.h (wcrtomb): New declaration.
44336         * lib/wcrtomb.c: New file.
44337         * m4/wcrtomb.m4: New file.
44338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44339         HAVE_WCRTOMB.
44340         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44341         HAVE_WCRTOMB.
44342         * modules/wcrtomb: New file.
44343         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44344
44345 2008-12-21  Bruno Haible  <bruno@clisp.org>
44346
44347         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44348         * modules/mbsrtowcs (Files): Likewise.
44349         * modules/wctob (Files): Likewise.
44350         * modules/c-strcase-tests (Files): Likewise.
44351         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44352         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44353         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44354         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44355         * modules/vasnprintf-posix-tests (Files): Likewise.
44356
44357 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44358
44359         gitlog-to-changelog: pass all command-line arguments to git-log
44360         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44361         it is sometimes convenient to filter the commits in various ways.
44362         gitlog-to-changelog only allows --since to specify a start date,
44363         but git-log itself supports many other filtering mechanisms.
44364         At the moment, I want to filter by branch name.  Rather than
44365         adding a --branch option to gitlog-to-changelog, it seems more
44366         flexible to simply pass all options directly to git-log and let
44367         git do the work.  Notice that this effectively makes --since a
44368         redundant option for gitlog-to-changelog, but removing it would
44369         require current usage to change since calls would then require
44370         an additional '--'.
44371
44372 2008-12-21  Bruno Haible  <bruno@clisp.org>
44373
44374         * modules/mbsnrtowcs-tests: New file.
44375         * tests/test-mbsnrtowcs1.sh: New file.
44376         * tests/test-mbsnrtowcs2.sh: New file.
44377         * tests/test-mbsnrtowcs3.sh: New file.
44378         * tests/test-mbsnrtowcs4.sh: New file.
44379         * tests/test-mbsnrtowcs.c: New file.
44380
44381         New module 'mbsnrtowcs'.
44382         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44383         * lib/mbsnrtowcs.c: New file.
44384         * lib/mbsrtowcs-state.c: New file.
44385         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44386         (internal_state): Remove variable.
44387         * m4/mbsnrtowcs.m4: New file.
44388         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44389         compilation units.
44390         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44391         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44392         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44393         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44394         * modules/mbsnrtowcs: New file.
44395         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44396         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44397         portability problem.
44398
44399 2008-12-21  Bruno Haible  <bruno@clisp.org>
44400
44401         Work around mbsrtowcs bug.
44402         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44403         (gl_FUNC_MBSRTOWCS): Invoke it.
44404         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44405         m4/locale-zh.m4.
44406         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44407
44408 2008-12-21  Bruno Haible  <bruno@clisp.org>
44409
44410         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44411
44412 2008-12-21  Bruno Haible  <bruno@clisp.org>
44413
44414         Update doc for AIX.
44415         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44416         16-bit wchar_t type.
44417         * doc/posix-functions/btowc.texi: Likewise.
44418         * doc/posix-functions/fgetwc.texi: Likewise.
44419         * doc/posix-functions/fgetws.texi: Likewise.
44420         * doc/posix-functions/fputwc.texi: Likewise.
44421         * doc/posix-functions/fputws.texi: Likewise.
44422         * doc/posix-functions/fwide.texi: Likewise.
44423         * doc/posix-functions/fwprintf.texi: Likewise.
44424         * doc/posix-functions/fwscanf.texi: Likewise.
44425         * doc/posix-functions/getwchar.texi: Likewise.
44426         * doc/posix-functions/getwc.texi: Likewise.
44427         * doc/posix-functions/iswalnum.texi: Likewise.
44428         * doc/posix-functions/iswalpha.texi: Likewise.
44429         * doc/posix-functions/iswblank.texi: Likewise.
44430         * doc/posix-functions/iswcntrl.texi: Likewise.
44431         * doc/posix-functions/iswctype.texi: Likewise.
44432         * doc/posix-functions/iswdigit.texi: Likewise.
44433         * doc/posix-functions/iswgraph.texi: Likewise.
44434         * doc/posix-functions/iswlower.texi: Likewise.
44435         * doc/posix-functions/iswprint.texi: Likewise.
44436         * doc/posix-functions/iswpunct.texi: Likewise.
44437         * doc/posix-functions/iswspace.texi: Likewise.
44438         * doc/posix-functions/iswupper.texi: Likewise.
44439         * doc/posix-functions/iswxdigit.texi: Likewise.
44440         * doc/posix-functions/mbrtowc.texi: Likewise.
44441         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44442         * doc/posix-functions/mbstowcs.texi: Likewise.
44443         * doc/posix-functions/mbtowc.texi: Likewise.
44444         * doc/posix-functions/putwchar.texi: Likewise.
44445         * doc/posix-functions/putwc.texi: Likewise.
44446         * doc/posix-functions/swprintf.texi: Likewise.
44447         * doc/posix-functions/tolower.texi: Likewise.
44448         * doc/posix-functions/toupper.texi: Likewise.
44449         * doc/posix-functions/towctrans.texi: Likewise.
44450         * doc/posix-functions/ungetwc.texi: Likewise.
44451         * doc/posix-functions/vswprintf.texi: Likewise.
44452         * doc/posix-functions/wcrtomb.texi: Likewise.
44453         * doc/posix-functions/wcscat.texi: Likewise.
44454         * doc/posix-functions/wcschr.texi: Likewise.
44455         * doc/posix-functions/wcscmp.texi: Likewise.
44456         * doc/posix-functions/wcscoll.texi: Likewise.
44457         * doc/posix-functions/wcscpy.texi: Likewise.
44458         * doc/posix-functions/wcscspn.texi: Likewise.
44459         * doc/posix-functions/wcsftime.texi: Likewise.
44460         * doc/posix-functions/wcslen.texi: Likewise.
44461         * doc/posix-functions/wcsncat.texi: Likewise.
44462         * doc/posix-functions/wcsncmp.texi: Likewise.
44463         * doc/posix-functions/wcsncpy.texi: Likewise.
44464         * doc/posix-functions/wcspbrk.texi: Likewise.
44465         * doc/posix-functions/wcsrchr.texi: Likewise.
44466         * doc/posix-functions/wcsrtombs.texi: Likewise.
44467         * doc/posix-functions/wcsspn.texi: Likewise.
44468         * doc/posix-functions/wcsstr.texi: Likewise.
44469         * doc/posix-functions/wcstod.texi: Likewise.
44470         * doc/posix-functions/wcstof.texi: Likewise.
44471         * doc/posix-functions/wcstoimax.texi: Likewise.
44472         * doc/posix-functions/wcstok.texi: Likewise.
44473         * doc/posix-functions/wcstold.texi: Likewise.
44474         * doc/posix-functions/wcstoll.texi: Likewise.
44475         * doc/posix-functions/wcstol.texi: Likewise.
44476         * doc/posix-functions/wcstombs.texi: Likewise.
44477         * doc/posix-functions/wcstoull.texi: Likewise.
44478         * doc/posix-functions/wcstoul.texi: Likewise.
44479         * doc/posix-functions/wcstoumax.texi: Likewise.
44480         * doc/posix-functions/wcswidth.texi: Likewise.
44481         * doc/posix-functions/wcsxfrm.texi: Likewise.
44482         * doc/posix-functions/wctob.texi: Likewise.
44483         * doc/posix-functions/wctomb.texi: Likewise.
44484         * doc/posix-functions/wctrans.texi: Likewise.
44485         * doc/posix-functions/wctype.texi: Likewise.
44486         * doc/posix-functions/wcwidth.texi: Likewise.
44487         * doc/posix-functions/wmemchr.texi: Likewise.
44488         * doc/posix-functions/wmemcmp.texi: Likewise.
44489         * doc/posix-functions/wmemcpy.texi: Likewise.
44490         * doc/posix-functions/wmemmove.texi: Likewise.
44491         * doc/posix-functions/wmemset.texi: Likewise.
44492         * doc/posix-functions/wprintf.texi: Likewise.
44493         * doc/posix-functions/wscanf.texi: Likewise.
44494
44495 2008-12-21  Bruno Haible  <bruno@clisp.org>
44496
44497         Update doc for HP-UX 11.11.
44498         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44499         in HP-UX version 11.00, not in all versions of HP-UX 11.
44500         * doc/posix-functions/fwide.texi: Likewise.
44501         * doc/posix-functions/fwprintf.texi: Likewise.
44502         * doc/posix-functions/fwscanf.texi: Likewise.
44503         * doc/posix-functions/inet_ntop.texi: Likewise.
44504         * doc/posix-functions/inet_pton.texi: Likewise.
44505         * doc/posix-functions/mbrlen.texi: Likewise.
44506         * doc/posix-functions/mbrtowc.texi: Likewise.
44507         * doc/posix-functions/mbsinit.texi: Likewise.
44508         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44509         * doc/posix-functions/swprintf.texi: Likewise.
44510         * doc/posix-functions/swscanf.texi: Likewise.
44511         * doc/posix-functions/towctrans.texi: Likewise.
44512         * doc/posix-functions/vfwprintf.texi: Likewise.
44513         * doc/posix-functions/vswprintf.texi: Likewise.
44514         * doc/posix-functions/vwprintf.texi: Likewise.
44515         * doc/posix-functions/wcrtomb.texi: Likewise.
44516         * doc/posix-functions/wcsrtombs.texi: Likewise.
44517         * doc/posix-functions/wcsstr.texi: Likewise.
44518         * doc/posix-functions/wctob.texi: Likewise.
44519         * doc/posix-functions/wctrans.texi: Likewise.
44520         * doc/posix-functions/wmemchr.texi: Likewise.
44521         * doc/posix-functions/wmemcmp.texi: Likewise.
44522         * doc/posix-functions/wmemcpy.texi: Likewise.
44523         * doc/posix-functions/wmemmove.texi: Likewise.
44524         * doc/posix-functions/wmemset.texi: Likewise.
44525         * doc/posix-functions/wprintf.texi: Likewise.
44526         * doc/posix-functions/wscanf.texi: Likewise.
44527
44528 2008-12-21  Bruno Haible  <bruno@clisp.org>
44529
44530         Work around a portability problem.
44531         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44532         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44533
44534 2008-12-20  Bruno Haible  <bruno@clisp.org>
44535
44536         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44537         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44538         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44540         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44541
44542         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44543         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44544         set.
44545         (GNULIB_defined_mbstate_t): New macro.
44546         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44547         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44548         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44549         reuses the system's mbrtowc function but works around the bugs.
44550         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44551         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44552         macros.
44553         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44554         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44555         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44556         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44557         REPLACE_MBSINIT if mbsinit needs to be overridden.
44558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44559         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44560         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44561         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44562         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44563         m4/locale-zh.m4.
44564         (Depends): Add mbsinit.
44565         * modules/mbsinit (Depends): Add mbrtowc.
44566         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44567
44568 2008-12-20  Bruno Haible  <bruno@clisp.org>
44569
44570         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44571         so that there are no conversion errors on AIX.
44572         * tests/test-mbsrtowcs.c (main): LIkewise.
44573
44574 2008-12-20  Bruno Haible  <bruno@clisp.org>
44575
44576         Work around wctob bug on Solaris <= 9.
44577         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44578         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44580         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44581         * modules/wctob (Files): Add m4/locale-fr.m4.
44582         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44583
44584 2008-12-20  Bruno Haible  <bruno@clisp.org>
44585
44586         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44587         /dev/null.
44588         * tests/test-select-in.sh: Likewise.
44589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44590
44591 2008-12-20  Bruno Haible  <bruno@clisp.org>
44592
44593         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44594         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44595         Cygwin 1.5.x.
44596
44597 2008-12-20  Bruno Haible  <bruno@clisp.org>
44598
44599         Ensure mbstate_t is defined on HP-UX 11.11.
44600         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44601         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44602         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44603         AC_USE_SYSTEM_EXTENSIONS.
44604         * modules/fnmatch (Depends-on): Add extensions.
44605         * modules/mbrlen (Depends-on): Likewise.
44606         * modules/mbrtowc (Depends-on): Likewise.
44607         * modules/mbsinit (Depends-on): Likewise.
44608         * modules/mbsrtowcs (Depends-on): Likewise.
44609         * modules/mbswidth (Depends-on): Likewise.
44610         * modules/quotearg (Depends-on): Likewise.
44611         * modules/strftime (Depends-on): Likewise.
44612
44613 2008-12-20  Bruno Haible  <bruno@clisp.org>
44614
44615         Ensure wctob is declared on IRIX 6.5.
44616         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44617         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44618         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44620         of HAVE_WCTOB.
44621         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44622         HAVE_WCTOB.
44623         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44624
44625 2008-12-19  Bruno Haible  <bruno@clisp.org>
44626
44627         * modules/mbsrtowcs-tests: New file.
44628         * tests/test-mbsrtowcs1.sh: New file.
44629         * tests/test-mbsrtowcs2.sh: New file.
44630         * tests/test-mbsrtowcs3.sh: New file.
44631         * tests/test-mbsrtowcs4.sh: New file.
44632         * tests/test-mbsrtowcs.c: New file.
44633
44634         New module 'mbsrtowcs'.
44635         * lib/wchar.in.h (mbsrtowcs): New declaration.
44636         * lib/mbsrtowcs.c: New file.
44637         * m4/mbsrtowcs.m4: New file.
44638         * modules/mbsrtowcs: New file.
44639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44640         HAVE_MBSRTOWCS.
44641         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44642         HAVE_MBSRTOWCS.
44643         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44644
44645 2008-12-19  Bruno Haible  <bruno@clisp.org>
44646
44647         New module 'mbrlen'.
44648         * lib/wchar.in.h (mbrlen): New declaration.
44649         * lib/mbrlen.c: New file.
44650         * m4/mbrlen.m4: New file.
44651         * modules/mbrlen: New file.
44652         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44653         HAVE_MBRLEN.
44654         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44655         HAVE_MBRLEN.
44656         * doc/posix-functions/mbrlen.texi: Document the new module.
44657
44658 2008-12-19  Bruno Haible  <bruno@clisp.org>
44659
44660         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44661         * modules/mbrtowc (Depends-on): Add verify.
44662         Suggested by Paul Eggert.
44663
44664 2008-12-18  Bruno Haible  <bruno@clisp.org>
44665
44666         * modules/mbsinit-tests: New file.
44667         * tests/test-mbsinit.sh: New file.
44668         * tests/test-mbsinit.c: New file.
44669
44670 2008-12-18  Bruno Haible  <bruno@clisp.org>
44671
44672         * modules/mbrtowc-tests: New file.
44673         * tests/test-mbrtowc1.sh: New file.
44674         * tests/test-mbrtowc2.sh: New file.
44675         * tests/test-mbrtowc3.sh: New file.
44676         * tests/test-mbrtowc4.sh: New file.
44677         * tests/test-mbrtowc.c: New file.
44678
44679         New module 'mbrtowc'.
44680         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44681         mbsinit and mbrtowc.
44682         (mbrtowc): New declaration.
44683         * lib/mbrtowc.c: New file.
44684         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44685         * modules/mbrtowc: New file.
44686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44687         HAVE_MBRTOWC.
44688         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44689         HAVE_MBRTOWC.
44690         * doc/posix-functions/mbrtowc.texi: Document the new module.
44691
44692 2008-12-18  Bruno Haible  <bruno@clisp.org>
44693
44694         New module 'wctob'.
44695         * lib/wchar.in.h (wctob): New declaration.
44696         * lib/wctob.c: New file.
44697         * m4/wctob.m4: New file.
44698         * modules/wctob: New file.
44699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44700         HAVE_WCTOB.
44701         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44702         * doc/posix-functions/wctob.texi: Document the new module.
44703
44704 2008-12-18  Bruno Haible  <bruno@clisp.org>
44705
44706         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44707         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44708
44709 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44710
44711         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44712         G. Christensen" <tgc@jupiterrise.com>.
44713
44714         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44715         G. Christensen" <tgc@jupiterrise.com>.
44716
44717         * lib/flock.c: Need to include string.h.  Reported by "Tom
44718         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44719         <ebb9@byu.net>.
44720
44721 2008-12-18  Bruno Haible  <bruno@clisp.org>
44722
44723         * m4/locale-ja.m4: New file, from GNU gettext.
44724
44725 2008-12-17  Bruno Haible  <bruno@clisp.org>
44726
44727         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44728         Suggested by Eric Blake.
44729
44730 2008-12-17  Bruno Haible  <bruno@clisp.org>
44731
44732         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44733
44734 2008-12-17  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44737         * modules/mbsinit (Depends-on): Add verify.
44738         Suggested by Paul Eggert.
44739
44740 2008-12-17  Bruno Haible  <bruno@clisp.org>
44741
44742         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44743         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44744         gl_FUNC_MBRTOWC.
44745         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44746         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44747         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44748         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44749         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44750         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44751         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44752         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44753         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44754         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44755         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44756         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44757         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44758         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44759         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44760         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44761         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44762         * modules/trim (configure.ac): Likewise.
44763
44764 2008-12-17  Bruno Haible  <bruno@clisp.org>
44765
44766         * modules/btowc-tests: New file.
44767         * tests/test-btowc1.sh: New file.
44768         * tests/test-btowc2.sh: New file.
44769         * tests/test-btowc.c: New file.
44770
44771         New module 'btowc'.
44772         * lib/wchar.in.h (btowc): New declaration.
44773         * lib/btowc.c: New file.
44774         * m4/btowc.m4: New file.
44775         * modules/btowc: New file.
44776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44777         HAVE_BTOWC.
44778         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44779         * doc/posix-functions/btowc.texi: Document the new module.
44780
44781 2008-12-17  Bruno Haible  <bruno@clisp.org>
44782
44783         New module 'mbsinit'.
44784         * lib/wchar.in.h (mbsinit): New declaration.
44785         * lib/mbsinit.c: New file.
44786         * m4/mbsinit.m4: New file.
44787         * modules/mbsinit: New file.
44788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44789         HAVE_MBSINIT.
44790         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44791         HAVE_MBSINIT.
44792         * doc/posix-functions/mbsinit.texi: Document the new module.
44793
44794 2008-12-16  Bruno Haible  <bruno@clisp.org>
44795
44796         * lib/unistd.in.h: Add comment.
44797         * tests/test-environ.c: Don't include <stdlib.h>.
44798
44799 2008-12-16  Bruno Haible  <bruno@clisp.org>
44800
44801         * lib/parse-duration.h (parse_duration): Document return value
44802         convention.
44803         * lib/parse-duration.c: Include specification header first. Add
44804         comments.
44805         (_): Remove macro.
44806         (parse_year_month_day, parse_hour_minute_second): Move side effects
44807         outside of strchr call.
44808         (parse_non_iso8601): Move side effects outside of isspace call.
44809         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44810         call.
44811
44812 2008-12-16  Bruno Haible  <bruno@clisp.org>
44813
44814         * tests/test-parse-duration.sh: Produce no output when the test
44815         succeeds.
44816
44817 2008-12-16  Bruno Haible  <bruno@clisp.org>
44818
44819         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44820         expressions.
44821
44822 2008-12-15  Bruno Haible  <bruno@clisp.org>
44823
44824         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44825         * doc/glibc-functions/flistxattr.texi: Likewise.
44826         * doc/glibc-functions/fopencookie.texi: Likewise.
44827         * doc/glibc-functions/fremovexattr.texi: Likewise.
44828         * doc/glibc-functions/fsetxattr.texi: Likewise.
44829         * doc/glibc-functions/getxattr.texi: Likewise.
44830         * doc/glibc-functions/lgetxattr.texi: Likewise.
44831         * doc/glibc-functions/listxattr.texi: Likewise.
44832         * doc/glibc-functions/llistxattr.texi: Likewise.
44833         * doc/glibc-functions/lremovexattr.texi: Likewise.
44834         * doc/glibc-functions/lsetxattr.texi: Likewise.
44835         * doc/glibc-functions/removexattr.texi: Likewise.
44836         * doc/glibc-functions/setxattr.texi: Likewise.
44837         * doc/posix-functions/open_memstream.texi: Likewise.
44838
44839 2008-12-15  Eric Blake  <ebb9@byu.net>
44840
44841         Update doc for cygwin 1.7.
44842         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44843         functions.
44844         * doc/posix-functions/fchmodat.texi: Likewise.
44845         * doc/posix-functions/fchownat.texi: Likewise.
44846         * doc/posix-functions/fdopendir.texi: Likewise.
44847         * doc/posix-functions/fmemopen.texi: Likewise.
44848         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44849         * doc/posix-functions/fstatat.texi: Likewise.
44850         * doc/posix-functions/futimens.texi: Likewise.
44851         * doc/posix-functions/gai_strerror.texi: Likewise.
44852         * doc/posix-functions/getaddrinfo.texi: Likewise.
44853         * doc/posix-functions/getnameinfo.texi: Likewise.
44854         * doc/posix-functions/if_freenameindex.texi: Likewise.
44855         * doc/posix-functions/if_indextoname.texi: Likewise.
44856         * doc/posix-functions/if_nameindex.texi: Likewise.
44857         * doc/posix-functions/if_nametoindex.texi: Likewise.
44858         * doc/posix-functions/insque.texi: Likewise.
44859         * doc/posix-functions/linkat.texi: Likewise.
44860         * doc/posix-functions/llrint.texi: Likewise.
44861         * doc/posix-functions/llrintf.texi: Likewise.
44862         * doc/posix-functions/llrintl.texi: Likewise.
44863         * doc/posix-functions/lockf.texi: Likewise.
44864         * doc/posix-functions/lrintl.texi: Likewise.
44865         * doc/posix-functions/mkdirat.texi: Likewise.
44866         * doc/posix-functions/mkfifoat.texi: Likewise.
44867         * doc/posix-functions/mknodat.texi: Likewise.
44868         * doc/posix-functions/mq_close.texi: Likewise.
44869         * doc/posix-functions/mq_getattr.texi: Likewise.
44870         * doc/posix-functions/mq_notify.texi: Likewise.
44871         * doc/posix-functions/mq_open.texi: Likewise.
44872         * doc/posix-functions/mq_receive.texi: Likewise.
44873         * doc/posix-functions/mq_send.texi: Likewise.
44874         * doc/posix-functions/mq_setattr.texi: Likewise.
44875         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44876         * doc/posix-functions/mq_timedsend.texi: Likewise.
44877         * doc/posix-functions/mq_unlink.texi: Likewise.
44878         * doc/posix-functions/open_memstream.texi: Likewise.
44879         * doc/posix-functions/openat.texi: Likewise.
44880         * doc/posix-functions/posix_fadvise.texi: Likewise.
44881         * doc/posix-functions/posix_fallocate.texi: Likewise.
44882         * doc/posix-functions/posix_madvise.texi: Likewise.
44883         * doc/posix-functions/posix_memalign.texi: Likewise.
44884         * doc/posix-functions/posix_openpt.texi: Likewise.
44885         * doc/posix-functions/readlinkat.texi: Likewise.
44886         * doc/posix-functions/remque.texi: Likewise.
44887         * doc/posix-functions/renameat.texi: Likewise.
44888         * doc/posix-functions/rintl.texi: Likewise.
44889         * doc/posix-functions/sem_unlink.texi: Likewise.
44890         * doc/posix-functions/shm_open.texi: Likewise.
44891         * doc/posix-functions/shm_unlink.texi: Likewise.
44892         * doc/posix-functions/signgam.texi: Likewise.
44893         * doc/posix-functions/sigset.texi: Likewise.
44894         * doc/posix-functions/stpcpy.texi: Likewise.
44895         * doc/posix-functions/stpncpy.texi: Likewise.
44896         * doc/posix-functions/strerror.texi: Likewise.
44897         * doc/posix-functions/strtod.texi: Likewise.
44898         * doc/posix-functions/symlinkat.texi: Likewise.
44899         * doc/posix-functions/unlinkat.texi: Likewise.
44900         * doc/posix-functions/utimensat.texi: Likewise.
44901         * doc/glibc-functions/bindresvport.texi: Likewise.
44902         * doc/glibc-functions/dn_expand.texi: Likewise.
44903         * doc/glibc-functions/exp10.texi: Likewise.
44904         * doc/glibc-functions/exp10f.texi: Likewise.
44905         * doc/glibc-functions/fgetxattr.texi: Likewise.
44906         * doc/glibc-functions/flistxattr.texi: Likewise.
44907         * doc/glibc-functions/fopencookie.texi: Likewise.
44908         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44909         * doc/glibc-functions/fremovexattr.texi: Likewise.
44910         * doc/glibc-functions/fsetxattr.texi: Likewise.
44911         * doc/glibc-functions/getifaddrs.texi: Likewise.
44912         * doc/glibc-functions/getxattr.texi: Likewise.
44913         * doc/glibc-functions/lgetxattr.texi: Likewise.
44914         * doc/glibc-functions/listxattr.texi: Likewise.
44915         * doc/glibc-functions/llistxattr.texi: Likewise.
44916         * doc/glibc-functions/lremovexattr.texi: Likewise.
44917         * doc/glibc-functions/lsetxattr.texi: Likewise.
44918         * doc/glibc-functions/pow10.texi: Likewise.
44919         * doc/glibc-functions/pow10f.texi: Likewise.
44920         * doc/glibc-functions/rcmd_af.texi: Likewise.
44921         * doc/glibc-functions/removexattr.texi: Likewise.
44922         * doc/glibc-functions/res_init.texi: Likewise.
44923         * doc/glibc-functions/res_mkquery.texi: Likewise.
44924         * doc/glibc-functions/res_query.texi: Likewise.
44925         * doc/glibc-functions/res_querydomain.texi: Likewise.
44926         * doc/glibc-functions/res_send.texi: Likewise.
44927         * doc/glibc-functions/rresvport_af.texi: Likewise.
44928         * doc/glibc-functions/setxattr.texi: Likewise.
44929         * doc/glibc-functions/strcasestr.texi: Likewise.
44930
44931 2008-12-15  Bruno Haible  <bruno@clisp.org>
44932
44933         Fix compilation error on OSF/1 4.0.
44934         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44935         <sys/time.h>, simply delegate to the system header.
44936         Reported by Daniel Richard G. <oss@teragram.com>.
44937
44938 2008-12-15  Bruno Haible  <bruno@clisp.org>
44939
44940         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44941         * doc/posix-functions/fchmodat.texi: Likewise.
44942         * doc/posix-functions/fchownat.texi: Likewise.
44943         * doc/posix-functions/fdopendir.texi: Likewise.
44944         * doc/posix-functions/fstatat.texi: Likewise.
44945         * doc/posix-functions/mkdirat.texi: Likewise.
44946         * doc/posix-functions/unlinkat.texi: Likewise.
44947
44948 2008-12-14  Bruno Haible  <bruno@clisp.org>
44949
44950         Update doc for POSIX:2008.
44951         * doc/posix-functions/faccessat.texi: New file.
44952         * doc/posix-functions/fchmodat.texi: New file.
44953         * doc/posix-functions/fchownat.texi: New file.
44954         * doc/posix-functions/fdopendir.texi: New file.
44955         * doc/posix-functions/fstatat.texi: New file.
44956         * doc/posix-functions/futimens.texi: New file.
44957         * doc/posix-functions/linkat.texi: New file.
44958         * doc/posix-functions/mkdirat.texi: New file.
44959         * doc/posix-functions/mkfifoat.texi: New file.
44960         * doc/posix-functions/mknodat.texi: New file.
44961         * doc/posix-functions/open_wmemstream.texi: New file.
44962         * doc/posix-functions/openat.texi: New file.
44963         * doc/posix-functions/psiginfo.texi: New file.
44964         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44965         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44966         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44967         * doc/posix-functions/readlinkat.texi: New file.
44968         * doc/posix-functions/renameat.texi: New file.
44969         * doc/posix-functions/strerror_l.texi: New file.
44970         * doc/posix-functions/symlinkat.texi: New file.
44971         * doc/posix-functions/unlinkat.texi: New file.
44972         * doc/posix-functions/utimensat.texi: New file.
44973         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44974
44975 2008-12-14  Bruno Haible  <bruno@clisp.org>
44976
44977         Update doc for POSIX:2008.
44978         * doc/posix-functions/alphasort.texi: Renamed from
44979         doc/glibc-functions/alphasort.texi.
44980         * doc/posix-functions/dirfd.texi: Renamed from
44981         doc/glibc-functions/dirfd.texi.
44982         * doc/posix-functions/dprintf.texi: Renamed from
44983         doc/glibc-functions/dprintf.texi.
44984         * doc/posix-functions/duplocale.texi: Renamed from
44985         doc/glibc-functions/duplocale.texi.
44986         * doc/posix-functions/fexecve.texi: Renamed from
44987         doc/glibc-functions/fexecve.texi.
44988         * doc/posix-functions/fmemopen.texi: Renamed from
44989         doc/glibc-functions/fmemopen.texi.
44990         * doc/posix-functions/freelocale.texi: Renamed from
44991         doc/glibc-functions/freelocale.texi.
44992         * doc/posix-functions/getdate_err.texi: Renamed from
44993         doc/glibc-functions/getdate_err.texi.
44994         * doc/posix-functions/isalnum_l.texi: Renamed from
44995         doc/glibc-functions/isalnum_l.texi.
44996         * doc/posix-functions/isalpha_l.texi: Renamed from
44997         doc/glibc-functions/isalpha_l.texi.
44998         * doc/posix-functions/isblank_l.texi: Renamed from
44999         doc/glibc-functions/isblank_l.texi.
45000         * doc/posix-functions/iscntrl_l.texi: Renamed from
45001         doc/glibc-functions/iscntrl_l.texi.
45002         * doc/posix-functions/isdigit_l.texi: Renamed from
45003         doc/glibc-functions/isdigit_l.texi.
45004         * doc/posix-functions/isgraph_l.texi: Renamed from
45005         doc/glibc-functions/isgraph_l.texi.
45006         * doc/posix-functions/islower_l.texi: Renamed from
45007         doc/glibc-functions/islower_l.texi.
45008         * doc/posix-functions/isprint_l.texi: Renamed from
45009         doc/glibc-functions/isprint_l.texi.
45010         * doc/posix-functions/ispunct_l.texi: Renamed from
45011         doc/glibc-functions/ispunct_l.texi.
45012         * doc/posix-functions/isspace_l.texi: Renamed from
45013         doc/glibc-functions/isspace_l.texi.
45014         * doc/posix-functions/isupper_l.texi: Renamed from
45015         doc/glibc-functions/isupper_l.texi.
45016         * doc/posix-functions/iswalnum_l.texi: Renamed from
45017         doc/glibc-functions/iswalnum_l.texi.
45018         * doc/posix-functions/iswalpha_l.texi: Renamed from
45019         doc/glibc-functions/iswalpha_l.texi.
45020         * doc/posix-functions/iswblank_l.texi: Renamed from
45021         doc/glibc-functions/iswblank_l.texi.
45022         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45023         doc/glibc-functions/iswcntrl_l.texi.
45024         * doc/posix-functions/iswctype_l.texi: Renamed from
45025         doc/glibc-functions/iswctype_l.texi.
45026         * doc/posix-functions/iswdigit_l.texi: Renamed from
45027         doc/glibc-functions/iswdigit_l.texi.
45028         * doc/posix-functions/iswgraph_l.texi: Renamed from
45029         doc/glibc-functions/iswgraph_l.texi.
45030         * doc/posix-functions/iswlower_l.texi: Renamed from
45031         doc/glibc-functions/iswlower_l.texi.
45032         * doc/posix-functions/iswprint_l.texi: Renamed from
45033         doc/glibc-functions/iswprint_l.texi.
45034         * doc/posix-functions/iswpunct_l.texi: Renamed from
45035         doc/glibc-functions/iswpunct_l.texi.
45036         * doc/posix-functions/iswspace_l.texi: Renamed from
45037         doc/glibc-functions/iswspace_l.texi.
45038         * doc/posix-functions/iswupper_l.texi: Renamed from
45039         doc/glibc-functions/iswupper_l.texi.
45040         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45041         doc/glibc-functions/iswxdigit_l.texi.
45042         * doc/posix-functions/isxdigit_l.texi: Renamed from
45043         doc/glibc-functions/isxdigit_l.texi.
45044         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45045         doc/glibc-functions/mbsnrtowcs.texi.
45046         * doc/posix-functions/mkdtemp.texi: Renamed from
45047         doc/glibc-functions/mkdtemp.texi.
45048         * doc/posix-functions/newlocale.texi: Renamed from
45049         doc/glibc-functions/newlocale.texi.
45050         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45051         doc/glibc-functions/nl_langinfo_l.texi.
45052         * doc/posix-functions/open_memstream.texi: Renamed from
45053         doc/glibc-functions/open_memstream.texi.
45054         * doc/posix-functions/opterr.texi: Renamed from
45055         doc/glibc-functions/opterr.texi.
45056         * doc/posix-functions/optind.texi: Renamed from
45057         doc/glibc-functions/optind.texi.
45058         * doc/posix-functions/optopt.texi: Renamed from
45059         doc/glibc-functions/optopt.texi.
45060         * doc/posix-functions/psignal.texi: Renamed from
45061         doc/glibc-functions/psignal.texi.
45062         * doc/posix-functions/scandir.texi: Renamed from
45063         doc/glibc-functions/scandir.texi.
45064         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45065         doc/glibc-functions/sched_get_priority_min.texi.
45066         * doc/posix-functions/signgam.texi: Renamed from
45067         doc/glibc-functions/signgam.texi.
45068         * doc/posix-functions/stpcpy.texi: Renamed from
45069         doc/glibc-functions/stpcpy.texi.
45070         * doc/posix-functions/stpncpy.texi: Renamed from
45071         doc/glibc-functions/stpncpy.texi.
45072         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45073         doc/glibc-functions/strcasecmp_l.texi.
45074         * doc/posix-functions/strcoll_l.texi: Renamed from
45075         doc/glibc-functions/strcoll_l.texi.
45076         * doc/posix-functions/strfmon_l.texi: Renamed from
45077         doc/glibc-functions/strfmon_l.texi.
45078         * doc/posix-functions/strftime_l.texi: Renamed from
45079         doc/glibc-functions/strftime_l.texi.
45080         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45081         doc/glibc-functions/strncasecmp_l.texi.
45082         * doc/posix-functions/strndup.texi: Renamed from
45083         doc/glibc-functions/strndup.texi.
45084         * doc/posix-functions/strnlen.texi: Renamed from
45085         doc/glibc-functions/strnlen.texi.
45086         * doc/posix-functions/strsignal.texi: Renamed from
45087         doc/glibc-functions/strsignal.texi.
45088         * doc/posix-functions/strxfrm_l.texi: Renamed from
45089         doc/glibc-functions/strxfrm_l.texi.
45090         * doc/posix-functions/timer_gettime.texi: Renamed from
45091         doc/glibc-functions/timer_gettime.texi.
45092         * doc/posix-functions/tolower_l.texi: Renamed from
45093         doc/glibc-functions/tolower_l.texi.
45094         * doc/posix-functions/toupper_l.texi: Renamed from
45095         doc/glibc-functions/toupper_l.texi.
45096         * doc/posix-functions/towctrans_l.texi: Renamed from
45097         doc/glibc-functions/towctrans_l.texi.
45098         * doc/posix-functions/towlower_l.texi: Renamed from
45099         doc/glibc-functions/towlower_l.texi.
45100         * doc/posix-functions/towupper_l.texi: Renamed from
45101         doc/glibc-functions/towupper_l.texi.
45102         * doc/posix-functions/uselocale.texi: Renamed from
45103         doc/glibc-functions/uselocale.texi.
45104         * doc/posix-functions/vdprintf.texi: Renamed from
45105         doc/glibc-functions/vdprintf.texi.
45106         * doc/posix-functions/wcpcpy.texi:
45107         Renamed from doc/glibc-functions/wcpcpy.texi.
45108         * doc/posix-functions/wcpncpy.texi: Renamed from
45109         doc/glibc-functions/wcpncpy.texi.
45110         * doc/posix-functions/wcscasecmp.texi: Renamed from
45111         doc/glibc-functions/wcscasecmp.texi.
45112         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45113         doc/glibc-functions/wcscasecmp_l.texi.
45114         * doc/posix-functions/wcscoll_l.texi: Renamed from
45115         doc/glibc-functions/wcscoll_l.texi.
45116         * doc/posix-functions/wcsdup.texi: Renamed from
45117         doc/glibc-functions/wcsdup.texi.
45118         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45119         doc/glibc-functions/wcsncasecmp.texi.
45120         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45121         doc/glibc-functions/wcsncasecmp_l.texi.
45122         * doc/posix-functions/wcsnlen.texi: Renamed from
45123         doc/glibc-functions/wcsnlen.texi.
45124         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45125         doc/glibc-functions/wcsnrtombs.texi.
45126         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45127         doc/glibc-functions/wcsxfrm_l.texi.
45128         * doc/posix-functions/wctrans_l.texi: Renamed from
45129         doc/glibc-functions/wctrans_l.texi.
45130         * doc/posix-functions/wctype_l.texi: Renamed from
45131         doc/glibc-functions/wctype_l.texi.
45132         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45133         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45134         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45135         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45136         these subsections.
45137         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45138         Remove sections.
45139
45140 2008-12-14  Bruno Haible  <bruno@clisp.org>
45141
45142         Update doc for POSIX:2008.
45143         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45144
45145 2008-12-14  Bruno Haible  <bruno@clisp.org>
45146
45147         Update doc for POSIX:2008.
45148         * doc/pastposix-functions/bcmp.texi: Renamed from
45149         doc/posix-functions/bcmp.texi.
45150         * doc/pastposix-functions/bcopy.texi: Renamed from
45151         doc/posix-functions/bcopy.texi.
45152         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45153         doc/posix-functions/bsd_signal.texi.
45154         * doc/pastposix-functions/bzero.texi: Renamed from
45155         doc/posix-functions/bzero.texi.
45156         * doc/pastposix-functions/ecvt.texi: Renamed from
45157         doc/posix-functions/ecvt.texi.
45158         * doc/pastposix-functions/fcvt.texi: Renamed from
45159         doc/posix-functions/fcvt.texi.
45160         * doc/pastposix-functions/ftime.texi: Renamed from
45161         doc/posix-functions/ftime.texi.
45162         * doc/pastposix-functions/gcvt.texi: Renamed from
45163         doc/posix-functions/gcvt.texi.
45164         * doc/pastposix-functions/getcontext.texi: Renamed from
45165         doc/posix-functions/getcontext.texi.
45166         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45167         doc/posix-functions/gethostbyaddr.texi.
45168         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45169         doc/posix-functions/gethostbyname.texi.
45170         * doc/pastposix-functions/getwd.texi: Renamed from
45171         doc/posix-functions/getwd.texi.
45172         * doc/pastposix-functions/h_errno.texi: Renamed from
45173         doc/posix-functions/h_errno.texi.
45174         * doc/pastposix-functions/index.texi: Renamed from
45175         doc/posix-functions/index.texi.
45176         * doc/pastposix-functions/makecontext.texi: Renamed from
45177         doc/posix-functions/makecontext.texi.
45178         * doc/pastposix-functions/mktemp.texi: Renamed from
45179         doc/posix-functions/mktemp.texi.
45180         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45181         doc/posix-functions/pthread_attr_getstackaddr.texi.
45182         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45183         doc/posix-functions/pthread_attr_setstackaddr.texi.
45184         * doc/pastposix-functions/rindex.texi: Renamed from
45185         doc/posix-functions/rindex.texi.
45186         * doc/pastposix-functions/scalb.texi: Renamed from
45187         doc/posix-functions/scalb.texi.
45188         * doc/pastposix-functions/setcontext.texi: Renamed from
45189         doc/posix-functions/setcontext.texi.
45190         * doc/pastposix-functions/swapcontext.texi: Renamed from
45191         doc/posix-functions/swapcontext.texi.
45192         * doc/pastposix-functions/ualarm.texi: Renamed from
45193         doc/posix-functions/ualarm.texi.
45194         * doc/pastposix-functions/usleep.texi: Renamed from
45195         doc/posix-functions/usleep.texi.
45196         * doc/pastposix-functions/vfork.texi: Renamed from
45197         doc/posix-functions/vfork.texi.
45198         * doc/pastposix-functions/wcswcs.texi: Renamed from
45199         doc/posix-functions/wcswcs.texi.
45200         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45201         (Function Substitutes): Update.
45202
45203 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45204
45205         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45206         m4/strerror.m4.
45207
45208 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45209             Bruno Haible  <bruno@clisp.org>
45210
45211         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45212
45213 2008-12-13  Bruno Haible  <bruno@clisp.org>
45214
45215         * modules/strtoull (Depends-on): Remove unistd.
45216
45217 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45218
45219         * modules/strtoull (Depends-on): Add stdlib.
45220
45221 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45222
45223         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45224
45225 2008-12-10  Jim Meyering  <meyering@redhat.com>
45226
45227         gl_ASSERT: don't say assertions are disabled when they're not
45228         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45229         "checking whether to enable assertions... no", when they are in
45230         fact enabled.  This is solely a bug in the output of configure.
45231         In spite of saying "no", NDEBUG was not defined in that case.
45232         Also, as noted by Eric Blake, leave assertions enabled upon
45233         --enable-assert=INVALID.
45234
45235 2008-12-10  Bruno Haible  <bruno@clisp.org>
45236
45237         Change MODULES.html to refer to POSIX:2008 where possible.
45238         * MODULES.html.sh (POSIX2008_URL): New variable.
45239         (posix_headers): Remove sys/timeb, ucontext.
45240         (posix2001_headers): New variable.
45241         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45242         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45243         index, makecontext, mktemp, pthread_attr_getstackaddr,
45244         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45245         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45246         (posix2001_functions): New variable.
45247         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45248         otherwise.
45249
45250 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45251
45252         add missing include to parse-duration.c
45253         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45254         * modules/parse-duration (Depends-on): Add xalloc.
45255
45256         fix sed script reading maint.mk
45257         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45258         (syntax-check-rules): Use it.
45259
45260 2008-12-09  Bruno Haible  <bruno@clisp.org>
45261
45262         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45263         MacOS X 10.4/PowerPC.
45264         Reported by Simon Josefsson.
45265
45266 2008-12-08  Jim Meyering  <meyering@redhat.com>
45267
45268         work around mingw's lack of some S_IF definitions
45269         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45270         Reported by Simon Josefsson.
45271
45272 2008-12-08  Bruno Haible  <bruno@clisp.org>
45273
45274         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45275         applied to variables. Needed on MacOS X 10.4/PowerPC.
45276         Reported by Simon Josefsson.
45277
45278 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45279         and Eric Blake  <ebb9@byu.net>
45280
45281         assert: honor --enable-assert
45282         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45283         order to honor --enable-assert, rather than treating it as a
45284         synonym for --disable-assert.
45285
45286 2008-12-08  Jim Meyering  <meyering@redhat.com>
45287
45288         * lib/posixtm.c: Remove now-useless declaration of mktime.
45289
45290         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45291
45292 2008-12-07  Bruno Haible  <bruno@clisp.org>
45293
45294         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45295         test_once): Mark functions as static.
45296         * tests/test-tls.c (test_tls): Likewise.
45297
45298 2008-12-07  Bruno Haible  <bruno@clisp.org>
45299
45300         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45301         iconv_register_autodetect.
45302
45303 2008-12-07  Jim Meyering  <meyering@redhat.com>
45304
45305         posixtm.c: avoid a warning
45306         * lib/posixtm.c (posixtime): Don't initialize tm0.
45307         It's no longer needed to placate gcc4's -Wuninitialized,
45308         and the attempt to placate would elicit a new warning.
45309
45310         unicodeio.c: mark unused parameters
45311         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45312         (fallback_failure_callback): Likewise.
45313
45314 2008-12-07  Bruno Haible  <bruno@clisp.org>
45315
45316         * gnulib-tool (func_create_testdir): When building the tests
45317         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45318         Reported by Simon Josefsson.
45319
45320 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45321
45322         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45323
45324 2008-12-06  Bruno Haible  <bruno@clisp.org>
45325
45326         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45327         Suggested by Eric Blake.
45328
45329 2008-12-06  Bruno Haible  <bruno@clisp.org>
45330
45331         Fix a c-stack test failure on MacOS X.
45332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45333         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45334         handler for SIGBUS as well.
45335         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45336         install a signal handler for SIGBUS as well.
45337         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45338
45339 2008-12-06  Bruno Haible  <bruno@clisp.org>
45340
45341         Advocacy documentation.
45342         * doc/gnulib-intro.texi (Benefits): New section.
45343         * doc/gnulib.texi: Update.
45344
45345 2008-12-06  Bruno Haible  <bruno@clisp.org>
45346
45347         Document the 'manywarnings' module.
45348         * doc/manywarnings.texi: New file.
45349         * doc/gnulib.texi: Include it.
45350
45351 2008-12-05  Eric Blake  <ebb9@byu.net>
45352
45353         tests: silence some gcc warnings
45354         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45355         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45356         type mismatches.
45357
45358 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45359             Bruno Haible  <bruno@clisp.org>
45360
45361         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45362
45363 2008-11-29  Jim Meyering  <meyering@redhat.com>
45364
45365         unicodeio.c: mark unused parameters
45366         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45367         (fallback_failure_callback): Likewise.
45368
45369         fts: fix a thinko
45370         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45371         (set_stat_type): Return S_IF*-valued "type" directly.
45372         Prompted by James Youngman's spotting a related bug.
45373         Confirmed by further testing through find.
45374
45375         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45376         * lib/fts.c (D_TYPE): Define.
45377         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45378         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45379         (s_ifmt_shift_bits): New function.
45380         (set_stat_type): New function.
45381         (fts_build): When not calling fts_stat, call set_stat_type
45382         to propagate dirent.d_type info to fts_read caller.
45383         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45384         fts_statp->st_mode type information may be valid.
45385
45386 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45387
45388         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45389         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45390         <sds@gnu.org>.
45391
45392 2008-11-20  Bruno Haible  <bruno@clisp.org>
45393
45394         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45395         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45396         INCLUDE_NEXT.
45397         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45398         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45399         * modules/math (Makefile.am): Substitute
45400         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45401         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45402
45403 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45404             Bruno Haible  <bruno@clisp.org>
45405
45406         * lib/stdint.in.h: Define all type macros so that their expansion is
45407         a single typedef'ed token. Fixes a compilation failure in Boost which
45408         does "using ::int8_t;".
45409
45410 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45411
45412         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45413         gl_MANYWARN_ALL_GCC.
45414         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45415         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45416         * modules/manywarnings: New file.
45417         * MODULES.html.sh: Mention manywarnings module.
45418
45419 2008-11-18  Bruno Haible  <bruno@clisp.org>
45420
45421         * doc/gnulib-tool.texi (Unit tests): New section.
45422
45423 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45424
45425         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45426         paths like 'lib/po/foo.po'.
45427
45428 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45429
45430         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45431         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45432
45433 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45434
45435         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45436         parameter works.
45437
45438 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45439
45440         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45441
45442 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45443
45444         * modules/parse-duration-tests: New file.
45445         * tests/test-parse-duration.sh: New file.
45446         * tests/test-parse-duration.c: New file.
45447
45448         New module 'parse-duration'.
45449         * lib/parse-duration.h: New file.
45450         * lib/parse-duration.c: New file.
45451         * modules/parse-duration: New file.
45452
45453 2008-11-17  Bruno Haible  <bruno@clisp.org>
45454
45455         * tests/test-select-out.sh: Comment out the first pipe test.
45456         Reported by Simon Josefsson.
45457
45458 2008-11-17  Bruno Haible  <bruno@clisp.org>
45459
45460         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45462         gl_HOSTENT.
45463
45464 2008-11-17  Bruno Haible  <bruno@clisp.org>
45465
45466         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45467         -lnetwork and -lnet. Needed for Haiku and BeOS.
45468
45469 2008-11-16  Bruno Haible  <bruno@clisp.org>
45470
45471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45472
45473 2008-11-16  Bruno Haible  <bruno@clisp.org>
45474
45475         Avoid test failure on Haiku.
45476         * tests/test-fsync.c: Include <errno.h>.
45477         (main): Don't require that fsync (0) fails.
45478
45479 2008-11-15  Bruno Haible  <bruno@clisp.org>
45480
45481         New module 'hostent'.
45482         * modules/hostent: New file.
45483         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45484
45485 2008-11-15  Bruno Haible  <bruno@clisp.org>
45486
45487         New module 'servent'.
45488         * modules/servent: New file.
45489         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45490
45491 2008-11-15  Bruno Haible  <bruno@clisp.org>
45492
45493         Avoid generating same test program with two different rules.
45494         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45495         test-frexp to test-frexp-nolibm.
45496         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45497         test-frexpl to test-frexpl-nolibm.
45498
45499 2008-11-15  Bruno Haible  <bruno@clisp.org>
45500
45501         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45502         $(FREXPL_LIBM).
45503
45504 2008-11-15  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/netdb.in.h: Activate the definitions also when the system's
45507         <netdb.h> has 'struct addrinfo'.
45508         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45509         EAI_OVERFLOW or AI_NUMERICSERV.
45510         * doc/posix-headers/netdb.texi: Document the problem.
45511
45512 2008-11-15  Bruno Haible  <bruno@clisp.org>
45513
45514         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45515
45516         Make the 'sched' module work on platforms where <sched.h> exists but
45517         is incomplete (such as Haiku).
45518         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45519         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45520         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45521         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45522         HAVE_STRUCT_SCHED_PARAM.
45523         * modules/sched (Depends-on): Add include_next.
45524         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45525         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45526         * doc/posix-headers/sched.texi: Document the issue.
45527
45528 2008-11-13  Jim Meyering  <meyering@redhat.com>
45529
45530         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45531         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45532         test would fail due to the difference in the Report bugs to ...
45533         line.  The expected address is empty, "<>", while the actual
45534         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45535
45536 2008-11-12  Bruno Haible  <bruno@clisp.org>
45537
45538         lstat: don't compile lstat.c on systems lacking lstat
45539         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45540         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45541         Reported by Daniel P. Berrange via Jim Meyering.
45542
45543 2008-11-12  Jim Meyering  <meyering@redhat.com>
45544
45545         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45546
45547 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45548
45549         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45550         instead.
45551
45552 2008-11-12  Bruno Haible  <bruno@clisp.org>
45553
45554         * lib/unicodeio.c: Include unistr.h.
45555         (utf8_wctomb): Remove function.
45556         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45557
45558 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45559
45560         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45561         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45562         <bruno@clisp.org>.
45563         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45564
45565 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45566
45567         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45568         * doc/gnulib.texi: Add section for warnings.
45569
45570 2008-11-11  Bruno Haible  <bruno@clisp.org>
45571
45572         * lib/sockets.h: Add a comment.
45573
45574 2008-11-11  Karl Berry  <karl@gnu.org>
45575
45576         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45577
45578 2008-11-11  Eric Blake  <ebb9@byu.net>
45579
45580         fdl.texi: avoid git symlinks
45581         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45582
45583 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45584
45585         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45586
45587 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45588
45589         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45590         (gl_WARN_ADD): Substitute $2 if literal.
45591
45592 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45593
45594         * m4/warning.m4: Remove.
45595
45596 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45597
45598         * m4/warnings.m4: Almost complete rewrite. :-)
45599
45600 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45601
45602         * modules/warnings: New module.
45603         * m4/warnings.m4: New file.
45604         * MODULES.html.sh: Mention warnings module.
45605         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45606         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45607
45608 2008-11-10  Eric Blake  <ebb9@byu.net>
45609
45610         fdl.texi: make a symlink to the latest version
45611         * doc/standards.texi: Revert today's earlier change.
45612         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45613         * doc/fdl.texi: ...and replace this with a symlink to the newer
45614         fdl-1.3.texi.
45615
45616 2008-11-10  Bruno Haible  <bruno@clisp.org>
45617
45618         * tests/test-select-fd.c (main): Accept the result file name as fourth
45619         argument.
45620         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45621         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45622
45623 2008-11-10  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45626         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45627         as autoconf-substituted macros.
45628         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45629         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45630         gl_NETDB_H_DEFAULTS. Set these variables.
45631         * modules/netdb (Makefile.am): Substitute these variables.
45632
45633 2008-11-10  Eric Blake  <ebb9@byu.net>
45634
45635         standards.texi: include correct file for FDL 1.3
45636         * doc/standards.texi (GNU Free Documentation License): Change
45637         include file to pull in FDL 1.3, not 1.2.
45638
45639         fdl.texi: revert accidental change to license
45640         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45641
45642 2008-11-10  Bruno Haible  <bruno@clisp.org>
45643
45644         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45645         cross-compiling guesses also when the native compile gives no result.
45646
45647 2008-11-10  Bruno Haible  <bruno@clisp.org>
45648
45649         * lib/spawni.c (__spawni): Force variable into the stack.
45650
45651 2008-11-10  Bruno Haible  <bruno@clisp.org>
45652
45653         Add support for Haiku.
45654         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45655         glibc and BeOS, but also on Haiku.
45656         * lib/fpurge.c (fpurge): Likewise.
45657         * lib/freadable.c (freadable): Likewise.
45658         * lib/freadahead.c (freadahead): Likewise.
45659         * lib/freading.c (freading): Likewise.
45660         * lib/freadptr.c (freadptr): Likewise.
45661         * lib/freadseek.c (freadptrinc): Likewise.
45662         * lib/fseeko.c (rpl_fseeko): Likewise.
45663         * lib/fseterr.c (fseterr): Likewise.
45664         * lib/fwritable.c (fwritable): Likewise.
45665         * lib/fwriting.c (fwriting): Likewise.
45666         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45667
45668 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45669
45670         * lib/config.charset: Treat Haiku like BeOS.
45671
45672 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45673
45674         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45675         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45676
45677 2008-11-08  Bruno Haible  <bruno@clisp.org>
45678
45679         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45680         AC_CACHE_CHECK.
45681
45682 2008-11-08  Bruno Haible  <bruno@clisp.org>
45683
45684         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45685
45686 2008-11-08  Bruno Haible  <bruno@clisp.org>
45687
45688         * tests/test-select-fd.c: New file.
45689         * tests/test-select-in.sh: New file.
45690         * tests/test-select-out.sh: New file.
45691         * tests/test-select-stdin.c: New file.
45692         * modules/select-tests (Files): Add the new files.
45693         (Depends-on): Add gettimeofday.
45694         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45695         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45696         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45697
45698 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45699             Bruno Haible  <bruno@clisp.org>
45700
45701         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45702
45703 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45704
45705         * build-aux/pmccabe2html: Added support for C++ source files.
45706
45707 2008-11-05  Ben Pfaff  <blp@gnu.org>
45708
45709         Fix lib/close.c build on Windows.
45710         * modules/close (Files): Add lib/w32sock.h.
45711
45712 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45713
45714         Accept Bison's NEWS format.
45715         * build-aux/announce-gen (print_news_deltas): Tweak
45716         $re_prefix.
45717
45718 2008-11-04  Bruno Haible  <bruno@clisp.org>
45719
45720         * modules/random_r (Maintainer): Add glibc.
45721
45722 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45723
45724         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45725         by karl@freefriends.org (Karl Berry).
45726         * doc/alloca.texi: Likewise.
45727         * doc/c-ctype.texi: Likewise.
45728         * doc/c-strcase.texi: Likewise.
45729         * doc/c-strcaseeq.texi: Likewise.
45730         * doc/c-strcasestr.texi: Likewise.
45731         * doc/c-strstr.texi: Likewise.
45732         * doc/c-strtod.texi: Likewise.
45733         * doc/c-strtold.texi: Likewise.
45734         * doc/ctime.texi: Likewise.
45735         * doc/error.texi: Likewise.
45736         * doc/fdl.texi: Likewise.
45737         * doc/gcd.texi: Likewise.
45738         * doc/getdate.texi: Likewise.
45739         * doc/gnulib-intro.texi: Likewise.
45740         * doc/gnulib-tool.texi: Likewise.
45741         * doc/gnulib.texi: Likewise.
45742         * doc/inet_ntoa.texi: Likewise.
45743         * doc/maintain.texi: Likewise.
45744         * doc/make-stds.texi: Likewise.
45745         * doc/quote.texi: Likewise.
45746         * doc/regexprops-generic.texi: Likewise.
45747         * doc/standards.texi: Likewise.
45748         * doc/verify.texi: Likewise.
45749         * doc/visibility.texi: Likewise.
45750         * doc/gnulib.texi (GNU Free Documentation License): Include
45751         fdl-1.3.texi instead of fdl.texi.
45752
45753 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45754
45755         * doc/fdl-1.3.texi: New file, from
45756         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45757         * modules/fdl-1.3: Add.
45758         * MODULES.html.sh: Add fdl-1.3.
45759
45760 2008-11-03  Bruno Haible  <bruno@clisp.org>
45761
45762         Make determination of absolute name of header file work with AIX xlc.
45763         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45764         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45765         preprocessing.
45766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45767         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45768
45769 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45770
45771         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45772         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45773         <ludo@gnu.org>.
45774
45775 2008-11-02  Bruno Haible  <bruno@clisp.org>
45776
45777         Mark 'strpbrk' obsolete.
45778         * modules/strpbrk (Status, Notice): New sections.
45779         * modules/strtok_r (Depends-on): Add strpbrk.
45780
45781 2008-11-02  Bruno Haible  <bruno@clisp.org>
45782
45783         Mark 'strdup' obsolete.
45784         * modules/strdup (Status, Notice): New sections.
45785         * modules/findprog (Depends-on): Add strdup.
45786         * modules/getaddrinfo (Depends-on): Likewise.
45787         * modules/localename (Depends-on): Likewise.
45788         * modules/relocatable-lib (Depends-on): Likewise.
45789         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45790         * modules/relocatable-prog (Depends-on): Likewise.
45791         * modules/trim (Depends-on): Likewise.
45792         * modules/unictype/gen-ctype (Depends-on): Likewise.
45793         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45794
45795 2008-11-02  Bruno Haible  <bruno@clisp.org>
45796
45797         Mark 'strcspn' obsolete.
45798         * modules/strcspn (Status, Notice): New sections.
45799
45800 2008-11-02  Bruno Haible  <bruno@clisp.org>
45801
45802         Mark 'rmdir' obsolete.
45803         * modules/rmdir (Status, Notice): New sections.
45804         * modules/clean-temp (Depends-on): Add rmdir.
45805         * modules/openat (Depends-on): Likewise.
45806
45807 2008-11-02  Bruno Haible  <bruno@clisp.org>
45808
45809         Mark 'raise' obsolete.
45810         * modules/raise (Status, Notice): New sections.
45811         (Include): Specify <signal.h>.
45812         * modules/stdio (Depends-on): Add raise.
45813         * modules/write (Depends-on): Likewise.
45814
45815 2008-11-02  Bruno Haible  <bruno@clisp.org>
45816
45817         Mark 'memset' obsolete.
45818         * modules/memset (Status, Notice): New sections.
45819
45820 2008-11-02  Bruno Haible  <bruno@clisp.org>
45821
45822         Mark 'memmove' obsolete.
45823         * modules/memmove (Status, Notice): New sections.
45824         * modules/argp (Depends-on): Add memmove.
45825         * modules/argz (Depends-on): Likewise.
45826         * modules/canonicalize (Depends-on): Likewise.
45827         * modules/canonicalize-lgpl (Depends-on): Likewise.
45828         * modules/fts (Depends-on): Likewise.
45829         * modules/getcwd (Depends-on): Likewise.
45830         * modules/human (Depends-on): Likewise.
45831         * modules/regex (Depends-on): Likewise.
45832         * modules/striconveh (Depends-on): Likewise.
45833         * modules/trim (Depends-on): Likewise.
45834         * modules/unistr/u8-move (Depends-on): Likewise.
45835         * modules/unistr/u16-move (Depends-on): Likewise.
45836         * modules/unistr/u32-move (Depends-on): Likewise.
45837
45838 2008-11-02  Bruno Haible  <bruno@clisp.org>
45839
45840         Mark 'memcpy' obsolete.
45841         * modules/memcpy (Status, Notice): New sections.
45842
45843 2008-11-02  Bruno Haible  <bruno@clisp.org>
45844
45845         Mark 'memcmp' obsolete.
45846         * modules/memcmp (Status, Notice): New sections.
45847         * modules/argmatch (Depends-on): Add memchr.
45848         * modules/backupfile (Depends-on): Likewise.
45849         * modules/c-strcasestr (Depends-on): Likewise.
45850         * modules/crypto/des (Depends-on): Likewise.
45851         * modules/csharpcomp (Depends-on): Likewise.
45852         * modules/fnmatch (Depends-on): Likewise.
45853         * modules/git-merge-changelog (Depends-on): Likewise.
45854         * modules/isnand (Depends-on): Likewise.
45855         * modules/isnand-nolibm (Depends-on): Likewise.
45856         * modules/isnanf (Depends-on): Likewise.
45857         * modules/isnanf-nolibm (Depends-on): Likewise.
45858         * modules/isnanl (Depends-on): Likewise.
45859         * modules/isnanl-nolibm (Depends-on): Likewise.
45860         * modules/mbchar (Depends-on): Likewise.
45861         * modules/memcoll (Depends-on): Likewise.
45862         * modules/quotearg (Depends-on): Likewise.
45863         * modules/regex (Depends-on): Likewise.
45864         * modules/relocatable-prog (Depends-on): Likewise.
45865         * modules/same (Depends-on): Likewise.
45866         * modules/signbit (Depends-on): Likewise.
45867         * modules/strcasestr-simple (Depends-on): Likewise.
45868         * modules/unictype/gen-ctype (Depends-on): Likewise.
45869         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45870         * modules/uniname/uniname (Depends-on): Likewise.
45871         * modules/unistr/u8-cmp (Depends-on): Likewise.
45872
45873 2008-11-02  Bruno Haible  <bruno@clisp.org>
45874
45875         Mark 'memchr' obsolete.
45876         * modules/memchr (Status, Notice): New sections.
45877         * modules/argp (Depends-on): Add memchr.
45878         * modules/base64 (Depends-on): Likewise.
45879         * modules/c-strcasestr (Depends-on): Likewise.
45880         * modules/chdir-long (Depends-on): Likewise.
45881         * modules/fnmatch (Depends-on): Likewise.
45882         * modules/getsubopt (Depends-on): Likewise.
45883         * modules/git-merge-changelog (Depends-on): Likewise.
45884         * modules/glob (Depends-on): Likewise.
45885         * modules/strcasestr-simple (Depends-on): Likewise.
45886         * modules/strnlen (Depends-on): Likewise.
45887
45888 2008-11-02  Bruno Haible  <bruno@clisp.org>
45889
45890         Mark 'atexit' obsolete.
45891         * modules/atexit (Status, Notice): New sections.
45892         * modules/chdir-long (Depends-on): Add atexit.
45893         * modules/wait-process (Depends-on): Likewise.
45894
45895 2008-11-02  Bruno Haible  <bruno@clisp.org>
45896
45897         * gnulib-tool: New option --with-obsolete.
45898         (func_usage): Document it.
45899         (func_modules_transitive_closure): Drop obsolete dependencies if
45900         incobsolete is not true.
45901         (func_import): Read and save the incobsolete variable to the cache.
45902
45903 2008-11-02  Bruno Haible  <bruno@clisp.org>
45904
45905         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45906         * gnulib-tool: New option --extract-status.
45907         (func_usage): Document it.
45908         (sed_extract_prog): Recognize it.
45909         (func_get_status): New function.
45910
45911 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45912
45913         * modules/sockets (License): Change from LGPL to LGPLv2+.
45914
45915 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45916
45917         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45918
45919 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45920
45921         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45922         Mention times and sys_times.
45923         * modules/sys_times, modules/sys_times-tests: New modules.
45924         * modules/times, modules/times-tests: Likewise
45925         * m4/sys_times_h.m4: New file.
45926         * lib/sys_times.in.h: Likewise
45927         * lib/times.c: Likewise.
45928         * tests/test-sys_times.c: Likewise.
45929         * tests/test-times.c: Likewise.
45930         * doc/posix-headers/sys_times.texi: Update.
45931         * doc/posix-functions/times.texi: Update.
45932
45933 2008-10-28  Jim Meyering  <meyering@redhat.com>
45934
45935         * modules/tempname (Depends-on): Add lstat.
45936
45937         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45938
45939 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45940
45941         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45942         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45943         using idiom used elsewhere in gnulib.
45944
45945 2008-10-27  Jim Meyering  <meyering@redhat.com>
45946
45947         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45948
45949 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45950
45951         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45952         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45953         programs.
45954         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45955
45956 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45957
45958         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45959
45960 2008-10-27  Bruno Haible  <bruno@clisp.org>
45961
45962         * tests/test-lstat.c: Include <stdio.h>.
45963
45964 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45965
45966         * modules/lstat-tests: New module.
45967         * tests/test-lstat.c: New file.
45968
45969 2008-10-26  Jim Meyering  <meyering@redhat.com>
45970
45971         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45972
45973 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45974             Bruno Haible  <bruno@clisp.org>
45975
45976         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45977         * modules/configmake (Include): Add a note that the include must come
45978         after all system headers.
45979         * lib/javaversion.c: Include configmake.h after all other includes.
45980
45981 2008-10-26  Bruno Haible  <bruno@clisp.org>
45982
45983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45984         HAVE_STRUCT_RANDOM_DATA to 1.
45985         (gl_STDLIB_H): Simplify.
45986
45987 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45988
45989         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45990         substitute HAVE_STRUCT_RANDOM_DATA.
45991         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45992         random_data.
45993         * modules/stdlib (Makefile.am): Substitute
45994         HAVE_STRUCT_RANDOM_DATA.
45995
45996 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45997
45998         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45999         * doc/gnulib-intro.texi (Copyright): Likewise.
46000
46001 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46002
46003         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46004         findings.
46005
46006 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46007             Bruno Haible  <bruno@clisp.org>
46008
46009         * lib/unistd.in.h: Include <winsock2.h>.
46010         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46011         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46012         Provide dummy declarations.
46013         (gethostname): Override.
46014         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46015         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46016         gl_PREREQ_SYS_H_WINSOCK2.
46017         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46018         * doc/posix-functions/gethostname.texi: More details.
46019
46020 2008-10-25  Bruno Haible  <bruno@clisp.org>
46021
46022         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46023         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46024         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46025
46026         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46027         here ...
46028         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46029         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46030         gl_UNISTD_H_DEFAULTS.
46031
46032 2008-10-25  Eric Blake  <ebb9@byu.net>
46033
46034         signbit: avoid spurious compiler failure
46035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46036         declarations inside function.
46037
46038 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46039             Bruno Haible  <bruno@clisp.org>
46040
46041         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46042         * modules/random_r (Depends-on): Add stdint.
46043
46044 2008-10-24  Bruno Haible  <bruno@clisp.org>
46045
46046         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46047         Eggert.
46048         * modules/strerror (License): Likewise.
46049
46050 2008-10-24  Jim Meyering  <meyering@redhat.com>
46051
46052         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46053         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46054
46055 2008-10-24  Eric Blake  <ebb9@byu.net>
46056
46057         getgroups: fix compilation when getgroups is available
46058         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46059         but with <config.h> override of getgroups disabled.
46060
46061 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46062
46063         * doc/gnulib.texi (Header files): Add note about C++ problems.
46064         Explained by Bruno Haible <bruno@clisp.org>.
46065
46066 2008-10-23  Bruno Haible  <bruno@clisp.org>
46067
46068         Define a dummy SA_NODEFER macro on Interix.
46069         * lib/signal.in.h (SA_NODEFER): Define fallback.
46070         Reported by Aleksey Cheusov <cheusov@tut.by> via
46071         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46072
46073 2008-10-23  Bruno Haible  <bruno@clisp.org>
46074
46075         * modules/freadahead (License): Change to LGPLv2+.
46076         Suggested by Simon Josefsson.
46077
46078 2008-10-23  Jim Meyering  <meyering@redhat.com>
46079
46080         random_r: new module
46081         * modules/random_r: New file.
46082         * m4/random_r.m4: New file.
46083         * lib/random_r.c: New file, from glibc.
46084         * modules/random_r-tests: New file.
46085         * tests/test-random_r.c: New file.
46086         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46087          Declare.
46088         (RAND_MAX): Define.
46089         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46090         * modules/stdlib: Substitute them, too.
46091         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46092         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46093         * doc/glibc-functions/random_r.texi: Likewise.
46094         * doc/glibc-functions/setstate_r.texi: Likewise.
46095         * doc/glibc-functions/srandom_r.texi: Likewise.
46096         * config/srclist.txt: Mention it.
46097
46098 2008-10-23  David Lutterkort  <lutter@redhat.com>
46099
46100         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46101         link requirement
46102
46103 2008-10-23  Jim Meyering  <meyering@redhat.com>
46104
46105         selinux-h: mark parameters of stub functions as intentionally unused
46106         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46107         * lib/se-context.in.h: Likewise.
46108
46109 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46110
46111         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46112
46113 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46114
46115         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46116
46117 2008-10-22  Eric Blake  <ebb9@byu.net>
46118
46119         glthread/thread: avoid compiler warning
46120         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46121         Add unreachable abort to silence compiler.
46122
46123 2008-10-22  Eric Blake  <ebb9@byu.net>
46124
46125         netdb: also supply struct addrinfo for cygwin 1.5.x
46126         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46127         older cygwin.
46128         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46129         cygwin.
46130         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46131
46132 2008-10-22  Bruno Haible  <bruno@clisp.org>
46133
46134         * users.txt: Update entry about pspp.
46135
46136 2008-10-21  Bruno Haible  <bruno@clisp.org>
46137
46138         Simplification.
46139         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46140         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46141
46142         Simplification.
46143         * lib/ioctl.c (ioctl): Don't undefine.
46144         * lib/socket.c (socket): Don't undefine.
46145
46146         Remove unused module indicator macros.
46147         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46148         GNULIB_$1 as a C macro.
46149
46150         * doc/posix-functions/close.texi: Undo last change.
46151         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46152         Windows platforms.
46153
46154 2008-10-21  Bruno Haible  <bruno@clisp.org>
46155
46156         Add gethostname() declaration to <unistd.h>.
46157         * lib/unistd.in.h (gethostname): New declaration.
46158         * lib/gethostname.c: Include <unistd.h>.
46159         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46160         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46162         and HAVE_GETHOSTNAME.
46163         * modules/gethostname (Depends-on): Add unistd.
46164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46165         (Include): Specify <unistd.h>.
46166         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46167         HAVE_GETHOSTNAME.
46168         * tests/test-gethostname.c: Include <unistd.h> first.
46169
46170 2008-10-21  Bruno Haible  <bruno@clisp.org>
46171
46172         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46173         * modules/select-tests (Depends-on): Likewise.
46174         Reported by Simon Josefsson.
46175
46176 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46177
46178         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46179         * lib/accept.c: New file, based on winsock.c.
46180         * lib/bind.c: New file, based on winsock.c.
46181         * lib/connect.c: New file, based on winsock.c.
46182         * lib/getpeername.c: New file, based on winsock.c.
46183         * lib/getsockname.c: New file, based on winsock.c.
46184         * lib/getsockopt.c: New file, based on winsock.c.
46185         * lib/ioctl.c: New file, based on winsock.c.
46186         * lib/listen.c: New file, based on winsock.c.
46187         * lib/recv.c: New file, based on winsock.c.
46188         * lib/recvfrom.c: New file, based on winsock.c.
46189         * lib/send.c: New file, based on winsock.c.
46190         * lib/sendto.c: New file, based on winsock.c.
46191         * lib/setsockopt.c: New file, based on winsock.c.
46192         * lib/shutdown.c: New file, based on winsock.c.
46193         * lib/socket.c: New file, based on winsock.c.
46194         * lib/w32sock.h: New file, based on winsock.c.
46195         * lib/winsock.c: Remove file.
46196         * modules/accept: Likewise.
46197         * modules/bind: Likewise.
46198         * modules/connect: Likewise.
46199         * modules/getpeername: Likewise.
46200         * modules/getsockname: Likewise.
46201         * modules/getsockopt: Likewise.
46202         * modules/ioctl: Likewise.
46203         * modules/listen: Likewise.
46204         * modules/recv: Likewise.
46205         * modules/recvfrom: Likewise.
46206         * modules/send: Likewise.
46207         * modules/sendto: Likewise.
46208         * modules/setsockopt: Likewise.
46209         * modules/shutdown: Likewise.
46210         * modules/socket: Use socket.c instead of winsock.c.
46211         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46212         * doc/posix-functions/accept.texi: Doc fix.
46213         * doc/posix-functions/bind.texi: Doc fix.
46214         * doc/posix-functions/close.texi: Doc fix.
46215         * doc/posix-functions/connect.texi: Doc fix.
46216         * doc/posix-functions/getpeername.texi: Doc fix.
46217         * doc/posix-functions/getsockname.texi: Doc fix.
46218         * doc/posix-functions/getsockopt.texi: Doc fix.
46219         * doc/posix-functions/ioctl.texi: Doc fix.
46220         * doc/posix-functions/listen.texi: Doc fix.
46221         * doc/posix-functions/recv.texi: Doc fix.
46222         * doc/posix-functions/recvfrom.texi: Doc fix.
46223         * doc/posix-functions/send.texi: Doc fix.
46224         * doc/posix-functions/sendto.texi: Doc fix.
46225         * doc/posix-functions/setsockopt.texi: Doc fix.
46226         * doc/posix-functions/shutdown.texi: Doc fix.
46227         * doc/posix-functions/socket.texi: Doc fix.
46228
46229 2008-10-20  Bruno Haible  <bruno@clisp.org>
46230
46231         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46232         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46233         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46234         as an alias for SIGABRT.
46235         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46236         (sigaction): Map it to SIGABRT.
46237         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46238
46239 2008-10-20  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/fts.c: Don't include lstat.h.
46242         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46243
46244         Move the lstat() declaration to <sys/stat.h>.
46245         * lib/lstat.h: Remove file.
46246         * lib/sys_stat.in.h: Add special invocation convention.
46247         (lstat): New declaration.
46248         * lib/lstat.c (orig_lstat): New function.
46249         (rpl_lstat): Use orig_lstat instead of lstat.
46250         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46251         AC_C_INLINE. Set REPLACE_LSTAT.
46252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46253         and REPLACE_LSTAT.
46254         * modules/lstat (Files): Remove lib/lstat.h.
46255         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46256         (Include): Specify <sys/stat.h> instead of lstat.h.
46257         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46258         REPLACE_LSTAT.
46259         * NEWS: Mention the change.
46260
46261 2008-10-20  Bruno Haible  <bruno@clisp.org>
46262
46263         * modules/posix_spawn-tests: New file.
46264         * tests/test-posix_spawn3.c: New file.
46265
46266 2008-10-20  Bruno Haible  <bruno@clisp.org>
46267
46268         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46269         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46270         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46271         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46272         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46273
46274 2008-10-20  Bruno Haible  <bruno@clisp.org>
46275
46276         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46277         of posix_spawn on AIX 5.3.
46278
46279 2008-10-20  Bruno Haible  <bruno@clisp.org>
46280
46281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46282
46283 2008-10-20  Bruno Haible  <bruno@clisp.org>
46284
46285         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46286         of AC_LANG_PROGRAM.
46287
46288 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46289
46290         * lib/netdb.in.h: Don't define GNU specific constants until they
46291         are supported or needed.  Reported by Bruno Haible
46292         <bruno@clisp.org>.
46293
46294 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46295
46296         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46297
46298 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46299
46300         * lib/getaddrinfo.h: Remove file.
46301         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46302         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46303         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46304         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46305         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46306         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46307         * tests/test-getaddrinfo.c: Likewise.
46308         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46309         * NEWS: Mention change.
46310
46311 2008-10-19  Bruno Haible  <bruno@clisp.org>
46312
46313         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46314
46315 2008-10-19  Bruno Haible  <bruno@clisp.org>
46316
46317         * lib/wait-process.c: Include simply <sys/wait.h>.
46318         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46319         WIFSTOPPED): Remove fallback definitions.
46320         * modules/wait-process (Depends-on): Add sys_wait.
46321
46322         New module 'sys_wait'.
46323         * modules/sys_wait: New file.
46324         * lib/sys_wait.in.h: New file, partially copied from
46325         lib/wait-process.c.
46326         * m4/sys_wait_h.m4: New file.
46327         * doc/posix-headers/sys_wait.texi: Mention the new module.
46328
46329 2008-10-19  Bruno Haible  <bruno@clisp.org>
46330
46331         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46332
46333 2008-10-19  Bruno Haible  <bruno@clisp.org>
46334
46335         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46336         * lib/wait-process.c (WAIT_T): Remove type.
46337         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46338         (wait_subprocess): Update.
46339
46340 2008-10-19  Bruno Haible  <bruno@clisp.org>
46341
46342         New module 'atoll'.
46343         * modules/atoll: New file.
46344         * lib/stdlib.in.h (atoll): New declaration.
46345         * lib/atoll.c: New file, from glibc with modifications.
46346         * m4/atoll.m4: New file.
46347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46348         HAVE_ATOLL.
46349         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46350         * doc/posix-functions/atoll.texi: Mention the new module.
46351
46352 2008-10-19  Bruno Haible  <bruno@clisp.org>
46353
46354         Add strtoull() declaration to <stdlib.h>.
46355         * lib/stdlib.in.h (strtoull): New declaration.
46356         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46357         Set HAVE_STRTOULL.
46358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46359         HAVE_STRTOULL.
46360         * modules/strtoull (Depends-on): Add stdlib.
46361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46362         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46363         HAVE_STRTOULL.
46364
46365 2008-10-19  Bruno Haible  <bruno@clisp.org>
46366
46367         Add strtoll() declaration to <stdlib.h>.
46368         * lib/stdlib.in.h (strtoll): New declaration.
46369         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46370         Set HAVE_STRTOLL.
46371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46372         HAVE_STRTOLL.
46373         * modules/strtoll (Depends-on): Add stdlib.
46374         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46375         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46376
46377 2008-10-19  Bruno Haible  <bruno@clisp.org>
46378
46379         * modules/bcopy (Depends-on): Add strings.
46380         (Include): Specify <strings.h>.
46381
46382 2008-10-19  Bruno Haible  <bruno@clisp.org>
46383
46384         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46385
46386 2008-10-19  Bruno Haible  <bruno@clisp.org>
46387
46388         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46389         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46390         mingw.
46391
46392 2008-10-19  Bruno Haible  <bruno@clisp.org>
46393
46394         * lib/atanl.c: Don't include isnanl.h.
46395         * lib/cosl.c: Likewise.
46396         * lib/ldexpl.c: Likewise.
46397         * lib/logl.c: Likewise.
46398         * lib/sinl.c: Likewise.
46399         * lib/sqrtl.c: Likewise.
46400         * lib/tanl.c: Likewise.
46401
46402         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46403         * lib/isnanf.h: Remove file.
46404         * lib/isnand.h: Remove file.
46405         * lib/isnanl.h: Remove file.
46406         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46407         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46408         macros.
46409         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46410         HAVE_ISNANF, don't define it as a C macro.
46411         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46412         HAVE_ISNAND, don't define it as a C macro.
46413         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46414         HAVE_ISNANL, don't define it as a C macro.
46415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46416         HAVE_ISNAN[FDL].
46417         * modules/isnanf (Files): Remove lib/isnanf.h.
46418         (Depends-on): Add math.
46419         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46420         (Include): Specify <math.h> instead of isnanf.h.
46421         * modules/isnand (Files): Remove lib/isnand.h.
46422         (Depends-on): Add math.
46423         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46424         (Include): Specify <math.h> instead of isnand.h.
46425         * modules/isnanl (Files): Remove lib/isnanl.h.
46426         (Depends-on): Add math.
46427         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46428         (Include): Specify <math.h> instead of isnanl.h.
46429         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46430         HAVE_ISNAN[FDL].
46431         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46432         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46433         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46434         * NEWS: Mention the change.
46435
46436 2008-10-18  Bruno Haible  <bruno@clisp.org>
46437
46438         Add getusershell(), setusershell(), endusershell() declarations to
46439         <unistd.h>.
46440         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46441         declarations.
46442         * lib/getusershell.c: Include unistd.h.
46443         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46444         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46445         HAVE_GETUSERSHELL.
46446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46447         and HAVE_GETUSERSHELL.
46448         * modules/getusershell (Depends-on): Add unistd, extensions.
46449         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46450         (Include): Specify <unistd.h>.
46451         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46452         HAVE_GETUSERSHELL.
46453
46454 2008-10-18  Bruno Haible  <bruno@clisp.org>
46455
46456         Add a getloadavg() declaration to <stdlib.h>.
46457         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46458         getloadavg declaration.
46459         (getloadavg): New declaration.
46460         * lib/getloadavg.c: Include <stdlib.h> first.
46461         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46462         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46463         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46465         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46466         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46467         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46468         (Include): Specify <stdlib.h>.
46469         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46470         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46471
46472 2008-10-18  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/dirchownmod.c: Don't include lchmod.h.
46475
46476         Move the lchmod() declaration to <sys/stat.h>.
46477         * lib/lchmod.h: Remove file.
46478         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46479         (lchmod): New declaration, moved here from lib/lchown.h.
46480         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46481         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46482         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46483         and HAVE_LCHMOD.
46484         * modules/lchmod (Files): Remove lib/lchmod.h.
46485         (Depends-on): Add sys_stat, extensions.
46486         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46487         (Include): Specify <sys/stat.h> instead of lchmod.h.
46488         * modules/sys_stat (Depends-on): Add link-warning.
46489         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46490         definition of GL_LINK_WARNING.
46491         * NEWS: Mention the change.
46492
46493 2008-10-18  Bruno Haible  <bruno@clisp.org>
46494
46495         * lib/fchdir.c: Don't include dirfd.h.
46496         * lib/fts.c: Likewise.
46497         * lib/getcwd.c: Likewise.
46498         * lib/glob.c: Likewise.
46499
46500         Move the dirfd() declaration to <dirent.h>.
46501         * lib/dirfd.h: Remove file.
46502         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46503         (dirfd): New declaration.
46504         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46505         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46506         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46507         HAVE_DECL_DIRFD.
46508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46509         HAVE_DECL_DIRFD.
46510         * modules/dirfd (Files): Remove lib/dirfd.h.
46511         (Depends-on): Add dirent, extensions.
46512         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46513         (Include): Specify <dirent.h> instead of dirfd.h.
46514         * modules/dirent (Depends-on): Add link-warning.
46515         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46516         definition of GL_LINK_WARNING.
46517         * NEWS: Mention the change.
46518
46519 2008-10-18  Bruno Haible  <bruno@clisp.org>
46520
46521         Move the euidaccess() declaration to <unistd.h>.
46522         * lib/euidaccess.h: Remove file.
46523         * lib/unistd.in.h (euidaccess): New declaration.
46524         * lib/euidaccess.c: Don't include euidaccess.h.
46525         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46526         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46528         and HAVE_EUIDACCESS.
46529         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46530         (Depends-on): Add unistd.
46531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46532         (Include): Specify <unistd.h> instead of euidaccess.h.
46533         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46534         HAVE_EUIDACCESS.
46535         * NEWS: Mention the change.
46536
46537 2008-10-18  Bruno Haible  <bruno@clisp.org>
46538
46539         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46540
46541         Move the getdomainname() declaration to <unistd.h>.
46542         * lib/getdomainname.h: Remove file.
46543         * lib/unistd.in.h (getdomainname): New declaration.
46544         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46545         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46546         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46547         HAVE_GETDOMAINNAME.
46548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46549         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46550         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46551         (Depends-on): Add unistd, extensions.
46552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46553         (Includes): Specify <unistd.h> instead of getdomainname.h.
46554         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46555         HAVE_GETDOMAINNAME.
46556         * NEWS: Mention the change.
46557
46558 2008-10-18  Bruno Haible  <bruno@clisp.org>
46559
46560         * modules/dirent: New file.
46561         * m4/dirent_h.m4: New file.
46562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46563         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46564         * modules/fchdir (Files): Remove lib/dirent.in.h.
46565         (Depends-on): Add dirent.
46566         (Makefile.am): Move rules to modules/dirent.
46567         * doc/posix-headers/dirent.texi: Mention the new module.
46568
46569 2008-10-18  Bruno Haible  <bruno@clisp.org>
46570
46571         Avoid -Wunused-parameter warnings in public gnulib header files.
46572         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46573         macro.
46574         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46575
46576 2008-10-18  Bruno Haible  <bruno@clisp.org>
46577
46578         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46579         * doc/glibc-functions/error.texi: Mention the module 'error'.
46580         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46581         * doc/glibc-functions/getdomainname.texi: Mention the module
46582         'getdomainname'.
46583         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46584         * doc/glibc-functions/getpagesize.texi: Mention the module
46585         'getpagesize'.
46586         * doc/glibc-functions/getusershell.texi: Mention the module
46587         'getusershell'.
46588         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46589         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46590         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46591         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46592         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46593         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46594         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46595         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46596         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46597         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46598         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46599         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46600         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46601         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46602
46603 2008-10-17  Bruno Haible  <bruno@clisp.org>
46604
46605         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46606         HP-UX and IRIX, use -0.0L.
46607         * tests/test-ceill.c (minus_zero): Likewise.
46608         * tests/test-floorl.c (minus_zero): Likewise.
46609         * tests/test-frexpl.c (minus_zero): Likewise.
46610         * tests/test-isnan.c (minus_zerol): Likewise.
46611         * tests/test-isnanl.h (minus_zero): Likewise.
46612         * tests/test-ldexpl.c (minus_zero): Likewise.
46613         * tests/test-roundl.c (minus_zero): Likewise.
46614         * tests/test-signbit.c (minus_zerol): Likewise.
46615         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46616         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46617         * tests/test-truncl.c (minus_zero): Likewise.
46618         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46619         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46620         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46621         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46622
46623 2008-10-17  Bruno Haible  <bruno@clisp.org>
46624
46625         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46626         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46627         that it gets activated only for gcc >= 3.0.
46628         * lib/dirent.in.h: Likewise.
46629         * lib/errno.in.h: Likewise.
46630         * lib/fcntl.in.h: Likewise.
46631         * lib/float.in.h: Likewise.
46632         * lib/iconv.in.h: Likewise.
46633         * lib/inttypes.in.h: Likewise.
46634         * lib/locale.in.h: Likewise.
46635         * lib/math.in.h: Likewise.
46636         * lib/netdb.in.h: Likewise.
46637         * lib/netinet_in.in.h: Likewise.
46638         * lib/search.in.h: Likewise.
46639         * lib/signal.in.h: Likewise.
46640         * lib/spawn.in.h: Likewise.
46641         * lib/stdarg.in.h: Likewise.
46642         * lib/stdint.in.h: Likewise.
46643         * lib/stdio.in.h: Likewise.
46644         * lib/stdlib.in.h: Likewise.
46645         * lib/string.in.h: Likewise.
46646         * lib/strings.in.h: Likewise.
46647         * lib/sys_file.in.h: Likewise.
46648         * lib/sys_ioctl.in.h: Likewise.
46649         * lib/sys_select.in.h: Likewise.
46650         * lib/sys_socket.in.h: Likewise.
46651         * lib/sys_stat.in.h: Likewise.
46652         * lib/sys_time.in.h: Likewise.
46653         * lib/sysexits.in.h: Likewise.
46654         * lib/time.in.h: Likewise.
46655         * lib/unistd.in.h: Likewise.
46656         * lib/wchar.in.h: Likewise.
46657         * lib/wctype.in.h: Likewise.
46658         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46659
46660 2008-10-17  Jim Meyering  <meyering@redhat.com>
46661
46662         ignore-value: don't depend on inline module
46663         * modules/ignore-value (Depends-on): Remove 'inline'.
46664         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46665         Suggestion from Bruno Haible.
46666
46667 2008-10-17  Bruno Haible  <bruno@clisp.org>
46668
46669         New implementation of condition variables for Win32.
46670         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46671         (gl_linked_waitqueue_t): New type.
46672         (gl_cond_t): Use it.
46673         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46674         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46675         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46676         (glthread_cond_init_func, glthread_cond_wait_func,
46677         glthread_cond_timedwait_func, glthread_cond_signal_func,
46678         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46679         Reimplemented on the basis of gl_linked_waitqueue_t.
46680         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46681         gl_waitqueue_t.
46682         (gl_rwlock_t): Update.
46683         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46684
46685 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46686
46687         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46688         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46689
46690 2008-10-17  Jim Meyering  <meyering@redhat.com>
46691
46692         ignore-value: new module
46693         * modules/ignore-value: New file.
46694         * lib/ignore-value.h: New file.
46695         * MODULES.html.sh (Compiler warning management): New section,
46696         just for this module.  More to come.
46697
46698 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46699
46700         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46701         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46702         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46703
46704 2008-10-16  Jim Meyering  <meyering@redhat.com>
46705
46706         openat-die.c: avoid 'no previous prototype' warning
46707         * lib/openat-die.c: Include "openat.h".
46708         Reported by Reuben Thomas <rrt@sc3d.org>.
46709
46710 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46711
46712         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46713         * lib/netdb.in.h: Fix typo.
46714         Reported by Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/netdb.in.h: Include sys/socket.h for platforms without
46717         netdb.h, to get structures like hostent on MinGW.
46718         * modules/netdb (Depends-on): Add sys_socket.
46719
46720 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46721
46722         * modules/netdb, modules/netdb-tests: New file.
46723         * m4/netdb_h.m4: New file.
46724         * lib/netdb.in.h: Add, currently just an empty file pending
46725         definitions.
46726         * tests/test-netdb.c: New file.
46727         * doc/posix-headers/netdb.texi: Mention that we replace it if
46728         needed.
46729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46730         netdb.
46731
46732 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46733
46734         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46735         with code.
46736
46737 2008-10-13  Bruno Haible  <bruno@clisp.org>
46738
46739         * lib/glthread/cond.c (glthread_cond_wait_func,
46740         glthread_cond_timedwait_func): Add a comment.
46741
46742 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46743
46744         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46745         * tests/test-select.c: Likewise,
46746
46747 2008-10-13  Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/glthread/cond.c (glthread_cond_wait_func,
46750         glthread_cond_timedwait_func): Fix variable name.
46751         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46752
46753 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46754
46755         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46757         struct sockaddr.sa_len.
46758         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46759
46760 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46761
46762         * build-aux/pmccabe2html: Add css and css_url parameters.
46763
46764 2008-10-12  Bruno Haible  <bruno@clisp.org>
46765
46766         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46767         calling aclx_get.
46768         Reported by Rainer Tammer <tammer@tammer.net>.
46769
46770 2008-10-12  Bruno Haible  <bruno@clisp.org>
46771
46772         Use msvcrt aware primitives for creation/termination of Win32 threads.
46773         * lib/glthread/thread.c: Include <process.h>.
46774         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46775         (wrapper_func): Update signature.
46776         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46777
46778 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46779             Bruno Haible  <bruno@clisp.org>
46780
46781         Provide a Win32 implementation of the 'cond' module.
46782         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46783         * lib/glthread/cond.c (glthread_cond_init_func,
46784         glthread_cond_wait_func, glthread_cond_timedwait_func,
46785         glthread_cond_signal_func, glthread_cond_broadcast_func,
46786         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46787         * modules/cond (Dependencies): Add gettimeofday.
46788
46789 2008-10-11  Bruno Haible  <bruno@clisp.org>
46790
46791         Make sleep work on older versions of mingw.
46792         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46793         only whether it exists.
46794         * doc/posix-functions/sleep.texi: Mention the problem with older
46795         versions of mingw.
46796
46797 2008-10-11  Bruno Haible  <bruno@clisp.org>
46798
46799         New module 'shutdown'.
46800         * modules/shutdown: New file.
46801         * lib/sys_socket.in.h (shutdown): New declaration.
46802         * lib/winsock.c (shutdown): New function.
46803         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46804         GNULIB_SHUTDOWN.
46805         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46806         * doc/posix-functions/shutdown.texi: Document the new module.
46807
46808 2008-10-11  Jim Meyering  <meyering@redhat.com>
46809
46810         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46811
46812 2008-10-11  Bruno Haible  <bruno@clisp.org>
46813
46814         New module 'fclose'.
46815         * modules/fclose: New file.
46816         * lib/stdio.in.h (fclose): New declaration.
46817         * lib/fclose.c: New file.
46818         * m4/fclose.m4: New file.
46819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46820         REPLACE_FCLOSE.
46821         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46822         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46823         REPLACE_FCLOSE.
46824         * modules/close (Depends-on): fclose.
46825         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46826
46827 2008-10-11  Bruno Haible  <bruno@clisp.org>
46828
46829         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46830         set errno and don't call _close.
46831
46832 2008-10-10  Bruno Haible  <bruno@clisp.org>
46833
46834         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46835         ACL, not afterwards. Fixes test failure on Cygwin.
46836
46837 2008-10-09  Ben Pfaff  <blp@gnu.org>
46838
46839         * build-aux/announce-gen: Fix gnulib version related part of usage
46840         message.  Die with a useful error message if no tarballs are
46841         found.
46842
46843 2008-10-10  Jim Meyering  <meyering@redhat.com>
46844
46845         bootstrap: use git's --depth=N option only if it's supported
46846         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46847         recognize the --depth option.  Reported by Pádraig Brady.
46848
46849 2008-10-09  Bruno Haible  <bruno@clisp.org>
46850
46851         New module 'ioctl'.
46852         * modules/ioctl: New file.
46853         * lib/sys_socket.in.h (ioctl): Remove declaration.
46854         * lib/winsock.c: Include <sys/ioctl.h>.
46855         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46856         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46857         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46858         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46859         * doc/posix-functions/ioctl.texi: Mention the new module.
46860
46861 2008-10-09  Bruno Haible  <bruno@clisp.org>
46862
46863         New module 'sys_ioctl'.
46864         * lib/sys_ioctl.in.h: New file.
46865         * m4/sys_ioctl_h.m4: New file.
46866         * modules/sys_ioctl: New file.
46867         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46868
46869 2008-10-09  Bruno Haible  <bruno@clisp.org>
46870
46871         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46872         * lib/winsock.c: Include <stdarg.h>.
46873         (rpl_ioctl): Change to second argument 'int' and then varargs.
46874
46875 2008-10-09  Bruno Haible  <bruno@clisp.org>
46876
46877         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46878         when the sys_socket module is present and the system has <winsock2.h>.
46879
46880 2008-10-09  Bruno Haible  <bruno@clisp.org>
46881
46882         * doc/posix-functions/close.texi: Mention module 'close' instead of
46883         module 'sys_socket'.
46884
46885 2008-10-09  Bruno Haible  <bruno@clisp.org>
46886
46887         * doc/glibc-headers/sys_ioctl.texi: New file.
46888         * doc/gnulib.texi: Include it.
46889
46890 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46891             Bruno Haible  <bruno@clisp.org>
46892
46893         Combine the two replacements of 'close'.
46894         * lib/sys_socket.in.h (close): Define to a reminder to include
46895         <unistd.h>.
46896         (_gl_close_fd_maybe_socket): New declaration.
46897         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46898         * lib/winsock.c (close): Remove undefinition.
46899         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46900         needed for the gnulib module 'close'.
46901         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46902         define to an error symbol or to a warning, if suitable.
46903         * lib/close.c: Include <sys/socket.h>.
46904         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46905         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46906         UNISTD_H_HAVE_WINSOCK2_H.
46907         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46909         UNISTD_H_HAVE_WINSOCK2_H.
46910         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46911         (configure.ac): Set a module indicator.
46912         (Makefile.am): Substitute GNULIB_CLOSE.
46913         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46914         * modules/poll-tests (Depends-on): Add close.
46915         * modules/select-tests (Depends-on): Likewise.
46916
46917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46918             Bruno Haible  <bruno@clisp.org>
46919
46920         New module 'close'.
46921         * modules/close: New file.
46922         * lib/unistd.in.h (close): Move declaration out of the
46923         FCHDIR_REPLACEMENT scope.
46924         (_gl_unregister_fd): New declaration.
46925         * lib/close.c: New file.
46926         * lib/fchdir.c (rpl_close): Remove function.
46927         * m4/close.m4: New file.
46928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46929         close.
46930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46931         REPLACE_CLOSE.
46932         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46933         REPLACE_CLOSE.
46934         * modules/fchdir (Depends-on): Add close.
46935
46936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46937             Bruno Haible  <bruno@clisp.org>
46938
46939         * lib/fcntl.in.h (open): Simplify conditionals.
46940         (_gl_register_fd): New declaration.
46941         * lib/fchdir.c (rpl_open): Remove function.
46942         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46943         also.
46944         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46946         open.
46947
46948 2008-10-09  Jim Meyering  <meyering@redhat.com>
46949
46950         GNUmakefile: use the more name-space-friendly "_version"
46951         * top/GNUmakefile (_dummy): Update.
46952         (_version): Rename from "version".
46953
46954 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46955             Bruno Haible  <bruno@clisp.org>
46956
46957         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46958         rpl_close.
46959         (_gl_register_fd): New function, extracted from rpl_open.
46960         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46961         (rpl_open, rpl_opendir): Use _gl_register_fd.
46962
46963 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46964
46965         Fix organization of 'open' replacement.
46966         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46967         (gl_FUNC_OPEN): Use it.
46968         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46969
46970 2008-10-08  Bruno Haible  <bruno@clisp.org>
46971
46972         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46973
46974 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46975
46976         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46977         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46978         listen).
46979
46980 2008-10-08  Eric Blake  <ebb9@byu.net>
46981
46982         GNUmakefile: add 'make version' target
46983         * top/GNUmakefile (_curr-ver): Split version update rules...
46984         (version): ...into a target.
46985
46986 2008-10-07  Bruno Haible  <bruno@clisp.org>
46987
46988         Use a more portable replacement expression for -0.0L.
46989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46990         instead of -0.0L. Fix m4 quotation.
46991
46992         * tests/test-signbit.c: Include <float.h>.
46993         (minus_zero): New variable.
46994         (test_signbitl): Use minus_zero instead of -zero.
46995         * modules/signbit-tests (Depends-on): Add float.
46996
46997         * tests/test-ceill.c: Include <float.h>.
46998         (zero): Remove variable.
46999         (minus_zero): New variable.
47000         (main): Use minus_zero instead of -zero.
47001         * modules/ceill-tests (Depends-on): Add float.
47002
47003         * tests/test-floorl.c: Include <float.h>.
47004         (zero): Remove variable.
47005         (minus_zero): New variable.
47006         (main): Use minus_zero instead of -zero.
47007         * modules/floorl-tests (Depends-on): Add float.
47008
47009         * tests/test-roundl.c: Include <float.h>.
47010         (zero): Remove variable.
47011         (minus_zero): New variable.
47012         (main): Use minus_zero instead of -zero.
47013         * modules/roundl-tests (Depends-on): Add float.
47014
47015         * tests/test-truncl.c: Include <float.h>.
47016         (zero): Remove variable.
47017         (minus_zero): New variable.
47018         (main): Use minus_zero instead of -zero.
47019         * modules/truncl-tests (Depends-on): Add float.
47020
47021         * tests/test-frexpl.c (zero): Remove variable.
47022         (minus_zero): New variable.
47023         (main): Use minus_zero instead of -zero.
47024         * modules/frexpl-tests (Depends-on): Add float.
47025
47026         * tests/test-isnan.c (zerol): Remove variable.
47027         (minus_zerol): New variable.
47028         (test_long_double): Use minus_zerol instead of -zerol.
47029         * modules/isnan-tests (Depends-on): Add float.
47030
47031         * tests/test-isnanl.h (zero): Remove variable.
47032         (minus_zero): New variable.
47033         (main): Use minus_zero instead of -zero.
47034         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47035         * modules/isnanl-tests (Depends-on): Add float.
47036
47037         * tests/test-ldexpl.c (zero): Remove variable.
47038         (minus_zero): New variable.
47039         (main): Use minus_zero instead of -zero.
47040         * modules/ldexpl-tests (Depends-on): Add float.
47041
47042         * tests/test-snprintf-posix.h (zerol): Remove variable.
47043         (minus_zerol): New variable.
47044         (test_function): Use minus_zerol instead of -zerol.
47045         * modules/snprintf-posix-tests (Depends-on): Add float.
47046         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47047
47048         * tests/test-sprintf-posix.h (zerol): Remove variable.
47049         (minus_zerol): New variable.
47050         (test_function): Use minus_zerol instead of -zerol.
47051         * modules/sprintf-posix-tests (Depends-on): Add float.
47052         * modules/vsprintf-posix-tests (Depends-on): Add float.
47053
47054         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47055         (minus_zerol): New variable.
47056         (test_function): Use minus_zerol instead of -zerol.
47057         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47058
47059         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47060         (minus_zerol): New variable.
47061         (test_function): Use minus_zerol instead of -zerol.
47062         * modules/vasprintf-posix-tests (Depends-on): Add float.
47063
47064 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47065
47066         * MODULES.html.sh (Support for building documentation): Mention
47067         pmccabe2html.  Sort entries.
47068
47069         Add pmccabe2html module, from gnupdf.
47070         * build-aux/pmccabe.css: New file.
47071         * build-aux/pmccabe2html: New file.
47072         * m4/pmccabe2html.m4: New file.
47073         * modules/pmccabe2html: New file.
47074
47075 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47076
47077         flock: new module
47078         * MODULES.html.sh: Add to list of modules.
47079         * lib/flock.c: flock implementation for Windows and Unix systems
47080         which have fcntl.
47081         * doc/glibc-functions/flock.texi: Update documentation.
47082         * lib/sys_file.in.h: <sys/file.h> header file.
47083         * m4/flock.m4: M4 macros.
47084         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47085         * modules/flock: flock module.
47086         * modules/flock-tests: flock tests module.
47087         * modules/sys_file: sys/file.h module.
47088         * tests/test-flock.c: test suite for flock.
47089
47090 2008-10-06  Jim Meyering  <meyering@redhat.com>
47091
47092         bootstrap: check for LT_INIT more portably still ;-)
47093         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47094         Spotted by Bruno Haible.
47095
47096 2008-10-06  Eric Blake  <ebb9@byu.net>
47097
47098         test-signbit: avoid tripping Irix cc bug on -0.0L
47099         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47100         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47101         entire testsuite consistent and avoids an Irix 6.2 bug.
47102
47103 2008-10-05  Bruno Haible  <bruno@clisp.org>
47104             Jim Meyering  <jim@meyering.net>
47105
47106         Add an option for ignoring EPIPE during close_stdout.
47107         * lib/closeout.h: Include <stdbool.h>.
47108         (close_stdout_set_ignore_EPIPE): New declaration.
47109         * lib/closeout.c: Include <stdbool.h>.
47110         (ignore_EPIPE): New variable.
47111         (close_stdout_set_ignore_EPIPE): New function.
47112         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47113         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47114         failure.
47115         * modules/closeout (Depends-on): Add stdbool.
47116
47117 2008-10-05  Bruno Haible  <bruno@clisp.org>
47118
47119         * modules/accept: New file.
47120         * modules/bind: New file.
47121         * modules/connect: New file.
47122         * modules/getpeername: New file.
47123         * modules/getsockname: New file.
47124         * modules/getsockopt: New file.
47125         * modules/listen: New file.
47126         * modules/recv: New file.
47127         * modules/recvfrom: New file.
47128         * modules/send: New file.
47129         * modules/sendto: New file.
47130         * modules/setsockopt: New file.
47131         * modules/socket: New file.
47132         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47133         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47134         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47135         the particular module is requested. Add a link warning when the
47136         particular module is not requested.
47137         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47138         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47139         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47140         the particular module is requested.
47141         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47142         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47143         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47144         * modules/sys_socket (Depends-on): Add link-warning.
47145         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47146         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47147         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47148         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47149         GL_LINK_WARNING.
47150         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47151         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47152         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47153         * doc/posix-functions/getpeername.texi: Mention the new module
47154         'getpeername'.
47155         * doc/posix-functions/getsockname.texi: Mention the new module
47156         'getsockname'.
47157         * doc/posix-functions/getsockopt.texi: Mention the new module
47158         'getsockopt'.
47159         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47160         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47161         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47162         * doc/posix-functions/send.texi: Mention the new module 'send'.
47163         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47164         * doc/posix-functions/setsockopt.texi: Mention the new module
47165         'setsockopt'.
47166         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47167         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47168         listen, connect, accept.
47169         * modules/select-tests (Depends-on): Likewise.
47170
47171 2008-10-05  Bruno Haible  <bruno@clisp.org>
47172
47173         * lib/winsock.c (strerror): Remove unused #undef.
47174         (rpl_close): Remove unused local variable.
47175
47176         * modules/sys_socket (Depends-on); Add errno.
47177
47178 2008-10-05  Bruno Haible  <bruno@clisp.org>
47179
47180         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47181         (select): Add a link warning when the 'select' module is not used.
47182         * modules/sys_select (Depends-on): Add link-warning.
47183         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47184         Suggested by Paolo Bonzini.
47185
47186 2008-10-05  Jim Meyering  <meyering@redhat.com>
47187
47188         bootstrap: check for LT_INIT more portably
47189         * build-aux/bootstrap: Avoid using grep -E, since it's not
47190         portable enough.  Suggestion from Bruno Haible.
47191
47192 2008-10-05  Bruno Haible  <bruno@clisp.org>
47193
47194         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47195         as being fixed by gnulib.
47196
47197 2008-10-05  Bruno Haible  <bruno@clisp.org>
47198
47199         * modules/select-tests: New file, mostly copied from
47200         modules/sys_select-tests.
47201         * tests/test-select.c: New file, mostly copied from
47202         tests/test-sys_select.c.
47203         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47204         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47205         (Makefile.am): Remove test_sys_select_LDADD.
47206
47207         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47208         to an undefined symbol, for an error message.
47209         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47210         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47211         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47212         winsock-select.c here.
47213         * modules/sys_select (Files): Remove lib/winsock-select.c.
47214         (Depends-on): Remove alloca.
47215         (Makefile.am): Substitute GNULIB_SELECT.
47216         * modules/select: New file.
47217         * doc/posix-functions/select.texi: Update.
47218
47219 2008-10-05  Bruno Haible  <bruno@clisp.org>
47220
47221         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47222         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47223         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47224         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47225         getdtablesize.
47226         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47227         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47228
47229 2008-10-05  Bruno Haible  <bruno@clisp.org>
47230
47231         * modules/getdtablesize-tests: New file.
47232         * tests/test-getdtablesize.c: New file.
47233
47234         New module 'getdtablesize'.
47235         * lib/unistd.in.h (getdtablesize): New declaration.
47236         * lib/getdtablesize.c: New file.
47237         * m4/getdtablesize.m4: New file.
47238         * modules/getdtablesize: New file.
47239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47240         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47241         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47242         HAVE_GETDTABLESIZE.
47243         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47244
47245 2008-10-05  Bruno Haible  <bruno@clisp.org>
47246
47247         * modules/sched (Makefile.am): Fix typo.
47248         Reported by Simon Josefsson.
47249
47250 2008-10-05  Jim Meyering  <meyering@redhat.com>
47251
47252         bootstrap: check for LT_INIT, too
47253         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47254         are deprecated.  Suggestion from Ralf Wildenhues.
47255
47256 2008-10-05  Bruno Haible  <bruno@clisp.org>
47257
47258         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47259         overriding them by ours.
47260         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47261
47262 2008-10-05  Jim Meyering  <meyering@redhat.com>
47263
47264         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47265         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47266         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47267
47268 2008-10-04  Bruno Haible  <bruno@clisp.org>
47269
47270         * modules/dup2 (License): Change to LGPLv2+.
47271         * modules/sleep (License): Likewise.
47272         * modules/perror (License): Likewise.
47273         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47274         Blake.
47275         * modules/signal (License): Likewise.
47276         * modules/sigprocmask (License): Likewise.
47277         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47278         Meyering.
47279
47280 2008-10-04  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47283         Reported by Rainer Tammer <tammer@tammer.net>.
47284
47285 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47286             Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47289         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47290         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47291
47292 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47293
47294         filevercmp: new module
47295         * lib/filevercmp.h: New function filevercmp comparing version strings.
47296         * lib/filevercmp.c: Implementation of filevercmp function.
47297         * modules/filevercmp: Module metadata.
47298         * tests/test-filevercmp.c: Unit test for new module.
47299         * modules/filevercmp-tests: Unit test metadata.
47300         * MODULES.html.sh: Add filevercmp module.
47301
47302 2008-10-03  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/c-ctype.h: Add comment.
47305         Reported by Jim Meyering.
47306
47307 2008-10-02  Bruno Haible  <bruno@clisp.org>
47308
47309         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47310
47311 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47312
47313         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47314         name of bootstrap.conf accordingly.
47315
47316 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47317
47318         * build-aux/bootstrap: Install git-merge-changelog configuration
47319         items into .gitconfig if needed.
47320
47321 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47322
47323         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47324         git repository, and initialize/update it accordingly.
47325
47326 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47327
47328         * modules/fsync-tests: New file.
47329         * tests/test-fsync.c: New file.
47330
47331         New module 'fsync'.
47332         * lib/fsync.c: New file.
47333         * m4/fsync.m4: New file.
47334         * modules/fsync: New file.
47335         * lib/unistd.in.h (fsync): New declaration.
47336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47337         GNULIB_FSYNC and HAVE_FSYNC.
47338         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47339         * MODULES.html.sh (posix_functions): Add fsync.
47340         * doc/posix-functions/fsync.texi: Mention the new module.
47341
47342 2008-10-02  Jim Meyering  <meyering@redhat.com>
47343
47344         fts.c: sync with similar code from coreutils' remove.c
47345         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47346         Guard also with "#if defined __linux__", since for now at least,
47347         this code is Linux-kernel-specific.
47348
47349 2008-10-02  Jim Meyering  <meyering@redhat.com>
47350
47351         fts: bug fixes
47352         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47353         Include <sys/vfs.h>, not <sys/statfs.h>.
47354
47355         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47356         Include <sys/vfs.h>, not <sys/statfs.h>.
47357
47358 2008-10-01  Bruno Haible  <bruno@clisp.org>
47359
47360         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47362         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47363         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47364         * doc/posix-functions/posix_spawnp.texi: Likewise.
47365         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47366         whether posix_spawn actually works.
47367         * m4/pipe.m4 (gl_PIPE): Likewise.
47368         * modules/execute (Files): Add m4/posix_spawn.m4.
47369         * modules/pipe (Files): Add m4/posix_spawn.m4.
47370         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47371
47372 2008-10-01  Jim Meyering  <meyering@redhat.com>
47373
47374         remove trailing spaces
47375         * NEWS: Likewise.
47376         * lib/poll.c (poll): Likewise.
47377         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47378         * lib/winsock.c (rpl_close): Likewise.
47379         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47380         * modules/yield: Likewise.
47381         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47382         * tests/test-sys_select.c (connect_to_socket): Likewise.
47383
47384         fts.c: adjust a new interface to be more generally useful
47385         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47386         (fts_build): Adjust caller.
47387
47388 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47389
47390         * modules/cond-tests: New file.
47391         * tests/test-cond.c: New file.
47392
47393 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47394             Bruno Haible  <bruno@clisp.org>
47395
47396         * modules/cond (Dependencies): Add errno, time.
47397         * lib/glthread/cond.h: Include <time.h>.
47398         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47399         across platforms.
47400
47401 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47402             Bruno Haible  <bruno@clisp.org>
47403
47404         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47405
47406 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47407             Bruno Haible  <bruno@clisp.org>
47408
47409         * modules/tls-tests (Depends-on): Add thread, yield.
47410         (configure.ac): Remove all checks.
47411         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47412         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47413         gl_thread_self): Remove definitions. Include glthread/thread.h and
47414         glthread/yield.h instead.
47415         (test_tls): Pass an additional NULL argument to gl_thread_join.
47416
47417 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47418             Bruno Haible  <bruno@clisp.org>
47419
47420         * modules/lock-tests (Depends-on): Add thread, yield.
47421         (configure.ac): Remove all checks.
47422         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47423         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47424         gl_thread_self): Remove definitions. Include glthread/thread.h and
47425         glthread/yield.h instead.
47426         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47427         additional NULL argument to gl_thread_join.
47428
47429 2008-09-30  Bruno Haible  <bruno@clisp.org>
47430
47431         Fix the Win32 implementation of the 'thread' module.
47432         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47433         pointer type.
47434         (gl_thread_self): Invoke gl_thread_self_func.
47435         (gl_thread_self_func): New declaration.
47436         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47437         (do_init_self_key, init_self_key): New functions.
47438         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47439         Remove some fields.
47440         (running_threads, running_lock): Remove variables.
47441         (get_current_thread_handle): New function.
47442         (gl_thread_self_func, wrapper_func, glthread_create_func,
47443         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47444         simplified.
47445
47446 2008-09-30  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47449         files.
47450
47451 2008-09-30  Jim Meyering  <meyering@redhat.com>
47452
47453         fts.m4: correct the test for statfs.f_type
47454         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47455         when checking for statfs.f_type.
47456
47457 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47458
47459         tests: avoid some compiler warnings
47460         * tests/test-memchr.c (main): Pass NULL indirectly.
47461         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47462
47463 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47464
47465         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47466         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47467         exactly specified dayshifts.
47468         (dayshift): New rule.
47469         (rel): Add dayshift.
47470         (relative_time_table) [tomorrow, yesterday, today, now]:
47471         Use tDAY_SHIFT in place of tDAY_UNIT.
47472         * tests/test-getdate.c: Add tests for now-disallowed countable
47473         dayshifts, e.g., "4 yesterday ago".
47474
47475 2008-09-29  Bruno Haible  <bruno@clisp.org>
47476
47477         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47478         * tests/test-posix_spawn1.in.sh: Renamed from
47479         tests/test-posix_spawn.in.sh.
47480         * tests/test-posix_spawn2.c: New file.
47481         * tests/test-posix_spawn2.in.sh: New file.
47482         * modules/posix_spawnp-tests (Files): Update.
47483         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47484
47485 2008-09-29  Bruno Haible  <bruno@clisp.org>
47486
47487         Propagate effects of putenv/setenv/unsetenv to child processes.
47488         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47489         * lib/pipe.c (create_pipe): Likewise.
47490
47491 2008-09-29  Bruno Haible  <bruno@clisp.org>
47492
47493         Enable use of shell scripts as executables in mingw.
47494         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47495         run the program as a shell script.
47496         * lib/pipe.c (create_pipe): Likewise.
47497         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47498         resulting array.
47499
47500 2008-09-29  Eric Blake  <ebb9@byu.net>
47501
47502         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47503
47504 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47505
47506         * doc/posix-functions/accept.texi: Update mingw problems.
47507         * doc/posix-functions/bind.texi: Update mingw problems.
47508         * doc/posix-functions/close.texi: Update mingw problems.
47509         * doc/posix-functions/connect.texi: Update mingw problems.
47510         * doc/posix-functions/getpeername.texi: Update mingw problems.
47511         * doc/posix-functions/getsockname.texi: Update mingw problems.
47512         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47513         * doc/posix-functions/ioctl.texi: Update mingw problems.
47514         * doc/posix-functions/listen.texi: Update mingw problems.
47515         * doc/posix-functions/recv.texi: Update mingw problems.
47516         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47517         * doc/posix-functions/select.texi: Update mingw problems.
47518         * doc/posix-functions/send.texi: Update mingw problems.
47519         * doc/posix-functions/sendto.texi: Update mingw problems.
47520         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47521         * doc/posix-functions/socket.texi: Update mingw problems.
47522
47523 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47524             Bruno Haible  <bruno@clisp.org>
47525
47526         * lib/sys_select.in.h: Include sys/time.h.
47527         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47528         * modules/sys_select: Depend on sys_time.
47529         * tests/test-sys_select.c: Test that sys/select.h defines struct
47530         timeval fully.
47531
47532 2008-09-29  Bruno Haible  <bruno@clisp.org>
47533
47534         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47535         * lib/sys_select.in.h: Likewise.
47536
47537 2008-09-29  Bruno Haible  <bruno@clisp.org>
47538
47539         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47540
47541 2008-09-29  Bruno Haible  <bruno@clisp.org>
47542
47543         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47544         Set LIBSOCKET instead of augmenting LIBS.
47545         * modules/sockets (Link): New section.
47546         * modules/sockets-tests (test_sockets_LDADD): New variable.
47547         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47548         * modules/poll-tests (test_poll_LDADD): New variable.
47549         * NEWS: Document the change.
47550
47551 2008-09-29  Bruno Haible  <bruno@clisp.org>
47552
47553         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47554         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47555         ARPA_INET_H directly.
47556         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47557
47558 2008-09-28  Bruno Haible  <bruno@clisp.org>
47559
47560         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47561         from gl_HEADER_SYS_SOCKET.
47562         (gl_HEADER_SYS_SOCKET): Invoke it.
47563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47564
47565 2008-09-28  Bruno Haible  <bruno@clisp.org>
47566
47567         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47568         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47569         Needed on OSF/1 4.0.
47570
47571 2008-09-28  Bruno Haible  <bruno@clisp.org>
47572
47573         Override open more carefully.
47574         * lib/open.c (orig_open): New function.
47575         (rpl_open): Use orig_open instead of open.
47576         * lib/fcntl.in.h: Add special invocation convention.
47577         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47578         (gl_FUNC_OPEN): Invoke it.
47579
47580         Override freopen more carefully.
47581         * lib/freopen.c (orig_freopen): New function.
47582         (rpl_freopen): Use orig_freopen instead of freopen.
47583         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47584         (gl_FUNC_FREOPEN): Invoke it.
47585
47586         Override fopen more carefully.
47587         * lib/fopen.c (orig_fopen): New function.
47588         (rpl_fopen): Use orig_fopen instead of fopen.
47589         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47590         (gl_FUNC_FOPEN): Invoke it.
47591         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47592
47593 2008-09-28  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47596         SIGPIPE.
47597
47598 2008-09-28  Bruno Haible  <bruno@clisp.org>
47599
47600         * tests/test-sigaction.c (handler, main): Disable the check whether
47601         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47602         glibc systems with LinuxThreads.
47603
47604 2008-09-28  Bruno Haible  <bruno@clisp.org>
47605
47606         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47607
47608         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47609         with AIX xlc.
47610         * lib/fcntl.in.h (open): Likewise.
47611         Reported by Rainer Tammer <tammer@tammer.net>.
47612
47613 2008-09-28  Bruno Haible  <bruno@clisp.org>
47614
47615         * modules/posix_spawnp-tests: New file.
47616         * tests/test-posix_spawn.c: New file.
47617         * tests/test-posix_spawn.in.sh: New file.
47618
47619         New module 'posix_spawnp'.
47620         * modules/posix_spawnp: New file.
47621         * lib/spawnp.c: New file, from GNU libc with modifications.
47622         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47623
47624         New module 'posix_spawn'.
47625         * modules/posix_spawn: New file.
47626         * lib/spawn.c: New file, from GNU libc with modifications.
47627         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47628
47629         New module 'posix_spawnattr_destroy'.
47630         * modules/posix_spawnattr_destroy: New file.
47631         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47632         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47633         module.
47634
47635         New module 'posix_spawnattr_setsigmask'.
47636         * modules/posix_spawnattr_setsigmask: New file.
47637         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47638         modifications.
47639         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47640         new module.
47641
47642         New module 'posix_spawnattr_getsigmask'.
47643         * modules/posix_spawnattr_getsigmask: New file.
47644         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47645         modifications.
47646         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47647         new module.
47648
47649         New module 'posix_spawnattr_setsigdefault'.
47650         * modules/posix_spawnattr_setsigdefault: New file.
47651         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47652         modifications.
47653         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47654         new module.
47655
47656         New module 'posix_spawnattr_getsigdefault'.
47657         * modules/posix_spawnattr_getsigdefault: New file.
47658         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47659         modifications.
47660         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47661         new module.
47662
47663         New module 'posix_spawnattr_setschedpolicy'.
47664         * modules/posix_spawnattr_setschedpolicy: New file.
47665         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47666         modifications.
47667         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47668         new module.
47669
47670         New module 'posix_spawnattr_getschedpolicy'.
47671         * modules/posix_spawnattr_getschedpolicy: New file.
47672         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47673         modifications.
47674         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47675         new module.
47676
47677         New module 'posix_spawnattr_setschedparam'.
47678         * modules/posix_spawnattr_setschedparam: New file.
47679         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47680         modifications.
47681         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47682         new module.
47683
47684         New module 'posix_spawnattr_getschedparam'.
47685         * modules/posix_spawnattr_getschedparam: New file.
47686         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47687         modifications.
47688         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47689         new module.
47690
47691         New module 'posix_spawnattr_setpgroup'.
47692         * modules/posix_spawnattr_setpgroup: New file.
47693         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47694         modifications.
47695         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47696         module.
47697
47698         New module 'posix_spawnattr_getpgroup'.
47699         * modules/posix_spawnattr_getpgroup: New file.
47700         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47701         modifications.
47702         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47703         module.
47704
47705         New module 'posix_spawnattr_setflags'.
47706         * modules/posix_spawnattr_setflags: New file.
47707         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47708         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47709         module.
47710
47711         New module 'posix_spawnattr_getflags'.
47712         * modules/posix_spawnattr_getflags: New file.
47713         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47714         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47715         module.
47716
47717         New module 'posix_spawnattr_init'.
47718         * modules/posix_spawnattr_init: New file.
47719         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47720         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47721         module.
47722
47723         New module 'posix_spawn_file_actions_destroy'.
47724         * modules/posix_spawn_file_actions_destroy: New file.
47725         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47726         modifications.
47727         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47728         the new module.
47729
47730         New module 'posix_spawn_file_actions_addopen'.
47731         * modules/posix_spawn_file_actions_addopen: New file.
47732         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47733         modifications.
47734         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47735         the new module.
47736
47737         New module 'posix_spawn_file_actions_adddup2'.
47738         * modules/posix_spawn_file_actions_adddup2: New file.
47739         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47740         modifications.
47741         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47742         the new module.
47743
47744         New module 'posix_spawn_file_actions_addclose'.
47745         * modules/posix_spawn_file_actions_addclose: New file.
47746         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47747         modifications.
47748         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47749         the new module.
47750
47751         New module 'posix_spawn_file_actions_init'.
47752         * modules/posix_spawn_file_actions_init: New file.
47753         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47754         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47755         new module.
47756
47757         New module 'posix_spawn-internal'.
47758         * modules/posix_spawn-internal: New file.
47759         * lib/spawn_int.h: New file, from GNU libc with modifications.
47760         * lib/spawni.c: New file, from GNU libc with modifications.
47761         * m4/posix_spawn.m4: New file.
47762
47763         New module 'spawn'.
47764         * modules/spawn: New file.
47765         * lib/spawn.in.h: New file, from GNU libc with modifications.
47766         * m4/spawn_h.m4: New file.
47767         * doc/posix-headers/spawn.texi: Mention the new module.
47768
47769 2008-09-28  Bruno Haible  <bruno@clisp.org>
47770
47771         * modules/sched-tests: New file.
47772         * tests/test-sched.c: New file.
47773
47774         New module 'sched'.
47775         * modules/sched: New file.
47776         * lib/sched.in.h: New file.
47777         * m4/sched_h.m4: New file.
47778         * doc/posix-headers/sched.texi: Mention the new module.
47779
47780 2008-09-27  Eric Blake  <ebb9@byu.net>
47781
47782         Fix previous patch, and tweak references to $0.
47783         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47784         (func_version, func_gnulib_dir): Don't call this program
47785         gnulib-tool.
47786         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47787         with using $0 in function.
47788         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47789         (func_fatal_error): Reuse the name the user invoked us with.
47790
47791 2008-09-27  Bruno Haible  <bruno@clisp.org>
47792
47793         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47794         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47795         (gl_ICONV_H): Not here.
47796         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47797         instead of assigning ICONV_H directly.
47798
47799         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47801         WCHAR_H directly.
47802
47803 2008-09-27  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47806         * modules/arpa_inet (Depends-on): Add link-warning.
47807         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47808         * modules/unistd (Makefile.am): Likewise.
47809
47810 2008-09-26  Bruno Haible  <bruno@clisp.org>
47811
47812         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47813         variables.
47814         (func_version): Essentially copied from gnulib-tool.
47815         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47816         func_readlink): Copied from gnulib-tool.
47817
47818 2008-09-26  Bruno Haible  <bruno@clisp.org>
47819
47820         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47821         invoking git-version-gen.
47822
47823 2008-09-26  Bruno Haible  <bruno@clisp.org>
47824
47825         * posix-modules: Update to directory names changed on 2008-01-19.
47826         Remove commas in output before splitting into words. No more need to
47827         avoid 'ftruncate' since 2007-02-19.
47828
47829 2008-09-26  Bruno Haible  <bruno@clisp.org>
47830
47831         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47832
47833 2008-09-26  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47836         * modules/fwriteerror (Depends-on): Add errno.
47837
47838 2008-09-26  Bruno Haible  <bruno@clisp.org>
47839
47840         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47841         * tests/test-vc-list-files-cvs.sh: Likewise.
47842
47843 2008-09-26  Bruno Haible  <bruno@clisp.org>
47844
47845         * doc/posix-headers/sys_resource.texi: Reorder items.
47846
47847 2008-09-26  Jim Meyering  <meyering@redhat.com>
47848
47849         fts: tweak inode comparison function
47850         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47851         inode numbers, as documented.
47852
47853         fts: sort dirent entries on inode number before traversing
47854         This avoids a quadratic, seek-related performance penalty when
47855         operating on a directory containing many entries (measurable at 10k;
47856         3.5 hours at 2 million entries with a cold cache) on certain types
47857         of file systems, including ext3 and ext4, but not tmpfs.
47858         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47859         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47860         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47861         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47862         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47863         (fts_build): Set the stat.st_ino member from D_INO.
47864         If it is likely to be useful, sort dirent entries on inode number.
47865
47866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47867         and the struct statfs.f_type member.
47868         * modules/fts (Depends-on): Add d-ino.
47869
47870 2008-09-26  Bruno Haible  <bruno@clisp.org>
47871
47872         * modules/sigpipe-die (Depends-on): Add sigpipe.
47873
47874         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47875         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47876         and GNULIB_STDIO_H_SIGPIPE are set.
47877         * lib/stdio-write.c: New file.
47878         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47879         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47880         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47881         REPLACE_STDIO_WRITE_FUNCS.
47882         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47883         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47884         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47885         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47886         * modules/stdio (Files): Add lib/stdio-write.c.
47887         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47888         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47889         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47890         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47891         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47892         REPLACE_FPRINTF_POSIX.
47893         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47894         REPLACE_PRINTF_POSIX.
47895         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47896         REPLACE_VFPRINTF_POSIX.
47897         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47898         REPLACE_VPRINTF_POSIX.
47899         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47900         SIGPIPE issue.
47901         * doc/posix-functions/fputc.texi: Likewise.
47902         * doc/posix-functions/fputs.texi: Likewise.
47903         * doc/posix-functions/fwrite.texi: Likewise.
47904         * doc/posix-functions/printf.texi: Likewise.
47905         * doc/posix-functions/putc.texi: Likewise.
47906         * doc/posix-functions/putchar.texi: Likewise.
47907         * doc/posix-functions/puts.texi: Likewise.
47908         * doc/posix-functions/vfprintf.texi: Likewise.
47909         * doc/posix-functions/vprintf.texi: Likewise.
47910
47911         * modules/safe-write (Depends-on): Add write.
47912
47913         * modules/sigpipe-tests: New file.
47914         * tests/test-sigpipe.c: New file.
47915         * tests/test-sigpipe.sh: New file.
47916
47917         * modules/write: New file.
47918         * lib/unistd.in.h: Include <sys/types.h>.
47919         (write): New declaration.
47920         * lib/write.c: New file.
47921         * m4/write.m4: New file.
47922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47923         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47924         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47925         GNULIB_WRITE, REPLACE_WRITE.
47926         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47927         and the SIGPIPE issue.
47928
47929         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47930         (raise): New declaration.
47931         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47932         (ext_signal): New function.
47933         (rpl_raise): New function.
47934         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47935         GNULIB_SIGNAL_H_SIGPIPE.
47936         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47937         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47938
47939         * modules/sigpipe: New file.
47940         * m4/sigpipe.m4: New file.
47941
47942 2008-09-25  Derek Price  <derek@ximbiot.com>
47943             Bruno Haible  <bruno@clisp.org>
47944
47945         * gnulib-tool (func_import): Report all license incompatibilities, not
47946         just the first one.
47947
47948 2008-09-25  Bruno Haible  <bruno@clisp.org>
47949
47950         * gnulib-tool (func_import): When computing the edits, consider not
47951         only the Makefile.ams that exist but also those that will be generated.
47952
47953 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47954
47955         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47956         fixes gnulib-tool --test warning about duplicate dependency.
47957
47958 2008-09-25  Bruno Haible  <bruno@clisp.org>
47959
47960         * gnulib-tool: Don't ask the user to perform edits in the generated
47961         Makefile.ams.
47962         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47963         apply to the Makefile.am being generated.
47964         (func_emit_tests_Makefile_am): Execute edits that apply to the
47965         Makefile.am being generated.
47966         (func_import): Setup list of Makefile.am edits before emitting the
47967         Makefile.ams, not at the end.
47968         (func_create_testdir): Update.
47969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47970
47971 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47972
47973         * gnulib-tool (func_import): Store the --tests-base option in the
47974         comment in gnulib-cache.m4.
47975
47976 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47977
47978         * NEWS: Document increased portability that sys_select now provides.
47979
47980         * lib/sys_select.in.h: Install select wrapper.
47981         * lib/sys_socket.in.h: Use more descriptive name when there is no
47982         select wrapper.
47983         * lib/winsock-select.c: New.
47984         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47985         Require gl_HEADER_SYS_SOCKET.
47986         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47987         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47988         * tests/test-sys_select.c: Add functional tests.
47989
47990 2008-09-24  Eric Blake  <ebb9@byu.net>
47991
47992         open, fopen: close fd leak in last patch
47993         * lib/open.c (rpl_open): Close fd before returning error.
47994         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47995         * doc/posix-functions/open.texi (open): Document that Irix also
47996         has the bug.
47997         * doc/posix-functions/fopen.texi (fopen): Likewise.
47998         Reported by Paolo Bonzini.
47999
48000 2008-09-24  Bruno Haible  <bruno@clisp.org>
48001
48002         Ensure that a filename ending in a slash cannot be used to access a
48003         non-directory.
48004         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48005         to check whether it's really a directory.
48006         * lib/fopen.c: Include fcntl.h, unistd.h.
48007         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48008         and fdopen().
48009         * modules/fopen (Depends-on): Add unistd.
48010         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48011         * tests/test-fopen.c (main): Likewise.
48012         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48013         * doc/posix-functions/fopen.texi: Likewise.
48014         Reported by Eric Blake.
48015
48016 2008-09-23  Eric Blake  <ebb9@byu.net>
48017
48018         c-stack: avoid compiler optimizations when provoking overflow
48019         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48020         recursion harder to optimize, to ensure a stack overflow occurs.
48021         * tests/test-c-stack.c (recurse): Likewise.
48022         Borrowed from libsigsegv.
48023
48024         c-stack: work around Irix sigaltstack bug
48025         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48026         whether sigaltstack uses wrong end of stack_t (copied in part from
48027         libsigsegv).
48028         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48029         Irix bug, without requiring an over-allocation.
48030         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48031         bug.
48032
48033         fopen: document mingw bug on directories
48034         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48035         not allowing a stream visiting a directory, even though reading
48036         from such a stream is not portable.
48037
48038 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48039
48040         * lib/poll.c: Rewrite.
48041         * modules/poll: Depend on alloca.
48042
48043 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48044
48045         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48046         instead define prototypes for a full set of wrappers.  Ensure
48047         that Cygwin does not use the compatibility code, which is only
48048         for MinGW.
48049         * lib/winsock.c: New.
48050         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48051         * modules/sys_socket: Add lib/winsock.c.
48052
48053         * modules/poll-tests: Add errno and perror.
48054         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48055
48056 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48057
48058         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48059
48060 2008-09-23  Bruno Haible  <bruno@clisp.org>
48061
48062         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48063         * doc/glibc-functions/*: Likewise.
48064
48065 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48066
48067         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48068         success.
48069
48070 2008-09-22  Eric Blake  <ebb9@byu.net>
48071             Bruno Haible  <bruno@clisp.org>
48072
48073         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48074         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48075         supply %A but mishandle pseudo-NaN.
48076         Reported by Simon Josefsson.
48077
48078 2008-09-21  Bruno Haible  <bruno@clisp.org>
48079
48080         * tests/test-lock.c (main): Tweak skip message.
48081         * tests/test-tls.c (main): Likewise.
48082
48083 2008-09-21  Bruno Haible  <bruno@clisp.org>
48084
48085         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48086         whether 'struct sigaction' has sa_sigaction here...
48087         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48088         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48089
48090 2008-09-21  Bruno Haible  <bruno@clisp.org>
48091
48092         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48093         section.
48094         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48095         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48096         the new section.
48097         (Support for obsolete systems lacking POSIX:2001): New section.
48098         (String handling <string.h>): Move strdup to the new section.
48099         Suggested by Simon Josefsson and Paolo Bonzini.
48100
48101 2008-09-21  Bruno Haible  <bruno@clisp.org>
48102
48103         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48104         exponents in %e and %g results on 'long double'. Needed for mingw's
48105         improved *printf functions.
48106         * tests/test-vasprintf-posix.c (test_function): Likewise.
48107         * tests/test-snprintf-posix.h (test_function): Likewise.
48108         * tests/test-sprintf-posix.h (test_function): Likewise.
48109         Reported by Eric Blake.
48110
48111 2008-09-21  Bruno Haible  <bruno@clisp.org>
48112
48113         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48114         * tests/test-sprintf-posix.h (test_function): Likewise.
48115
48116 2008-09-21  Bruno Haible  <bruno@clisp.org>
48117
48118         * modules/getpass (Depends-on): Add strdup-posix.
48119
48120         New module 'strdup-posix'.
48121         * modules/strdup-posix: New file.
48122         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48123         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48125         REPLACE_STRDUP.
48126         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48127         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48129         strdup-posix.
48130
48131         * modules/strdup (Depends-on): Remove malloc-posix.
48132
48133 2008-09-20  Bruno Haible  <bruno@clisp.org>
48134
48135         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48136         Wildenhues.
48137
48138 2008-09-20  Bruno Haible  <bruno@clisp.org>
48139
48140         Ensure that wint_t gets defined on IRIX 5.3.
48141         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48142         * lib/wctype.in.h (wint_t): Likewise.
48143         (__wctype_wint_t): Remove type.
48144         (isw*): Use wint_t instead of __wctype_wint_t.
48145         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48146         * modules/wchar (Files): Add m4/wint_t.m4.
48147         (Makefile.am): Substitute HAVE_WINT_T.
48148         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48149         * tests/test-wctype.c: Check that wint_t is defined.
48150         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48151         * doc/posix-headers/wctype.texi: Likewise.
48152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48153
48154 2008-09-18  Bruno Haible  <bruno@clisp.org>
48155
48156         * gnulib-tool (func_exit): Update comment.
48157
48158 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48159
48160         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48161         assumes strdup exists and does not depend on strdup to return
48162         ENOMEM on out of memory conditions.
48163
48164 2008-09-18  Bruno Haible  <bruno@clisp.org>
48165
48166         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48167         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48168         digits for the exponent.
48169
48170 2008-09-18  Jim Meyering  <meyering@redhat.com>
48171             Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/vasnprintf.c (decimal_point_char): Define also if
48174         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48175
48176 2008-09-16  Bruno Haible  <bruno@clisp.org>
48177         and Eric Blake  <ebb9@byu.net>
48178
48179         vasnprintf: support Irix 5.3
48180         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48181         that mishandle long double infinity.
48182         Reported by Tom G. Christensen.
48183
48184 2008-09-16  Bruno Haible  <bruno@clisp.org>
48185
48186         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48187         Solaris 9.
48188         * doc/glibc-functions/alphasort.texi: Likewise.
48189         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48190
48191 2008-09-16  Jim Meyering  <meyering@redhat.com>
48192
48193         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48194         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48195         a umask modification leak out of a subshell.  Otherwise, the
48196         opensolaris /bin/sh would be accepted and thus cause unwarranted
48197         failures in the coreutils test suite.
48198
48199 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48200
48201         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48202         to succeed.
48203
48204 2008-09-16  Jim Meyering  <meyering@redhat.com>
48205
48206         avoid spurious test failure when library is built without ACL support
48207         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48208         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48209         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48210         * tests/test-copy-acl.sh: Likewise.
48211
48212 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48213
48214         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48215         based on character occurrence counts.
48216
48217 2008-09-15  Eric Blake  <ebb9@byu.net>
48218
48219         tests: avoid some compiler warnings
48220         * tests/test-memchr.c (main): Pass NULL indirectly.
48221         * tests/test-closein.c (main): Avoid unused variable.
48222
48223 2008-09-15  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48226         are missing on OpenBSD 4.0 individually.
48227         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48228
48229 2008-09-15  Bruno Haible  <bruno@clisp.org>
48230
48231         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48232         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48233         * doc/posix-functions/perror.texi: Likewise.
48234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48235         is missing.
48236         Reported by Eric Blake.
48237
48238         * lib/errno.in.h: Use replacement values >= 2000.
48239         Reported by Eric Blake.
48240
48241 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48242
48243         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48244         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48245         limit.
48246         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48247         compareseq was aborted.
48248
48249 2008-09-14  Bruno Haible  <bruno@clisp.org>
48250
48251         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48252         yvec_edit_count.
48253         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48254         (fstrcmp_bounded): Simplify result computation accordingly.
48255
48256 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48257
48258         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48259         (fstrcmp): Define in terms of fstrcmp_bounded.
48260         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48261         lower_bound argument.
48262         Return quickly if the result is certainly < lower_bound.
48263         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48264
48265 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48266
48267         * lib/diffseq.h (EARLY_ABORT): New macro.
48268         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48269         evaluates to true.
48270
48271 2008-09-14  Bruno Haible  <bruno@clisp.org>
48272
48273         * modules/perror-tests: New file.
48274         * tests/test-perror.sh: New file.
48275         * tests/test-perror.c: New file.
48276
48277         New module 'perror'.
48278         * lib/stdio.in.h (perror): New declaration.
48279         * lib/perror.c: New file.
48280         * m4/perror.m4: New file.
48281         * modules/perror: New file.
48282         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48283         * doc/posix-functions/perror.texi: Mention the perror module.
48284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48285         REPLACE_PERROR.
48286         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48287         REPLACE_PERROR.
48288
48289 2008-09-14  Bruno Haible  <bruno@clisp.org>
48290
48291         * modules/stdio (Makefile.am): Reorder to match the order in
48292         lib/stdio.in.h.
48293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48294
48295 2008-09-13  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48298
48299 2008-09-13  Bruno Haible  <bruno@clisp.org>
48300
48301         Extend strerror to cover the added errno values.
48302         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48303         (rpl_strerror): Provide error messages for the added errno values and
48304         for the WSA* values.
48305         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48306         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48307         strerror.
48308         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48309         * modules/strerror (Depends-on): Add errno.
48310         * doc/posix-functions/strerror.texi: Document the change.
48311         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48312         and EOVERFLOW.
48313
48314 2008-09-13  Bruno Haible  <bruno@clisp.org>
48315
48316         * modules/EOVERFLOW: Remove file.
48317         * m4/eoverflow.m4: Remove file.
48318         * modules/EOVERFLOW-tests: Remove file.
48319         * tests/test-EOVERFLOW.c: Remove file.
48320         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48321         * modules/ftell (Depends-on): Likewise.
48322         * modules/getdelim (Depends-on): Likewise.
48323         * modules/getugroups (Depends-on): Likewise.
48324         * modules/poll (Depends-on): Likewise.
48325         * modules/snprintf (Depends-on): Likewise.
48326         * modules/sprintf-posix (Depends-on): Likewise.
48327         * modules/vasnprintf (Depends-on): Likewise.
48328         * modules/vasprintf (Depends-on): Likewise.
48329         * modules/vfprintf-posix (Depends-on): Likewise.
48330         * modules/vsnprintf (Depends-on): Likewise.
48331         * modules/vsprintf-posix (Depends-on): Likewise.
48332         * modules/xvasprintf (Depends-on): Likewise.
48333         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48334         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48335         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48336         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48337         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48338         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48339         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48340         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48341         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48342         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48343         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48344         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48345         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48346         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48347         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48348         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48350         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48351         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48352         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48353         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48354         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48355         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48356         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48357         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48358         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48359         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48360         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48361         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48362         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48363         * MODULES.html.sh: Remove EOVERFLOW.
48364         * NEWS: Mention the change.
48365
48366 2008-09-13  Bruno Haible  <bruno@clisp.org>
48367
48368         * modules/errno-tests: New file.
48369         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48370
48371         * lib/errno.in.h: New file.
48372         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48373         * modules/errno: New file.
48374         * doc/posix-headers/errno.texi: Update documentation.
48375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48376
48377 2008-09-13  Bruno Haible  <bruno@clisp.org>
48378
48379         * tests/test-poll.c: Use #if for native Windows, rather than testing
48380         __MSVCRT__.
48381
48382 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48383             Bruno Haible  <bruno@clisp.org>
48384
48385         * lib/glob.c: Don't include <pwd.h> on native Windows.
48386         (WINDOWS32): New macro.
48387         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48388
48389 2008-09-13  Bruno Haible  <bruno@clisp.org>
48390
48391         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48392         (ETIMEDOUT): Remove macro.
48393         (glthread_cond_timedwait_multithreaded): New declaration.
48394         (glthread_cond_timedwait): Use it.
48395         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48396         (glthread_cond_timedwait_multithreaded): New function.
48397
48398 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48399
48400         * modules/poll-tests: Do not check for io.h.
48401         * tests/test-poll.c: Check for __MSVCRT__ instead.
48402
48403 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48404
48405         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48406         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48407         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48408
48409 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48410
48411         * modules/poll-tests: New.
48412         * tests/test-poll.c: New.
48413
48414 2008-09-12  Eric Blake  <ebb9@byu.net>
48415
48416         frexp: test for NetBSD failure on -0.0
48417         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48418         not all, bugs from NetBSD 3.0 have been fixed.
48419         * doc/posix-functions/frexp.texi (frexp): Document bug.
48420         Reported by Thomas Klausner.
48421
48422         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48423         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48424         literal -0.0.
48425         Reported by Jonathan C. Patschke <jp@centtech.com>.
48426
48427 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48428
48429         * lib/glthread/cond.h: Use dummy implementation also if
48430         USE_WIN32_THREADS.
48431
48432 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48433
48434         * modules/fnmatch-posix (License): Change to LGPLv2+.
48435         * modules/fnmatch-gnu (License): Likewise.
48436
48437 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48438
48439         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48440
48441 2008-09-11  Jim Meyering  <meyering@redhat.com>
48442
48443         * users.txt: Add gtk-vnc.
48444
48445 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48446
48447         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48448         rotate amounts.
48449
48450         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48451         required for 16-bit and 8-bit rotates.
48452         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48453         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48454         UINT8_MAX instead of hard-coded constants.
48455         Suggested by Paul Eggert.
48456
48457 2008-09-07  Bruno Haible  <bruno@clisp.org>
48458
48459         * tests/test-striconveh.c (main): Check behaviour when converting from
48460         UTF-7.
48461
48462         Make striconveh work better with stateful encodings.
48463         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48464         that iconv does not increment the inptr when returning -1/EINVAL.
48465
48466 2008-09-07  Bruno Haible  <bruno@clisp.org>
48467
48468         * build-aux/config.rpath: Update according to libtool-2.2.6.
48469         * build-aux/config.libpath: Likewise.
48470
48471 2008-09-06  Bruno Haible  <bruno@clisp.org>
48472
48473         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48474         * lib/freadptr.c (freadptr): Likewise.
48475         * lib/freadseek.c (freadptrinc): Likewise.
48476         Reported by Simon Josefsson.
48477
48478 2008-09-06  Bruno Haible  <bruno@clisp.org>
48479
48480         * modules/freadptr (License): Change to LGPLv2+.
48481         * modules/freadseek (License): Likewise.
48482         Suggested by Eric Blake.
48483
48484         * modules/memchr2 (License): Change to LGPLv2+.
48485         Approved by Eric Blake.
48486
48487 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48488             Bruno Haible  <bruno@clisp.org>
48489
48490         Make gnulib-tool work with native 'sed' on AIX.
48491         * gnulib-tool (sed_noop): New variable.
48492         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48493         func_add_or_update, func_create_testdir): Use it to initialize sed
48494         script variables.
48495         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48496
48497 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48498             Bruno Haible  <bruno@clisp.org>
48499
48500         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48501         also works after #include directives.
48502
48503 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48504
48505         getdate.y: reject an out-of-range timezone value
48506         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48507         the range [-24...+24].  When specified with only one or two digits,
48508         * tests/test-getdate.c: Tests for the fix.
48509         * doc/getdate.texi: Document this change.
48510
48511 2008-09-03  Bruno Haible  <bruno@clisp.org>
48512
48513         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48514
48515 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48516
48517         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48518         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48519         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48520         Blake <ebb9@byu.net>.
48521
48522         * tests/test-bitrotate.c: Add more test vectors.
48523
48524 2008-09-02  Eric Blake  <ebb9@byu.net>
48525
48526         vasnprintf-posix: handle large precision via %.*d
48527         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48528         when handling it ourselves.
48529         * tests/test-vasnprintf-posix.c (test_function): Add test.
48530         * tests/test-snprintf-posix.h (test_function): Likewise.
48531         * tests/test-sprintf-posix.h (test_function): Likewise.
48532         * tests/test-vasprintf-posix.c (test_function): Likewise.
48533         Reported by Alain Guibert.
48534
48535 2008-09-01  Eric Blake  <ebb9@byu.net>
48536
48537         c-stack: make configure-time check more robust
48538         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48539         successful sigaction call.
48540         Reported by Tom G. Christensen.
48541
48542 2008-09-01  Bruno Haible  <bruno@clisp.org>
48543
48544         New module 'findprog-lgpl'.
48545         * modules/findprog-lgpl: New file.
48546         * lib/findprog-lgpl.c: New file.
48547         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48548         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48549         to decide whether to use strdup or xstrdup, concatenated_filename or
48550         xconcatenated_filename.
48551
48552 2008-09-01  Bruno Haible  <bruno@clisp.org>
48553
48554         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48555         'xconcat-filename' (GPL).
48556         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48557         (License): Change to LGPLv2+.
48558         * modules/xconcat-filename: New file.
48559         * lib/concat-filename.h (concatenated_filename): Change specification.
48560         (xconcatenated_filename): New declaration.
48561         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48562         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48563         memory situations.
48564         * lib/xconcat-filename.c: New file.
48565         * NEWS: Mention the change.
48566         * lib/findprog.c: Include concat-filename.h, not filename.h.
48567         (find_in_path): Use xconcatenated_filename instead of
48568         concatenated_filename.
48569         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48570         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48571         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48572         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48573         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48574         instead of concatenated_filename.
48575         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48576         (execute_java_class): Use xconcatenated_filename instead of
48577         concatenated_filename.
48578         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48579         * modules/javacomp (Depends-on): Likewise.
48580         * modules/javaexec (Depends-on): Likewise.
48581
48582 2008-09-01  Bruno Haible  <bruno@clisp.org>
48583
48584         Split module 'filename' into 'filename' and 'concat-filename'.
48585         * modules/filename: Keep only lib/filename.h.
48586         (License): Change to LGPLv2+.
48587         * modules/concat-filename: New file, extracted from modules/filename.
48588         * lib/filename.h (concatenated_filename): Remove declaration.
48589         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48590         * lib/concat-filename.c: Include concat-filename.h.
48591         * NEWS: Mention the change.
48592
48593 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48594
48595         * lib/bitrotate.h (rotl8, rotr8): Add.
48596
48597         * modules/bitrotate (configure.ac): Need
48598         AC_REQUIRE([AC_C_INLINE]).
48599         (Description): Mention stdint.h.  Reported by Bruno Haible
48600         <bruno@clisp.org>.
48601
48602         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48603         Paolo Bonzini <bonzini@gnu.org>.
48604
48605 2008-08-31  Bruno Haible  <bruno@clisp.org>
48606
48607         Assume Solaris specific bi-arch conventions on Solaris systems.
48608         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48609         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48610         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48611         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48612         like acl_libdirstem.
48613         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48614         acl_libdirstem.
48615         * NEWS: Mention the change.
48616         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48617
48618 2008-08-31  Jim Meyering  <meyering@redhat.com>
48619
48620         * lib/strftime.h: Add comments describing the two added arguments.
48621
48622         remove duplicate #include directives
48623         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48624         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48625
48626 2008-08-31  Bruno Haible  <bruno@clisp.org>
48627
48628         New module 'sigpipe-die'.
48629         * modules/sigpipe-die: New file.
48630         * lib/sigpipe-die.h: New file.
48631         * lib/sigpipe-die.c: New file.
48632         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48633
48634 2008-08-31  Bruno Haible  <bruno@clisp.org>
48635
48636         Don't override previously installed signal handlers.
48637         * lib/fatal-signal.c (saved_sigactions): New variable.
48638         (uninstall_handlers): Reset the signal to the saved handler, not
48639         to SIG_DFL (except when ignored).
48640         (install_handlers): Save the previous handlers.
48641
48642 2008-08-30  Bruno Haible  <bruno@clisp.org>
48643
48644         * gnulib-tool (func_reset_sigpipe): New function.
48645         (func_get_automake_snippet, func_modules_transitive_closure,
48646         func_import): Invoke it before a join command that reads from stdin,
48647         to avoid "echo: write error: Broken pipe" error messages on stderr.
48648         Reported by Sam Steingold <sds@gnu.org>.
48649
48650 2008-08-30  Bruno Haible  <bruno@clisp.org>
48651
48652         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48653         Code copied from m4/open.m4.
48654         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48655         access and the filename ends in a slash. Code copied from lib/open.c.
48656         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48657         * tests/test-fopen.c (main): Check against bug with trailing slash.
48658
48659 2008-08-29  Bruno Haible  <bruno@clisp.org>
48660
48661         Avoid some "gcc -pedantic" warnings.
48662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48663         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48664         * lib/dirent.in.h: Likewise.
48665         * lib/fcntl.in.h: Likewise.
48666         * lib/float.in.h: Likewise.
48667         * lib/iconv.in.h: Likewise.
48668         * lib/inttypes.in.h: Likewise.
48669         * lib/locale.in.h: Likewise.
48670         * lib/math.in.h: Likewise.
48671         * lib/netinet_in.in.h: Likewise.
48672         * lib/search.in.h: Likewise.
48673         * lib/signal.in.h: Likewise.
48674         * lib/stdarg.in.h: Likewise.
48675         * lib/stdint.in.h: Likewise.
48676         * lib/stdio.in.h: Likewise.
48677         * lib/stdlib.in.h: Likewise.
48678         * lib/string.in.h: Likewise.
48679         * lib/strings.in.h: Likewise.
48680         * lib/sys_select.in.h: Likewise.
48681         * lib/sys_socket.in.h: Likewise.
48682         * lib/sys_stat.in.h: Likewise.
48683         * lib/sys_time.in.h: Likewise.
48684         * lib/sysexits.in.h: Likewise.
48685         * lib/time.in.h: Likewise.
48686         * lib/unistd.in.h: Likewise.
48687         * lib/wchar.in.h: Likewise.
48688         * lib/wctype.in.h: Likewise.
48689         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48690         * modules/fchdir (Makefile.am): Likewise.
48691         * modules/fcntl (Makefile.am): Likewise.
48692         * modules/float (Makefile.am): Likewise.
48693         * modules/iconv_open (Makefile.am): Likewise.
48694         * modules/inttypes (Makefile.am): Likewise.
48695         * modules/locale (Makefile.am): Likewise.
48696         * modules/math (Makefile.am): Likewise.
48697         * modules/netinet_in (Makefile.am): Likewise.
48698         * modules/search (Makefile.am): Likewise.
48699         * modules/signal (Makefile.am): Likewise.
48700         * modules/stdarg (Makefile.am): Likewise.
48701         * modules/stdint (Makefile.am): Likewise.
48702         * modules/stdio (Makefile.am): Likewise.
48703         * modules/stdlib (Makefile.am): Likewise.
48704         * modules/string (Makefile.am): Likewise.
48705         * modules/strings (Makefile.am): Likewise.
48706         * modules/sys_select (Makefile.am): Likewise.
48707         * modules/sys_socket (Makefile.am): Likewise.
48708         * modules/sys_stat (Makefile.am): Likewise.
48709         * modules/sys_time (Makefile.am): Likewise.
48710         * modules/sysexits (Makefile.am): Likewise.
48711         * modules/time (Makefile.am): Likewise.
48712         * modules/unistd (Makefile.am): Likewise.
48713         * modules/wchar (Makefile.am): Likewise.
48714         * modules/wctype (Makefile.am): Likewise.
48715         Reported by Reuben Thomas <rrt@sc3d.org>.
48716
48717 2008-08-29  Bruno Haible  <bruno@clisp.org>
48718
48719         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48720         any more.
48721
48722 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48723
48724         * MODULES.html.sh (Misc): Add bitrotate.
48725
48726         * modules/bitrotate: New file.
48727
48728         * lib/bitrotate.h: New file.
48729
48730         * modules/bitrotate-tests: New file.
48731
48732         * tests/test-bitrotate.c: New file.
48733
48734         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48735         on the bitrotate module.
48736
48737         * lib/arctwo.c: Use new bitrotate module.
48738
48739 2008-08-29  Jim Meyering  <meyering@redhat.com>
48740
48741         bootstrap: merge changes from coreutils
48742         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48743         of copied files.  Remove a kludge, now that this is fixed.
48744         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48745         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48746         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48747
48748 2008-08-29  Bruno Haible  <bruno@clisp.org>
48749
48750         * MODULES.html.sh: Remove --cvs-urls option.
48751
48752 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48753
48754         maint.mk: adjust to file name change
48755         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48756
48757 2008-08-28  Jim Meyering  <meyering@redhat.com>
48758
48759         * modules/getndelim2 (License): Relicense to LGPLv2+.
48760         Approved by Richard Stallman for the version of 1995, and by
48761         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48762
48763 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48764
48765         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48766         dummy if one is not available.  Do not touch them if
48767         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48768         (getc_maybe_unlocked): New.
48769         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48770
48771 2008-08-26  Eric Blake  <ebb9@byu.net>
48772
48773         doc/INSTALL: resync from autoconf
48774         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48775         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48776         moving...
48777         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48778         * INSTALL: Regenerate.
48779         * INSTALL.ISO: New file.
48780         * INSTALL.UTF-8: Likewise.
48781
48782 2008-08-26  Jim Meyering  <meyering@redhat.com>
48783
48784         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48785         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48786         these definitions conditional, so that they may be overridden, too.
48787
48788 2008-08-26  Bruno Haible  <bruno@clisp.org>
48789
48790         Generate INSTALL file variants with prettier quotes.
48791         * doc/Makefile (INSTALL_PRELUDE): New macro.
48792         (INSTALL): Use it.
48793         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48794
48795 2008-08-26  Bruno Haible  <bruno@clisp.org>
48796
48797         Run makeinfo in an English locale.
48798         * doc/Makefile (MAKEINFO): New variable.
48799
48800 2008-08-26  Bruno Haible  <bruno@clisp.org>
48801
48802         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48803         Suggested by Eric Blake.
48804
48805 2008-08-25  Bruno Haible  <bruno@clisp.org>
48806
48807         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48808
48809 2008-08-25  Eric Blake  <ebb9@byu.net>
48810
48811         c-stack: test that stack overflow can be caught
48812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48813         that platform allows handling stack overflow; at least OS/2 EMX
48814         has sigaltstack, but crashes before transferring control to
48815         handler on stack overflow.
48816         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48817         check for HAVE_STACK_OVERFLOW_HANDLING.
48818         Reported by Elbert Pol.
48819
48820 2008-08-25  Bruno Haible  <bruno@clisp.org>
48821
48822         * doc/posix-functions/strftime.texi: Fix description of strftime
48823         module.
48824
48825 2008-08-24  Bruno Haible  <bruno@clisp.org>
48826
48827         * tests/uniwidth/test-uc_width2.c: New file.
48828         * tests/uniwidth/test-uc_width2.sh: New file.
48829         * modules/uniwidth/width-tests (Files): Add the new files.
48830         (TESTS): Add uniwidth/test-uc_width2.sh.
48831         (TESTS_ENVIRONMENT): New variable.
48832         (check_PROGRAMS): Add test-uc_width2.
48833         (test_uc_width2_SOURCES): New variable.
48834
48835         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48836         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48837         not 0x00AB.
48838         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48839
48840 2008-08-22  Eric Blake  <ebb9@byu.net>
48841
48842         test-lock, test-tls: mention why a test is skipped
48843         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48844         skipped.
48845         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48846
48847         count-one-bits: relax license
48848         * modules/count-one-bits (License): Relicense to LGPLv2+.
48849         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48850
48851 2008-08-22  Andreas Schwab  <schwab@suse.de>
48852
48853         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48854         Remove spurious space in assignment.
48855
48856 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48857
48858         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48859         Paul Eggert <eggert@CS.UCLA.EDU>.
48860
48861 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48862
48863         * modules/gettext: Add m4/threadlib.m4.
48864
48865 2008-08-19  Eric Blake  <ebb9@byu.net>
48866
48867         test-c-stack: fix compilation failure on FreeBSD 5.0
48868         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48869         headers before <sys/resource.h>.
48870         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48871         the bug.
48872         Reported by Nelson H. F. Beebe.
48873
48874         strverscmp: migrate from "strverscmp.h" to <string.h>
48875         * modules/string (Makefile.am): Add new hooks.
48876         * modules/strverscmp (Files): Remove strverscmp.h.
48877         (Depends-on): Add string.
48878         (configure.ac): Add indicator.
48879         (Include): Mention new header.
48880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48881         defaults.
48882         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48883         results.
48884         * lib/strverscmp.h: Delete.
48885         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48886         * tests/test-strverscmp.c (includes): Adjust client.
48887         * lib/check-version.c (includes): Likewise.
48888         * NEWS: Document the change.
48889
48890         strverscmp: add unit test
48891         * modules/strverscmp-tests: New file.
48892         * tests/test-strverscmp.c: Likewise.
48893
48894 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48895
48896         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48897         regarding Windows crypto stuff, from Mono.
48898
48899 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48900
48901         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48902         if present, for intel RND.  Return error on failures.
48903
48904 2008-08-18  Ben Pfaff  <blp@gnu.org>
48905
48906         gitlog-to-changelog: give better diagnostic for failed pipe-open
48907         * build-aux/gitlog-to-changelog: Improve error message: suggest
48908         that the version of Git may be too old.
48909
48910 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48911
48912         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48913         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48914
48915 2008-08-18  Bruno Haible  <bruno@clisp.org>
48916
48917         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48918         pthread_in_use().
48919
48920 2008-08-18  Bruno Haible  <bruno@clisp.org>
48921
48922         * lib/glthread/threadlib.c: Include <pthread.h>.
48923
48924 2008-08-18  Bruno Haible  <bruno@clisp.org>
48925
48926         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48927         glthread_recursive_lock_* macros.
48928         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48929         Fix syntax error.
48930
48931 2008-08-18  Bruno Haible  <bruno@clisp.org>
48932
48933         * lib/glthread/thread.c: Avoid forcing a context switch right after
48934         thread creation.
48935
48936 2008-08-17  Bruno Haible  <bruno@clisp.org>
48937
48938         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48939         * lib/glthread/thread.h: Provide Win32 specific implementation.
48940         * modules/thread (Files): Add lib/glthread/thread.c.
48941         (Depends-on): Add lock.
48942         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48943
48944 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48945
48946         New module 'yield'.
48947         * modules/yield: New file.
48948         * lib/glthread/yield.h: New file.
48949         * m4/yield.m4: New file.
48950         * MODULES.html.sh (Multithreading): Add yield.
48951
48952 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48953
48954         New module 'thread'.
48955         * modules/thread: New file.
48956         * lib/glthread/thread.h: New file.
48957         * m4/thread.m4: New file.
48958         * MODULES.html.sh (Multithreading): Add thread.
48959
48960 2008-08-17  Bruno Haible  <bruno@clisp.org>
48961
48962         * lib/glthread/lock.h: Include <stdlib.h> always.
48963         * lib/glthread/tls.h: Likewise.
48964         * lib/glthread/cond.h: Likewise.
48965
48966 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48967
48968         New module 'cond'.
48969         * modules/cond: New file.
48970         * lib/glthread/cond.h: New file.
48971         * lib/glthread/cond.c: New file.
48972         * m4/cond.m4: New file.
48973         * MODULES.html.sh (Multithreading): Add cond.
48974
48975 2008-08-16  Eric Blake  <ebb9@byu.net>
48976
48977         c-stack: fix regression on Irix 5.3 from 2008-06-21
48978         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48979         sa_sigaction...
48980         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48981         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48982         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48983         * modules/signal (Makefile.am): Use the value.
48984         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48985         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48986         * doc/posix-headers/signal.texi (signal.h): Document this
48987         portability issue.
48988         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48989         Reported by Tom G. Christensen.
48990
48991 2008-08-17  Bruno Haible  <bruno@clisp.org>
48992
48993         New module 'threadlib'.
48994         * modules/threadlib: New file.
48995         * lib/glthread/threadlib.c: New file, extracted from
48996         lib/glthread/lock.c.
48997         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48998         functions.
48999         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49000         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49001         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49002         macros.
49003         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49004         (gl_DISABLE_THREADS): Remove macro.
49005         * modules/lock (Files): Remove build-aux/config.rpath.
49006         (Depends-on): Remove havelib. Add threadlib.
49007         (configure.ac-early): Remove section.
49008         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49009         * modules/tls (Depends-on): Remove lock. Add threadlib.
49010         (Link): New section, copied from threadlib.
49011         * MODULES.html.sh (Multithreading): Add threadlib.
49012
49013 2008-08-14  Bruno Haible  <bruno@clisp.org>
49014
49015         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49016         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49017         glthread_rwlock_unlock, glthread_rwlock_destroy,
49018         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49019         glthread_recursive_lock_destroy): Define as macros always.
49020         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49021         glthread_lock_lock.
49022         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49023         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49024         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49025         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49026         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49027         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49028         (glthread_recursive_lock_lock_func): Renamed from
49029         glthread_recursive_lock_lock.
49030         (glthread_recursive_lock_unlock_func): Renamed from
49031         glthread_recursive_lock_unlock.
49032         (glthread_recursive_lock_destroy_func): Renamed from
49033         glthread_recursive_lock_destroy.
49034
49035 2008-08-14  Bruno Haible  <bruno@clisp.org>
49036
49037         * lib/glthread/lock.h: Renamed from lib/lock.h.
49038         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49039         * lib/glthread/tls.h: Renamed from lib/tls.h.
49040         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49041         * lib/fstrcmp.c: Update includes.
49042         * lib/strsignal.c: Update includes.
49043         * modules/lock (Files, Makefile.am): Update.
49044         (Include): Change to "glthread/lock.h".
49045         * modules/tls (Files, Makefile.am): Update.
49046         (Include): Change to "glthread/tls.h".
49047         * tests/test-lock.c: Update includes.
49048         * tests/test-tls.c: Update includes.
49049         * NEWS: Mention the renamed header files.
49050
49051 2008-08-11  Jim Meyering  <meyering@redhat.com>
49052
49053         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49054
49055 2008-08-11  Eric Blake  <ebb9@byu.net>
49056
49057         test-c-stack: avoid C99-ism
49058         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49059         before statement.
49060         Reported by Alain Guibert.
49061
49062 2008-08-10  Jim Meyering  <meyering@redhat.com>
49063
49064         ensure that return value of uinttostr et al are not ignored
49065         * lib/inttostr.h (__GNUC_PREREQ): Define.
49066         (__attribute_warn_unused_result__): Define.
49067         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49068
49069 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49070
49071         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49072         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49073
49074 2008-08-07  Jim Meyering  <meyering@redhat.com>
49075
49076         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49077
49078         * modules/mkstemp (License): Relicense under LGPLv2+.
49079         * modules/tempname (License): Likewise.
49080
49081 2008-08-06  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/poll.c (poll): Further micro-optimization.
49084
49085 2008-08-06  Jim Meyering  <meyering@redhat.com>
49086
49087         inet_pton.c: use locale-independent tolower
49088         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49089         (inet_pton6): Use c_tolower rather than tolower.
49090         * modules/inet_pton (Depends-on): Add c-ctype.
49091
49092 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49093
49094         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49095         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49096
49097 2008-08-06  Jim Meyering  <meyering@redhat.com>
49098
49099         * modules/inet_pton (License): Relicense under LGPLv2+.
49100
49101 2008-08-03  Bruno Haible  <bruno@clisp.org>
49102
49103         Additional non-aborting API for lock and tls.
49104         * lib/lock.h: Include <errno.h>.
49105         (glthread_lock_init): New macro/function.
49106         (gl_lock_init): Define as wrapper around glthread_lock_init.
49107         (glthread_lock_lock): New macro/function.
49108         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49109         (glthread_lock_unlock): New macro/function.
49110         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49111         (glthread_lock_destroy): New macro/function.
49112         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49113         (glthread_rwlock_init): New macro/function.
49114         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49115         (glthread_rwlock_rdlock): New macro/function.
49116         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49117         (glthread_rwlock_wrlock): New macro/function.
49118         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49119         (glthread_rwlock_unlock): New macro/function.
49120         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49121         (glthread_rwlock_destroy): New macro/function.
49122         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49123         (glthread_recursive_lock_init): New macro/function.
49124         (gl_recursive_lock_init): Define as wrapper around
49125         glthread_recursive_lock_init.
49126         (glthread_recursive_lock_lock): New macro/function.
49127         (gl_recursive_lock_lock): Define as wrapper around
49128         glthread_recursive_lock_lock.
49129         (glthread_recursive_lock_unlock): New macro/function.
49130         (gl_recursive_lock_unlock): Define as wrapper around
49131         glthread_recursive_lock_unlock.
49132         (glthread_recursive_lock_destroy): New macro/function.
49133         (gl_recursive_lock_destroy): Define as wrapper around
49134         glthread_recursive_lock_destroy.
49135         (glthread_once): New macro/function.
49136         (gl_once): Define as wrapper around glthread_once.
49137         Update function declarations.
49138         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49139         glthread_rwlock_init. Return error code.
49140         (glthread_rwlock_rdlock_multithreaded): Renamed from
49141         glthread_rwlock_rdlock. Return error code.
49142         (glthread_rwlock_wrlock_multithreaded): Renamed from
49143         glthread_rwlock_wrlock. Return error code.
49144         (glthread_rwlock_unlock_multithreaded): Renamed from
49145         glthread_rwlock_unlock. Return error code.
49146         (glthread_rwlock_destroy_multithreaded): Renamed from
49147         glthread_rwlock_destroy. Return error code.
49148         (glthread_recursive_lock_init_multithreaded): Renamed from
49149         glthread_recursive_lock_init. Return error code.
49150         (glthread_recursive_lock_lock_multithreaded): Renamed from
49151         glthread_recursive_lock_lock. Return error code.
49152         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49153         glthread_recursive_lock_unlock. Return error code.
49154         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49155         glthread_recursive_lock_destroy. Return error code.
49156         (glthread_once_call): Make static.
49157         (glthread_once_multithreaded): Renamed from glthread_once.
49158         * lib/tls.h: Include <errno.h>.
49159         (glthread_tls_key_init): New macro/function.
49160         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49161         (glthread_tls_set): New macro/function.
49162         (gl_tls_set): Define as wrapper around glthread_tls_set.
49163         (glthread_tls_key_destroy): New macro/function.
49164         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49165         Update function declarations.
49166         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49167         glthread_tls_get.
49168         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49169
49170 2008-08-04  Eric Blake  <ebb9@byu.net>
49171
49172         gnumakefile: use space, not TAB, outside of targets
49173         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49174
49175 2008-08-02  Jim Meyering  <meyering@redhat.com>
49176
49177         getdate.y: avoid locale-dependent date parsing failure
49178         In Turkish locales, getdate would fail to recognize keywords
49179         containing a lowercase "i".  The solution is not to rely on
49180         locale-sensitive case-conversion.
49181         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49182         (lookup_word): Use c_toupper in place of toupper.
49183         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49184         Reported by Vefa Bicakci <bicave@superonline.com> in
49185         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49186         * modules/getdate (Depends-on): Add c-ctype.
49187
49188 2008-08-02  Bruno Haible  <bruno@clisp.org>
49189
49190         * gnulib-tool (func_import): When updating or creating a .gitignore
49191         file, prepend each added line with a slash, and ignore leading slashes
49192         from the existing lines.
49193         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49194
49195 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49196
49197         Portability fix for GNU make 3.79.1.
49198         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49199         versions do not understand.
49200
49201 2008-08-01  Bruno Haible  <bruno@clisp.org>
49202
49203         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49204         * tests/test-isnanf.h (zero): New variable.
49205         (main): Avoid literal -0.0f.
49206         * tests/test-isnand.h (zero): New variable.
49207         (main): Avoid literal -0.0.
49208         * tests/test-isnanl.h (zero): New variable.
49209         (main): Avoid literal -0.0L.
49210         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49211         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49212         -0.0, -0.0L.
49213         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49214         (test_signbitd): Avoid literal -0.0.
49215         (test_signbitl): Avoid literal -0.0L.
49216         * tests/test-ceilf1.c (zero): New variable.
49217         (main): Avoid literal -0.0f.
49218         * tests/test-ceill.c (zero): New variable.
49219         (main): Avoid literal -0.0L.
49220         * tests/test-floorf1.c (zero): New variable.
49221         (main): Avoid literal -0.0f.
49222         * tests/test-floorl.c (zero): New variable.
49223         (main): Avoid literal -0.0L.
49224         * tests/test-roundf1.c (zero): New variable.
49225         (main): Avoid literal -0.0f.
49226         * tests/test-round1.c (zero): New variable.
49227         (main): Avoid literal -0.0.
49228         * tests/test-roundl.c (zero): New variable.
49229         (main): Avoid literal -0.0L.
49230         * tests/test-truncf1.c (zero): New variable.
49231         (main): Avoid literal -0.0f.
49232         * tests/test-trunc1.c (zero): New variable.
49233         (main): Avoid literal -0.0.
49234         * tests/test-truncl.c (zero): New variable.
49235         (main): Avoid literal -0.0L.
49236         * tests/test-frexp.c (zero): New variable.
49237         (main): Avoid literal -0.0.
49238         * tests/test-frexpl.c (zero): New variable.
49239         (main): Avoid literal -0.0L.
49240         * tests/test-ldexpl.c (zero): New variable.
49241         (main): Avoid literal -0.0L.
49242         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49243         (zerod, zerol): New variables.
49244         (test_function): Avoid literals -0.0, -0.0L.
49245         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49246         (zerod, zerol): New variables.
49247         (test_function): Avoid literals -0.0, -0.0L.
49248         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49249         (zerod, zerol): New variables.
49250         (test_function): Avoid literals -0.0, -0.0L.
49251         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49252         (zerod, zerol): New variables.
49253         (test_function): Avoid literals -0.0, -0.0L.
49254         * tests/test-strtod.c (zero): New variable.
49255         (main): Avoid literal -0.0.
49256         Reported by Jonathan C. Patschke <jp@centtech.com>.
49257
49258 2008-07-31  Jim Meyering  <meyering@redhat.com>
49259
49260         sha256.h: correct definition of SHA224_DIGEST_SIZE
49261         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49262         Reported by Paulie Pena IV <paulie4@gmail.com>.
49263         Define as 224 / 8, rather than as a literal.
49264         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49265         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49266         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49267
49268 2008-07-31  Bruno Haible  <bruno@clisp.org>
49269
49270         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49271         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49272         Reported by Jonathan Patschke <jp@centtech.com>.
49273
49274 2008-07-31  Bruno Haible  <bruno@clisp.org>
49275
49276         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49277         Reported by Paolo Bonzini <bonzini@gnu.org>.
49278
49279 2008-07-30  Eric Blake  <ebb9@byu.net>
49280
49281         test-strtod: allow compilation without -lm
49282         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49283         Reported by Dennis Clarke <blastwave@gmail.com>.
49284
49285 2008-07-28  Jim Meyering  <meyering@redhat.com>
49286
49287         bootstrap: work also when there are no .po files in po/
49288         * build-aux/bootstrap (update_po_files): Complete the change
49289         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49290
49291 2008-07-27  Jim Meyering  <meyering@redhat.com>
49292
49293         * users.txt: Add zile.
49294
49295 2008-07-26  Ben Pfaff  <blp@gnu.org>
49296
49297         Add missing dependencies on new m4/exponent[fdl].m4 files.
49298         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49299         * modules/isnand-nolibm: Add m4/exponentd.m4.
49300         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49301         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49302         m4/isnan[fdl].m4, because the macros actually used moved.
49303         Reported by Jim Meyering.
49304
49305 2008-07-14  Ben Pfaff  <blp@gnu.org>
49306
49307         Add isinf module.
49308         * lib/isinf.c: New file.
49309         * lib/math.in.h: Define isinf macro if we have decided to replace
49310         it.
49311         * m4/isinf.m4: New file.
49312         * m4/math_h.m4: Initialize and substitute variables for isinf
49313         module.
49314         * modules/isinf: New file.
49315         * modules/isinf-tests: New file.
49316         * modules/math: Add substitutions for new module.
49317         * tests/test-isinf.c: New file.
49318         * doc/posix-functions/isinf.texi: Mention new module.
49319         * MODULES.html.sh: Mention new module.
49320
49321 2008-07-14  Ben Pfaff  <blp@gnu.org>
49322
49323         Factor out some macros for use by additional modules.
49324         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49325         exponentf.m4.
49326         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49327         exponentd.m4.
49328         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49329         file exponentl.m4.
49330         * m4/exponentf.m4: New file.
49331         * m4/exponentd.m4: New file.
49332         * m4/exponentl.m4: New file.
49333         * modules/isnanf: Use new file m4/exponentf.m4.
49334         * modules/isnand: Use new file m4/exponentd.m4.
49335         * modules/isnanl: Use new file m4/exponentl.m4.
49336
49337 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49338
49339         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49340         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49341         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49342         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49343
49344         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49345         readlink on platforms without PATH_MAX.
49346
49347 2008-07-21  Eric Blake  <ebb9@byu.net>
49348
49349         Warn, not fail, on stale version.
49350         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49351
49352         Don't allow installation with stale devel version number.
49353         * top/GNUmakefile (_is-install-target): New macro.
49354         (_curr-ver): Forbid installation with stale version number.
49355
49356 2008-07-20  Bruno Haible  <bruno@clisp.org>
49357
49358         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49359         TESTS_ENVIRONMENT.
49360         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49361
49362 2008-07-20  Bruno Haible  <bruno@clisp.org>
49363
49364         * lib/c-stack.h (c_stack_action): Add documentation.
49365         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49366
49367 2008-07-20  Bruno Haible  <bruno@clisp.org>
49368
49369         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49370         * modules/readlink (License): Likewise.
49371
49372 2008-07-17  Eric Blake  <ebb9@byu.net>
49373
49374         * modules/c-stack (Link): Fix typo.
49375
49376         Make c-stack use libsigsegv, when available.
49377         * modules/c-stack (Depends-on): Add libsigsegv.
49378         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49379         needed.
49380         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49381         (segv_handler, overflow_handler, c_stack_action)
49382         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49383         implementation when libsigsegv is available, but only when using
49384         the library is necessary.
49385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49386         comment, explaining why XSI check fails on Linux.
49387         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49388         * tests/test-c-stack2.sh: Tweak skip message.
49389         * NEWS: Document new link-time requirements.
49390
49391 2008-07-16  Eric Blake  <ebb9@byu.net>
49392
49393         c-stack: Expose false positives when not using libsigsegv.
49394         * modules/c-stack-tests (Files): Expand test.
49395         * tests/test-c-stack.c (main): Add means to conditionally trigger
49396         non-overflow SIGSEGV.
49397         * tests/test-c-stack2.sh: New file.
49398
49399 2008-07-14  Bruno Haible  <bruno@clisp.org>
49400
49401         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49402         Reported by Eric Blake.
49403
49404 2008-07-14  Sam Steingold  <sds@gnu.org>
49405             Bruno Haible  <bruno@clisp.org>
49406
49407         New module libsigsegv.
49408         * modules/libsigsegv: New file.
49409         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49410         modifications.
49411         * MODULES.html.sh (Signal handling): New section.
49412
49413 2008-07-14  Bruno Haible  <bruno@clisp.org>
49414
49415         * modules/unictype/ctype-* (Description): Add the word "function".
49416         Improves the resulting doc in MODULES.html.
49417
49418 2008-07-12  Ben Pfaff  <blp@gnu.org>
49419
49420         Add longlong module.
49421         * modules/longlong: New file.
49422
49423 2008-07-12  Bruno Haible  <bruno@clisp.org>
49424
49425         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49426         to empty.
49427
49428 2008-07-10  Ben Pfaff  <blp@gnu.org>
49429
49430         Add isnan module.
49431         * doc/posix-functions/isnan.texi: Mention new module.
49432         * lib/math.in.h: Define isnan macro if we have decided to replace
49433         it.
49434         * m4/isnan.m4: New file.
49435         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49436         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49437         also.
49438         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49439         redundancy.
49440         * m4/math_h.m4: Initialize and substitute variables for isnan
49441         module.
49442         * modules/isnan: New file.
49443         * modules/isnan-tests: New file.
49444         * modules/math: Add substitutions for new module.
49445         * tests/test-isnan.c: New file.
49446         * MODULES.html.sh: Mention new module.
49447
49448 2008-07-10  Ben Pfaff  <blp@gnu.org>
49449
49450         Add isnanf module.
49451         * lib/isnanf.m4: New file.
49452         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49453         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49454         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49455         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49456         * modules/isnanf: New file.
49457         * modules/isnanf-tests: New file.
49458         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49459         files.
49460         * tests/test-isnanf-nolibm.c: factored most of its contents into
49461         new file tests/test-isnanf.h.
49462         * tests/test-isnanf.h: New file.
49463         * tests/test-isnanf.c: New file.
49464         * MODULES.html.sh: Mention new module.
49465         * doc/glibc-functions/isnanf.texi: Mention new module.
49466
49467 2008-07-10  Ben Pfaff  <blp@gnu.org>
49468
49469         Add isnand module.
49470         * lib/isnand.h: New file.
49471         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49472         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49473         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49474         functionality also.
49475         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49476         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49477         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49478         * modules/isnand: New file.
49479         * modules/isnand-tests: New file.
49480         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49481         files.
49482         * tests/test-isnand-nolibm.c: factored most of its contents into
49483         new file tests/test-isnand.h.
49484         * tests/test-isnand.h: New file.
49485         * tests/test-isnand.c: New file.
49486         * MODULES.html.sh: Mention new module.
49487
49488 2008-07-10  Ben Pfaff  <blp@gnu.org>
49489
49490         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49491         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49492         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49493         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49494         * modules/isnanf-nolibm: Update references to renamed files.
49495         * modules/isnand-nolibm: Likewise.
49496         * modules/isnanf-nolibm-tests: Likewise.
49497         * modules/isnand-nolibm-tests: Likewise.
49498         * lib/frexp.c: Likewise.
49499         * lib/isfinite.c: Likewise.
49500         * lib/signbitd.c: Likewise.
49501         * lib/signbitf.c: Likewise.
49502         * lib/vasnprintf.c: Likewise.
49503         * tests/test-ceilf1.c: Likewise.
49504         * tests/test-ceilf2.c: Likewise.
49505         * tests/test-floorf1.c: Likewise.
49506         * tests/test-floorf2.c: Likewise.
49507         * tests/test-frexp.c: Likewise.
49508         * tests/test-round1.c: Likewise.
49509         * tests/test-round2.c: Likewise.
49510         * tests/test-roundf1.c: Likewise.
49511         * tests/test-strtod.c: Likewise.
49512         * tests/test-trunc1.c: Likewise.
49513         * tests/test-trunc2.c: Likewise.
49514         * tests/test-truncf1.c: Likewise.
49515         * tests/test-truncf2.c: Likewise.
49516         * NEWS: Mention the renamed header files.
49517
49518 2008-07-11  Jim Meyering  <meyering@redhat.com>
49519
49520         vc-list-files: make the last-resort awk code more portable
49521         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49522         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49523         does not support it.
49524
49525 2008-07-10  Eric Blake  <ebb9@byu.net>
49526
49527         Work with tar's bootstrap.
49528         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49529         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49530         an m4 comment.
49531
49532 2008-07-09  Jim Meyering  <meyering@redhat.com>
49533
49534         posix-shell.m4: fix typo that made this test malfunction
49535         * m4/posix-shell.m4: Remove capitalization in variable name.
49536
49537 2008-07-08  Bruno Haible  <bruno@clisp.org>
49538
49539         * m4/onceonly.m4: Update comments.
49540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49541
49542 2008-07-04  Jim Meyering  <meyering@redhat.com>
49543
49544         * users.txt: Add vc-dwim.
49545         (bison, coreutils): Use the gitweb URL.
49546
49547 2008-07-03  Jim Meyering  <meyering@redhat.com>
49548
49549         * users.txt: Add libffcall.  From Sam Steingold.
49550
49551 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49552
49553         getdate.y: do not ignore TZ with relative day, month or year offset
49554         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49555         relative-date-handling, since otherwise, the latter would clobber the
49556         sole output (an updated Start value) of the tz-handling block.
49557         * tests/test-getdate.c: Tests for the fix
49558
49559 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49560
49561         Recognize 'foo_LIBRARIES += libgnu.a'.
49562         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49563         makefile snippet has already specified an installation location,
49564         also using '+='.
49565
49566 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49567
49568         getdate.y: factor out common actions
49569         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49570         Use them in place of open-coded actions.
49571
49572 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49573
49574         Add self-test for getdate module.
49575         * modules/getdate-tests: New file.
49576         * tests/test-getdate.c: New file.
49577
49578 2008-06-29  Bruno Haible  <bruno@clisp.org>
49579
49580         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49581         .gitignore.
49582         Reported by Sylvain Beucler <beuc@beuc.net>.
49583
49584 2008-06-29  Bruno Haible  <bruno@clisp.org>
49585
49586         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49587         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49588
49589 2008-06-29  Bruno Haible  <bruno@clisp.org>
49590
49591         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49592         EXTRA_DIST.
49593         Reported by Sylvain Beucler <beuc@beuc.net>.
49594
49595 2008-06-26  Jim Meyering  <meyering@redhat.com>
49596
49597         make several modules depend on the "open" module
49598         This provides slightly increased consistency when opening-for-write
49599         the name of a non-directory spelled with a trailing slash.
49600         * modules/chdir-safer: Likewise.
49601         * modules/chown: Likewise.
49602         * modules/clean-temp: Likewise.
49603         * modules/copy-file: Likewise.
49604         * modules/fchdir: Likewise.
49605         * modules/fcntl-safer: Likewise.
49606         * modules/pipe: Likewise.
49607         * modules/utime: Likewise.
49608         Prompted by Eric Blake and Bruno Haible.
49609
49610 2008-06-24  Andreas Schwab  <schwab@suse.de>
49611
49612         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49613         literals can be used as initializers for global variables.
49614
49615 2008-06-23  Eric Blake  <ebb9@byu.net>
49616
49617         Make gnulib-cache.m4 easier to diff.
49618         * gnulib-tool (func_import): Allow newlines when reading cached
49619         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49620
49621 2008-06-23  Bruno Haible  <bruno@clisp.org>
49622
49623         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49624         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49625         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49626         m4/signalblocking.m4.
49627         (gl_PREREQ_SIGACTION): Don't invoke it.
49628         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49629         gl_PREREQ_SIG_HANDLER_H.
49630         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49631         Don't check for sigaction here.
49632
49633 2008-06-23  Bruno Haible  <bruno@clisp.org>
49634
49635         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49636         (install_handlers): Don't set the SA_RESETHAND flag.
49637
49638 2008-06-23  Bruno Haible  <bruno@clisp.org>
49639
49640         * m4/sigaction.m4: Comment fixes.
49641         * lib/signal.in.h: Likewise.
49642
49643 2008-06-23  Eric Blake  <ebb9@byu.net>
49644
49645         Fix typo.
49646         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49647
49648         Avoid SA_ namespace.
49649         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49650         Reported by Ralf Wildenhues.
49651
49652         Avoid test failure due to SA_RESTORER.
49653         * tests/test-sigaction.c (SA_MASK): New macro.
49654         (main): Avoid failing due to extension flags being set.
49655         Reported by Jim Meyering.
49656
49657         Revert use of sig-handler.h in sigprocmask.c.
49658         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49659         it requires the existence of struct sigaction.
49660         * lib/sigprocmask.c (handler_t): Restore typedef.
49661         (rpl_signal, old_handlers): Use local type.
49662
49663 2008-06-22  Bruno Haible  <bruno@clisp.org>
49664
49665         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49666         conditionally.
49667         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49668
49669 2008-06-22  Bruno Haible  <bruno@clisp.org>
49670
49671         * doc/posix-functions/siginterrupt.texi: Move note.
49672
49673         * lib/signal.in.h (SA_RESTART): New macro.
49674         * lib/sigaction.c: Update comment.
49675
49676         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49677
49678         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49679         (gl_PREREQ_SIGPROCMASK): Invoke it.
49680         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49681
49682         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49683
49684         * lib/sigprocmask.c: Update a comment.
49685
49686 2008-06-21  Eric Blake  <ebb9@byu.net>
49687
49688         Use sigaction module rather than signal().
49689         * modules/c-stack (Depends-on): Add sigaction.
49690         * modules/fatal-signal (Depends-on): Likewise.
49691         * modules/nanosleep (Depends-on): Likewise.
49692         * modules/sigprocmask (Files): Add sig-handler.h.
49693         * modules/sigaction (Files): Likewise.
49694         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49695         Eggert.
49696         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49697         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49698         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49699         (init_fatal_signals): Likewise.
49700         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49701         (siginterrupt): Delete fallback.
49702         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49703         instead.
49704         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49705         siginterrupt.
49706
49707         New module sigaction, for mingw.
49708         * modules/sigaction: New module...
49709         * modules/sigaction-tests: ...and its test.
49710         * m4/sigaction.m4: New file.
49711         * lib/sigaction.c: Likewise.
49712         * tests/test-sigaction.c: Likewise.
49713         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49714         * modules/signal (Makefile.am): Likewise.
49715         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49716         needed.
49717         * doc/posix-headers/signal.texi (signal.h): Mention provided
49718         types.
49719         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49720         that sigaction is preferable.
49721         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49722         module.
49723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49724         sigaction.
49725
49726         Improve robustness of sigprocmask by overriding signal.
49727         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49728         is in use.
49729         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49730         (SIGKILL, SIGSTOP): Provide fallbacks.
49731         (rpl_signal): Implement.
49732         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49733         signal can be called inside handlers.
49734
49735         Fix nanosleep module on mingw.
49736         * modules/nanosleep (Depends-on): Add sys_select.
49737         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49738
49739         Fix licensing of sigprocmask.
49740         * modules/raise (License): Relicense as LGPL.
49741
49742 2008-06-21  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49745         result if it contains question marks.
49746         Reported by Michael Geng <linux@michaelgeng.de>.
49747
49748 2008-06-19  Bruno Haible  <bruno@clisp.org>
49749
49750         Fix CVS-ism.
49751         * doc/gnulib.texi: Include updated-stamp.texi.
49752         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49753         (updated-stamp.texi): New rule.
49754         (gnulib.info): Depend on it.
49755         * doc/.gitignore: Add updated-stamp.texi.
49756         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49757
49758 2008-06-19  Bruno Haible  <bruno@clisp.org>
49759
49760         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49761         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49762
49763 2008-06-19  Eric Blake  <ebb9@byu.net>
49764
49765         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49766         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49767         Reported by Stepan Kasal.
49768
49769 2008-06-18  Bruno Haible  <bruno@clisp.org>
49770
49771         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49772         Reported by Eric Blake.
49773
49774 2008-06-18  Eric Blake  <ebb9@byu.net>
49775
49776         Work around cygwin 1.5.25 strsignal bug.
49777         * tests/test-strsignal.c: Allow for const char *.
49778         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49779
49780 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49781
49782         * users.txt: Update URL to article and add author/date
49783         information.
49784
49785 2008-06-17  Bruno Haible  <bruno@clisp.org>
49786
49787         New macro gl_DISABLE_THREADS.
49788         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49789         if the user did not pass --enable-threads or --disable-threads option.
49790         (gl_DISABLE_THREADS): New macro.
49791         Reported by Eric Blake <ebb9@byu.net>.
49792
49793 2008-06-17  Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49796         when the macro ignores it.
49797         Based on a patch by Eric Blake <ebb9@byu.net>.
49798
49799 2008-06-17  Bruno Haible  <bruno@clisp.org>
49800
49801         * modules/tls (License): Change to LGPLv2+.
49802         Reported by Eric Blake.
49803
49804 2008-06-17  Eric Blake  <ebb9@byu.net>
49805
49806         Simplify c-stack prerequisites.
49807         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49808         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49809         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49810         check.
49811         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49812         <sys/resource.h>.
49813
49814         Move c-stack test into testsuite.
49815         * modules/c-stack-tests: New file.
49816         * lib/c-stack.c [DEBUG]: Move test program...
49817         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49818         fail test if sigaltstack is lacking.
49819         * tests/test-c-stack.sh: New driver file.
49820
49821 2008-06-16  Eric Blake  <ebb9@byu.net>
49822
49823         Use raise module consistently.
49824         * modules/fatal-signal (Depends-on): Add raise.
49825         * modules/sigprocmask (Depends-on): Likewise.
49826         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49827         * lib/sigprocmask.c (sigprocmask): Likewise.
49828         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49829         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49830
49831         Fix compliance bug in sigpending.
49832         * lib/sigprocmask.c (sigpending): Return pending array via
49833         parameter, not return value.
49834
49835 2008-06-14  Eric Blake  <ebb9@byu.net>
49836
49837         Improve obstack-printf test code.
49838         * tests/test-obstack-printf.c (test_function): Fix comment, and
49839         simplify usage of obstack_* in macros.  Add a test for coverage.
49840         Reported by Bruno Haible.
49841
49842 2008-06-14  Bruno Haible  <bruno@clisp.org>
49843
49844         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49845         array size as a constant, not as a const variable.
49846         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49847         AC_USE_SYSTEM_EXTENSIONS.
49848         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49849         Test whether the obstack_printf function actually exists.
49850         * modules/obstack-printf (Depends-on): Add extensions.
49851         (Include): Remove obstack.h.
49852         * modules/obstack-printf-posix (Depends-on): Add extensions.
49853         (Include): Remove obstack.h.
49854
49855 2008-06-13  Eric Blake  <ebb9@byu.net>
49856
49857         Add obstack-printf and obstack-printf-posix modules.
49858         * modules/obstack-printf: New file.
49859         * modules/obstack-printf-posix: Likewise.
49860         * MODULES.html.sh (Misc): Mention them.
49861         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49862         Likewise.
49863         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49864         Likewise.
49865         * modules/stdio (Makefile.am): Accomodate new modules.
49866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49867         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49868         Declare.
49869         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49870         functions.
49871         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49872         (gl_REPLACE_OBSTACK_PRINTF): New macros
49873         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49874         * tests/test-obstack-printf.c: New file.
49875         * modules/obstack-printf-tests: Likewise.
49876         * modules/obstack-printf-posix-tests: Likewise.
49877
49878 2008-06-11  Bruno Haible  <bruno@clisp.org>
49879
49880         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49881         * lib/open.c: Include errno.h.
49882         (open): Fail when attempting to write to a file that has a trailing
49883         slash.
49884         * tests/test-open.c (main): Test against trailing slash bug.
49885         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49886
49887 2008-06-10  Bruno Haible  <bruno@clisp.org>
49888
49889         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49890         for $? to work inside the trap command, with various /bin/sh-s.
49891         * tests/test-vc-list-files-cvs.sh: Likewise.
49892
49893 2008-06-10  Bruno Haible  <bruno@clisp.org>
49894
49895         * lib/acl-internal.h: Don't include gettext.h here.
49896         * lib/set-mode-acl.c: Include gettext.h here.
49897         * lib/copy-acl.c: Likewise.
49898
49899 2008-06-10  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49902         * lib/wait-process.c (wait_subprocess): Likewise.
49903         * lib/execute.h (execute): Add termsigp argument.
49904         * lib/execute.c (execute): Likewise.
49905         * lib/csharpcomp.c (compile_csharp_using_pnet,
49906         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49907         * lib/csharpexec.c (execute_csharp_using_pnet,
49908         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49909         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49910         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49911         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49912         is_jikes_present): Update.
49913         * lib/javaexec.c (execute_java_class): Update.
49914         * lib/javaversion.c (execute_and_read_line): Update.
49915         * NEWS: Document the changes.
49916         Reported by Eric Blake.
49917
49918 2008-06-10  Eric Blake  <ebb9@byu.net>
49919
49920         Add missing include.
49921         * tests/test-strstr.c (includes): Add <signal.h>.
49922         * tests/test-strcasestr.c (includes): Likewise.
49923         * tests/test-memmem.c (includes): Likewise.
49924
49925 2008-06-10  Bruno Haible  <bruno@clisp.org>
49926
49927         * lib/wait-process.c (wait_subprocess): Add an assertion.
49928
49929 2008-06-10  Bruno Haible  <bruno@clisp.org>
49930
49931         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49932
49933 2008-06-10  Bruno Haible  <bruno@clisp.org>
49934
49935         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49936         using alarm().
49937         * tests/test-strcasestr.c (main): Likewise.
49938         * tests/test-strstr.c (main): Likewise.
49939
49940 2008-06-09  Bruno Haible  <bruno@clisp.org>
49941
49942         Work around the Solaris 10 ACE ACLs ABI change.
49943         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49944         declare if ACL_NO_TRIVIAL is present.
49945         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49946         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49947         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49948         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49949         define if ACL_NO_TRIVIAL is present.
49950         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49951         and use the current ABI.
49952         (file_has_acl): Use same #if condition as elsewhere.
49953         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49954         in use, and use the current ABI.
49955         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49956         Reported by Jim Meyering.
49957
49958 2008-06-09  Eric Blake  <ebb9@byu.net>
49959
49960         Work around environments that (stupidly) ignore SIGALRM.
49961         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49962         before using alarm().
49963         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49964         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49965         Reported by Ian Beckwith <ianb@erislabs.net>.
49966
49967         Produce autobuild blurb earlier in log.
49968         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49969
49970 2008-06-09  Jim Meyering  <meyering@redhat.com>
49971         and OndÅ™ej Vašík  <ovasik@redhat.com>
49972
49973         utimens.c: correct kernel bug work-around
49974         OndÅ™ej Vašík found that the invalid return value of 280 indicates
49975         failure, not success, and the kernel bug we're trying to work
49976         around affects not just the utimensat call, but also the fallback
49977         futimens call.
49978         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49979         not success.
49980         [HAVE_FUTIMENS]: Use the same work-around, here.
49981
49982 2008-06-09  Jim Meyering  <meyering@redhat.com>
49983
49984         add more guards around definition of ACE_-related code
49985         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49986         ALLOW and ACE_OWNER are also defined.
49987
49988 2008-06-08  Bruno Haible  <bruno@clisp.org>
49989
49990         * lib/acl-internal.h: Add me as co-author.
49991         * lib/file-has-acl.c: Likewise.
49992         * lib/set-mode-acl.c: Likewise.
49993         * lib/copy-acl.c: Likewise.
49994
49995 2008-06-08  Bruno Haible  <bruno@clisp.org>
49996
49997         Add support for AIX ACLs.
49998         * lib/acl-internal.h (acl_nontrivial): New declaration.
49999         * lib/file-has-acl.c (acl_nontrivial): New function.
50000         (file_has_acl): Add implementation using AIX 4 ACL API.
50001         * lib/set-mode-acl.c (qset_acl): Likewise.
50002         * lib/copy-acl.c (qcopy_acl): Likewise.
50003
50004 2008-06-08  Bruno Haible  <bruno@clisp.org>
50005
50006         Add support for HP-UX ACLs.
50007         * lib/acl-internal.h (acl_nontrivial): New declaration.
50008         * lib/file-has-acl.c (acl_nontrivial): New function.
50009         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50010         * lib/set-mode-acl.c (qset_acl): Likewise.
50011         * lib/copy-acl.c (qcopy_acl): Likewise.
50012
50013 2008-06-08  Bruno Haible  <bruno@clisp.org>
50014
50015         Add support for Cygwin ACLs.
50016         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50017         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50018         the chmod_or_fchmod call.
50019         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50020
50021 2008-06-08  Bruno Haible  <bruno@clisp.org>
50022
50023         Fix bug with setuid modes in Solaris 10+ code.
50024         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50025         succeeded, when the mode contains some special bits.
50026
50027 2008-06-08  Bruno Haible  <bruno@clisp.org>
50028
50029         Add support for Solaris 7..10 ACLs.
50030         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50031         declarations.
50032         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50033         functions.
50034         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50035         * lib/set-mode-acl.c (qset_acl): Likewise.
50036         * lib/copy-acl.c (qcopy_acl): Likewise.
50037
50038 2008-06-08  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50041         declaration.
50042         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50043         (acl_access_nontrivial): Remove MacOS X case.
50044         (file_has_acl): Use acl_extended_nontrivial.
50045         * lib/copy-acl.c (qcopy_acl): Likewise.
50046
50047 2008-06-08  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50050
50051 2008-06-08  Jim Meyering  <meyering@redhat.com>
50052
50053         * modules/acl (Maintainer): Add Bruno Haible.
50054
50055 2008-06-07  Bruno Haible  <bruno@clisp.org>
50056
50057         Improve support for Tru64 ACLs.
50058         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50059         ACL on OSF/1.
50060
50061 2008-06-07  Bruno Haible  <bruno@clisp.org>
50062
50063         Add support for MacOS X ACLs.
50064         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50065         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50066         * lib/set-mode-acl.c (qset_acl): Likewise.
50067         * lib/copy-acl.c (qcopy_acl): Likewise.
50068
50069 2008-06-07  Bruno Haible  <bruno@clisp.org>
50070
50071         Fix memory leak introduced on 2008-05-22.
50072         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50073         use.
50074
50075 2008-06-07  Bruno Haible  <bruno@clisp.org>
50076
50077         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50078         to construct an empty ACL.
50079
50080 2008-06-07  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50083         precisely.
50084         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50085
50086 2008-06-07  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50089         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50090
50091 2008-06-07  Bruno Haible  <bruno@clisp.org>
50092
50093         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50094         regardless of POSIX.
50095         * doc/posix-functions/_longjmp.texi: Likewise.
50096         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50097         SystemV platform in this case.
50098
50099 2008-06-06  Eric Blake  <ebb9@byu.net>
50100
50101         Document abort() bugs.
50102         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50103
50104         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50105         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50106         sigsetjmp.
50107         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50108         siglongjmp, but only as a macro.
50109         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50110         is obsolete.
50111         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50112
50113         Tweak documentation to cover cygwin argz bugs.
50114         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50115         argz bug fix; no code change needed since no cygwin releases
50116         occurred between the last fix and the bug being tested.
50117         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50118         module and recently fixed cygwin bugs.
50119         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50120         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50121         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50122         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50123         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50124         Likewise.
50125         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50126         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50127         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50128         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50129         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50130         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50131         Likewise.
50132
50133         Avoid gcc warning on cygwin.
50134         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50135         !ACL_NO_TRIVIAL]: Avoid unused variable.
50136
50137 2008-06-05  Eric Blake  <ebb9@byu.net>
50138
50139         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50140         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50141         git-version-gen fails to come up with a version.
50142         Reported by Simon Josefsson.
50143
50144 2008-06-05  Jim Meyering  <meyering@redhat.com>
50145             Paul Eggert  <eggert@cs.ucla.edu>
50146
50147         utimens.c: work around a probable Linux kernel bug
50148         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50149         appears to be a kernel bug that causes utimensat to return 280
50150         instead of 0, indicating success.
50151
50152 2008-06-04  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50155         2008-06-01 commit.
50156
50157 2008-06-04  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50160         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50161         (file_has_acl): Use it. Save errno afterwards.
50162         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50163
50164 2008-06-03  Bruno Haible  <bruno@clisp.org>
50165
50166         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50167         draft code. Simplify #ifs.
50168         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50169         Put Solaris code after POSIX-draft code. Fix comments regarding
50170         Solaris 10, HP-UX. Mention Cygwin.
50171         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50172
50173 2008-06-03  Eric Blake  <ebb9@byu.net>
50174
50175         Provide fallback for older kernels.
50176         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50177         Provide runtime fallback if kernel lacks support.
50178         Reported by Mike Frysinger.
50179
50180 2008-06-02  Bruno Haible  <bruno@clisp.org>
50181
50182         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50183         it exists.
50184
50185 2008-06-02  Bruno Haible  <bruno@clisp.org>
50186
50187         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50188         * lib/copy-acl.c (qcopy_acl): Update comment.
50189
50190 2008-06-02  Bruno Haible  <bruno@clisp.org>
50191
50192         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50193         like ACL APIs.
50194
50195 2008-06-02  Bruno Haible  <bruno@clisp.org>
50196
50197         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50198         * tests/test-set-mode-acl.sh: Likewise.
50199         * tests/test-copy-acl.sh: Likewise.
50200         * tests/test-copy-file.sh: Likewise.
50201
50202 2008-06-02  Bruno Haible  <bruno@clisp.org>
50203
50204         * tests/test-file-has-acl.sh: Remove unused code.
50205
50206 2008-06-01  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50209         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50210         messages.
50211         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50212
50213 2008-06-01  Bruno Haible  <bruno@clisp.org>
50214
50215         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50216         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50217         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50218         APIs.
50219         * modules/acl-tests (configure.ac): Remove tests now contained in
50220         m4/acl.m4.
50221
50222 2008-06-02  Jim Meyering  <meyering@redhat.com>
50223
50224         announce-gen: use a better key-server host name
50225         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50226         it may be more consistently reliable.  Suggested by Werner Koch
50227         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50228
50229 2008-06-01  Bruno Haible  <bruno@clisp.org>
50230
50231         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50232         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50233
50234 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50235
50236         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50237
50238 2008-06-01  Bruno Haible  <bruno@clisp.org>
50239
50240         New ACL tests.
50241         * tests/test-file-has-acl.sh: New file.
50242         * tests/test-file-has-acl.c: New file.
50243         * tests/test-set-mode-acl.sh: New file.
50244         * tests/test-set-mode-acl.c: New file.
50245         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50246         * tests/test-copy-acl.c: New file.
50247         * modules/acl-tests: New file, based on modules/copy-file-tests.
50248         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50249         (Depends-on): Add acl-tests.
50250         (configure.ac): Remove checks.
50251         (Makefile.am): Don't create test-sameacls program here any more.
50252
50253 2008-06-01  Bruno Haible  <bruno@clisp.org>
50254
50255         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50256         * tests/test-sameacls.c: Include progname.h.
50257         (main): Invoke set_program_name. Portability fixes for MacOS X,
50258         Solaris, HP-UX.
50259
50260 2008-06-01  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50263         function.
50264         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50265
50266 2008-06-01  Bruno Haible  <bruno@clisp.org>
50267
50268         * modules/rpmatch (Depends-on): Add strdup.
50269
50270 2008-06-01  Bruno Haible  <bruno@clisp.org>
50271
50272         * lib/pipe.c: Include unistd-safer.h.
50273         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50274         * modules/pipe (Depends-on): Add unistd-safer.
50275
50276 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50277
50278         * modules/autobuild (configure.ac): Call AB_INIT.
50279
50280 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50281
50282         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50283         Suggested by Bruno Haible <bruno@clisp.org>.
50284
50285 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50286
50287         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50288         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50289         <bruno@clisp.org>.
50290
50291 2008-05-29  Eric Blake  <ebb9@byu.net>
50292
50293         Prefer new POSIX 200x interfaces over futimesat.
50294         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50295         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50296         when available.
50297         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50298
50299 2008-05-28  Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/stpcpy (License): Change to LGPLv2+.
50302         Requested by David Lutterkort <dlutter@redhat.com>.
50303
50304 2008-05-27  Bruno Haible  <bruno@clisp.org>
50305
50306         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50307         current mingw.
50308         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50309
50310 2008-05-27  Bruno Haible  <bruno@clisp.org>
50311
50312         * modules/iconv_open (Link): New section, from module 'iconv'.
50313         * modules/striconv (Link): Likewise.
50314         * modules/striconveh (Link): Likewise.
50315         * modules/xstriconv (Link): Likewise.
50316         * modules/unicodeio (Link): Likewise.
50317         * modules/propername (Link): Likewise.
50318         Reported by Jim Meyering.
50319
50320 2008-05-26  Jim Meyering  <meyering@redhat.com>
50321
50322         sha256: do not artificially restrict buffer length to be < 2^32
50323         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50324         uint32_t to size_t.
50325         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50326         to match.
50327
50328         avoid unaligned access errors, e.g., on sparc
50329         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50330         direct access through a possibly-unaligned uint64* pointer.
50331         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50332         direct access through a possibly-unaligned uint32* pointer.
50333         Prompted by this patch from Tom "spot" Callaway:
50334         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50335
50336         sha512.c: fix typo in comment
50337         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50338
50339 2008-05-25  Bruno Haible  <bruno@clisp.org>
50340
50341         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50342         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50343         (Makefile.am): Update lib_SOURCES.
50344
50345 2008-05-25  Bruno Haible  <bruno@clisp.org>
50346
50347         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50348
50349 2008-05-25  Jim Meyering  <meyering@redhat.com>
50350
50351         useless-if-before-free: freed expr may have white-space differences
50352         * build-aux/useless-if-before-free: Recognize cases in which the
50353         freed expression differs from the tested one in embedded white
50354         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50355         $1 was used, so we can't make any regexp shy.  Improved tests now
50356         detect this.
50357
50358         useless-if-before-free: accept white space in the expression.
50359         * build-aux/useless-if-before-free: For now, any white space
50360         in the expression must be identical in the free argument.
50361
50362         useless-if-before-free: efficiency tweak
50363         * build-aux/useless-if-before-free: Make the expression-matching
50364         regexp "shy".
50365         Make the *outer* regexp shy, not the expr-matching one.
50366
50367         update code-in-comment to accept cast of free arg
50368         * build-aux/useless-if-before-free: Update regexp.
50369
50370 2008-05-25  Bruno Haible  <bruno@clisp.org>
50371
50372         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50373         * modules/copy-file-tests (Files, Makefile.am): Update.
50374         * tests/test-copy-file.c (func_test_copy): Update.
50375
50376 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50377
50378         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50379
50380 2008-05-23  Bruno Haible  <bruno@clisp.org>
50381
50382         Improve support for ACLs on OSF/1.
50383         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50384         Remove fallback for unknown flavors of ACLs.
50385
50386 2008-05-22  Bruno Haible  <bruno@clisp.org>
50387
50388         Add support for ACLs on OSF/1.
50389         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50390         replacements.
50391         (acl_free_text): New macro fallback.
50392         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50393         acl_free.
50394         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50395         acl_free_text function. Require AC_C_INLINE.
50396
50397 2008-05-22  Bruno Haible  <bruno@clisp.org>
50398
50399         Make copy_acl work on MacOS X 10.5.
50400         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50401         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50402         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50403         If MODE_INSIDE_ACL, don't assume that every system has the same text
50404         representation for ACLs as FreeBSD.
50405         * lib/copy-acl.c (copy_acl): Add support for platforms with
50406         !MODE_INSIDE_ACL.
50407         * lib/file-has-acl.c (file_has_acl): Likewise.
50408         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50409         FreeBSD, MacOS X, or IRIX, respectively.
50410
50411 2008-05-22  Bruno Haible  <bruno@clisp.org>
50412
50413         * lib/acl.h: Don't include <sys/acl.h>.
50414         (GETACLCNT): Move fallback to lib/acl-internal.h.
50415         * lib/acl-internal.h: Include <sys/acl.h> here.
50416         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50417
50418 2008-05-22  Bruno Haible  <bruno@clisp.org>
50419
50420         Split off copy_acl function to separate file.
50421         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50422         * lib/acl.c (copy_acl): Moved function to separate file.
50423         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50424         * modules/acl (Files): Add lib/copy-acl.c.
50425         (Makefiles.am): Augment lib_SOURCES.
50426
50427 2008-05-22  Bruno Haible  <bruno@clisp.org>
50428
50429         * modules/copy-file-tests: New file.
50430         * tests/test-copy-file.sh: New file.
50431         * tests/test-copy-file.c: New file.
50432         * tests/test-copy-file-sameacls.c: New file.
50433
50434 2008-05-22  Eric Blake  <ebb9@byu.net>
50435
50436         Avoid gcc warning.
50437         * tests/test-memcmp.c (main): Pass NULL indirectly.
50438
50439 2008-05-21  Bruno Haible  <bruno@clisp.org>
50440
50441         Add reference doc about ACLs.
50442         * doc/acl-resources.txt: New file.
50443         * doc/acl-cygwin.txt: New file.
50444
50445 2008-05-21  Bruno Haible  <bruno@clisp.org>
50446
50447         Avoid one more warning from gcc.
50448         * lib/vasnprintf.c (IF_LINT): Update comments.
50449         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50450
50451 2008-05-21  Jim Meyering  <meyering@redhat.com>
50452
50453         avoid a warning from gcc
50454         * lib/vasnprintf.c (IF_LINT): Define.
50455         (scale10_round_decimal_long_double):
50456         Use it to avoid a "may be used uninitialized" warning.
50457         (scale10_round_decimal_double): Likewise.
50458
50459 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50460
50461         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50462         declared.
50463
50464 2008-05-20  Bruno Haible  <bruno@clisp.org>
50465
50466         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50467         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50468
50469 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50470
50471         * modules/memcmp-tests: New file.
50472         * tests/test-memcmp.c: New file.
50473
50474 2008-05-19  Bruno Haible  <bruno@clisp.org>
50475
50476         * modules/propername (Notice, configure.ac): Put quoted "..." into
50477         --keyword option.
50478         * lib/propername.h: Update comments accordingly.
50479         Reported by Eric Blake.
50480
50481 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50482
50483         * modules/getpass-gnu (Depends-on): Add fseeko.
50484
50485 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50486
50487         * modules/base64-tests: New file.
50488
50489 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50490
50491         * lib/base64.c (base64_decode_ctx): If a decode context structure
50492         was passed in use it to ignore newlines.  If a context structure
50493         was _not_ passed in, continue to treat newlines as garbage (this
50494         is the historical behavior).  Formerly base64_decode.
50495         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50496         takes a decode context structure.
50497         * lib/base64.h (base64_decode): Macro for four-argument calls.
50498         (base64_decode_alloc): Likewise.
50499         * lib/base64.c (base64_decode_ctx): If a decode context structure
50500         was passed in use it to ignore newlines.  If a context structure
50501         was _not_ passed in, continue to treat newlines as garbage (this
50502         is the historical behavior).  Formerly base64_decode.
50503         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50504         takes a decode context structure.
50505         * lib/base64.h (base64_decode): Macro for four-argument calls.
50506         (base64_decode_alloc): Likewise.
50507
50508 2008-05-19  Jim Meyering  <meyering@redhat.com>
50509
50510         avoid a warning from gcc
50511         * lib/trim.c (IF_LINT): Define.
50512         (trim2): Use it to avoid a "may be used uninitialized" warning.
50513
50514         Fix doc typo.
50515         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50516
50517 2008-05-19  Bruno Haible  <bruno@clisp.org>
50518
50519         * doc/glibc-functions/getpass.texi: Document limits of other
50520         implementations.
50521
50522 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50523             Bruno Haible <bruno@clisp.org>
50524
50525         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50526
50527 2008-05-18  Bruno Haible  <bruno@clisp.org>
50528
50529         * modules/propername: New file, from GNU gettext.
50530         * lib/propername.h: New file, from GNU gettext.
50531         * lib/propername.c: New file, from GNU gettext.
50532         * MODULES.html.sh (Internationalization functions): Add propername.
50533
50534 2008-05-16  Jim Meyering  <meyering@redhat.com>
50535             Bruno Haible  <bruno@clisp.org>
50536
50537         Avoid some warnings from "gcc -Wshadow".
50538         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50539
50540 2008-05-15  Eric Blake  <ebb9@byu.net>
50541
50542         Extend previous patch to cygwin 1.7.0.
50543         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50544         fast implementation in cygwin >= 1.7.0.
50545         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50547
50548 2008-05-15  Bruno Haible  <bruno@clisp.org>
50549
50550         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50551         implementation in glibc >= 2.9.
50552         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50554
50555 2008-05-15  Bruno Haible  <bruno@clisp.org>
50556
50557         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50558         (Unicode string functions): Add unilbrk/*.
50559         Reported by Karl Berry.
50560
50561 2008-05-15  Eric Blake  <ebb9@byu.net>
50562
50563         Fix violation of <stdbool.h> replacement in regex.
50564         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50565         * lib/regexec.c (re_search_internal): Likewise.
50566         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50567
50568 2008-05-15  Jim Meyering  <meyering@redhat.com>
50569
50570         avoid distracting test output when git or cvs is not found
50571         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50572         * tests/test-vc-list-files-git.sh: Likewise.
50573
50574 2008-05-15  Eric Blake  <ebb9@byu.net>
50575
50576         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50577         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50578         glibc version.
50579         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50580         * doc/posix-functions/strstr.texi (strstr): Likewise.
50581         * lib/str-two-way.h (MAX): Sychronize with glibc.
50582
50583 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50584
50585         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50586         opr.ctx_type.
50587         (calc_first): Initialize constraint field.
50588         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50589         Fix grammar.
50590         (duplicate_node): Merge constraint field for all node types.
50591         (calc_eclosure_iter): Look at constraint field for all node types.
50592         * lib/regex_internal.c (create_cd_newstate): Don't look at
50593         opr.ctx_type.
50594
50595 2008-05-14  Bruno Haible  <bruno@clisp.org>
50596
50597         Help GCC to do better code generation.
50598         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50599         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50600         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50601         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50602         Declare with attribute 'malloc' if supported.
50603
50604 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50605
50606         use "echo STR|wc -c" rather than unportable "expr length STR"
50607         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50608         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50609
50610 2008-05-14  Jim Meyering  <meyering@redhat.com>
50611
50612         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50613         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50614         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50615         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50616         via Collin Lasse.
50617
50618 2008-05-14  Eric Blake  <ebb9@byu.net>
50619
50620         Avoid quadratic growth in gl_LIBSOURCES.
50621         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50622         Suggested by Bruno Haible.
50623
50624         Test xmemdup0.
50625         * modules/xmemdup0-tests: New file.
50626         * tests/test-xmemdup0.c: Likewise.
50627
50628 2008-05-13  Eric Blake  <ebb9@byu.net>
50629
50630         Split xmemdup0 into its own module.
50631         * modules/xmemdup0: New file.
50632         * lib/xmemdup0.h: Likewise.
50633         * lib/xmemdup0.c: Likewise.
50634         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50635         * lib/xalloc.h (xmemdup0): Remove.
50636         * lib/xmalloc.c (xmemdup0): Likewise.
50637
50638 2008-05-13  Eric Blake  <ebb9@byu.net>
50639             Bruno Haible  <bruno@clisp.org>
50640
50641         Reduce number of forks required during autoconf.
50642         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50643         and gl_LIBSOURCES_DIR.
50644         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50645         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50646         m4_syscmd per file.
50647         <m4_foreach_w>: Move...
50648         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50649
50650 2008-05-13  Eric Blake  <ebb9@byu.net>
50651
50652         * gnulib-tool: Fix various comment typos.
50653
50654 2008-05-12  Bruno Haible  <bruno@clisp.org>
50655
50656         Tailor the linebreaking algorithm.
50657         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50658
50659 2008-05-12  Bruno Haible  <bruno@clisp.org>
50660
50661         Update to Unicode 5.0.0.
50662         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50663         LBP_JV, LBP_JT. Redistribute values.
50664         (unilbrk_table): Change size.
50665         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50666         Unicode TR#14 rev. 22.
50667         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50668         LBP_JV, LBP_JT. Redistribute values.
50669         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50670         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50671         Update.
50672         * lib/unilbrk/lbrkprop1.h: Regenerated.
50673         * lib/unilbrk/lbrkprop2.h: Regenerated.
50674         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50675         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50676         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50677         Likewise.
50678         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50679         Likewise.
50680         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50681         result.
50682         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50683         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50684         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50685         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50686         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50687         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50688
50689 2008-05-11  Bruno Haible  <bruno@clisp.org>
50690
50691         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50692
50693 2008-05-11  Bruno Haible  <bruno@clisp.org>
50694
50695         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50696         * modules/unilbrk/gen-lbrk: New file.
50697
50698 2008-05-11  Bruno Haible  <bruno@clisp.org>
50699
50700         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50701         * m4/sha512.m4 (gl_SHA512): Likewise.
50702
50703 2008-05-11  Jim Meyering  <meyering@redhat.com>
50704
50705         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50706         * modules/crypto/sha256: New file.
50707         * modules/crypto/sha512: Likewise.
50708         * lib/sha256.c: Likewise.
50709         * lib/sha256.h: Likewise.
50710         * lib/sha512.c: Likewise.
50711         * lib/sha512.h: Likewise.
50712         * lib/u64.h: Likewise.
50713         * m4/sha256.m4: Likewise.
50714         * m4/sha512.m4: Likewise.
50715         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50716
50717 2008-05-10  Bruno Haible  <bruno@clisp.org>
50718
50719         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50720         (Input/Output <stdio.h>): Add xprintf.
50721         (Signal handling <signal.h>): Add strsignal.
50722         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50723         (Core language properties): Add func.
50724         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50725         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50726         strings.
50727         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50728         (Input/output): New section.
50729         (File system functions): Add openat-die, stat-macros.
50730         (Networking functions): Add sockets.
50731         (Unicode string functions): Add unictype/*.
50732         (Support for building libraries and executables): Add gperf.
50733         (Support for building documentation): Add agpl-3.0.
50734         (Misc): Add nocrash.
50735
50736 2008-05-10  Bruno Haible  <bruno@clisp.org>
50737
50738         * modules/unictype/gen-ctype: New file.
50739
50740 2008-05-10  Jim Meyering  <meyering@redhat.com>
50741
50742         Make chdir-safer.c more efficient on a system with no symlinks.
50743         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50744         also if ELOOP is zero.  Suggested by Bruno Haible.
50745
50746         Make chdir-safer.c slightly safer.
50747         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50748         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50749
50750         Avoid compile failure on systems without ELOOP (like mingw).
50751         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50752         Reported by Bruno Haible.
50753
50754 2008-05-10  Bruno Haible  <bruno@clisp.org>
50755
50756         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50757         (is_utf8_encoding): Use a case-insensitive comparison.
50758         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50759         streq.
50760
50761 2008-05-10  Bruno Haible  <bruno@clisp.org>
50762
50763         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50764         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50765         * lib/unilbrk/ulc-common.h (iconv_string_length,
50766         iconv_string_keeping_offsets): Remove declarations.
50767         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50768         Don't include <iconv.h>, streq.h, xsize.h.
50769         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50770         conversion.
50771         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50772         <iconv.h>, streq.h, xsize.h.
50773         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50774         conversion.
50775         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50776         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50777         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50778         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50779
50780 2008-05-10  Bruno Haible  <bruno@clisp.org>
50781
50782         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50783         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50784
50785         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50786         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50787
50788         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50789         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50790
50791         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50792         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50793
50794         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50795         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50796
50797         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50798         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50799
50800         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50801         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50802
50803         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50804         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50805
50806 2008-05-10  Bruno Haible  <bruno@clisp.org>
50807
50808         Split up 'linebreak' module.
50809         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50810         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50811         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50812         modifications.
50813         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50814         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50815         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50816         lib/linebreak.c.
50817         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50818         lib/linebreak.c.
50819         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50820         lib/linebreak.c.
50821         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50822         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50823         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50824         lib/linebreak.c.
50825         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50826         lib/linebreak.c.
50827         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50828         lib/linebreak.c.
50829         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50830         lib/linebreak.c.
50831         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50832         lib/linebreak.c.
50833         * modules/unilbrk/base: New file.
50834         * modules/unilbrk/tables: New file.
50835         * modules/unilbrk/u8-possible-linebreaks: New file.
50836         * modules/unilbrk/u16-possible-linebreaks: New file.
50837         * modules/unilbrk/u32-possible-linebreaks: New file.
50838         * modules/unilbrk/ulc-common: New file.
50839         * modules/unilbrk/ulc-possible-linebreaks: New file.
50840         * modules/unilbrk/u8-width-linebreaks: New file.
50841         * modules/unilbrk/u16-width-linebreaks: New file.
50842         * modules/unilbrk/u32-width-linebreaks: New file.
50843         * modules/unilbrk/ulc-width-linebreaks: New file.
50844         * lib/linebreak.h: Remove file.
50845         * lib/linebreak.c: Remove file.
50846         * m4/linebreak.m4: Remove file.
50847         * modules/linebreak: Remove file.
50848         * NEWS: Mention the changes.
50849
50850 2008-05-09  Eric Blake  <ebb9@byu.net>
50851
50852         Add xmemdup0.
50853         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50854         implementation.
50855         * lib/xmalloc.c (xmemdup0): New C implementation.
50856
50857 2008-05-08  Bruno Haible  <bruno@clisp.org>
50858
50859         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50860
50861 2008-05-07  Eric Blake  <ebb9@byu.net>
50862
50863         Support cross-compilation of <wctype.h>.
50864         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50865         AC_CACHE_CHECK.
50866
50867 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50868
50869         * build-aux/vc-list-files: Add support for bzr.
50870
50871 2008-05-03  Jim Meyering  <meyering@redhat.com>
50872
50873         avoid failed assertion with tight malloc
50874         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50875
50876 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50877
50878         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50879         are needed from arpa/inet.h.
50880         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50881         Reported by Bruno Haible.
50882
50883 2008-05-02  Jim Meyering  <meyering@redhat.com>
50884
50885         avoid compilation error on FreeBSD 6
50886         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50887
50888 2008-05-01  Jim Meyering  <meyering@redhat.com>
50889
50890         useless-if-before-free: correct --help's exit status description
50891         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50892         for one or more matches, etc.  Reported by Bruno Haible.
50893
50894         vc-list-files: make the stand-alone gnulib test work
50895         * modules/vc-list-files-tests (configure.ac):
50896         Define and AC_SUBST abs_aux_dir.
50897         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50898         $(abs_top_srcdir) to each script and having each of them
50899         duplicate the work of setting PATH, set PATH here, using
50900         the new variable, abs_aux_dir instead.
50901         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50902         * tests/test-vc-list-files-git.sh: Likewise.
50903         Reported by Bruno Haible.
50904
50905 2008-05-01  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50908         reallocation. Rename 'done' to 'found_delimiter'.
50909
50910 2008-05-01  Jim Meyering  <meyering@redhat.com>
50911
50912         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50913         * build-aux/vc-list-files: Use `...`, not $(...).
50914
50915 2008-04-30  Jim Meyering  <meyering@redhat.com>
50916
50917         add tests for vc-list-files
50918         * modules/vc-list-files-tests: New module.
50919         * tests/test-vc-list-files-cvs.sh: New file.
50920         * tests/test-vc-list-files-git.sh: New file.
50921
50922         avoid a warning from gcc
50923         * lib/getndelim2.c (IF_LINT): Define.
50924         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50925
50926         vc-list-files: work properly with build-aux/cvsu, too
50927         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50928         to all cvs-based clauses.
50929
50930         vc-list-files: work properly in the CVS+awk case, too
50931         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50932
50933         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50934         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50935         take more than one file argument, so .  Add quotes, just in case $dir
50936         ever contains a shell meta-character.  Prompted by Soren Hansen in
50937         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50938
50939 2008-04-29  Eric Blake  <ebb9@byu.net>
50940
50941         Optimize getndelim2 to use block operations when possible.
50942         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50943         freadseek, and memchr2.
50944         * lib/getndelim2.c (getndelim2): Use them for block reads.
50945
50946 2008-04-29  Bruno Haible  <bruno@clisp.org>
50947
50948         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50949         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50950         * modules/inet_ntop (Depends-on): Add extensions.
50951         * modules/inet_pton (Depends-on): Likewise.
50952         Reported by Simon Josefsson.
50953
50954 2008-04-29  Jim Meyering  <meyering@redhat.com>
50955
50956         When the is more than one match in a block, match all of them.
50957         * build-aux/useless-if-before-free: Iterate through each block
50958         until there are no more matches.
50959
50960         Fix broken useless-if-before-free script.
50961         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50962         the expression to match cast of argument to free-like function.
50963
50964 2008-04-29  Eric Blake  <ebb9@byu.net>
50965
50966         Use new header.
50967         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50968
50969 2008-04-29  Jim Meyering  <meyering@redhat.com>
50970
50971         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50972         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50973         by gnulib to exist and to declare e.g., inet_ntop.
50974         Don't include "inet_ntop.h", now removed.
50975
50976         * m4/arpa_inet_h.m4: Remove trailing blanks.
50977
50978 2008-04-29  Eric Blake  <ebb9@byu.net>
50979
50980         Silence valgrind on safe reads beyond potential array bounds.
50981         * lib/rawmemchr.valgrind: New file.
50982         * lib/strchrnul.valgrind: Likewise.
50983         * modules/rawmemchr (Files): Distribute new file.
50984         * modules/strchrnul (Files): Likewise.
50985         Suggested by Bruno Haible.
50986
50987 2008-04-29  Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50990         (inet_ntop, inet_pton): Change portability warning's wording.
50991         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50992         Invoke gl_CHECK_NEXT_HEADERS.
50993         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50994         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50995         set ARPA_INET_H.
50996         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50997         * modules/arpa_inet (Description): No longer only for systems that
50998         lack it.
50999         (Depends-on): Add include_next.
51000         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51001         HAVE_ARPA_INET_H.
51002
51003 2008-04-29  Jim Meyering  <meyering@redhat.com>
51004
51005         * modules/mkdir (License): Re-license as LGPLv2+.
51006
51007 2008-04-29  Bruno Haible  <bruno@clisp.org>
51008
51009         * modules/rawmemchr (Maintainer): Set to Eric.
51010         * modules/strchrnul (Maintainer): Likewise.
51011
51012 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51013
51014         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51015         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51016
51017         * modules/arpa_inet (arpa/inet.h): Use them.
51018
51019 2008-04-28  Eric Blake  <ebb9@byu.net>
51020
51021         Test getndelim2.
51022         * modules/getndelim2-tests: New file.
51023         * tests/test-getndelim2.c: Likewise.
51024         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51025         stream.
51026         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51027
51028         * MODULES.html.sh: Document new module.
51029
51030 2008-04-20  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/c-stack.c (die): Use raise.
51033         * modules/c-stack (Depends-on): Add raise.
51034
51035 2008-04-28  Bruno Haible  <bruno@clisp.org>
51036
51037         Expect rpmatch to be declared.
51038         * lib/yesno.c (rpmatch): Remove declaration.
51039
51040         Declare rpmatch.
51041         * lib/stdlib.in.h (rpmatch): New declaration.
51042         * lib/rpmatch.c: Include <stdlib.h> first.
51043         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51044         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51046         HAVE_RPMATCH.
51047         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51049         (Include): Set to <stdlib.h>.
51050         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51051         HAVE_RPMATCH.
51052         * NEWS: Document the change.
51053
51054 2008-04-28  Bruno Haible  <bruno@clisp.org>
51055
51056         Change rpmatch to use nl_langinfo when appropriate.
51057         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51058         (N_): New macro.
51059         (localized_pattern): New function/macro.
51060         (try): Remove match, nomatch arguments. Copy the pattern into safe
51061         memory before caching it.
51062         (rpmatch): Use localized_pattern. Add translator comments.
51063         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51064         Suggested by Eric Blake.
51065         * modules/rpmatch (Depends-on): Add stdbool.
51066
51067 2008-04-28  Eric Blake  <ebb9@byu.net>
51068
51069         Add rawmemchr module, matching glibc.
51070         * modules/string (Makefile.am): New indicator.
51071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51072         * lib/string.in.h (rawmemchr): Declare when appropriate.
51073         * modules/rawmemchr: New file.
51074         * m4/rawmemchr.m4: Likewise.
51075         * lib/rawmemchr.c: Likewise.
51076         * modules/rawmemchr-tests: Likewise.
51077         * tests/test-rawmemchr.c: Likewise.
51078         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51079         module.
51080         * modules/strchrnul (Depends-on): Add rawmemchr.
51081         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51082
51083         Whitespace cleanup.
51084         * tests/test-strchrnul.c: Reindent.
51085         * lib/strchrnul.c: Likewise.
51086
51087         Optimize and test strchrnul.
51088         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51089         * modules/strchrnul-tests: New file.
51090         * tests/test-strchrnul.c: Likewise.
51091
51092         Remove intprops dependency.
51093         * modules/memchr (Depends-on): Remove intprops.
51094         * modules/memrchr (Depends-on): Likewise.
51095         * modules/memchr2 (Depends-on): Likewise.
51096         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51097         * lib/memrchr.c (__memrchr): Likewise.
51098         * lib/memrchr2.c (memchr2): Likewise.
51099         Reported by Simon Josefsson.
51100
51101 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51102
51103         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51104         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51105
51106 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51107
51108         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51109
51110         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51111
51112         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51113
51114         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51115         declarations.
51116         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51117
51118         * m4/inet_pton.m4: Don't check for header files.
51119
51120         * m4/inet_ntop.m4: Don't check for header files.
51121
51122 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51123
51124         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51125         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51126         trigger for cygwin).
51127         Reported by Bruno Haible  <bruno@clisp.org>.
51128
51129 2008-04-28  Bruno Haible  <bruno@clisp.org>
51130
51131         * doc/posix-functions/strdup.texi: Mention mingw problem.
51132
51133 2008-04-27  Bruno Haible  <bruno@clisp.org>
51134
51135         * modules/stat-time-tests (Depends-on): Add sleep.
51136         * tests/test-stat-time.c (force_unlink): New function.
51137         (cleanup): Use it.
51138         (test_mtime): Remove the ctime related tests.
51139         (test_ctime): New function, containing the ctime related tests.
51140         (main): Call test_ctime, except on native Windows platforms.
51141
51142 2008-04-27  Bruno Haible  <bruno@clisp.org>
51143
51144         * lib/rpmatch.c (rpmatch): Add some comments.
51145         Reported by James Youngman <jay@gnu.org>.
51146
51147 2008-04-27  Bruno Haible  <bruno@clisp.org>
51148
51149         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51150         quiet NaNs.
51151
51152 2008-04-27  Bruno Haible  <bruno@clisp.org>
51153
51154         Make test-yesno.sh work on mingw.
51155         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51156         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51157         (main): Set stdin to binary mode.
51158         * modules/yesno-tests (Depends-on): Add binary-io.
51159
51160 2008-04-27  Bruno Haible  <bruno@clisp.org>
51161
51162         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51163         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51164         argument that lie outside the IEEE 854 domain.
51165         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51166         (gl_ISFINITE): Use it.
51167         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51168
51169 2008-04-27  Bruno Haible  <bruno@clisp.org>
51170
51171         Allow local renaming in config.h.
51172         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51173
51174 2008-04-27  Bruno Haible  <bruno@clisp.org>
51175
51176         * lib/memchr.c (__memchr): Change type of 'i'.
51177         * lib/memchr2.c (memchr2): Likewise.
51178
51179 2008-04-26  Eric Blake  <ebb9@byu.net>
51180         and Bruno Haible  <bruno@clisp.org>
51181
51182         Optimize and test memrchr.
51183         * modules/memrchr (Depends-on): Add intprops.
51184         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51185         * modules/memrchr-tests: New file.
51186         * tests/test-memrchr.c: New file.
51187
51188 2008-04-26  Bruno Haible  <bruno@clisp.org>
51189
51190         Add tentative support for DragonFly BSD.
51191         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51192         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51193         fp.
51194         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51195         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51196         * lib/fpurge.c (fpurge): Likewise.
51197         * lib/freadable.c (freaadable): Likewise.
51198         * lib/freadahead.c (freadahead): Likewise.
51199         * lib/freading.c (freading): Likewise.
51200         * lib/freadptr.c (freadptr): Likewise.
51201         * lib/freadseek.c (freadptrinc): Likewise.
51202         * lib/fseeko.c (fseeko): Likewise.
51203         * lib/fseterr.c (fseterr): Likewise.
51204         * lib/fwritable.c (fwritable): Likewise.
51205         * lib/fwriting.c (fwriting): Likewise.
51206
51207 2008-04-26  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/stdio-impl.h: New file.
51210         * lib/fbufmode.c: Include stdio-impl.h.
51211         (fbufmode): Use fp_, remove redundant #defines.
51212         * lib/fflush.c: Include stdio-impl.h.
51213         (clear_ungetc_buffer): Remove redundant #defines.
51214         * lib/fpurge.c: Include stdio-impl.h.
51215         (fpurge): Remove redundant #defines.
51216         * lib/freadable.c: Include stdio-impl.h.
51217         (freadable): Remove redundant #defines.
51218         * lib/freadahead.c: Include stdio-impl.h.
51219         (freadahead): Remove redundant #defines.
51220         * lib/freading.c: Include stdio-impl.h.
51221         (freading): Remove redundant #defines.
51222         * lib/freadptr.c: Include stdio-impl.h.
51223         (freadptr): Remove redundant #defines.
51224         * lib/freadseek.c: Include stdio-impl.h.
51225         (freadptrinc): Remove redundant #defines.
51226         * lib/fseeko.c: Include stdio-impl.h.
51227         (rpl_fseeko): Remove redundant #defines.
51228         * lib/fseterr.c: Include stdio-impl.h.
51229         (fseterr): Remove redundant #defines.
51230         * lib/fwritable.c: Include stdio-impl.h.
51231         (fwritable: Remove redundant #defines.
51232         * lib/fwriting.c: Include stdio-impl.h.
51233         (fwriting): Remove redundant #defines.
51234         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51235         * modules/fflush (Files): Likewise.
51236         * modules/fpurge (Files): Likewise.
51237         * modules/freadable (Files): Likewise.
51238         * modules/freadahead (Files): Likewise.
51239         * modules/freading (Files): Likewise.
51240         * modules/freadptr (Files): Likewise.
51241         * modules/freadseek (Files): Likewise.
51242         * modules/fseeko (Files): Likewise.
51243         * modules/fseterr (Files): Likewise.
51244         * modules/fwritable (Files): Likewise.
51245         * modules/fwriting (Files): Likewise.
51246
51247 2008-04-26  Bruno Haible  <bruno@clisp.org>
51248
51249         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51250         restore_seek_optimization, update_fpos_cache): New functions, extracted
51251         from rpl_fflush.
51252         (rpl_fflush): Use them.
51253         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51254         (gl_REPLACE_FFLUSH): Use it.
51255
51256 2008-04-26  Bruno Haible  <bruno@clisp.org>
51257
51258         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51259         on Solaris.
51260         * tests/test-xstrtoimax.sh: Likewise.
51261         * tests/test-xstrtoumax.sh: Likewise.
51262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51263
51264 2008-04-26  Bruno Haible  <bruno@clisp.org>
51265
51266         * modules/memchr-tests: New file.
51267         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51268
51269 2008-04-26  Eric Blake  <ebb9@byu.net>
51270             Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/memchr.c: Include intprops.h.
51273         (__memchr): Optimize parallel detection of matching bytes. Rename local
51274         variables. Add explanatory comments.
51275
51276 2008-04-26  Bruno Haible  <bruno@clisp.org>
51277
51278         Fix module 'memchr', broken since 2000-10-28.
51279         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51280
51281 2008-04-26  Bruno Haible  <bruno@clisp.org>
51282
51283         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51284         comments.
51285
51286 2008-04-25  Eric Blake  <ebb9@byu.net>
51287
51288         Use native fstatat on cygwin 1.7.0.
51289         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51290         first.
51291
51292 2008-04-23  Eric Blake  <ebb9@byu.net>
51293
51294         Improve memchr2 performance.
51295         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51296         NUL bytes.
51297         * modules/memchr2 (Depends-on): Use intprops.h.
51298
51299 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51300
51301         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51302         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51303         <blp@cs.stanford.edu>.
51304
51305 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51306
51307         * lib/arpa_inet.in.h: New file.
51308
51309         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51310         (Makefile.am): Sed in substitute header file.
51311
51312         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51313         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51314
51315         * modules/inet_ntop (configure.ac): Use
51316         gl_ARPA_INET_MODULE_INDICATOR.
51317
51318         * modules/inet_pton (configure.ac): Use
51319         gl_ARPA_INET_MODULE_INDICATOR.
51320
51321 2008-04-22  Jim Meyering  <meyering@redhat.com>
51322
51323         * modules/verify (License): Re-license as LGPLv2+.
51324
51325 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51326
51327         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51328         parameter to void* as per POSIX standard (MinGW uses char*).
51329
51330 2008-04-21  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51333         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51334         Define to replacements if REPLACE_ISWCNTRL is 1.
51335         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51336         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51337         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51338         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51339         what it fixes.
51340         * doc/posix-functions/iswalpha.texi: Likewise.
51341         * doc/posix-functions/iswblank.texi: Likewise.
51342         * doc/posix-functions/iswcntrl.texi: Likewise.
51343         * doc/posix-functions/iswdigit.texi: Likewise.
51344         * doc/posix-functions/iswgraph.texi: Likewise.
51345         * doc/posix-functions/iswlower.texi: Likewise.
51346         * doc/posix-functions/iswprint.texi: Likewise.
51347         * doc/posix-functions/iswpunct.texi: Likewise.
51348         * doc/posix-functions/iswspace.texi: Likewise.
51349         * doc/posix-functions/iswupper.texi: Likewise.
51350         * doc/posix-functions/iswxdigit.texi: Likewise.
51351         Reported by Alain Guibert.
51352
51353 2008-04-21  Bruno Haible  <bruno@clisp.org>
51354
51355         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51356         Patch by Alain Guibert.
51357
51358 2008-04-21  Bruno Haible  <bruno@clisp.org>
51359
51360         Fix test failures on mingw.
51361         * tests/test-xstrtol.c (print_no_progname): New function.
51362         (main): Install it in error_print_progname hook.
51363         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51364         * tests/test-xstrtoimax.sh: Likewise.
51365         * tests/test-xstrtoumax.sh: Likewise.
51366
51367 2008-04-21  Bruno Haible  <bruno@clisp.org>
51368
51369         Fix test failure on mingw.
51370         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51371
51372 2008-04-21  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51375         Actually assign a value.
51376
51377 2008-04-20  Bruno Haible  <bruno@clisp.org>
51378
51379         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51380         take 2.
51381         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51382         'canonicalize-lgpl' module is also used.
51383         * lib/canonicalize-lgpl.c: Undo last change.
51384         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51385
51386 2008-04-20  Bruno Haible  <bruno@clisp.org>
51387
51388         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51389         config.h. Provide _mkdir based fallback for mingw.
51390         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51391         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51392         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51393         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51394         rather than defining mkdir in config.h.
51395         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51396         (gl_SYS_STAT_H_DEFAULTS): New macro.
51397         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51398         HAVE_IO_H any more.
51399         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51400         HAVE_DECL_MKDIR and HAVE_IO_H.
51401
51402 2008-04-20  Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/isapipe.c: Port to native Windows platforms.
51405
51406 2008-04-20  Bruno Haible  <bruno@clisp.org>
51407
51408         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51409
51410 2008-04-21  Eric Blake  <ebb9@byu.net>
51411
51412         Work around preprocessors that don't handle UINTMAX_MAX.
51413         * lib/memchr2.c (memchr2): Avoid embedded #if.
51414         Reported by Alain Guibert, fix suggested by Bruno Haible.
51415
51416 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51417
51418         * doc/posix-functions/strftime.texi (strftime): Explain better
51419         Windows incompatibility.  Suggested by Micah Cowan
51420         <micah@cowan.name>.
51421
51422 2008-04-20  Bruno Haible  <bruno@clisp.org>
51423
51424         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51425         unistr/u8-mblen.
51426
51427 2008-04-20  Bruno Haible  <bruno@clisp.org>
51428
51429         Fix test failure on platforms with non-GNU iconv.
51430         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51431         (U_TO_U8): Use it, rather than u16_to_u8.
51432         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51433         units at the end of the input string.
51434         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51435
51436 2008-04-20  Bruno Haible  <bruno@clisp.org>
51437
51438         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51439         when the resulting length is 0.
51440         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51441
51442 2008-04-20  Bruno Haible  <bruno@clisp.org>
51443
51444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51445         works.
51446         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51447
51448 2008-04-20  Bruno Haible  <bruno@clisp.org>
51449
51450         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51451         * modules/tsearch-tests (configure.ac): Test for initstate function.
51452
51453 2008-04-20  Bruno Haible  <bruno@clisp.org>
51454
51455         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51456         for nlink_t if missing.
51457         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51458
51459 2008-04-19  Bruno Haible  <bruno@clisp.org>
51460
51461         Work around snprintf bug on Linux libc5.
51462         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51464         gl_SNPRINTF_SIZE1.
51465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51466         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51467         that test failed.
51468         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51469         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51470         * modules/snprintf (Files): Add m4/printf.m4.
51471         * modules/vsnprintf (Files): Likewise.
51472         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51473         * doc/posix-functions/vsnprintf.texi: Likewise.
51474
51475 2008-04-19  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51478         from 0.0058 to less than 10^-7.
51479
51480 2008-04-19  Bruno Haible  <bruno@clisp.org>
51481
51482         Fix rounding when a precision is given.
51483         * lib/vasnprintf.c (is_borderline): New function.
51484         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51485         9...9x.
51486         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51487         %e, %g.
51488         * tests/test-vasprintf-posix.c (test_function): Likewise.
51489         * tests/test-snprintf-posix.h (test_function): Likewise.
51490         * tests/test-sprintf-posix.h (test_function): Likewise.
51491         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51492         * tests/test-printf-posix.h (test_function): Likewise.
51493         * tests/test-printf-posix.output: Update.
51494         Reported by John Darrington <john@darrington.wattle.id.au> via
51495         Ben Pfaff <blp@cs.stanford.edu>.
51496
51497 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51498
51499         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51500         Suggested by Bruno Haible <bruno@clisp.org>.
51501
51502 2008-04-17  Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51505         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51506         implementation.
51507         Patch by Bruce Merry <bmerry@gmail.com>.
51508
51509 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51510
51511         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51512         doesn't work under Windows.
51513
51514 2008-04-16  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51517         New macros.
51518         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51519         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51520         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51521         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51522         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51523         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51524         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51525         macros.
51526         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51527         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51528         Northern Sotho, Uighur.
51529
51530 2008-04-16  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51533         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51534         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51535         Reported by Daniel Bergström <daniel@octocode.com>.
51536
51537 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51538             Bruno Haible  <bruno@clisp.org>
51539
51540         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51541         function.
51542         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51543         New functions, mostly extracted from gl_locale_name_default.
51544         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51545
51546 2008-04-16  Eric Blake  <ebb9@byu.net>
51547
51548         Adjust strtod detection to catch glibc 2.7 bug.
51549         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51550         Reported by John Gatewood Ham.
51551
51552 2008-04-16  Bruno Haible  <bruno@clisp.org>
51553
51554         Add tentative support for Linux libc5.
51555         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51556         * lib/fpurge.c (fpurge): Likewise.
51557         * lib/freadable.c (freadable): Likewise.
51558         * lib/freadahead.c (freadahead): Likewise.
51559         * lib/freading.c (freading): Likewise.
51560         * lib/freadptr.c (freadptr): Likewise.
51561         * lib/freadseek.c (freadptrinc): Likewise.
51562         * lib/fseeko.c (rpl_fseeko): Likewise.
51563         * lib/fseterr.c (fseterr): Likewise.
51564         * lib/fwritable.c (fwritable): Likewise.
51565         * lib/fwriting.c (fwriting): Likewise.
51566         Reported by Alain Guibert <alguibert+bts@free.fr>.
51567
51568 2008-04-15  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/mathl (configure.ac): Define module indicator.
51571
51572 2008-04-15  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/logl.c (logl): Remove unused variables.
51575
51576 2008-04-15  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51579         fails.
51580
51581 2008-04-15  Bruno Haible  <bruno@clisp.org>
51582
51583         * lib/trim.c (trim2): Fix argument of isspace() macro.
51584
51585 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51586
51587         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51588         to 0.
51589         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51590
51591 2008-04-14  Bruno Haible  <bruno@clisp.org>
51592
51593         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51594         AC_LANG_PROGRAM argument.
51595         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51596         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51598         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51599         * m4/math_h.m4 (gl_MATH_H): Likewise.
51600         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51602         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51603         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51604         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51605         * m4/regex.m4 (gl_REGEX): Likewise.
51606         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51607         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51609         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51610         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51611         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51614
51615 2008-04-14  Jim Meyering  <meyering@redhat.com>
51616
51617         test-strtod: fix typos: s/abs/fabs/
51618         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51619
51620 2008-04-13  Bruno Haible  <bruno@clisp.org>
51621
51622         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51623         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51624         module is also used and while not building the reloc-wrapper.
51625
51626 2008-04-13  Bruno Haible  <bruno@clisp.org>
51627
51628         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51629
51630 2008-04-13  Bruno Haible  <bruno@clisp.org>
51631
51632         Fix AIX compilation failure introduced on 2008-04-02.
51633         * tests/test-frexp.c (exp): Undefine before redefining.
51634         * tests/test-frexpl.c (exp): Likewise.
51635
51636 2008-04-13  Bruno Haible  <bruno@clisp.org>
51637
51638         Work around a HP-UX stdio bug.
51639         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51640         * tests/test-ftello.c (main): Likewise.
51641         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51642         * doc/posix-functions/ftello.texi: Likewise.
51643
51644 2008-04-13  Bruno Haible  <bruno@clisp.org>
51645
51646         Make test-signbit pass on HP-UX/hppa.
51647         * tests/test-signbit.c (minus_zerol): New variable.
51648         (test_signbitl): Use it.
51649
51650 2008-04-13  Bruno Haible  <bruno@clisp.org>
51651
51652         Make truncl work on OSF/1 4.0.
51653         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51654         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51655         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51657         HAVE_DECL_TRUNCL.
51658         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51659         HAVE_DECL_TRUNCL.
51660         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51661
51662 2008-04-13  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51665
51666 2008-04-13  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51669         expression, so as to avoid HP-UX 11 cc compiler bug.
51670
51671 2008-04-13  Bruno Haible  <bruno@clisp.org>
51672
51673         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51674
51675 2008-04-13  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/git-merge-changelog.c: Remove empty declaration outside of
51678         functions.
51679
51680 2008-04-13  Bruno Haible  <bruno@clisp.org>
51681
51682         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51683
51684 2008-04-13  Bruno Haible  <bruno@clisp.org>
51685
51686         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51687         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51688         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51689         also if it exists but lacks definitions of the SHUT_* macros.
51690         * modules/sys_socket (Description): Update.
51691         Reported by Elbert Pol <e.pol@chello.nl>.
51692
51693 2008-04-13  Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/localcharset.c (OS2): Don't redefine if already defined.
51696         Reported by Elbert Pol <e.pol@chello.nl>.
51697
51698 2008-04-13  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/binary-io.h [__EMX__]: Include <io.h>.
51701         Reported by Elbert Pol <e.pol@chello.nl>.
51702
51703 2008-04-12  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/fpucw.h: Enable the definitions also for x86_64.
51706         Needed for NetBSD/x86_64.
51707         Reported by Thomas Klausner <tk@giga.or.at>.
51708
51709 2008-04-12  Bruno Haible  <bruno@clisp.org>
51710
51711         * tests/test-strtod.c: Include isnand.h.
51712         (main): Use isnand instead of isnan.
51713         Reported by Jim Meyering.
51714
51715 2008-04-12  Bruno Haible  <bruno@clisp.org>
51716
51717         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51718         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51719
51720 2008-04-12  Jim Meyering  <meyering@redhat.com>
51721
51722         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51723
51724 2008-04-12  Bruno Haible  <bruno@clisp.org>
51725
51726         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51727         Reported by Elbert Pol <e.pol@chello.nl>.
51728
51729 2008-04-12  Eric Blake  <ebb9@byu.net>
51730
51731         Work around Solaris 10 math.h bug.
51732         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51733         (gl_MATH_H_DEFAULTS): Set up default.
51734         * modules/math (Makefile.am): Replace new indicators.
51735         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51736         * tests/test-math.c (main): Test this.
51737         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51738         * doc/posix-headers/math.texi (math.h): Mention bug.
51739         Reported by Nelson H. F. Beebe and Jim Meyering.
51740
51741 2008-04-11  Bruno Haible  <bruno@clisp.org>
51742
51743         Adapt to future versions of Apple GCC.
51744         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51745         Reported by Peter O'Gorman <peter@pogma.com>.
51746
51747 2008-04-11  Bruno Haible  <bruno@clisp.org>
51748
51749         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51750
51751 2008-04-11  Bruno Haible  <bruno@clisp.org>
51752
51753         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51754
51755         * modules/getaddrinfo-tests (Makefile.am): Define
51756         test_getaddrinfo_LDADD.
51757
51758 2008-04-11  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51761         (init): Fix syntax error.
51762         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51763         is declared.
51764
51765 2008-04-11  Bruno Haible  <bruno@clisp.org>
51766
51767         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51768         * modules/glob (Depends-on): Add stdbool.
51769
51770 2008-04-11  Bruno Haible  <bruno@clisp.org>
51771
51772         * lib/trim.c: Include <string.h>.
51773
51774 2008-04-11  Eric Blake  <ebb9@byu.net>
51775
51776         Avoid compile failure on OS/2.
51777         * lib/regex_internal.h (internal_function): Disable optimization
51778         on OS/2 (__EMX__), where it caused compiler error.
51779         Reported by Elbert Pol.
51780
51781 2008-04-11  Bruno Haible  <bruno@clisp.org>
51782
51783         Flush the standard error stream before aborting. Needed on mingw.
51784         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51785         * tests/test-array_list.c (ASSERT): Likewise.
51786         * tests/test-array_oset.c (ASSERT): Likewise.
51787         * tests/test-avltree_list.c (ASSERT): Likewise.
51788         * tests/test-avltree_oset.c (ASSERT): Likewise.
51789         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51790         * tests/test-binary-io.c (ASSERT): Likewise.
51791         * tests/test-byteswap.c (ASSERT): Likewise.
51792         * tests/test-c-ctype.c (ASSERT): Likewise.
51793         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51794         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51795         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51796         * tests/test-c-strstr.c (ASSERT): Likewise.
51797         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51798         * tests/test-canonicalize.c (ASSERT): Likewise.
51799         * tests/test-carray_list.c (ASSERT): Likewise.
51800         * tests/test-ceilf1.c (ASSERT): Likewise.
51801         * tests/test-ceilf2.c (ASSERT): Likewise.
51802         * tests/test-ceill.c (ASSERT): Likewise.
51803         * tests/test-count-one-bits.c (ASSERT): Likewise.
51804         * tests/test-fbufmode.c (ASSERT): Likewise.
51805         * tests/test-fflush2.c (ASSERT): Likewise.
51806         * tests/test-floorf1.c (ASSERT): Likewise.
51807         * tests/test-floorf2.c (ASSERT): Likewise.
51808         * tests/test-floorl.c (ASSERT): Likewise.
51809         * tests/test-fopen.c (ASSERT): Likewise.
51810         * tests/test-fpending.c (ASSERT): Likewise.
51811         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51812         * tests/test-fpurge.c (ASSERT): Likewise.
51813         * tests/test-freadable.c (ASSERT): Likewise.
51814         * tests/test-freadahead.c (ASSERT): Likewise.
51815         * tests/test-freading.c (ASSERT): Likewise.
51816         * tests/test-freadptr.c (ASSERT): Likewise.
51817         * tests/test-freadptr2.c (ASSERT): Likewise.
51818         * tests/test-freadseek.c (ASSERT): Likewise.
51819         * tests/test-freopen.c (ASSERT): Likewise.
51820         * tests/test-frexp.c (ASSERT): Likewise.
51821         * tests/test-frexpl.c (ASSERT): Likewise.
51822         * tests/test-fseek.c (ASSERT): Likewise.
51823         * tests/test-fseeko.c (ASSERT): Likewise.
51824         * tests/test-fstrcmp.c (ASSERT): Likewise.
51825         * tests/test-ftell.c (ASSERT): Likewise.
51826         * tests/test-ftello.c (ASSERT): Likewise.
51827         * tests/test-func.c (ASSERT): Likewise.
51828         * tests/test-fwritable.c (ASSERT): Likewise.
51829         * tests/test-fwriting.c (ASSERT): Likewise.
51830         * tests/test-getdelim.c (ASSERT): Likewise.
51831         * tests/test-getline.c (ASSERT): Likewise.
51832         * tests/test-i-ring.c (ASSERT): Likewise.
51833         * tests/test-iconv-utf.c (ASSERT): Likewise.
51834         * tests/test-iconv.c (ASSERT): Likewise.
51835         * tests/test-isfinite.c (ASSERT): Likewise.
51836         * tests/test-isnand.c (ASSERT): Likewise.
51837         * tests/test-isnanf.c (ASSERT): Likewise.
51838         * tests/test-isnanl.h (ASSERT): Likewise.
51839         * tests/test-ldexpl.c (ASSERT): Likewise.
51840         * tests/test-linked_list.c (ASSERT): Likewise.
51841         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51842         * tests/test-localename.c (ASSERT): Likewise.
51843         * tests/test-lseek.c (ASSERT): Likewise.
51844         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51845         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51846         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51847         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51848         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51849         * tests/test-mbschr.c (ASSERT): Likewise.
51850         * tests/test-mbscspn.c (ASSERT): Likewise.
51851         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51852         * tests/test-mbspbrk.c (ASSERT): Likewise.
51853         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51854         * tests/test-mbsrchr.c (ASSERT): Likewise.
51855         * tests/test-mbsspn.c (ASSERT): Likewise.
51856         * tests/test-mbsstr1.c (ASSERT): Likewise.
51857         * tests/test-mbsstr2.c (ASSERT): Likewise.
51858         * tests/test-mbsstr3.c (ASSERT): Likewise.
51859         * tests/test-memchr2.c (ASSERT): Likewise.
51860         * tests/test-memmem.c (ASSERT): Likewise.
51861         * tests/test-open.c (ASSERT): Likewise.
51862         * tests/test-printf-frexp.c (ASSERT): Likewise.
51863         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51864         * tests/test-printf-posix.c (ASSERT): Likewise.
51865         * tests/test-quotearg.c (ASSERT): Likewise.
51866         * tests/test-rbtree_list.c (ASSERT): Likewise.
51867         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51868         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51869         * tests/test-round1.c (ASSERT): Likewise.
51870         * tests/test-roundf1.c (ASSERT): Likewise.
51871         * tests/test-roundl.c (ASSERT): Likewise.
51872         * tests/test-signbit.c (ASSERT): Likewise.
51873         * tests/test-sleep.c (ASSERT): Likewise.
51874         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51875         * tests/test-snprintf.c (ASSERT): Likewise.
51876         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51877         * tests/test-stat-time.c (ASSERT): Likewise.
51878         * tests/test-strcasestr.c (ASSERT): Likewise.
51879         * tests/test-strerror.c (ASSERT): Likewise.
51880         * tests/test-striconv.c (ASSERT): Likewise.
51881         * tests/test-striconveh.c (ASSERT): Likewise.
51882         * tests/test-striconveha.c (ASSERT): Likewise.
51883         * tests/test-strsignal.c (ASSERT): Likewise.
51884         * tests/test-strstr.c (ASSERT): Likewise.
51885         * tests/test-strtod.c (ASSERT): Likewise.
51886         * tests/test-trunc1.c (ASSERT): Likewise.
51887         * tests/test-trunc2.c (ASSERT): Likewise.
51888         * tests/test-truncf1.c (ASSERT): Likewise.
51889         * tests/test-truncf2.c (ASSERT): Likewise.
51890         * tests/test-truncl.c (ASSERT): Likewise.
51891         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51892         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51893         * tests/test-vasnprintf.c (ASSERT): Likewise.
51894         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51895         * tests/test-vasprintf.c (ASSERT): Likewise.
51896         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51897         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51898         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51899         * tests/test-vsnprintf.c (ASSERT): Likewise.
51900         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51901         * tests/test-wcwidth.c (ASSERT): Likewise.
51902         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51903         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51904         * tests/test-xvasprintf.c (ASSERT): Likewise.
51905         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51906         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51907         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51908         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51909         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51910         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51911         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51912         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51913         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51914         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51915         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51916         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51917         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51918         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51919         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51920         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51921         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51922         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51923         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51924         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51925         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51926         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51927         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51928         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51929         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51930         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51931         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51932         * tests/unictype/test-combining.c (ASSERT): Likewise.
51933         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51934         * tests/unictype/test-digit.c (ASSERT): Likewise.
51935         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51936         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51937         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51938         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51939         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51940         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51941         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51942         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51943         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51944         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51945         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51946         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51947         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51948         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51949         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51950         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51951         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51952         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51953         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51954         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51955         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51956         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51957         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51958         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51959         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51960         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51961         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51962         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51963         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51964         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51965         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51966         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51967         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51968         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51969         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51970         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51971         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51972         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51973         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51974         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51975         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51976         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51977         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51978         Reported by Eric Blake.
51979
51980 2008-04-11  Bruno Haible  <bruno@clisp.org>
51981
51982         * lib/wchar.in.h: Tweak comment.
51983
51984 2008-04-11  Bruno Haible  <bruno@clisp.org>
51985
51986         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51987         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51988         gl_COMMON.
51989         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51990
51991 2008-04-11  Bruno Haible  <bruno@clisp.org>
51992
51993         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51994
51995 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51996
51997         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51998         of attempting to use non-existing /dev/*random.  Based on patch
51999         from Adam Strzelecki <ono@java.pl> in
52000         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52001
52002 2008-04-08  Bruno Haible  <bruno@clisp.org>
52003
52004         Add tentative support for emx+gcc.
52005         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52006         * lib/fpurge.c (fpurge): Likewise.
52007         * lib/freadable.c (freadable): Likewise.
52008         * lib/freadahead.c (freadahead): Likewise.
52009         * lib/freading.c (freading): Likewise.
52010         * lib/freadptr.c (freadptr): Likewise.
52011         * lib/freadseek.c (freadptrinc): Likewise.
52012         * lib/fseeko.c (rpl_fseeko): Likewise.
52013         * lib/fseterr.c (fseterr): Likewise.
52014         * lib/fwritable.c (fwritable): Likewise.
52015         * lib/fwriting.c (fwriting): Likewise.
52016         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52017
52018 2008-04-09  Eric Blake  <ebb9@byu.net>
52019
52020         Avoid some autoconf warnings.
52021         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52022         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52023         * m4/afs.m4 (gl_AFS): Likewise.
52024         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52025         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52027         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52028         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52029         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52030         (AC_CHECK_DECLS_ONCE): Likewise.
52031         Rename file...
52032         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52033         gnulib-tool requires autoconf 2.59 or better.
52034         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52035
52036 2008-04-08  Eric Blake  <ebb9@byu.net>
52037
52038         Use 'git describe --match' if present (added in git 1.5.5).
52039         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52040         if possible.
52041
52042 2008-04-08  Bruno Haible  <bruno@clisp.org>
52043
52044         Add tentative support for OpenServer.
52045         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52046         _ptr, _cnt.
52047         * lib/fpurge.c (fpurge): Likewise.
52048         * lib/freadable.c (freadable): Likewise.
52049         * lib/freadahead.c (freadahead): Likewise.
52050         * lib/freading.c (freading): Likewise.
52051         * lib/freadptr.c (freadptr): Likewise.
52052         * lib/freadseek.c (freadptrinc): Likewise.
52053         * lib/fseeko.c (rpl_fseeko): Likewise.
52054         * lib/fseterr.c (fseterr): Likewise.
52055         * lib/fwritable.c (fwritable): Likewise.
52056         * lib/fwriting.c (fwriting): Likewise.
52057         Reported by Roger Cornelius <rac@tenzing.org> and
52058         Brian K. White <brian@aljex.com>.
52059
52060 2008-04-06  Jim Meyering  <meyering@redhat.com>
52061
52062         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52063
52064 2008-04-06  Bruno Haible  <bruno@clisp.org>
52065
52066         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52067         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52068         * tests/test-printf-posix.sh: Likewise.
52069         * tests/test-vfprintf-posix.sh: Likewise.
52070         * tests/test-vprintf-posix.sh: Likewise.
52071         * tests/test-xprintf-posix.sh: Likewise.
52072
52073 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52074
52075         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52076         hide error from 'ls', needed on OS/2.
52077         Report by Elbert Pol <elbert.pol@gmail.com>.
52078
52079 2008-04-04  Eric Blake  <ebb9@byu.net>
52080
52081         Make test-fseeko.c failures meaningful.
52082         * tests/test-fseeko.c: Print line number on failure.
52083         * tests/test-fseek.c: Likewise.
52084         Reported by Nelson H. F. Beebe.
52085
52086         Improve strtod bug detection check.
52087         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52088         required for Solaris 10.
52089         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52090
52091 2008-04-04  Bruno Haible  <bruno@clisp.org>
52092
52093         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52094         by m4/setenv.m4.
52095
52096 2008-04-03  Eric Blake  <ebb9@byu.net>
52097
52098         Ensure sane .version contents.
52099         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52100         version string.
52101         * build-aux/git-version-gen: Improve documentation.
52102
52103         Make GNU make output nicer.
52104         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52105         MAKECMDGOALS to enforce message for all command line targets.  Set
52106         srcdir for use in maint.mk.
52107
52108         Another maintainer tweak.
52109         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52110         a target that regenerates version.
52111
52112 2008-04-03  Jim Meyering  <meyering@redhat.com>
52113
52114         vc-list-files: don't cause coreutils "make po-check" failure
52115         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52116
52117 2008-04-03  Eric Blake  <ebb9@byu.net>
52118
52119         Allow VPATH usage of vc-list-files.
52120         * build-aux/vc-list-files (scriptversion): Add timestamp.
52121         (options): Add --help, --version, -C.
52122         (CVS): Support installed cvsu.
52123
52124 2008-04-02  Bruno Haible  <bruno@clisp.org>
52125
52126         Avoid some "statement with no effect" warnings from gcc.
52127         * tests/test-wctype.c (main): Explicitly ignore unused values.
52128         Reported by Jim Meyering.
52129
52130 2008-04-02  Jim Meyering  <meyering@redhat.com>
52131
52132         Avoid some warnings from "gcc -Wshadow".
52133         * tests/test-frexp.c (exp): Define to a different identifier.
52134         * tests/test-frexpl.c (exp): Likewise.
52135
52136 2008-04-03  Jim Meyering  <meyering@redhat.com>
52137
52138         bootstrap: remove dangling *.[ch] symlinks from lib
52139         * build-aux/bootstrap [dangling symlink removal]: Move find's
52140         -depth option to precede all others, to avoid a warning.
52141         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52142
52143 2008-04-02  Bruno Haible  <bruno@clisp.org>
52144
52145         Avoid some warnings from "gcc -Wshadow".
52146         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52147         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52148         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52149         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52150         Reported by Jim Meyering.
52151
52152 2008-04-01  Bruno Haible  <bruno@clisp.org>
52153
52154         Fix test to work on IRIX 6.5 with cc.
52155         * tests/test-math.c (numeric_equal): New function.
52156         (main): Use it.
52157
52158 2008-04-01  Bruno Haible  <bruno@clisp.org>
52159
52160         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52161
52162 2008-04-01  Bruno Haible  <bruno@clisp.org>
52163
52164         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52165         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52166         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52167         (Depends-on): Remove math.
52168
52169         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52170         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52171         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52172         (Depends-on): Remove math.
52173
52174         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52175         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52176         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52177         (Depends-on): Remove math.
52178         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52179         (Depends-on): Remove math.
52180
52181         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52182         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52183         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52184         (Depends-on): Remove math.
52185         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52186         (Depends-on): Remove math.
52187
52188         * tests/test-round1.c: Include nan.h.
52189         (main): Use NaNd instead of NAN.
52190         * modules/round-tests (Files): Add tests/nan.h.
52191
52192         * tests/test-trunc1.c: Include nan.h.
52193         (main): Use NaNd instead of NAN.
52194         * modules/trunc-tests (Files): Add tests/nan.h.
52195
52196         * tests/test-roundf1.c: Include nan.h.
52197         (main): Use NaNf instead of NAN.
52198         * modules/roundf-tests (Files): Add tests/nan.h.
52199
52200         * tests/test-truncf1.c: Include nan.h.
52201         (main): Use NaNf instead of NAN.
52202         * modules/truncf-tests (Files): Add tests/nan.h.
52203
52204         * tests/test-ceilf1.c: Include nan.h.
52205         (main): Use NaNf instead of NAN.
52206         * modules/ceilf-tests (Files): Add tests/nan.h.
52207
52208         * tests/test-floorf1.c: Include nan.h.
52209         (main): Use NaNf instead of NAN.
52210         * modules/floorf-tests (Files): Add tests/nan.h.
52211
52212         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52213         (main): Use NaNf instead of NAN.
52214         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52215
52216         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52217         (main): Use NaNd instead of NAN.
52218         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52219
52220         * tests/test-frexp.c: Include nan.h.
52221         (main): Use NaNd instead of NAN.
52222         * modules/frexp-tests (Files): Add tests/nan.h.
52223
52224         * lib/isnan.c: Don't include <math.h>.
52225         (FUNC): Don't use NAN macro.
52226         * modules/isnand-nolibm (Depends-on): Remove math.
52227         * modules/isnanf-nolibm (Depends-on): Remove math.
52228         * modules/isnanl (Depends-on): Remove math.
52229         * modules/isnanl-nolibm (Depends-on): Remove math.
52230
52231         * tests/nan.h: New file.
52232
52233 2008-04-01  Eric Blake  <ebb9@byu.net>
52234
52235         Fix typos.
52236         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52237         values to be the right type.
52238
52239         For now, cater to gnulib strtod inaccuracies.
52240         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52241         fractional results.  While not as nice from a QoI perspective, it
52242         is a quicker patch than correctly implementing decimal to binary
52243         rounding.
52244
52245 2008-03-31  Eric Blake  <ebb9@byu.net>
52246
52247         Guarantee a definition of NAN.
52248         * lib/math.in.h (NAN): Define if missing.
52249         * tests/test-math.c (main): Test it.
52250         * doc/posix-headers/math.texi (math.h): Document this.
52251         * lib/isnan.c (rpl_isnand): Use it.
52252         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52253         * tests/test-floorf1.c (NaN): Likewise.
52254         * tests/test-frexp.c (NaN): Likewise.
52255         * tests/test-isnand.c (NaN): Likewise.
52256         * tests/test-isnanf.c (NaN): Likewise.
52257         * tests/test-round1.c (NaN): Likewise.
52258         * tests/test-roundf1.c (NaN): Likewise.
52259         * tests/test-snprintf-posix.h (NaN): Likewise.
52260         * tests/test-sprintf-posix.h (NaN): Likewise.
52261         * tests/test-trunc1.c (NaN): Likewise.
52262         * tests/test-truncf1.c (NaN): Likewise.
52263         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52264         * tests/test-vasprintf-posix.c (NaN): Likewise.
52265         * modules/isnand-nolibm (Depends-on): Add math.
52266         * modules/isnanf-nolibm (Depends-on): Likewise.
52267         * modules/isnanl (Depends-on): Likewise.
52268         * modules/isnanl-nolibm (Depends-on): Likewise.
52269         * modules/snprintf-posix-tests (Depends-on): Likewise.
52270         * modules/sprintf-posix-tests (Depends-on): Likewise.
52271         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52272         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52273         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52274         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52275
52276 2008-03-31  Bruno Haible  <bruno@clisp.org>
52277
52278         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52279         * doc/posix-functions/strtod.texi: Likewise.
52280
52281 2008-03-31  Bruno Haible  <bruno@clisp.org>
52282
52283         * tests/test-strtod.c (main): Don't use C99 syntax.
52284
52285 2008-03-31  Bruno Haible  <bruno@clisp.org>
52286
52287         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52288         Reported by Eric Blake.
52289
52290 2008-03-31  Jim Meyering  <meyering@redhat.com>
52291
52292         Don't compare actual signbit return values.
52293         * tests/test-strtod.c (main): Rather, compare only their
52294         zero/non-zero nature.
52295
52296 2008-03-31  Eric Blake  <ebb9@byu.net>
52297
52298         More strtod documentation.
52299         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52300         failures as distinct bugs.
52301
52302 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52303
52304         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52305         Problem reported by Erik Benada in
52306         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52307
52308 2008-03-30  Bruno Haible  <bruno@clisp.org>
52309
52310         * tests/test-strtod.c: Add comments about which assertion fails on which
52311         platform.
52312         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52313
52314 2008-03-30  Eric Blake  <ebb9@byu.net>
52315
52316         Test signbit behavior on zeros.
52317         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52318         (test_signbitd, test_signbitl): Likewise.
52319
52320         More strtod touchups.
52321         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52322         sign of negative underflow, for now.  Use .5, not .1.
52323         * doc/posix-functions/strtod.texi (strtod): Mention these
52324         limitations.
52325         Reported by Jim Meyering.
52326
52327 2008-03-30  Bruno Haible  <bruno@clisp.org>
52328
52329         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52330         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52331
52332 2008-03-30  Bruno Haible  <bruno@clisp.org>
52333
52334         Avoid failure when attempting to return empty iconv results on some
52335         platforms.
52336         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52337         allocation, don't report ENOMEM when the resulting string is empty.
52338
52339 2008-03-30  Bruno Haible  <bruno@clisp.org>
52340
52341         Fix buffer overrun.
52342         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52343         Don't consider the width for tmp_length. Check count against tmp_length
52344         before doing the padding. Ensure enough allocation during padding.
52345
52346 2008-03-30  Eric Blake  <ebb9@byu.net>
52347
52348         strtod touchups.
52349         * lib/strtod.c (strtod): Avoid compiler warnings.
52350         Reported by Jim Meyering.
52351
52352 2008-03-30  Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52355         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52356         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52357         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52358         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52359         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52360         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52361         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52362
52363         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52364         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52365         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52366         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52367         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52368         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52369         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52370         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52371
52372         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52373         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52374         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52375         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52376         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52377         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52378         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52379         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52380
52381         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52382         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52383
52384         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52385         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52386
52387         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52388         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52389
52390         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52392         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52393
52394         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52396         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52397
52398         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52400         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52401
52402         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52404         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52405
52406         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52407         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52409         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52410         (Depends-on): Add EOVERFLOW.
52411         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52412         (Depends-on): Add EOVERFLOW.
52413         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52414         (Depends-on): Add EOVERFLOW.
52415         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52416         (Depends-on): Add EOVERFLOW.
52417         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52418         (Depends-on): Add EOVERFLOW.
52419         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52420         (Depends-on): Add EOVERFLOW.
52421         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52422         (Depends-on): Add EOVERFLOW.
52423         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52424         (Depends-on): Add EOVERFLOW.
52425
52426         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52428         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52429
52430         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52432         * modules/snprintf (Depends-on): Add EOVERFLOW.
52433
52434         * lib/poll.c (EOVERFLOW): Remove fallback.
52435         * modules/poll (Depends-on): Add EOVERFLOW.
52436
52437         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52438         * modules/getugroups (Depends-on): Add EOVERFLOW.
52439
52440         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52441         * modules/getdelim (Depends-on): Add EOVERFLOW.
52442
52443         * lib/ftell.c (EOVERFLOW): Remove fallback.
52444         * modules/ftell (Depends-on): Add EOVERFLOW.
52445
52446         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52447         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52448         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52449
52450         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52451
52452         * modules/EOVERFLOW-tests: New file.
52453         * tests/test-EOVERFLOW.c: New file.
52454
52455         * modules/EOVERFLOW: New file.
52456         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52457
52458 2008-03-30  Bruno Haible  <bruno@clisp.org>
52459
52460         Fix bug introduced on 2007-06-10.
52461         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52462         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52463
52464 2008-03-30  Bruno Haible  <bruno@clisp.org>
52465
52466         Improve freadseek's efficiency after ungetc.
52467         * lib/freadseek.c: Include freadahead.h.
52468         (freadptrinc): New function, extracted from freadseek.
52469         (freadseek): Use it in a loop. Use freadahead to determine the number
52470         of loop iterations.
52471         * modules/freadseek (Depends-on): Add freadahead.
52472         (configure.ac): Require AC_C_INLINE.
52473
52474 2008-03-30  Bruno Haible  <bruno@clisp.org>
52475
52476         * lib/freadseek.c (freadseek): Don't ignore the return value of
52477         freadptr.
52478
52479 2008-03-29  Eric Blake  <ebb9@byu.net>
52480
52481         Add hex float support.
52482         * modules/strtod (Depends-on): Add c-ctype.
52483         (Link): Mention POW_LIB.
52484         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52485         whitespace between 'e' and exponent.
52486         * tests/test-strtod.c (main): Enable hex float tests.
52487         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52488         now provides.
52489
52490         Document various strtod bugs, with some fixes.
52491         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52492         "-0x", "inf", "nan", and hex constants.
52493         * doc/posix-functions/atof.texi (atof): Likewise.
52494         * modules/stdlib (Makefile.am): Support strtod.
52495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52496         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52497         detect additional strtod bugs.
52498         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52499         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52500         bool where appropriate.  Parse 'inf' and 'nan'.
52501         * tests/test-strtod.c: New file.
52502         * modules/strtod (Depends-on): Add stdbool, stdlib.
52503         (configure.ac): Turn on module indicator.
52504         * modules/strtod-tests: New module.
52505
52506 2008-03-29  Eric Blake  <ebb9@byu.net>
52507
52508         Fix ftell on mingw.
52509         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52510         * modules/ftell-tests (Depends-on): Add binary-io.
52511         * modules/ftello-tests (Depends-on): Likewise.
52512         * tests/test-ftell.c (main): Enhance test to cover behavior after
52513         ungetc.  Enforce binary mode.
52514         * tests/test-ftello.c (main): Likewise.
52515
52516         Pass test-freadseek on cygwin.
52517         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52518         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52519         ungetc buffer.
52520
52521         * tests/test-fflush2.c (main): Fix typo.
52522
52523 2008-03-29  Bruno Haible  <bruno@clisp.org>
52524
52525         * tests/test-fflush2.c (main): Temporarily disable the contents of
52526         this test.
52527         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52528         Reported by Eric Blake.
52529
52530 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52531
52532         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52533         (GC_SHA224_DIGEST_SIZE): Add.
52534
52535         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52536         (gc_hash_digest_length): Likewise.
52537         (gc_hash_buffer): Likewise.
52538
52539 2008-03-25  Bruno Haible  <bruno@clisp.org>
52540
52541         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52542         detail which gettext release to use.
52543         Reported by Simon Josefsson.
52544
52545 2008-03-26  Jim Meyering  <meyering@redhat.com>
52546
52547         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52548         * modules/gnumakefile (clean-GNUmakefile): Also, use
52549         test ... && ... || : syntax rather than if-then ... fi.
52550
52551         gnumakefile: Don't double-quote-expand $(VPATH) value.
52552         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52553
52554 2008-03-24  Eric Blake  <ebb9@byu.net>
52555
52556         Alter GNUmakefile to install into top directory.
52557         * modules/maintainer-makefile: Split, and add dependency...
52558         * modules/gnumakefile: to this new module.
52559         * build-aux/GNUmakefile: Move...
52560         * top/GNUmakefile: ...here.
52561         * build-aux/maint.mk: Move...
52562         * top/maint.mk: ...here.
52563         * MODULES.html.sh (Support for maintaining...): Document new
52564         module.
52565
52566 2008-03-23  Bruno Haible  <bruno@clisp.org>
52567
52568         * gnulib-tool: New options --vc-files, --no-vc-files.
52569         (func_usage): Document them.
52570         (vc_files): New variable.
52571         (func_import): Consider vc_files.
52572         (func_create_testdir): Set vc_files to empty.
52573         Suggested by Jim Meyering and Karl Berry.
52574
52575 2008-03-23  Bruno Haible  <bruno@clisp.org>
52576
52577         Fix regex compilation error on HP-UX 11.
52578         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52579         * modules/regex (Files): Add m4/mbstate_t.m4.
52580         Reported by Ton Voon <ton.voon@altinity.com>.
52581
52582 2008-03-23  Bruno Haible  <bruno@clisp.org>
52583
52584         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52585
52586 2008-03-23  Eric Blake  <ebb9@byu.net>
52587             Bruno Haible  <bruno@clisp.org>
52588
52589         Install files from top/ in the destination directory.
52590         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52591         augmentation also for the files from top/.
52592         (func_import, func_create_testdir): Rewrite file names:
52593         top/filename -> filename.
52594
52595 2008-03-23  Bruno Haible  <bruno@clisp.org>
52596
52597         Tweak "gnulib --version" output.
52598         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52599
52600 2008-03-23  Bruno Haible  <bruno@clisp.org>
52601
52602         Tweak "gnulib --version" output.
52603         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52604         rather than contents of ChangeLog, when possible.
52605
52606 2008-03-21  Eric Blake  <ebb9@byu.net>
52607
52608         More --version tweaks.
52609         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52610         date of last ChangeLog entry.
52611
52612 2008-03-21  Jim Meyering  <meyering@redhat.com>
52613
52614         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52615
52616 2008-03-20  Eric Blake  <ebb9@byu.net>
52617
52618         VPATH fix.
52619         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52620
52621 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52622
52623         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52624         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52625
52626 2008-03-20  Eric Blake  <ebb9@byu.net>
52627
52628         Sync GNUmakefile with coreutils.
52629         * build-aux/GNUmakefile (have-Makefile): Rename...
52630         (_have-Makefile): ...to this, for namespace consideration.
52631         (GNUmakefile.cfg): Include, if present.
52632         (_autoreconf): Define a default.
52633         (_is-dist-target): New rule for rebuilds to pick up intra-release
52634         version.
52635         (maint-cfg.mk): Rename...
52636         (cfg.mk): ...to this.
52637
52638 2008-03-18  Jim Meyering  <meyering@redhat.com>
52639
52640         New script and module: mktempd
52641         * MODULES.html.sh (maint+release support): Add mktempd.
52642         * build-aux/mktempd: New file.
52643         * modules/mktempd: New file.
52644
52645 2008-03-15  Jim Meyering  <meyering@redhat.com>
52646
52647         Undo last change.
52648         * lib/sha1.c, lib/md5.c: 63 != ~63.
52649         Reported by Andreas Schwab.
52650
52651         sha1.c, md5.c: Hoist a redundant expression.
52652         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52653         "ctx->buflen" only once, before calling *_process_block.
52654         * lib/md5.c (md5_process_bytes): Likewise.
52655
52656 2008-03-14  Eric Blake  <ebb9@byu.net>
52657
52658         Bump copyright year in files generated by gnulib-tool.
52659         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52660         gnulib-tool, rather than hard-coding it.
52661
52662         Fix 'gnulib-tool --version' output to work with git.
52663         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52664         (startup): ...here.
52665         (func_version): Use it to invoke git-version-gen, rather than
52666         relying on CVS keyword expansion.  Modernize wording.
52667         (cvsdatestamp, last_checkin_date, version): Kill unused
52668         variables.
52669
52670 2008-03-12  Jim Meyering  <meyering@redhat.com>
52671
52672         Recognize optional cast of the argument to free.
52673         * build-aux/useless-if-before-free: Update regexps.
52674
52675         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52676
52677 2008-03-11  Bruno Haible  <bruno@clisp.org>
52678
52679         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52680         by a single package.
52681         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52682         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52683         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52684         Reported by Sam Steingold <sds@gnu.org>.
52685
52686 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52687
52688         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52689         repositories.
52690
52691 2008-03-11  Bruno Haible  <bruno@clisp.org>
52692
52693         Avoid conflicts between local macro definitions.
52694         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52695         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52696
52697 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52698             Bruno Haible  <bruno@clisp.org>
52699
52700         Make va_copy work with some version of xlc on AIX 5.1.
52701         * lib/stdarg.in.h: New file.
52702         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52703         On AIX, use a <stdarg.h> file substitute.
52704         * modules/stdarg (Files): Add lib/stdarg.in.h.
52705         (Depends-on): Add include_next.
52706         (Makefile.am): Build a stdarg.h substitute if requested.
52707         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52708
52709 2008-03-10  Bruno Haible  <bruno@clisp.org>
52710
52711         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52713         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52714
52715 2008-03-10  Bruno Haible  <bruno@clisp.org>
52716
52717         * modules/stdlib (Depends-on): Add include_next, remove
52718         absolute-header.
52719
52720 2008-03-09  Bruno Haible  <bruno@clisp.org>
52721
52722         * lib/freadahead.h (freadahead): Document more precisely.
52723         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52724         the sum of both buffer sizes.
52725         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52726         * NEWS: Document the change.
52727
52728 2008-03-09  Bruno Haible  <bruno@clisp.org>
52729
52730         Extend freadptr to return also the buffer size.
52731         * lib/freadptr.h (freadptr): Add sizep argument.
52732         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52733         (freadptr): Add sizep argument. Determine buffer size like freadahead
52734         does.
52735         * tests/test-freadptr.c: Don't include freadahead.h.
52736         (main): Adapt for new calling convention of freadptr.
52737         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52738         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52739         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52740         tests/test-freadptr2.sh.
52741         (Depends): Remove freadahead.
52742         (TESTS): Add test-freadptr2.sh.
52743         (check_PROGRAMS): Add test-freadptr2.
52744
52745 2008-03-09  Bruno Haible  <bruno@clisp.org>
52746
52747         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52748         Report and solution by Simon Josefsson.
52749
52750 2008-03-06  Bruno Haible  <bruno@clisp.org>
52751
52752         Make fflush after ungetc work on BSD platforms.
52753         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52754         * tests/test-fflush2.c: New file.
52755         * tests/test-fflush2.sh: New file.
52756         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52757         tests/test-fflush2.c.
52758         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52759         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52760
52761 2008-03-06  Eric Blake  <ebb9@byu.net>
52762
52763         Likewise for ftello.
52764         * modules/ftello (Dependencies): Add extensions.
52765         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52766
52767 2008-03-06  Bruno Haible  <bruno@clisp.org>
52768
52769         * modules/fseeko (Dependencies): Add extensions.
52770         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52771         Needed on glibc systems.
52772
52773 2008-03-06  Bruno Haible  <bruno@clisp.org>
52774
52775         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52776         email address.
52777         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52778
52779 2008-03-06  Bruno Haible  <bruno@clisp.org>
52780
52781         * users.txt: Add libgnupdf.
52782
52783 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52784
52785         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52786         (Header File Substitutes, Function Substitutes,
52787         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52788         (Build robot for gnulib): Fix typo.
52789
52790 2008-03-06  Bruno Haible  <bruno@clisp.org>
52791
52792         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52793         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52794
52795 2008-03-06  Bruno Haible  <bruno@clisp.org>
52796
52797         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52798         * doc/gnulib.texi: Include it.
52799
52800 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52801
52802         * modules/func (License): Change license to unlimited; there was
52803         no LGPL parts in the module anyway.
52804
52805 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52806
52807         * modules/__func__: Renamed to modules/func.
52808         * modules/__func__-tests: Renamed to modules/func-tests.
52809         * tests/test-__func__.c: Renamed to tests/test-func.c.
52810         * m4/__func__.m4: Renamed to m4/func.m4.
52811         * doc/gnulib.texi (__func__): Section renamed to func.
52812         Suggested by Eric Blake <ebb9@byu.net>.
52813
52814 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52815
52816         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52817         about __func__.  Make example self-contained.  Suggested by Eric
52818         Blake <ebb9@byu.net>.
52819
52820         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52821         Suggested by Eric Blake <ebb9@byu.net>.
52822
52823 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52824
52825         * modules/__func__: New file.
52826         * modules/__func__-tests: New file.
52827         * tests/test-__func__.c: New file.
52828         * m4/__func__.m4: New file.
52829         * doc/gnulib.texi (__func__): Document __func__ module.
52830
52831 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52832
52833         * modules/byteswap (License): Re-license as LGPLv2+.
52834
52835 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52836
52837         * doc/Makefile: Add pdf target.
52838
52839 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52840
52841         * modules/inline (License): Use 'unlimited', since there are only
52842         *.m4 files in this module.
52843
52844 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52845             Bruno Haible  <bruno@clisp.org>
52846
52847         Add support for HP C 7.1 on OpenVMS 8.3.
52848         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52849
52850 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52851
52852         Update VMS specifics.
52853         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52854
52855 2008-03-02  Jim Meyering  <meyering@redhat.com>
52856
52857         Remove the last dependency on the "free" module.
52858         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52859         Reported by Bob Proulx.
52860
52861         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52862
52863         Remove useless "if" tests before free.  Deprecate "free" module.
52864         * doc/posix-functions/free.texi: Mention that this
52865         module is no longer useful.
52866         * modules/free (Notice): Say this module is obsolete.
52867         * modules/readutmp (Depends-on): Remove free.
52868         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52869         * lib/putenv.c (putenv): Likewise.
52870         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52871         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52872         * tests/test-c-strcasestr.c (main): Likewise.
52873         * tests/test-c-strstr.c (main): Likewise.
52874         * tests/test-mbscasestr1.c (main): Likewise.
52875         * tests/test-mbscasestr2.c (main): Likewise.
52876         * tests/test-mbsstr1.c (main): Likewise.
52877         * tests/test-mbsstr2.c (main): Likewise.
52878         * tests/test-memmem.c (main): Likewise.
52879         * tests/test-strcasestr.c (main): Likewise.
52880         * tests/test-striconv.c (main): Likewise.
52881         * tests/test-striconveh.c (main): Likewise.
52882         * tests/test-striconveha.c (main): Likewise.
52883         * tests/test-strstr.c (main): Likewise.
52884
52885         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52886
52887         bootstrap: sync from coreutils again
52888         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52889
52890 2008-03-01  Jim Meyering  <meyering@redhat.com>
52891
52892         bootstrap: sync from coreutils
52893         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52894         also when the target doesn't exist.
52895
52896 2008-03-01  Eric Blake  <ebb9@byu.net>
52897
52898         Fix bugs in last patch.
52899         * lib/memchr2.c (memchr2): Fix typo.
52900         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52901         extension.
52902         Reported by Bruce Korb.
52903
52904         New module 'memchr2'.
52905         * modules/memchr2: New file.
52906         * modules/memchr2-tests: Likewise.
52907         * lib/memchr2.h: Likewise.
52908         * lib/memchr2.c: Likewise, based on memchr.c.
52909         * tests/test-memchr2.c: New test.
52910         * MODULES.html.sh (String handling): Add memchr2.
52911
52912 2008-02-29  Bruno Haible  <bruno@clisp.org>
52913
52914         * modules/freadseek-tests: New file.
52915         * tests/test-freadseek.sh: New file.
52916         * tests/test-freadseek.c: New file.
52917
52918         New module 'freadseek'.
52919         * modules/freadseek: New file.
52920         * lib/freadseek.h: New file.
52921         * lib/freadseek.c: New file.
52922         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52923
52924 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52925
52926         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52927         wydawca.
52928
52929         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52930         program_invocation_name and program_invocation_short_name are
52931         present.
52932
52933 2008-02-28  Bruno Haible  <bruno@clisp.org>
52934
52935         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52936         * tests/test-freadptr.sh: Also test non-seekable stdin.
52937
52938 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52939
52940         * build-aux/bootstrap (source_base, m4_base)
52941         (doc_base, tests_base): New variables.
52942         (gnulib_tool_options): Do not hardcode base directories, use
52943         the above variables instead.
52944
52945 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52946
52947         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52948
52949 2008-02-28  Bruno Haible  <bruno@clisp.org>
52950
52951         * modules/freadptr-tests: New file.
52952         * tests/test-freadptr.sh: New file.
52953         * tests/test-freadptr.c: New file.
52954
52955         New module 'freadptr'.
52956         * modules/freadptr: New file.
52957         * lib/freadptr.h: New file.
52958         * lib/freadptr.c: New file.
52959         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52960
52961 2008-02-26  Karl Berry  <karl@freefriends.org>
52962
52963         Sync from Libtool:
52964         * libltdl/argz.c (argz_add, argz_count): New functions.
52965         * libltdl/argz.in.h: Declare them.
52966         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52967
52968 2008-02-22  Bruno Haible  <bruno@clisp.org>
52969
52970         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52971         is a pointer type.  Needed for HP-UX 10.
52972         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52973         * doc/posix-functions/gmtime_r.texi: Likewise.
52974         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52975
52976 2008-02-24  Bruno Haible  <bruno@clisp.org>
52977
52978         * modules/environ-tests: New file.
52979         * tests/test-environ.c: New file.
52980
52981         New module 'environ'.
52982         * modules/environ: New file.
52983         * lib/unistd.in.h (environ): New declaration.
52984         * m4/environ.m4: New file.
52985         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52986         after use.
52987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52988         HAVE_DECL_ENVIRON.
52989         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52990         HAVE_DECL_ENVIRON.
52991         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52992         wrong claim that 'environ' is missing on some systems.
52993         * modules/execute (Depends-on): Add environ.
52994         * lib/execute.c (environ): Remove fallback declaration.
52995         * modules/pipe (Depends-on): Add environ.
52996         * lib/pipe.c (environ): Remove fallback declaration.
52997         * modules/setenv (Depends-on): Add environ.
52998         * lib/setenv.c (environ): Remove fallback declaration.
52999         * modules/unsetenv (Depends-on): Add environ.
53000         * lib/unsetenv.c (environ): Remove fallback declaration.
53001         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53002         m4/environ.m4.
53003         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53004         (gl_PREREQ_UNSETENV): Likewise.
53005
53006 2008-02-24  Bruno Haible  <bruno@clisp.org>
53007
53008         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53009
53010 2008-02-20  Bob Proulx  <bob@proulx.com>
53011
53012         Enable use of older two part flavor 'git describe'.
53013         * build-aux/git-version-gen: If using the older two part flavor of
53014         git version then recreate the third part now present in the
53015         newer three part flavor of git describe.
53016
53017 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53018
53019         * lib/fts.c (fts_build): Typo correction to comment.
53020
53021 2008-02-17  Bruno Haible  <bruno@clisp.org>
53022
53023         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53024         generating no-op conflicts.
53025
53026 2008-02-17  Bruno Haible  <bruno@clisp.org>
53027
53028         Speed up by 10%.
53029         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53030         result_entries, rather than an index-based loop.
53031
53032 2008-02-17  Bruno Haible  <bruno@clisp.org>
53033
53034         Speed up by 25%.
53035         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53036         'hashcode_cached'.
53037         (entry_create): New function.
53038         (entry_hashcode): Use the cached hashcode if possible.
53039         (read_changelog_file, try_split_merged_entry): Use entry_create.
53040
53041 2008-02-17  Bruno Haible  <bruno@clisp.org>
53042
53043         Speed up from O(n^2) to O(n) for long ChangeLog files.
53044         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53045         (read_changelog_file): Change implementation of entries_reversed list
53046         to rbtreehash.
53047         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53048
53049 2008-02-17  Bruno Haible  <bruno@clisp.org>
53050
53051         New option --split-merged-entry.
53052         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53053         (find_paragraph_end, try_split_merged_entry): New functions.
53054         (long_options): Add option --split-merged-entry.
53055         (usage): Document option --split-merged-entry.
53056         (main): Implement option --split-merged-entry.
53057         Reported by Eric Blake.
53058
53059 2008-02-17  Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/git-merge-changelog.c: Include c-strstr.h.
53062         (main): Support the "git pull --rebase" situation.
53063         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53064         Reported by Eric Blake.
53065
53066 2008-02-16  Eric Blake  <ebb9@byu.net>
53067
53068         Avoid doubling \ in common case of "c-maybe" quoting style.
53069         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53070         eliding outer quotes.
53071         * lib/quotearg.h: Document this.
53072         * tests/test-quotearg.c (result_strings, inputs, results_g)
53073         (flag_results, locale_results): Test it by adding a new string to
53074         each test group.
53075         (compare_strings): Test new string.
53076
53077 2008-02-13  Eric Blake  <ebb9@byu.net>
53078
53079         Avoid trigraph quoting in default output.
53080         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53081         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53082         unless explicitly requested.
53083         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53084
53085 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53086
53087         Don't rely on signed integer overflowing to negative value.
53088         * lib/getugroups.c (getugroups): Include <limits.h>.
53089         Instead, compare against INT_MAX, and increment only if the test passes.
53090
53091 2008-02-13  Jim Meyering  <meyering@redhat.com>
53092         and Eric Blake  <ebb9@byu.net>
53093
53094         Avoid shadowing warning and compile errors on Linux.
53095         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53096         forwarding macros on Linux.
53097         (dcgettext): Define a stub, for Linux.
53098         (results_g, main): Avoid warnings.
53099
53100 2008-02-12  Eric Blake  <ebb9@byu.net>
53101
53102         Silence warning in last patch.
53103         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53104
53105         Quotearg part 4: add tests, fix c-maybe colon quoting.
53106         * lib/quotearg.h: Improve documentation.
53107         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53108         escapes when adding outer quotes.  When quoting trigraphs, use
53109         valid C notation.  When quoting NUL, omit extra characters if next
53110         character is not digit.  Alter prototype.
53111         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53112         callers.
53113         * modules/quotearg-tests: New module.
53114         * tests/test-quotearg.c: New test.
53115
53116 2008-02-07  Eric Blake  <ebb9@byu.net>
53117
53118         Quotearg part 3: add flag to control outer quote elision.
53119         * lib/quotearg.h (c_maybe_quoting_style): New style.
53120         (enum quoting_flags): Better documentation of flags.
53121         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53122         c-maybe style.
53123         (quotearg_buffer_restyled): Handle new flag to elide outer
53124         quotes.
53125
53126         Quotearg part 2: add flag that can control NUL elision.
53127         * lib/quotearg.h (set_quoting_flags): New prototype.
53128         * lib/quotearg.c (struct quoting_options): Add flag field.
53129         (set_quoting_flags): New function.
53130         (quotearg_buffer_restyled): Add flags parameter.
53131         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53132         (quotearg_n_options): Set the flag, since length cannot be
53133         returned.
53134         (quoting_options_from_style): Default flags correctly.
53135
53136         Quotearg part 1: more wrappers, restore quotearg_char state.
53137         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53138         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53139         (quotearg_colon_mem): New wrappers.
53140         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53141         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53142         functions.
53143         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53144         (quotearg_colon_mem): New functions.
53145
53146 2008-02-11  Bruno Haible  <bruno@clisp.org>
53147
53148         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53149         library in the current directory: it does not work with parallel make.
53150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53151
53152 2008-02-11  Bruno Haible  <bruno@clisp.org>
53153
53154         * .gitattributes: New file.
53155
53156 2008-02-11  Jim Meyering  <meyering@redhat.com>
53157
53158         useless-if-before-free: Fix reversed exit values.
53159         * build-aux/useless-if-before-free: Use correct values
53160         for EXIT_MATCH and EXIT_NO_MATCH.
53161
53162         * build-aux/useless-if-before-free: Close stdout carefully.
53163
53164 2008-02-10  Bruno Haible  <bruno@clisp.org>
53165
53166         New module 'git-merge-changelog'.
53167         * modules/git-merge-changelog: New file.
53168         * lib/git-merge-changelog.c: New file.
53169
53170 2008-02-10  Jim Meyering  <meyering@redhat.com>
53171
53172         useless-if-before-free: New option: --list (-l).
53173
53174         useless-if-before-free: Don't exit immediately upon open failure.
53175         * build-aux/useless-if-before-free: Exit 2 for errors.
53176         Upon failure to open a file, don't exit immediately.
53177         Rather, just warn and continue with any remaining files.
53178
53179 2008-02-10  Bruno Haible  <bruno@clisp.org>
53180
53181         New abstract list operation 'node_set_value'.
53182         * lib/gl_list.h (gl_list_node_set_value): New function.
53183         (struct gl_list_implementation): New field node_set_value.
53184         * lib/gl_list.c (gl_list_node_set_value): New function.
53185         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53186         (gl_array_list_implementation): Update.
53187         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53188         (gl_carray_list_implementation): Update.
53189         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53190         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53191         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53192         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53193         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53194         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53195         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53196         Update.
53197         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53198         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53199         (gl_sublist_list_implementation): Update.
53200
53201 2008-02-10  Bruno Haible  <bruno@clisp.org>
53202
53203         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53204         Needed when ELEMENT is #defined to 'some_type *'.
53205
53206 2008-02-10  Jim Meyering  <meyering@redhat.com>
53207
53208         New script and module: useless-if-before-free
53209         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53210         * build-aux/useless-if-before-free: New file.
53211         * modules/useless-if-before-free: New file.
53212
53213         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53214
53215         xstrtol_error: Fix typo.
53216         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53217         s/exit_failure/exit_status/.
53218
53219 2008-02-09  Jim Meyering  <meyering@redhat.com>
53220
53221         New script and module: gitlog-to-changelog
53222         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53223         * modules/gitlog-to-changelog: New file.
53224         * build-aux/gitlog-to-changelog: New file.
53225
53226 2008-02-08  Jim Meyering  <meyering@redhat.com>
53227
53228         Avoid two "parameter unused" warnings.
53229         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53230         Mark "st" as used.
53231
53232         Use "git COMMAND", not "git-COMMAND".
53233         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53234         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53235         * build-aux/git-version-gen: Use "git status", not "git-status".
53236
53237 2008-02-07  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53240         Avoids a crash on Windows Vista.
53241         Reported by Adam Strzelecki <ono@java.pl> via
53242         Simon Josefsson <simon@josefsson.org>.
53243
53244 2008-02-06  Bruno Haible  <bruno@clisp.org>
53245
53246         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53247         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53248         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53250         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53252         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53253         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53261         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53262         left-adjust flag.
53263         * tests/test-snprintf-posix.h (test_function): Likewise.
53264         * tests/test-sprintf-posix.h (test_function): Likewise.
53265         * tests/test-vasprintf-posix.c (test_function): Likewise.
53266         * doc/posix-functions/fprintf.texi: Update.
53267         * doc/posix-functions/printf.texi: Update.
53268         * doc/posix-functions/snprintf.texi: Update.
53269         * doc/posix-functions/sprintf.texi: Update.
53270         * doc/posix-functions/vfprintf.texi: Update.
53271         * doc/posix-functions/vprintf.texi: Update.
53272         * doc/posix-functions/vsnprintf.texi: Update.
53273         * doc/posix-functions/vsprintf.texi: Update.
53274         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53275
53276 2008-02-06  Bruno Haible  <bruno@clisp.org>
53277
53278         Fix bug introduced on 2008-01-26.
53279         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53280
53281 2008-02-06  Bruno Haible  <bruno@clisp.org>
53282
53283         Fix bug introduced on 2007-06-10.
53284         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53285         !NEED_PRINTF_FLAG_ZERO.
53286
53287 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53288
53289         getloadavg: use libperfstat on AIX5
53290         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53291
53292 2008-02-03  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/diffseq.h: Add comments about required #includes.
53295         Reported by Michael Biggs <gnulib@doubleplum.net>.
53296
53297 2008-02-01  Bruno Haible  <bruno@clisp.org>
53298
53299         * users.txt: Add gnuit.
53300
53301 2008-01-31  Bruno Haible  <bruno@clisp.org>
53302
53303         * lib/md4.c (set_uint32): Mark as inline.
53304         * lib/md5.c (set_uint32): Likewise.
53305         * lib/sha1.c (set_uint32): Likewise.
53306         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53307         * m4/md5.m4 (gl_MD5): Likewise.
53308         * m4/sha1.m4 (gl_SHA1): Likewise.
53309
53310 2008-01-31  Jim Meyering  <meyering@redhat.com>
53311
53312         Use "sizeof VAR", rather than a literal "4".
53313         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53314         * lib/md4.c (md4_read_ctx): Likewise.
53315         * lib/sha1.c (sha1_read_ctx): Likewise.
53316
53317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53318
53319         * tests/test-sha1.c: New file, based on test-md5.c.
53320
53321         * modules/crypto/sha1-tests: New file.
53322
53323 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53324
53325         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53326
53327 2008-01-31  Jim Meyering  <meyering@redhat.com>
53328
53329         Prefer "sizeof v" over the equivalent "4".
53330         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53331         * lib/md5.c (set_uint32): Likewise.
53332         * lib/sha1.c (set_uint32): Likewise.
53333
53334 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53335
53336         * lib/sha1.c (set_uint32): Mark function as static.
53337
53338 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53339
53340         md2: clarify comments to say that alignment is not required.
53341         * lib/md2.h: Remove warning about alignment in comment.
53342         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53343         never been required.
53344
53345 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53346
53347         md4: adapt alignment constraint fix from sha1.
53348         * lib/md4.c (set_uint32): New function, from sha1.c
53349         (md4_read_ctx): Use it.
53350         (md4_finish_ctx): Doc fix.
53351         * lib/md4.h: Doc fix.
53352
53353 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53354
53355         md5: adapt alignment constraint fix from sha1.
53356         * lib/md5.c (set_uint32): New function, from sha1.c
53357         (md5_read_ctx): Use it.
53358         (md5_finish_ctx): Doc fix.
53359         * lib/md5.h: Doc fix.
53360
53361 2008-01-30  Peter Palfrader  <weasel@debian.org>
53362
53363         sha1: remove the result buffer alignment constraint
53364         * lib/sha1.c (set_uint32): New function.
53365         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53366         constraint.
53367         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53368         * lib/sha1.h: Likewise.
53369
53370 2008-01-30  Andreas Schwab  <schwab@suse.de>
53371             Bruno Haible  <bruno@clisp.org>
53372
53373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53374         correct definition of LDBL_MIN_EXP.
53375
53376 2008-01-30  Karl Berry  <karl@gnu.org>
53377
53378         * config/srclist-update: try to preserve x bit on updates.
53379         * config/srclistvars.sh: update for karl.
53380
53381 2008-01-29  Jim Meyering  <meyering@redhat.com>
53382
53383         vasnprintf.c: Avoid warning about unused label
53384         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53385         "overflow" label definition and associated code with the
53386         same cpp condition that guards the sole use of that label.
53387
53388 2008-01-26  Bruno Haible  <bruno@clisp.org>
53389
53390         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53391         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53392         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53393         * lib/isnanl-nolibm.h (isnanl): Likewise.
53394         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53395
53396 2008-01-26  Bruno Haible  <bruno@clisp.org>
53397
53398         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53399         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53400
53401 2008-01-26  Bruno Haible  <bruno@clisp.org>
53402
53403         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53404         GCC >= 4.0 built-in.
53405         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53406
53407 2008-01-26  Bruno Haible  <bruno@clisp.org>
53408
53409         Rename isnan, applicable to 'double' only, to isnand.
53410         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53411         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53412         (configure.ac): Update.
53413         (Include): Replace "isnan.h" with "isnand.h".
53414         * m4/isnand.m4: Renamed from m4/isnan.m4.
53415         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53416         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53417         instead of isnan.c.
53418         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53419         instead of HAVE_ISNAN_IN_LIBC.
53420         (isnand): Renamed from isnan.
53421         * lib/isnand.c: New file.
53422         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53423         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53424         (Makefile.am): Update.
53425         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53426         Include isnand.h instead of isnan.h.
53427         (main): Test isnand instead of isnan.
53428         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53429         isnan-nolibm.
53430         * modules/frexp (Depends-on): Likewise.
53431         * modules/frexp-tests (Depends-on): Likewise.
53432         * modules/frexp-nolibm (Depends-on): Likewise.
53433         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53434         * modules/isfinite (Depends-on): Likewise.
53435         * modules/round-tests (Depends-on): Likewise.
53436         * modules/signbit (Depends-on): Likewise.
53437         * modules/signbit-tests (Depends-on): Likewise.
53438         * modules/snprintf-posix (Depends-on): Likewise.
53439         * modules/sprintf-posix (Depends-on): Likewise.
53440         * modules/trunc-tests (Depends-on): Likewise.
53441         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53442         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53443         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53444         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53445         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53446         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53447         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53448         * modules/vasnprintf-posix (Depends-on): Likewise.
53449         * modules/vasprintf-posix (Depends-on): Likewise.
53450         * modules/vfprintf-posix (Depends-on): Likewise.
53451         * modules/vsnprintf-posix (Depends-on): Likewise.
53452         * modules/vsprintf-posix (Depends-on): Likewise.
53453         * lib/frexp.c: Include isnand.h instead of isnan.h.
53454         (ISNAN): Set to isnand instead of isnan.
53455         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53456         (gl_isfinited): Use isnand instead of isnan.
53457         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53458         (gl_signbitd): Use isnand instead of isnan.
53459         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53460         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53461         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53462         (main): Use isnand instead of isnan.
53463         * tests/test-round1.c: Include isnand.h.
53464         (main): Use isnand instead of isnan.
53465         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53466         (ISNAN): Set to isnand instead of isnan.
53467         * tests/test-trunc1.c: Include isnand.h.
53468         (main): Use isnand instead of isnan.
53469         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53470         (equal): Use isnand instead of isnan.
53471         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53472         isnand-nolibm.
53473         * NEWS: Mention the change.
53474
53475 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53476             Bruno Haible  <bruno@clisp.org>
53477
53478         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53479         the GCC builtins for signbits are present and set
53480         REPLACE_SIGNBIT_USING_GCC if so.
53481         * lib/math.in.h (signbit): Define using GCC builtins if
53482         REPLACE_SIGNBIT_USING_GCC is set.
53483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53484         REPLACE_SIGNBIT_USING_GCC.
53485         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53486
53487 2008-01-25  Jim Meyering  <meyering@redhat.com>
53488
53489         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53490         * lib/poll.c: Include <config.h>, not "config.h".
53491         * tests/test-getaddrinfo.c: Likewise.
53492
53493 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53494
53495         * modules/sockets-tests: New file.
53496
53497 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53498
53499         * modules/sockets: New module, can be used to call WSA_Startup and
53500         WSA_Cleanup when needed.
53501
53502         * lib/sockets.h, lib/sockets.c: New files.
53503
53504         * m4/sockets.m4: New file.
53505
53506         * tests/test-sockets.c: New file.
53507
53508 2008-01-19  Bruno Haible  <bruno@clisp.org>
53509
53510         * doc/posix-headers: Renamed from doc/headers.
53511         * doc/posix-functions: Renamed from doc/functions.
53512         * doc/gnulib.texi: Update.
53513
53514 2008-01-19  Bruno Haible  <bruno@clisp.org>
53515
53516         * doc/glibc-functions/strcasestr.texi: Include contents of
53517         doc/functions/strcasestr.texi, fixing the list of platforms.
53518         * doc/functions/strcasestr.texi: Remove file.
53519
53520 2008-01-19  Bruno Haible  <bruno@clisp.org>
53521
53522         * doc/glibc-functions/memmem.texi: Include contents of
53523         doc/functions/memmem.texi.
53524         * doc/functions/memmem.texi: Remove file.
53525
53526 2008-01-18  Bruno Haible  <bruno@clisp.org>
53527
53528         * doc/glibc-functions/*.texi: New files.
53529         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53530         to use the new files.
53531
53532 2008-01-17  Bruno Haible  <bruno@clisp.org>
53533
53534         * tests/test-gethostname.c (main): Fix printf statement.
53535
53536 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53537
53538         * modules/gethostname-tests: New file.
53539
53540         * tests/test-gethostname.c: New file.
53541
53542 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53543
53544         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53545         used by the UNAME case.  Reported by Bruno Haible
53546         <bruno@clisp.org>.
53547
53548 2008-01-17  Eric Blake  <ebb9@byu.net>
53549
53550         Convert c-strcasestr to be more efficient.
53551         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53552         (Depends-on): Add c-strcase, remove malloca, strnlen.
53553         * tests/test-c-strcasestr.c (main): Enhance test.
53554         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53555
53556 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53557
53558         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53559         Use it in creating po/Makevars.
53560
53561 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53562
53563         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53564         Applications that requires it should initialize libgcrypt
53565         manually.
53566
53567 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53568
53569         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53570
53571 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         Fix problem with getdate on mingw32 reported by Simon Josefsson
53574         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53575         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53576         tzname", when deciding whether to declare tzname.
53577         * lib/strftime.c (tzname): Likewise.
53578
53579 2008-01-15  Bruno Haible  <bruno@clisp.org>
53580
53581         Work around a MacOS X 10.5 bug in frexpl().
53582         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53583         * doc/functions/frexpl.texi: Document the bug.
53584         Reported by Elias Pipping <pipping@gentoo.org>.
53585
53586 2008-01-14  Eric Blake  <ebb9@byu.net>
53587
53588         Touch up previous patch.
53589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53590         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53591
53592         Convert strcasestr module to use Two-Way algorithm.
53593         * modules/strcasestr-simple: New module, based on the old
53594         strcasestr, but with Two-Way rather than KMP.
53595         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53596         * lib/string.in.h (rpl_strcasestr): Declare.
53597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53598         performance.
53599         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53600         * modules/string (Makefile.am): Support strcasestr.
53601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53602         * modules/strcasestr-tests (Depends-on): Check for alarm.
53603         * tests/test-strcasestr.c: Augment test.
53604         * lib/str-two-way.h: Clean up stray macro.
53605         * NEWS: Document new module.
53606         * MODULES.html.sh (string handling): Likewise.
53607         * doc/functions/strcasestr.texi: New file.
53608         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53609         here, since it is not a POSIX function.
53610
53611 2008-01-14  Colin Watson  <cjwatson@debian.org>
53612             Bruno Haible  <bruno@clisp.org>
53613
53614         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53615         works fine; if not, set REPLACE_STRSIGNAL.
53616         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53618         REPLACE_STRSIGNAL.
53619         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53620         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53621         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53622
53623 2008-01-14  Bruno Haible  <bruno@clisp.org>
53624
53625         * modules/strsignal (Include): Change to <string.h>.
53626
53627 2008-01-14  Colin Watson  <cjwatson@debian.org>
53628
53629         * modules/argp (Notice): Add a notice recommending to change
53630         XGETTEXT_OPTIONS.
53631         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53632
53633 2008-01-13  Colin Watson  <cjwatson@debian.org>
53634
53635         * modules/strsignal-tests: New file.
53636         * tests/test-strsignal.c: New file.
53637
53638         * lib/strsignal.c: New file, from glibc with modifications.
53639         * lib/siglist.h: New file, from glibc with modifications.
53640         * lib/string.in.h (strsignal): New declaration.
53641         * m4/strsignal.m4: New file.
53642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53643         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53644         * modules/strsignal: New file.
53645         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53646         HAVE_DECL_STRSIGNAL.
53647
53648 2008-01-13  Bruno Haible  <bruno@clisp.org>
53649
53650         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53651         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53652         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53653         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53654
53655 2008-01-13  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53658         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53659         * lib/argp.h (__attribute__): Likewise.
53660         * lib/c-stack.c (__attribute__): Likewise.
53661         * lib/error.h (__attribute__): Likewise.
53662         * lib/fts.c (__attribute__): Likewise.
53663         * lib/openat.h (__attribute__): Likewise.
53664         * lib/stdio.in.h (__attribute__): Likewise.
53665         * lib/string.in.h (__attribute__): Likewise.
53666         * lib/utimens.c (__attribute__): Likewise.
53667         * lib/vasnprintf.h (__attribute__): Likewise.
53668         * lib/xalloc.h (__attribute__): Likewise.
53669         * lib/xprintf.h (__attribute__): Likewise.
53670         * lib/xstrtol.h (__attribute__): Likewise.
53671         * lib/xvasprintf.h (__attribute__): Likewise.
53672
53673 2008-01-12  Bruno Haible  <bruno@clisp.org>
53674
53675         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53676         * doc/glibc-headers/a.out.texi: New file.
53677         * doc/glibc-headers/aliases.texi: New file.
53678         * doc/glibc-headers/alloca.texi: New file.
53679         * doc/glibc-headers/ar.texi: New file.
53680         * doc/glibc-headers/argp.texi: New file.
53681         * doc/glibc-headers/argz.texi: New file.
53682         * doc/glibc-headers/byteswap.texi: New file.
53683         * doc/glibc-headers/crypt.texi: New file.
53684         * doc/glibc-headers/endian.texi: New file.
53685         * doc/glibc-headers/envz.texi: New file.
53686         * doc/glibc-headers/err.texi: New file.
53687         * doc/glibc-headers/error.texi: New file.
53688         * doc/glibc-headers/execinfo.texi: New file.
53689         * doc/glibc-headers/fpu_control.texi: New file.
53690         * doc/glibc-headers/fstab.texi: New file.
53691         * doc/glibc-headers/fts.texi: New file.
53692         * doc/glibc-headers/getopt.texi: New file.
53693         * doc/glibc-headers/ieee754.texi: New file.
53694         * doc/glibc-headers/ifaddrs.texi: New file.
53695         * doc/glibc-headers/libintl.texi: New file.
53696         * doc/glibc-headers/mcheck.texi: New file.
53697         * doc/glibc-headers/mntent.texi: New file.
53698         * doc/glibc-headers/obstack.texi: New file.
53699         * doc/glibc-headers/paths.texi: New file.
53700         * doc/glibc-headers/printf.texi: New file.
53701         * doc/glibc-headers/pty.texi: New file.
53702         * doc/glibc-headers/resolv.texi: New file.
53703         * doc/glibc-headers/shadow.texi: New file.
53704         * doc/glibc-headers/sysexits.texi: New file.
53705         * doc/glibc-headers/ttyent.texi: New file.
53706
53707 2008-01-12  Jim Meyering  <meyering@redhat.com>
53708
53709         announce-gen: emit Gnulib's git-based version string.
53710         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53711         New option --gnulib-version=V, where V is expected to be
53712         the output of running git describe in the gnulib directory.
53713         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53714         not useful, and plan to stop publishing an xdelta file with each
53715         coreutils release.
53716
53717         * build-aux/announce-gen: Also check for lzma-compressed files.
53718
53719 2008-01-11  Bruno Haible  <bruno@clisp.org>
53720
53721         * tests/test-memmem.c (main): Increase maximum allowed time.
53722         * tests/test-strstr.c (main): Likewise.
53723
53724 2008-01-11  Bruno Haible  <bruno@clisp.org>
53725
53726         * doc/functions/memmem.texi: Add more precisions about platforms.
53727         * doc/functions/strstr.texi: Likewise.
53728
53729 2008-01-10  Eric Blake  <ebb9@byu.net>
53730
53731         * m4/strstr.m4: Delete cruft from copy-n-paste.
53732         Reported by Bruno Haible.
53733
53734 2008-01-10  Bruno Haible  <bruno@clisp.org>
53735
53736         Make c-strstr rely on strstr.
53737         * lib/c-strstr.c: Don't include str-kmp.h.
53738         (c_strstr): Define in terms of strstr.
53739         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53740         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53741
53742 2008-01-10  Bruno Haible  <bruno@clisp.org>
53743
53744         * doc/gnulib.texi (String Functions in C Locale): New section.
53745         * doc/c-ctype.texi: New file.
53746         * doc/c-strcase.texi: New file.
53747         * doc/c-strcaseeq.texi: New file.
53748         * doc/c-strcasestr.texi: New file.
53749         * doc/c-strstr.texi: New file.
53750         * doc/c-strtod.texi: New file.
53751         * doc/c-strtold.texi: New file.
53752
53753 2008-01-10  Eric Blake  <ebb9@byu.net>
53754
53755         * lib/relocatable.h: Fix a comment.
53756
53757 2008-01-10  Eric Blake  <ebb9@byu.net>
53758
53759         Share two-way algorithm.
53760         * lib/str-two-way.h: New file, merged from...
53761         * lib/memmem.c: ...here...
53762         * lib/strstr.c: ...and here.
53763         * modules/memmem (Files): Use it.
53764         * modules/strstr (Files): Likewise.
53765
53766         Avoid quadratic strstr implementations.
53767         * lib/strstr.c: New file.
53768         * m4/strstr.m4: Likewise.
53769         * modules/strstr: Likewise.
53770         * modules/strstr-tests: Likewise.
53771         * tests/test-strstr.c: Likewise.
53772         * lib/string.in.h (rpl_strstr): Declare.
53773         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53775         * modules/string (Makefile.am): Likewise.
53776         * MODULES.html.sh (string handling): Mention new module.
53777         * doc/functions/strstr.texi (strstr): Document the bug.
53778
53779 2008-01-10  Bruno Haible  <bruno@clisp.org>
53780
53781         * lib/relocatable.h (relocate): State whether result is freshly
53782         allocated or not.
53783         * lib/relocatable.c (relocate): Return a freshly allocated string
53784         instead of a pointer to a privately held string.
53785         Reported by Sylvain Beucler <beuc@gnu.org>.
53786
53787 2008-01-10  Colin Watson  <cjwatson@debian.org>
53788
53789         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53790         s/S_ISNLK/S_ISLNK/.
53791
53792 2008-01-09  Bruno Haible  <bruno@clisp.org>
53793
53794         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53795         and other files.
53796         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53797         if it's only a guess.
53798         * modules/memmem: Simplify by depending on memmem-simple.
53799
53800 2008-01-09  Bruno Haible  <bruno@clisp.org>
53801
53802         Work around OpenBSD 4.0 tdelete() bug.
53803         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53804         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53805         macros and don't redefine the enum values.
53806         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53807         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53808         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53809
53810 2008-01-09  Bruno Haible  <bruno@clisp.org>
53811
53812         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53813         (main): Don't perform the tests if setlocale did not install a UTF-8
53814         locale. Needed on OpenBSD 4.0.
53815         * modules/wcwidth-tests (Depends-on): Add localcharset.
53816
53817 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53818
53819         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53820         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53821         * NEWS: announce this.
53822         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53823
53824 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53825         and Eric Blake  <ebb9@byu.net>
53826
53827         Add memmem-simple module.
53828         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53829         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53830         * modules/memmem-simple: New file.
53831         * modules/memmem (Description): Tweak.
53832         * MODULES.html.sh (string handling): Mention new module.
53833         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53834         addressed by memmem-simple.
53835         * NEWS: Document the difference.
53836
53837 2008-01-09  Eric Blake  <ebb9@byu.net>
53838
53839         Give gcc some memmem optimization hints.
53840         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53841         (strcasestr): Declare as pure.
53842         * modules/memmem (Maintainer): Claim my implementation.
53843
53844 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53845
53846         Support AIX 6.1 and higher.
53847         * build-aux/config.libpath: Likewise.
53848         * build-aux/config.rpath: Likewise.
53849
53850 2008-01-08  Jim Meyering  <meyering@redhat.com>
53851             Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53854         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53855         Reported by Peter Fales in
53856         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53857
53858 2008-01-08  Bruno Haible  <bruno@clisp.org>
53859
53860         * modules/unictype/category-of (Depends-on): Add
53861         unictype/category-none.
53862         * modules/unictype/category-and-tests (Depends-on): Add
53863         unictype/category-{L,N,Lu,Nd}.
53864         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53865         * modules/unictype/category-or-tests (Depends-on): Add
53866         unictype/category-{L,N}.
53867         * modules/unictype/category-name-tests (Depends-on): Add
53868         unictype/category-{Z,Nl}.
53869         Reported by Simon Josefsson.
53870
53871 2008-01-08  Bruno Haible  <bruno@clisp.org>
53872
53873         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53874         convention better.
53875         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53876         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53877         Reported by Peter Miller <millerp@canb.auug.org.au>.
53878
53879 2008-01-08  Eric Blake  <ebb9@byu.net>
53880
53881         Rewrite memmem to guarantee linear complexity without malloc.
53882         * lib/memmem.c (memmem): Use Two-Way rather than
53883         Knuth-Morris-Pratt, to allow O(1) space usage.
53884         (critical_factorization, two_way_short_needle)
53885         (two_way_long_needle): New functions.
53886         (knuth_morris_pratt): Delete.
53887         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53888         Add stdint.
53889         * tests/test-memmem.c (main): Add tests for periodic needle and
53890         sublinear performance.
53891         * doc/functions/memmem.texi (memmem): Document other deficiencies
53892         in cygwin and older glibc.
53893
53894 2008-01-08  Bruno Haible  <bruno@clisp.org>
53895
53896         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53897         augmentation.
53898
53899 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53900
53901         Add a configure time option: --disable-acl.
53902         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53903         AC_ARG_ENABLE(acl).
53904
53905 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53906
53907         * tests/test-localename.c: Don't include obsolete "setenv.h".
53908
53909         * modules/localename-tests (Depends-on): Need unsetenv.
53910
53911 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53912
53913         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53914
53915 2008-01-06  Colin Watson  <cjwatson@debian.org>
53916
53917         * users.txt: Add man-db.
53918
53919 2008-01-07  Bruno Haible  <bruno@clisp.org>
53920
53921         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53922         previous section name.
53923
53924 2008-01-07  Bruno Haible  <bruno@clisp.org>
53925
53926         * lib/progname.c (set_program_name): Don't strip off a leading
53927         "lt-" prefix outside a .libs directory.
53928         Suggested by Paul Eggert.
53929
53930 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53931             Bruno Haible  <bruno@clisp.org>
53932
53933         Improve memory cleanup in 'relocatable' module.
53934         * lib/relocatable.h (compute_curr_prefix): Change return type to
53935         'char *'.
53936         * lib/relocatable.c (compute_curr_prefix): Change return type to
53937         'char *'. Free curr_installdir after use.
53938         (relocate): Free curr_prefix_better after use.
53939         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53940
53941 2008-01-01  Bruno Haible  <bruno@clisp.org>
53942
53943         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53944         failure on older glibc systems.
53945         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53946
53947 2008-01-05  Eric Blake  <ebb9@byu.net>
53948
53949         Avoid quadratic system memmem.
53950         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53951         Reported by Ralf Wildenhues.
53952
53953         Fix memmem test for mingw.
53954         * modules/memmem-tests (configure.ac): Check for alarm.
53955         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53956         it.
53957         * doc/functions/memmem.texi: New file.
53958         * doc/gnulib.texi (Function Substitutes): Add memmem.
53959         Reported by Bruno Haible.
53960
53961 2008-01-04  Bruno Haible  <bruno@clisp.org>
53962
53963         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53964         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53965         gl_HEADER_STRING_H_DEFAULTS.
53966
53967 2008-01-04  Eric Blake  <ebb9@byu.net>
53968
53969         Shorten duration of memmem test.
53970         * tests/test-memmem.c (main): Use alarm to declare failure if test
53971         is taking too long.
53972         Reported by Ralf Wildenhues.
53973
53974 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53975
53976         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53977         string, needed by strerror.
53978
53979 2008-01-03  Colin Watson  <cjwatson@debian.org>
53980             Bruno Haible  <bruno@clisp.org>
53981
53982         * doc/gnulib-tool.texi (Localization): New section.
53983
53984 2008-01-02  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53987         variables to 'unsigned char *' type.
53988         Reported by Paul Eggert.
53989
53990 2008-01-02  Jim Meyering  <jim@meyering.net>
53991
53992         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53993
53994 2007-12-31  Jim Meyering  <jim@meyering.net>
53995
53996         Avoid use of private FTS type name.
53997         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53998
53999 2007-12-30  Karl Berry  <karl@gnu.org>
54000
54001         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54002         work around defect in Texinfo and/or the standalone Info browser.
54003
54004 2007-12-30  Bruno Haible  <bruno@clisp.org>
54005
54006         Unify 5 copies of the KMP code.
54007         * lib/str-kmp.h: New file.
54008         * lib/c-strcasestr.c: Include str-kmp.h.
54009         (knuth_morris_pratt): Remove function.
54010         (c_strcasestr): Update.
54011         * lib/c-strstr.c: Include str-kmp.h.
54012         (knuth_morris_pratt): Remove function.
54013         (c_strcasestr): Update.
54014         * lib/mbscasestr.c: Include str-kmp.h.
54015         (knuth_morris_pratt_unibyte): Remove function.
54016         * lib/mbsstr.c: Include str-kmp.h.
54017         (knuth_morris_pratt_unibyte): Remove function.
54018         * lib/strcasestr.c: Include str-kmp.h.
54019         (knuth_morris_pratt): Remove function.
54020         (strcasestr): Update.
54021         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54022         * modules/c-strstr (Files): Likewise.
54023         * modules/mbscasestr (Files): Likewise.
54024         * modules/mbsstr (Files): Likewise.
54025         * modules/strcasestr (Files): Likewise.
54026         Suggested by Paul Eggert.
54027
54028 2007-12-30  Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54031         defined.
54032
54033 2007-12-30  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/xmalloca.h: Include xalloc.h.
54036         (xnmalloca): New macro.
54037
54038 2007-12-30  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/malloca.h (nmalloca): New macro.
54041         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54042         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54043         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54044         knuth_morris_pratt_multibyte): Likewise.
54045         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54046         knuth_morris_pratt_multibyte): Likewise.
54047         * lib/memmem.c (knuth_morris_pratt): Likewise.
54048         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54049
54050 2007-12-25  Bruno Haible  <bruno@clisp.org>
54051
54052         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54053         * lib/glob.c: Don't include openat.h.
54054         (link_exists2_p): Add back the code that deals with the
54055         !GLOB_ALTDIRFUNC case.
54056         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54057         let it do the filename concatenation.
54058         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54059         * modules/glob (Depends-on): Remove openat.
54060
54061 2007-12-31  Bruno Haible  <bruno@clisp.org>
54062
54063         * modules/dirfd (License): Change to LGPLv2+.
54064         Approved by Jim Meyering.
54065
54066 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54069         when multiplying M by sizeof (size_t).
54070
54071 2007-12-10  Martin Lambers  <marlam@marlam.de>
54072
54073         Override getpagesize on mingw.
54074         * lib/getpagesize.c: New file.
54075         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54076         * modules/getpagesize (Files): Add lib/getpagesize.c.
54077         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54079         REPLACE_GETPAGESIZE.
54080         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54081
54082 2007-12-25  Bruno Haible  <bruno@clisp.org>
54083
54084         * modules/localcharset (Notice): New field.
54085         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54086         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54087
54088 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54089             Bruno Haible  <bruno@clisp.org>
54090
54091         Avoid using the syntax symbol() in formatted documentation.
54092         * MODULES.html.sh (func_module): When replacing symbol() with a
54093         hyperlink, remove the parentheses. Show an error if some remain.
54094         Recognize and render the '...' syntax.
54095         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54096         Rework. Add paragraph about GCC's inlining.
54097         * doc/alloca.texi: Likewise.
54098         * doc/error.texi: Remove parentheses from symbol reference.
54099         * doc/gnulib-intro.texi: Likewise.
54100         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54101         * modules/fnmatch (Description): Reword to say "the ... function".
54102         * modules/full-read (Description): Likewise.
54103         * modules/full-write (Description): Likewise.
54104         * modules/safe-read (Description): Likewise.
54105         * modules/safe-write (Description): Likewise.
54106         * modules/strchrnul (Description): Likewise.
54107         * modules/trim (Description): Likewise.
54108         * modules/error (Description): Remove parentheses from symbol
54109         references.
54110         * modules/verror (Description): Likewise.
54111         Reported by Karl Berry.
54112
54113 2007-12-25  Bruno Haible  <bruno@clisp.org>
54114
54115         Fixup after 2007-10-16 commit.
54116         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54117
54118 2007-12-24  Bruno Haible  <bruno@clisp.org>
54119
54120         Make --enable-relocatable work with DESTDIR.
54121         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54122         to compute installdir from destprog.
54123         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54124         also set the RELOC_DESTDIR variable.
54125         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54126
54127 2007-12-24  Bruno Haible  <bruno@clisp.org>
54128
54129         Fix link error due to xalloc_die().
54130         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54131         of xreadlink.
54132         * lib/relocwrapper.c: Update comments.
54133         * build-aux/install-reloc: Remove xreadlink.c from file list.
54134         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54135         xreadlink.c.
54136         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54137
54138 2007-12-24  Bruno Haible  <bruno@clisp.org>
54139
54140         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54141         * lib/setenv.h: Remove file.
54142         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54143         lib/setenv.h.
54144         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54145         (Depends-on): Add stdlib.
54146         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54147         gl_FUNC_UNSETENV.
54148         (Include): Replace setenv.h with <stdlib.h>.
54149         * modules/unsetenv: New file.
54150         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54151         * lib/unsetenv.c: Include <stdlib.h> first.
54152         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54153         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54154         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54155         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54156         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54157         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54159         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54160         * doc/functions/unsetenv.texi: Update.
54161         * modules/xsetenv (Depends-on): Add unsetenv.
54162         * modules/getdate (Depends-on): Likewise.
54163         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54164         * lib/xsetenv.c: Don't include setenv.h.
54165         * lib/getdate.y: Likewise.
54166         * lib/relocwrapper.c: Likewise.
54167         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54168         (Depends-on): Add stdlib.
54169         * NEWS: Mention the changes.
54170         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54171
54172 2007-12-23  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54175         indentation.
54176
54177 2007-12-23  Bruno Haible  <bruno@clisp.org>
54178
54179         * lib/c-strcasestr.c: Add more comments.
54180         * lib/c-strstr.c: Likewise.
54181         * lib/mbscasestr.c: Likewise.
54182         * lib/mbsstr.c: Likewise.
54183         * lib/strcasestr.c: Likewise.
54184         * lib/memmem.c: Likewise.
54185
54186 2007-12-23  Bruno Haible  <bruno@clisp.org>
54187
54188         * tests/test-memmem.c: Include <string.h> first.
54189
54190 2007-12-22  Bruno Haible  <bruno@clisp.org>
54191
54192         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54193         the contents of $testsbase.
54194         Reported by Ralf Wildenhues.
54195
54196 2007-12-22  Bruno Haible  <bruno@clisp.org>
54197
54198         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54199         two variables local_ldadd_before, local_ldadd_last.
54200
54201 2007-12-20  Eric Blake  <ebb9@byu.net>
54202
54203         Work around circular library issue when cross-compiling.
54204         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54205         that progname.o does not need to pull in rpl_memcmp.
54206
54207 2007-12-19  Eric Blake  <ebb9@byu.net>
54208
54209         Fix memmem to avoid O(n^2) worst-case complexity.
54210         * lib/memmem.c (knuth_morris_pratt): New function.
54211         (memmem): Use it if first few naive iterations fail.
54212         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54213         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54214         * modules/memchr (License): Likewise.
54215         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54216         malloca.
54217         * tests/test-memmem.c: Rewrite, borrowing ideas from
54218         test-mbsstr1.c; the old version wouldn't even compile!
54219         * modules/memmem-tests: New file.
54220         * lib/string.in.h (rpl_memmem): Add declaration.
54221         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54223         REPLACE_MEMMEM.
54224
54225 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54226
54227         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54228         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54229         before any system include files, and undef after them all.  This
54230         should fix a problem on VMS reported by John E. Malmberg in
54231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54232
54233 2007-12-17  Eric Blake  <ebb9@byu.net>
54234
54235         Revert addition of verify, for BSD/OS.
54236         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54237         can't handle large files, for the sake of obsolete platforms.
54238         * modules/fseeko (Depends-on): Remove verify.
54239         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54240         * doc/functions/ftello.texi (ftello): Likewise.
54241         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54242         Reported by Larry Jones.
54243
54244 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54245
54246         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54247         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54248
54249 2007-12-17  Jim Meyering  <meyering@redhat.com>
54250
54251         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54252         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54253         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54254         * modules/getcwd (Depends-on): Add openat.
54255         Reported by Petr Salinger.
54256
54257 2007-12-17  Bruno Haible  <bruno@clisp.org>
54258
54259         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54260         avoid a segmentation fault of the configure test on x86_64 systems.
54261
54262 2007-12-15  Jim Meyering  <meyering@redhat.com>
54263
54264         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54265
54266 2007-12-13  Eric Blake  <ebb9@byu.net>
54267
54268         Another fseek test.
54269         * tests/test-fseek.c (main): Also test ungetc handling.
54270         * tests/test-fseeko.c (main): Likewise.
54271         * modules/fseeko (Depends-on): Add verify.
54272         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54273         large.
54274         Reported by Larry Jones.
54275
54276         Fix fseeko on mingw.
54277         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54278         seek.
54279
54280         Beef up fseek tests.
54281         * tests/test-fseek.c (main): Also test eof handling.
54282         * tests/test-fseeko.c (main): Likewise.
54283         Reported by Larry Jones.
54284
54285 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54286
54287         Fix fseeko on BSD-based platforms.
54288         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54289         successful seek.
54290
54291 2007-12-12  Eric Blake  <ebb9@byu.net>
54292
54293         Allow circular dependency of separate libtests.a
54294         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54295         when use_libtests.
54296
54297 2007-12-11  Eric Blake  <ebb9@byu.net>
54298
54299         Fix bug with -0.0L in previous patch.
54300         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54301         * tests/test-isnan.c (main): Also test on zeroes.
54302         * tests/test-isnanf.c (main): Likewise.
54303         * tests/test-isnanl.h (main): Likewise.
54304
54305         Detect pseudo-denormals on x86 even when cross-compiling.
54306         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54307         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54308         invalid bit patterns that happen to satisfy ==.
54309
54310         Avoid link failures with separate libtests.a.
54311         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54312         last, to satisfy circular dependencies.
54313
54314 2007-12-11  Eric Blake  <ebb9@byu.net>
54315         and Bruno Haible  <bruno@clisp.org>
54316
54317         Fix OpenBSD 4.0 <float.h> handling of long double.
54318         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54319         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54320         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54321
54322 2007-12-11  Jim Meyering  <meyering@redhat.com>
54323
54324         * users.txt: Add libvirt.
54325
54326         Support versions of autoconf prior to 2.59c.
54327         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54328         if it is not already defined.
54329
54330 2007-12-09  Bruno Haible  <bruno@clisp.org>
54331
54332         Let 'gnulib-tool --import' collect sources needed for the tests in
54333         tests/ rather than in lib/.
54334         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54335         argument. If true, add rules to generate libtests.a, and put libtests.a
54336         into $(LDADD). Consider source files in subdirectories and set
54337         uses_subdirs.
54338         (func_emit_initmacro_start, func_emit_initmacro_end,
54339         func_emit_initmacro_done): Pass all arguments explicitly.
54340         (func_import): Determine two module lists main_modules,
54341         testsrelated_modules. Determine use_libtests. Determine two variables
54342         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54343         instead of just sed_transform_lib_file. Determine two variables
54344         main_files and testsrelated_files. Compute 'files' as the union of
54345         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54346         func_add_or_update. In the generated gnulib-comp.m4, collect the
54347         object files for tests/ in different variables than those for lib/.
54348         Substitute LIBTESTS_LIBDEPS.
54349         (func_create_testdir): Combine the uses_subdirs results from
54350         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54351
54352 2007-12-09  Bruno Haible  <bruno@clisp.org>
54353
54354         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54355         the build-aux directory.
54356
54357 2007-12-09  Bruno Haible  <bruno@clisp.org>
54358
54359         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54360         introduced on 2006-09-09.
54361
54362 2007-12-07  Jim Meyering  <meyering@redhat.com>
54363
54364         Let these macros work also with autoconf-2.59.
54365         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54366         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54367         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54368
54369 2007-12-06  Jim Meyering  <meyering@redhat.com>
54370
54371         Avoid a configure-time syntax error in gl_FUNC_ACL.
54372         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54373         function in each branch, before testing the cache variable.
54374
54375 2007-12-04  Eric Blake  <ebb9@byu.net>
54376
54377         Make scripts executable.
54378         * build-aux/config.guess: Add execute permissions.
54379         * build-aux/config.sub: Likewise.
54380         * build-aux/gendocs.sh: Likewise.
54381
54382         Fix frexp on mingw.
54383         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54384         cross-compiling.
54385         * doc/functions/frexp.texi (frexp): Document the bug.
54386
54387         Make cygwin fseeko check more reliable.
54388         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54389         version numbers, rather than unrelated feature check.
54390         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54391         * doc/functions/ftello.texi (ftello): Likewise.
54392         Reported by Bruno Haible.
54393
54394         * m4/strerror.m4: Bump version number.
54395
54396 2007-12-03  Bruno Haible  <bruno@clisp.org>
54397
54398         * doc/functions/mprotect.texi: Mention the mingw problem.
54399
54400 2007-12-03  Eric Blake  <ebb9@byu.net>
54401
54402         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54403         REPLACE_STRERROR is initialized before this macro.
54404
54405 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54406
54407         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54408         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54409         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54410         put -lsec in even for programs other than 'ls'.  This fixes a problem
54411         for gettext reported by Bruno Haible in
54412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54413         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54414         Add support for Solaris 10.  This isn't efficient, but should get the
54415         job done for now.
54416
54417 2007-12-03  James Youngman  <jay@gnu.org>
54418
54419         * doc/regexprops-generic.texi: change "an close-group" to "a
54420         close-group" and "illegal" to "not allowed".
54421
54422 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54423
54424         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54425         pr_byname.h. Needed for the rare case when the maintainer has done
54426         "make maintainer-clean" in the source directory and then attempts a
54427         build outside the source directory.
54428         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54429         scripts_byname.h.
54430
54431 2007-12-02  Martin Lambers <marlam@marlam.de>
54432             Bruno Haible  <bruno@clisp.org>
54433
54434         * lib/getpagesize.h: Remove file.
54435         * lib/unistd.in.h: Include declaration of getpagesize here.
54436         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54437         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54438         HAVE_SYS_PARAM_H.
54439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54440         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54441         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54442         (Depends-on): Add unistd.
54443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54444         (Include): Use <unistd.h> instead of getpagesize.h.
54445         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54446         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54447         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54448         gl_GETPAGESIZE invocation, already handled by module dependency.
54449         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54450
54451 2007-12-02  Bruno Haible  <bruno@clisp.org>
54452
54453         * modules/strings-tests: New file.
54454         * tests/test-strings.c: New file.
54455
54456         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54457         * lib/strings.in.h: New file.
54458         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54459         * m4/strings_h.m4: New file.
54460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54461         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54462         * modules/strings: New file.
54463         * modules/string (Makefile.am): Update.
54464         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54465         Reported by Karl Berry.
54466
54467 2007-12-01  Eric Blake  <ebb9@byu.net>
54468
54469         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54470         accomodate fix in cygwin 1.5.25.
54471
54472 2007-12-01  Jim Meyering  <meyering@redhat.com>
54473
54474         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54475         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54476         that would inhibit utf8-optimization of a regexp containing line-
54477         or buffer-anchors, e.g., `^', `$'.
54478
54479 2007-11-30  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54482         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54483         glthread_recursive_lock_init.
54484         * lib/lock.c (glthread_recursive_lock_init)
54485         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54486         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54487
54488 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         New function qset_acl, like set_acl but with syscall semantics.
54491         * lib/acl.h (qset_acl): New decl.
54492         * lib/acl.c (qset_acl): New function.
54493         (set_acl): Use new function.  Use more-consistent diagnostics.
54494
54495 2007-11-28  Jim Meyering  <meyering@redhat.com>
54496
54497         * modules/physmem (License): Change from GPL to LGPLv2+.
54498
54499 2007-11-26  Bruno Haible  <bruno@clisp.org>
54500
54501         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54502         'long double' type has excess precision.
54503         Reported by Jim Meyering in
54504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54505
54506 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54507
54508         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54509         Sync from <http://gnu.org/licenses>.
54510         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54511         with license text from same location.
54512         * doc/maintain.texi, doc/standards.texi:  Sync from
54513         <http://savannah.gnu.org/projects/gnustandards>.
54514
54515 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54516         and Jim Meyering  <meyering@redhat.com>
54517
54518         Adjust getdate' grammar to accept a slightly more regular language.
54519         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54520         Before, the former was rejected.
54521         * lib/getdate.y (digits_to_date_time): New function, factored
54522         out of ...
54523         (number): ...here.  Just call digits_to_date_time.
54524         (hybrid): New non-terminal to handle an <unsigned number,
54525         signed relative offset> sequence consistently.
54526
54527 2007-11-18  Jim Meyering  <meyering@redhat.com>
54528
54529         Pull my changes from coreutils:
54530         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54531         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54532         use of $gnulib_tool_option_extras, so that it's separated from the
54533         preceding argument.
54534
54535         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54536         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54537         parent destination directories before copying a file into place.
54538
54539 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54540
54541         bootstrap: work also with 4-argument variant of AC_INIT
54542         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54543
54544 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54545
54546         Port test-getaddrinfo to Solaris.
54547         Problem reported by Bruno Haible in
54548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54549         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54550         explanation of setting 'hints'.
54551         Don't reject an implementation merely because it returns EAI_SERVICE.
54552         (EAI_SERVICE): Define to 0 if not defined.
54553
54554 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54555
54556         The license of gnu-make and posix-shell is now "GPLed build tool".
54557         * modules/gnu-make (License): Likewise.
54558         * modules/posix-shell (License): Likewise.
54559
54560         New module posix-shell, for determining a POSIX shell
54561         or perhaps something that is close enough to a POSIX shell.
54562         * m4/posix-shell.m4: New file.
54563         * modules/posix-shell: New file.
54564
54565         * MODULES.html.sh: Mention new module.
54566
54567         New module gnu-make, for determining whether we're using GNU Make.
54568         * m4/gnu-make.m4: New file.
54569         * modules/gnu-make: New file.
54570         * MODULES.html.sh: Mention new module.
54571
54572 2007-11-14  Jim Meyering  <meyering@redhat.com>
54573
54574         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54575         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54576         use this macro to create a function _definition_.
54577         Remove useless "#undef ARGMATCH_DIE".
54578
54579 2007-11-14  Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/config.charset: Update for OpenBSD 4.1.
54582         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54583
54584 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54585
54586         Document 64-bit #if problems in stdint.texi.
54587         * doc/headers/stdint.texi (stdint.h): Mention problems with
54588         64-bit-#if, and how to work around them.
54589
54590         Don't insist on 'long long int' support in the preprocessor.  It
54591         breaks too many things.  For example, PRIdMAX still uses a 'long
54592         long int' format with the latest Sun compiler, even though
54593         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54594         preprocessor problem.  This causes the latest coreutils to dump
54595         core on Solaris 10 sparc with the Sun C compiler.
54596         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54597         the troublesome expressions at configure-time, not at #if-time.
54598         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54599         preprocessor.
54600         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54601         compile-time C checks, done at 'configure'-time.
54602         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54603         * modules/inttypes (Makefile): Substitute the new symbols that
54604         gl_INTTYPES_H now generates.
54605         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54606
54607 2007-11-12  Bruno Haible  <bruno@clisp.org>
54608
54609         Tests for Unicode character classification functions.
54610
54611         * modules/unictype/bidicategory-byname-tests: New file.
54612         * modules/unictype/bidicategory-name-tests: New file.
54613         * modules/unictype/bidicategory-of-tests: New file.
54614         * modules/unictype/bidicategory-test-tests: New file.
54615         * modules/unictype/block-list-tests: New file.
54616         * modules/unictype/block-of-tests: New file.
54617         * modules/unictype/block-test-tests: New file.
54618         * modules/unictype/category-C-tests: New file.
54619         * modules/unictype/category-Cc-tests: New file.
54620         * modules/unictype/category-Cf-tests: New file.
54621         * modules/unictype/category-Cn-tests: New file.
54622         * modules/unictype/category-Co-tests: New file.
54623         * modules/unictype/category-Cs-tests: New file.
54624         * modules/unictype/category-L-tests: New file.
54625         * modules/unictype/category-Ll-tests: New file.
54626         * modules/unictype/category-Lm-tests: New file.
54627         * modules/unictype/category-Lo-tests: New file.
54628         * modules/unictype/category-Lt-tests: New file.
54629         * modules/unictype/category-Lu-tests: New file.
54630         * modules/unictype/category-M-tests: New file.
54631         * modules/unictype/category-Mc-tests: New file.
54632         * modules/unictype/category-Me-tests: New file.
54633         * modules/unictype/category-Mn-tests: New file.
54634         * modules/unictype/category-N-tests: New file.
54635         * modules/unictype/category-Nd-tests: New file.
54636         * modules/unictype/category-Nl-tests: New file.
54637         * modules/unictype/category-No-tests: New file.
54638         * modules/unictype/category-P-tests: New file.
54639         * modules/unictype/category-Pc-tests: New file.
54640         * modules/unictype/category-Pd-tests: New file.
54641         * modules/unictype/category-Pe-tests: New file.
54642         * modules/unictype/category-Pf-tests: New file.
54643         * modules/unictype/category-Pi-tests: New file.
54644         * modules/unictype/category-Po-tests: New file.
54645         * modules/unictype/category-Ps-tests: New file.
54646         * modules/unictype/category-S-tests: New file.
54647         * modules/unictype/category-Sc-tests: New file.
54648         * modules/unictype/category-Sk-tests: New file.
54649         * modules/unictype/category-Sm-tests: New file.
54650         * modules/unictype/category-So-tests: New file.
54651         * modules/unictype/category-Z-tests: New file.
54652         * modules/unictype/category-Zl-tests: New file.
54653         * modules/unictype/category-Zp-tests: New file.
54654         * modules/unictype/category-Zs-tests: New file.
54655         * modules/unictype/category-and-not-tests: New file.
54656         * modules/unictype/category-and-tests: New file.
54657         * modules/unictype/category-byname-tests: New file.
54658         * modules/unictype/category-name-tests: New file.
54659         * modules/unictype/category-none-tests: New file.
54660         * modules/unictype/category-of-tests: New file.
54661         * modules/unictype/category-or-tests: New file.
54662         * modules/unictype/category-test-withtable-tests: New file.
54663         * modules/unictype/combining-class-tests: New file.
54664         * modules/unictype/ctype-alnum-tests: New file.
54665         * modules/unictype/ctype-alpha-tests: New file.
54666         * modules/unictype/ctype-blank-tests: New file.
54667         * modules/unictype/ctype-cntrl-tests: New file.
54668         * modules/unictype/ctype-digit-tests: New file.
54669         * modules/unictype/ctype-graph-tests: New file.
54670         * modules/unictype/ctype-lower-tests: New file.
54671         * modules/unictype/ctype-print-tests: New file.
54672         * modules/unictype/ctype-punct-tests: New file.
54673         * modules/unictype/ctype-space-tests: New file.
54674         * modules/unictype/ctype-upper-tests: New file.
54675         * modules/unictype/ctype-xdigit-tests: New file.
54676         * modules/unictype/decimal-digit-tests: New file.
54677         * modules/unictype/digit-tests: New file.
54678         * modules/unictype/mirror-tests: New file.
54679         * modules/unictype/numeric-tests: New file.
54680         * modules/unictype/property-alphabetic-tests: New file.
54681         * modules/unictype/property-ascii-hex-digit-tests: New file.
54682         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54683         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54684         * modules/unictype/property-bidi-block-separator-tests: New file.
54685         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54686         * modules/unictype/property-bidi-common-separator-tests: New file.
54687         * modules/unictype/property-bidi-control-tests: New file.
54688         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54689         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54690         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54691         * modules/unictype/property-bidi-european-digit-tests: New file.
54692         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54693         * modules/unictype/property-bidi-left-to-right-tests: New file.
54694         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54695         * modules/unictype/property-bidi-other-neutral-tests: New file.
54696         * modules/unictype/property-bidi-pdf-tests: New file.
54697         * modules/unictype/property-bidi-segment-separator-tests: New file.
54698         * modules/unictype/property-bidi-whitespace-tests: New file.
54699         * modules/unictype/property-byname-tests: New file.
54700         * modules/unictype/property-combining-tests: New file.
54701         * modules/unictype/property-composite-tests: New file.
54702         * modules/unictype/property-currency-symbol-tests: New file.
54703         * modules/unictype/property-dash-tests: New file.
54704         * modules/unictype/property-decimal-digit-tests: New file.
54705         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54706         * modules/unictype/property-deprecated-tests: New file.
54707         * modules/unictype/property-diacritic-tests: New file.
54708         * modules/unictype/property-extender-tests: New file.
54709         * modules/unictype/property-format-control-tests: New file.
54710         * modules/unictype/property-grapheme-base-tests: New file.
54711         * modules/unictype/property-grapheme-extend-tests: New file.
54712         * modules/unictype/property-grapheme-link-tests: New file.
54713         * modules/unictype/property-hex-digit-tests: New file.
54714         * modules/unictype/property-hyphen-tests: New file.
54715         * modules/unictype/property-id-continue-tests: New file.
54716         * modules/unictype/property-id-start-tests: New file.
54717         * modules/unictype/property-ideographic-tests: New file.
54718         * modules/unictype/property-ids-binary-operator-tests: New file.
54719         * modules/unictype/property-ids-trinary-operator-tests: New file.
54720         * modules/unictype/property-ignorable-control-tests: New file.
54721         * modules/unictype/property-iso-control-tests: New file.
54722         * modules/unictype/property-join-control-tests: New file.
54723         * modules/unictype/property-left-of-pair-tests: New file.
54724         * modules/unictype/property-line-separator-tests: New file.
54725         * modules/unictype/property-logical-order-exception-tests: New file.
54726         * modules/unictype/property-lowercase-tests: New file.
54727         * modules/unictype/property-math-tests: New file.
54728         * modules/unictype/property-non-break-tests: New file.
54729         * modules/unictype/property-not-a-character-tests: New file.
54730         * modules/unictype/property-numeric-tests: New file.
54731         * modules/unictype/property-other-alphabetic-tests: New file.
54732         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54733         * modules/unictype/property-other-grapheme-extend-tests: New file.
54734         * modules/unictype/property-other-id-continue-tests: New file.
54735         * modules/unictype/property-other-id-start-tests: New file.
54736         * modules/unictype/property-other-lowercase-tests: New file.
54737         * modules/unictype/property-other-math-tests: New file.
54738         * modules/unictype/property-other-uppercase-tests: New file.
54739         * modules/unictype/property-paired-punctuation-tests: New file.
54740         * modules/unictype/property-paragraph-separator-tests: New file.
54741         * modules/unictype/property-pattern-syntax-tests: New file.
54742         * modules/unictype/property-pattern-white-space-tests: New file.
54743         * modules/unictype/property-private-use-tests: New file.
54744         * modules/unictype/property-punctuation-tests: New file.
54745         * modules/unictype/property-quotation-mark-tests: New file.
54746         * modules/unictype/property-radical-tests: New file.
54747         * modules/unictype/property-sentence-terminal-tests: New file.
54748         * modules/unictype/property-soft-dotted-tests: New file.
54749         * modules/unictype/property-space-tests: New file.
54750         * modules/unictype/property-terminal-punctuation-tests: New file.
54751         * modules/unictype/property-test-tests: New file.
54752         * modules/unictype/property-titlecase-tests: New file.
54753         * modules/unictype/property-unassigned-code-value-tests: New file.
54754         * modules/unictype/property-unified-ideograph-tests: New file.
54755         * modules/unictype/property-uppercase-tests: New file.
54756         * modules/unictype/property-variation-selector-tests: New file.
54757         * modules/unictype/property-white-space-tests: New file.
54758         * modules/unictype/property-xid-continue-tests: New file.
54759         * modules/unictype/property-xid-start-tests: New file.
54760         * modules/unictype/property-zero-width-tests: New file.
54761         * modules/unictype/scripts-tests: New file.
54762         * modules/unictype/syntax-c-ident-tests: New file.
54763         * modules/unictype/syntax-c-whitespace-tests: New file.
54764         * modules/unictype/syntax-java-ident-tests: New file.
54765         * modules/unictype/syntax-java-whitespace-tests: New file.
54766         * tests/unictype/test-bidi_byname.c: New file.
54767         * tests/unictype/test-bidi_name.c: New file.
54768         * tests/unictype/test-bidi_of.c: New file.
54769         * tests/unictype/test-bidi_test.c: New file.
54770         * tests/unictype/test-block_list.c: New file.
54771         * tests/unictype/test-block_of.c: New file.
54772         * tests/unictype/test-block_test.c: New file.
54773         * tests/unictype/test-categ_and.c: New file.
54774         * tests/unictype/test-categ_and_not.c: New file.
54775         * tests/unictype/test-categ_byname.c: New file.
54776         * tests/unictype/test-categ_name.c: New file.
54777         * tests/unictype/test-categ_none.c: New file.
54778         * tests/unictype/test-categ_of.c: New file.
54779         * tests/unictype/test-categ_or.c: New file.
54780         * tests/unictype/test-categ_test_withtable.c: New file.
54781         * tests/unictype/test-combining.c: New file.
54782         * tests/unictype/test-decdigit.c: New file.
54783         * tests/unictype/test-digit.c: New file.
54784         * tests/unictype/test-mirror.c: New file.
54785         * tests/unictype/test-numeric.c: New file.
54786         * tests/unictype/test-pr_byname.c: New file.
54787         * tests/unictype/test-pr_test.c: New file.
54788         * tests/unictype/test-predicate-part1.h: New file.
54789         * tests/unictype/test-predicate-part2.h: New file.
54790         * tests/unictype/test-scripts.c: New file.
54791         * tests/unictype/test-sy_c_ident.c: New file.
54792         * tests/unictype/test-sy_java_ident.c: New file.
54793
54794         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54795         for Unicode 5.0.0.
54796         * tests/unictype/test-categ_Cc.c: Likewise.
54797         * tests/unictype/test-categ_Cf.c: Likewise.
54798         * tests/unictype/test-categ_Cn.c: Likewise.
54799         * tests/unictype/test-categ_Co.c: Likewise.
54800         * tests/unictype/test-categ_Cs.c: Likewise.
54801         * tests/unictype/test-categ_L.c: Likewise.
54802         * tests/unictype/test-categ_Ll.c: Likewise.
54803         * tests/unictype/test-categ_Lm.c: Likewise.
54804         * tests/unictype/test-categ_Lo.c: Likewise.
54805         * tests/unictype/test-categ_Lt.c: Likewise.
54806         * tests/unictype/test-categ_Lu.c: Likewise.
54807         * tests/unictype/test-categ_M.c: Likewise.
54808         * tests/unictype/test-categ_Mc.c: Likewise.
54809         * tests/unictype/test-categ_Me.c: Likewise.
54810         * tests/unictype/test-categ_Mn.c: Likewise.
54811         * tests/unictype/test-categ_N.c: Likewise.
54812         * tests/unictype/test-categ_Nd.c: Likewise.
54813         * tests/unictype/test-categ_Nl.c: Likewise.
54814         * tests/unictype/test-categ_No.c: Likewise.
54815         * tests/unictype/test-categ_P.c: Likewise.
54816         * tests/unictype/test-categ_Pc.c: Likewise.
54817         * tests/unictype/test-categ_Pd.c: Likewise.
54818         * tests/unictype/test-categ_Pe.c: Likewise.
54819         * tests/unictype/test-categ_Pf.c: Likewise.
54820         * tests/unictype/test-categ_Pi.c: Likewise.
54821         * tests/unictype/test-categ_Po.c: Likewise.
54822         * tests/unictype/test-categ_Ps.c: Likewise.
54823         * tests/unictype/test-categ_S.c: Likewise.
54824         * tests/unictype/test-categ_Sc.c: Likewise.
54825         * tests/unictype/test-categ_Sk.c: Likewise.
54826         * tests/unictype/test-categ_Sm.c: Likewise.
54827         * tests/unictype/test-categ_So.c: Likewise.
54828         * tests/unictype/test-categ_Z.c: Likewise.
54829         * tests/unictype/test-categ_Zl.c: Likewise.
54830         * tests/unictype/test-categ_Zp.c: Likewise.
54831         * tests/unictype/test-categ_Zs.c: Likewise.
54832         * tests/unictype/test-ctype_alnum.c: Likewise.
54833         * tests/unictype/test-ctype_alpha.c: Likewise.
54834         * tests/unictype/test-ctype_blank.c: Likewise.
54835         * tests/unictype/test-ctype_cntrl.c: Likewise.
54836         * tests/unictype/test-ctype_digit.c: Likewise.
54837         * tests/unictype/test-ctype_graph.c: Likewise.
54838         * tests/unictype/test-ctype_lower.c: Likewise.
54839         * tests/unictype/test-ctype_print.c: Likewise.
54840         * tests/unictype/test-ctype_punct.c: Likewise.
54841         * tests/unictype/test-ctype_space.c: Likewise.
54842         * tests/unictype/test-ctype_upper.c: Likewise.
54843         * tests/unictype/test-ctype_xdigit.c: Likewise.
54844         * tests/unictype/test-decdigit.h: Likewise.
54845         * tests/unictype/test-digit.h: Likewise.
54846         * tests/unictype/test-numeric.h: Likewise.
54847         * tests/unictype/test-pr_alphabetic.c: Likewise.
54848         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54849         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54850         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54851         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54852         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54853         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54854         * tests/unictype/test-pr_bidi_control.c: Likewise.
54855         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54856         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54857         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54858         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54859         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54860         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54861         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54862         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54863         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54864         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54865         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54866         * tests/unictype/test-pr_combining.c: Likewise.
54867         * tests/unictype/test-pr_composite.c: Likewise.
54868         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54869         * tests/unictype/test-pr_dash.c: Likewise.
54870         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54871         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54872         * tests/unictype/test-pr_deprecated.c: Likewise.
54873         * tests/unictype/test-pr_diacritic.c: Likewise.
54874         * tests/unictype/test-pr_extender.c: Likewise.
54875         * tests/unictype/test-pr_format_control.c: Likewise.
54876         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54877         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54878         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54879         * tests/unictype/test-pr_hex_digit.c: Likewise.
54880         * tests/unictype/test-pr_hyphen.c: Likewise.
54881         * tests/unictype/test-pr_id_continue.c: Likewise.
54882         * tests/unictype/test-pr_id_start.c: Likewise.
54883         * tests/unictype/test-pr_ideographic.c: Likewise.
54884         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54885         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54886         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54887         * tests/unictype/test-pr_iso_control.c: Likewise.
54888         * tests/unictype/test-pr_join_control.c: Likewise.
54889         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54890         * tests/unictype/test-pr_line_separator.c: Likewise.
54891         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54892         * tests/unictype/test-pr_lowercase.c: Likewise.
54893         * tests/unictype/test-pr_math.c: Likewise.
54894         * tests/unictype/test-pr_non_break.c: Likewise.
54895         * tests/unictype/test-pr_not_a_character.c: Likewise.
54896         * tests/unictype/test-pr_numeric.c: Likewise.
54897         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54898         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54899         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54900         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54901         * tests/unictype/test-pr_other_id_start.c: Likewise.
54902         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54903         * tests/unictype/test-pr_other_math.c: Likewise.
54904         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54905         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54906         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54907         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54908         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54909         * tests/unictype/test-pr_private_use.c: Likewise.
54910         * tests/unictype/test-pr_punctuation.c: Likewise.
54911         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54912         * tests/unictype/test-pr_radical.c: Likewise.
54913         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54914         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54915         * tests/unictype/test-pr_space.c: Likewise.
54916         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54917         * tests/unictype/test-pr_titlecase.c: Likewise.
54918         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54919         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54920         * tests/unictype/test-pr_uppercase.c: Likewise.
54921         * tests/unictype/test-pr_variation_selector.c: Likewise.
54922         * tests/unictype/test-pr_white_space.c: Likewise.
54923         * tests/unictype/test-pr_xid_continue.c: Likewise.
54924         * tests/unictype/test-pr_xid_start.c: Likewise.
54925         * tests/unictype/test-pr_zero_width.c: Likewise.
54926         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54927         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54928
54929 2007-11-12  Bruno Haible  <bruno@clisp.org>
54930
54931         Unicode character classification functions.
54932         * lib/unictype.h: New file.
54933         * modules/unictype/base: New file.
54934         * modules/unictype/category-L: New file.
54935         * modules/unictype/category-Lu: New file.
54936         * modules/unictype/category-Ll: New file.
54937         * modules/unictype/category-Lt: New file.
54938         * modules/unictype/category-Lm: New file.
54939         * modules/unictype/category-Lo: New file.
54940         * modules/unictype/category-M: New file.
54941         * modules/unictype/category-Mn: New file.
54942         * modules/unictype/category-Mc: New file.
54943         * modules/unictype/category-Me: New file.
54944         * modules/unictype/category-N: New file.
54945         * modules/unictype/category-Nd: New file.
54946         * modules/unictype/category-Nl: New file.
54947         * modules/unictype/category-No: New file.
54948         * modules/unictype/category-P: New file.
54949         * modules/unictype/category-Pc: New file.
54950         * modules/unictype/category-Pd: New file.
54951         * modules/unictype/category-Ps: New file.
54952         * modules/unictype/category-Pe: New file.
54953         * modules/unictype/category-Pi: New file.
54954         * modules/unictype/category-Pf: New file.
54955         * modules/unictype/category-Po: New file.
54956         * modules/unictype/category-S: New file.
54957         * modules/unictype/category-Sm: New file.
54958         * modules/unictype/category-Sc: New file.
54959         * modules/unictype/category-Sk: New file.
54960         * modules/unictype/category-So: New file.
54961         * modules/unictype/category-Z: New file.
54962         * modules/unictype/category-Zs: New file.
54963         * modules/unictype/category-Zl: New file.
54964         * modules/unictype/category-Zp: New file.
54965         * modules/unictype/category-C: New file.
54966         * modules/unictype/category-Cc: New file.
54967         * modules/unictype/category-Cf: New file.
54968         * modules/unictype/category-Cs: New file.
54969         * modules/unictype/category-Co: New file.
54970         * modules/unictype/category-Cn: New file.
54971         * modules/unictype/category-or: New file.
54972         * modules/unictype/category-of: New file.
54973         * modules/unictype/category-test: New file.
54974         * modules/unictype/category-test-withtable: New file.
54975         * modules/unictype/category-byname: New file.
54976         * modules/unictype/category-none: New file.
54977         * modules/unictype/category-and: New file.
54978         * modules/unictype/category-and-not: New file.
54979         * modules/unictype/category-name: New file.
54980         * modules/unictype/combining-class: New file.
54981         * modules/unictype/category-all: New file.
54982         * modules/unictype/bidicategory-all: New file.
54983         * modules/unictype/bidicategory-byname: New file.
54984         * modules/unictype/bidicategory-name: New file.
54985         * modules/unictype/bidicategory-of: New file.
54986         * modules/unictype/bidicategory-test: New file.
54987         * modules/unictype/decimal-digit: New file.
54988         * modules/unictype/digit: New file.
54989         * modules/unictype/numeric: New file.
54990         * modules/unictype/mirror: New file.
54991         * modules/unictype/property-white-space: New file.
54992         * modules/unictype/property-alphabetic: New file.
54993         * modules/unictype/property-other-alphabetic: New file.
54994         * modules/unictype/property-not-a-character: New file.
54995         * modules/unictype/property-default-ignorable-code-point: New file.
54996         * modules/unictype/property-other-default-ignorable-code-point: New
54997         file.
54998         * modules/unictype/property-deprecated: New file.
54999         * modules/unictype/property-logical-order-exception: New file.
55000         * modules/unictype/property-variation-selector: New file.
55001         * modules/unictype/property-private-use: New file.
55002         * modules/unictype/property-unassigned-code-value: New file.
55003         * modules/unictype/property-uppercase: New file.
55004         * modules/unictype/property-other-uppercase: New file.
55005         * modules/unictype/property-lowercase: New file.
55006         * modules/unictype/property-other-lowercase: New file.
55007         * modules/unictype/property-titlecase: New file.
55008         * modules/unictype/property-soft-dotted: New file.
55009         * modules/unictype/property-id-start: New file.
55010         * modules/unictype/property-other-id-start: New file.
55011         * modules/unictype/property-id-continue: New file.
55012         * modules/unictype/property-other-id-continue: New file.
55013         * modules/unictype/property-xid-start: New file.
55014         * modules/unictype/property-xid-continue: New file.
55015         * modules/unictype/property-pattern-white-space: New file.
55016         * modules/unictype/property-pattern-syntax: New file.
55017         * modules/unictype/property-join-control: New file.
55018         * modules/unictype/property-grapheme-base: New file.
55019         * modules/unictype/property-grapheme-extend: New file.
55020         * modules/unictype/property-other-grapheme-extend: New file.
55021         * modules/unictype/property-grapheme-link: New file.
55022         * modules/unictype/property-bidi-control: New file.
55023         * modules/unictype/property-bidi-left-to-right: New file.
55024         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55025         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55026         * modules/unictype/property-bidi-european-digit: New file.
55027         * modules/unictype/property-bidi-eur-num-separator: New file.
55028         * modules/unictype/property-bidi-eur-num-terminator: New file.
55029         * modules/unictype/property-bidi-arabic-digit: New file.
55030         * modules/unictype/property-bidi-common-separator: New file.
55031         * modules/unictype/property-bidi-block-separator: New file.
55032         * modules/unictype/property-bidi-segment-separator: New file.
55033         * modules/unictype/property-bidi-whitespace: New file.
55034         * modules/unictype/property-bidi-non-spacing-mark: New file.
55035         * modules/unictype/property-bidi-boundary-neutral: New file.
55036         * modules/unictype/property-bidi-pdf: New file.
55037         * modules/unictype/property-bidi-embedding-or-override: New file.
55038         * modules/unictype/property-bidi-other-neutral: New file.
55039         * modules/unictype/property-hex-digit: New file.
55040         * modules/unictype/property-ascii-hex-digit: New file.
55041         * modules/unictype/property-ideographic: New file.
55042         * modules/unictype/property-unified-ideograph: New file.
55043         * modules/unictype/property-radical: New file.
55044         * modules/unictype/property-ids-binary-operator: New file.
55045         * modules/unictype/property-ids-trinary-operator: New file.
55046         * modules/unictype/property-zero-width: New file.
55047         * modules/unictype/property-space: New file.
55048         * modules/unictype/property-non-break: New file.
55049         * modules/unictype/property-iso-control: New file.
55050         * modules/unictype/property-format-control: New file.
55051         * modules/unictype/property-dash: New file.
55052         * modules/unictype/property-hyphen: New file.
55053         * modules/unictype/property-punctuation: New file.
55054         * modules/unictype/property-line-separator: New file.
55055         * modules/unictype/property-paragraph-separator: New file.
55056         * modules/unictype/property-quotation-mark: New file.
55057         * modules/unictype/property-sentence-terminal: New file.
55058         * modules/unictype/property-terminal-punctuation: New file.
55059         * modules/unictype/property-currency-symbol: New file.
55060         * modules/unictype/property-math: New file.
55061         * modules/unictype/property-other-math: New file.
55062         * modules/unictype/property-paired-punctuation: New file.
55063         * modules/unictype/property-left-of-pair: New file.
55064         * modules/unictype/property-combining: New file.
55065         * modules/unictype/property-composite: New file.
55066         * modules/unictype/property-decimal-digit: New file.
55067         * modules/unictype/property-numeric: New file.
55068         * modules/unictype/property-diacritic: New file.
55069         * modules/unictype/property-extender: New file.
55070         * modules/unictype/property-ignorable-control: New file.
55071         * modules/unictype/property-test: New file.
55072         * modules/unictype/property-byname: New file.
55073         * modules/unictype/property-all: New file.
55074         * modules/unictype/scripts: New file.
55075         * modules/unictype/scripts-all: New file.
55076         * modules/unictype/block-of: New file.
55077         * modules/unictype/block-test: New file.
55078         * modules/unictype/block-list: New file.
55079         * modules/unictype/block-all: New file.
55080         * modules/unictype/syntax-c-whitespace: New file.
55081         * modules/unictype/syntax-java-whitespace: New file.
55082         * modules/unictype/syntax-c-ident: New file.
55083         * modules/unictype/syntax-java-ident: New file.
55084         * modules/unictype/ctype-alnum: New file.
55085         * modules/unictype/ctype-alpha: New file.
55086         * modules/unictype/ctype-cntrl: New file.
55087         * modules/unictype/ctype-digit: New file.
55088         * modules/unictype/ctype-graph: New file.
55089         * modules/unictype/ctype-lower: New file.
55090         * modules/unictype/ctype-print: New file.
55091         * modules/unictype/ctype-punct: New file.
55092         * modules/unictype/ctype-space: New file.
55093         * modules/unictype/ctype-upper: New file.
55094         * modules/unictype/ctype-xdigit: New file.
55095         * modules/unictype/ctype-blank: New file.
55096         * lib/unictype/bidi_byname.c: New file.
55097         * lib/unictype/bidi_name.c: New file.
55098         * lib/unictype/bidi_of.c: New file.
55099         * lib/unictype/bidi_test.c: New file.
55100         * lib/unictype/bitmap.h: New file.
55101         * lib/unictype/block_test.c: New file.
55102         * lib/unictype/blocks.c: New file.
55103         * lib/unictype/categ_C.c: New file.
55104         * lib/unictype/categ_Cc.c: New file.
55105         * lib/unictype/categ_Cf.c: New file.
55106         * lib/unictype/categ_Cn.c: New file.
55107         * lib/unictype/categ_Co.c: New file.
55108         * lib/unictype/categ_Cs.c: New file.
55109         * lib/unictype/categ_L.c: New file.
55110         * lib/unictype/categ_Ll.c: New file.
55111         * lib/unictype/categ_Lm.c: New file.
55112         * lib/unictype/categ_Lo.c: New file.
55113         * lib/unictype/categ_Lt.c: New file.
55114         * lib/unictype/categ_Lu.c: New file.
55115         * lib/unictype/categ_M.c: New file.
55116         * lib/unictype/categ_Mc.c: New file.
55117         * lib/unictype/categ_Me.c: New file.
55118         * lib/unictype/categ_Mn.c: New file.
55119         * lib/unictype/categ_N.c: New file.
55120         * lib/unictype/categ_Nd.c: New file.
55121         * lib/unictype/categ_Nl.c: New file.
55122         * lib/unictype/categ_No.c: New file.
55123         * lib/unictype/categ_P.c: New file.
55124         * lib/unictype/categ_Pc.c: New file.
55125         * lib/unictype/categ_Pd.c: New file.
55126         * lib/unictype/categ_Pe.c: New file.
55127         * lib/unictype/categ_Pf.c: New file.
55128         * lib/unictype/categ_Pi.c: New file.
55129         * lib/unictype/categ_Po.c: New file.
55130         * lib/unictype/categ_Ps.c: New file.
55131         * lib/unictype/categ_S.c: New file.
55132         * lib/unictype/categ_Sc.c: New file.
55133         * lib/unictype/categ_Sk.c: New file.
55134         * lib/unictype/categ_Sm.c: New file.
55135         * lib/unictype/categ_So.c: New file.
55136         * lib/unictype/categ_Z.c: New file.
55137         * lib/unictype/categ_Zl.c: New file.
55138         * lib/unictype/categ_Zp.c: New file.
55139         * lib/unictype/categ_Zs.c: New file.
55140         * lib/unictype/categ_and.c: New file.
55141         * lib/unictype/categ_and_not.c: New file.
55142         * lib/unictype/categ_byname.c: New file.
55143         * lib/unictype/categ_name.c: New file.
55144         * lib/unictype/categ_none.c: New file.
55145         * lib/unictype/categ_of.c: New file.
55146         * lib/unictype/categ_or.c: New file.
55147         * lib/unictype/categ_test.c: New file.
55148         * lib/unictype/combining.c: New file.
55149         * lib/unictype/ctype_alnum.c: New file.
55150         * lib/unictype/ctype_alpha.c: New file.
55151         * lib/unictype/ctype_blank.c: New file.
55152         * lib/unictype/ctype_cntrl.c: New file.
55153         * lib/unictype/ctype_digit.c: New file.
55154         * lib/unictype/ctype_graph.c: New file.
55155         * lib/unictype/ctype_lower.c: New file.
55156         * lib/unictype/ctype_print.c: New file.
55157         * lib/unictype/ctype_punct.c: New file.
55158         * lib/unictype/ctype_space.c: New file.
55159         * lib/unictype/ctype_upper.c: New file.
55160         * lib/unictype/ctype_xdigit.c: New file.
55161         * lib/unictype/decdigit.c: New file.
55162         * lib/unictype/digit.c: New file.
55163         * lib/unictype/identsyntaxmap.h: New file.
55164         * lib/unictype/mirror.c: New file.
55165         * lib/unictype/numeric.c: New file.
55166         * lib/unictype/pr_alphabetic.c: New file.
55167         * lib/unictype/pr_ascii_hex_digit.c: New file.
55168         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55169         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55170         * lib/unictype/pr_bidi_block_separator.c: New file.
55171         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55172         * lib/unictype/pr_bidi_common_separator.c: New file.
55173         * lib/unictype/pr_bidi_control.c: New file.
55174         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55175         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55176         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55177         * lib/unictype/pr_bidi_european_digit.c: New file.
55178         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55179         * lib/unictype/pr_bidi_left_to_right.c: New file.
55180         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55181         * lib/unictype/pr_bidi_other_neutral.c: New file.
55182         * lib/unictype/pr_bidi_pdf.c: New file.
55183         * lib/unictype/pr_bidi_segment_separator.c: New file.
55184         * lib/unictype/pr_bidi_whitespace.c: New file.
55185         * lib/unictype/pr_byname.c: New file.
55186         * lib/unictype/pr_byname.gperf: New file.
55187         * lib/unictype/pr_combining.c: New file.
55188         * lib/unictype/pr_composite.c: New file.
55189         * lib/unictype/pr_currency_symbol.c: New file.
55190         * lib/unictype/pr_dash.c: New file.
55191         * lib/unictype/pr_decimal_digit.c: New file.
55192         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55193         * lib/unictype/pr_deprecated.c: New file.
55194         * lib/unictype/pr_diacritic.c: New file.
55195         * lib/unictype/pr_extender.c: New file.
55196         * lib/unictype/pr_format_control.c: New file.
55197         * lib/unictype/pr_grapheme_base.c: New file.
55198         * lib/unictype/pr_grapheme_extend.c: New file.
55199         * lib/unictype/pr_grapheme_link.c: New file.
55200         * lib/unictype/pr_hex_digit.c: New file.
55201         * lib/unictype/pr_hyphen.c: New file.
55202         * lib/unictype/pr_id_continue.c: New file.
55203         * lib/unictype/pr_id_start.c: New file.
55204         * lib/unictype/pr_ideographic.c: New file.
55205         * lib/unictype/pr_ids_binary_operator.c: New file.
55206         * lib/unictype/pr_ids_trinary_operator.c: New file.
55207         * lib/unictype/pr_ignorable_control.c: New file.
55208         * lib/unictype/pr_iso_control.c: New file.
55209         * lib/unictype/pr_join_control.c: New file.
55210         * lib/unictype/pr_left_of_pair.c: New file.
55211         * lib/unictype/pr_line_separator.c: New file.
55212         * lib/unictype/pr_logical_order_exception.c: New file.
55213         * lib/unictype/pr_lowercase.c: New file.
55214         * lib/unictype/pr_math.c: New file.
55215         * lib/unictype/pr_non_break.c: New file.
55216         * lib/unictype/pr_not_a_character.c: New file.
55217         * lib/unictype/pr_numeric.c: New file.
55218         * lib/unictype/pr_other_alphabetic.c: New file.
55219         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55220         * lib/unictype/pr_other_grapheme_extend.c: New file.
55221         * lib/unictype/pr_other_id_continue.c: New file.
55222         * lib/unictype/pr_other_id_start.c: New file.
55223         * lib/unictype/pr_other_lowercase.c: New file.
55224         * lib/unictype/pr_other_math.c: New file.
55225         * lib/unictype/pr_other_uppercase.c: New file.
55226         * lib/unictype/pr_paired_punctuation.c: New file.
55227         * lib/unictype/pr_paragraph_separator.c: New file.
55228         * lib/unictype/pr_pattern_syntax.c: New file.
55229         * lib/unictype/pr_pattern_white_space.c: New file.
55230         * lib/unictype/pr_private_use.c: New file.
55231         * lib/unictype/pr_punctuation.c: New file.
55232         * lib/unictype/pr_quotation_mark.c: New file.
55233         * lib/unictype/pr_radical.c: New file.
55234         * lib/unictype/pr_sentence_terminal.c: New file.
55235         * lib/unictype/pr_soft_dotted.c: New file.
55236         * lib/unictype/pr_space.c: New file.
55237         * lib/unictype/pr_terminal_punctuation.c: New file.
55238         * lib/unictype/pr_test.c: New file.
55239         * lib/unictype/pr_titlecase.c: New file.
55240         * lib/unictype/pr_unassigned_code_value.c: New file.
55241         * lib/unictype/pr_unified_ideograph.c: New file.
55242         * lib/unictype/pr_uppercase.c: New file.
55243         * lib/unictype/pr_variation_selector.c: New file.
55244         * lib/unictype/pr_white_space.c: New file.
55245         * lib/unictype/pr_xid_continue.c: New file.
55246         * lib/unictype/pr_xid_start.c: New file.
55247         * lib/unictype/pr_zero_width.c: New file.
55248         * lib/unictype/scripts.c: New file.
55249         * lib/unictype/sy_c_ident.c: New file.
55250         * lib/unictype/sy_c_whitespace.c: New file.
55251         * lib/unictype/sy_java_ident.c: New file.
55252         * lib/unictype/sy_java_whitespace.c: New file.
55253
55254         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55255         Unicode 5.0.0.
55256         * lib/unictype/blocks.h: Likewise.
55257         * lib/unictype/categ_C.h: Likewise.
55258         * lib/unictype/categ_Cc.h: Likewise.
55259         * lib/unictype/categ_Cf.h: Likewise.
55260         * lib/unictype/categ_Cn.h: Likewise.
55261         * lib/unictype/categ_Co.h: Likewise.
55262         * lib/unictype/categ_Cs.h: Likewise.
55263         * lib/unictype/categ_L.h: Likewise.
55264         * lib/unictype/categ_Ll.h: Likewise.
55265         * lib/unictype/categ_Lm.h: Likewise.
55266         * lib/unictype/categ_Lo.h: Likewise.
55267         * lib/unictype/categ_Lt.h: Likewise.
55268         * lib/unictype/categ_Lu.h: Likewise.
55269         * lib/unictype/categ_M.h: Likewise.
55270         * lib/unictype/categ_Mc.h: Likewise.
55271         * lib/unictype/categ_Me.h: Likewise.
55272         * lib/unictype/categ_Mn.h: Likewise.
55273         * lib/unictype/categ_N.h: Likewise.
55274         * lib/unictype/categ_Nd.h: Likewise.
55275         * lib/unictype/categ_Nl.h: Likewise.
55276         * lib/unictype/categ_No.h: Likewise.
55277         * lib/unictype/categ_P.h: Likewise.
55278         * lib/unictype/categ_Pc.h: Likewise.
55279         * lib/unictype/categ_Pd.h: Likewise.
55280         * lib/unictype/categ_Pe.h: Likewise.
55281         * lib/unictype/categ_Pf.h: Likewise.
55282         * lib/unictype/categ_Pi.h: Likewise.
55283         * lib/unictype/categ_Po.h: Likewise.
55284         * lib/unictype/categ_Ps.h: Likewise.
55285         * lib/unictype/categ_S.h: Likewise.
55286         * lib/unictype/categ_Sc.h: Likewise.
55287         * lib/unictype/categ_Sk.h: Likewise.
55288         * lib/unictype/categ_Sm.h: Likewise.
55289         * lib/unictype/categ_So.h: Likewise.
55290         * lib/unictype/categ_Z.h: Likewise.
55291         * lib/unictype/categ_Zl.h: Likewise.
55292         * lib/unictype/categ_Zp.h: Likewise.
55293         * lib/unictype/categ_Zs.h: Likewise.
55294         * lib/unictype/categ_of.h: Likewise.
55295         * lib/unictype/combining.h: Likewise.
55296         * lib/unictype/ctype_alnum.h: Likewise.
55297         * lib/unictype/ctype_alpha.h: Likewise.
55298         * lib/unictype/ctype_blank.h: Likewise.
55299         * lib/unictype/ctype_cntrl.h: Likewise.
55300         * lib/unictype/ctype_digit.h: Likewise.
55301         * lib/unictype/ctype_graph.h: Likewise.
55302         * lib/unictype/ctype_lower.h: Likewise.
55303         * lib/unictype/ctype_print.h: Likewise.
55304         * lib/unictype/ctype_punct.h: Likewise.
55305         * lib/unictype/ctype_space.h: Likewise.
55306         * lib/unictype/ctype_upper.h: Likewise.
55307         * lib/unictype/ctype_xdigit.h: Likewise.
55308         * lib/unictype/decdigit.h: Likewise.
55309         * lib/unictype/digit.h: Likewise.
55310         * lib/unictype/mirror.h: Likewise.
55311         * lib/unictype/numeric.h: Likewise.
55312         * lib/unictype/pr_alphabetic.h: Likewise.
55313         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55314         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55315         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55316         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55317         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55318         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55319         * lib/unictype/pr_bidi_control.h: Likewise.
55320         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55321         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55322         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55323         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55324         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55325         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55326         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55327         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55328         * lib/unictype/pr_bidi_pdf.h: Likewise.
55329         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55330         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55331         * lib/unictype/pr_combining.h: Likewise.
55332         * lib/unictype/pr_composite.h: Likewise.
55333         * lib/unictype/pr_currency_symbol.h: Likewise.
55334         * lib/unictype/pr_dash.h: Likewise.
55335         * lib/unictype/pr_decimal_digit.h: Likewise.
55336         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55337         * lib/unictype/pr_deprecated.h: Likewise.
55338         * lib/unictype/pr_diacritic.h: Likewise.
55339         * lib/unictype/pr_extender.h: Likewise.
55340         * lib/unictype/pr_format_control.h: Likewise.
55341         * lib/unictype/pr_grapheme_base.h: Likewise.
55342         * lib/unictype/pr_grapheme_extend.h: Likewise.
55343         * lib/unictype/pr_grapheme_link.h: Likewise.
55344         * lib/unictype/pr_hex_digit.h: Likewise.
55345         * lib/unictype/pr_hyphen.h: Likewise.
55346         * lib/unictype/pr_id_continue.h: Likewise.
55347         * lib/unictype/pr_id_start.h: Likewise.
55348         * lib/unictype/pr_ideographic.h: Likewise.
55349         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55350         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55351         * lib/unictype/pr_ignorable_control.h: Likewise.
55352         * lib/unictype/pr_iso_control.h: Likewise.
55353         * lib/unictype/pr_join_control.h: Likewise.
55354         * lib/unictype/pr_left_of_pair.h: Likewise.
55355         * lib/unictype/pr_line_separator.h: Likewise.
55356         * lib/unictype/pr_logical_order_exception.h: Likewise.
55357         * lib/unictype/pr_lowercase.h: Likewise.
55358         * lib/unictype/pr_math.h: Likewise.
55359         * lib/unictype/pr_non_break.h: Likewise.
55360         * lib/unictype/pr_not_a_character.h: Likewise.
55361         * lib/unictype/pr_numeric.h: Likewise.
55362         * lib/unictype/pr_other_alphabetic.h: Likewise.
55363         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55364         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55365         * lib/unictype/pr_other_id_continue.h: Likewise.
55366         * lib/unictype/pr_other_id_start.h: Likewise.
55367         * lib/unictype/pr_other_lowercase.h: Likewise.
55368         * lib/unictype/pr_other_math.h: Likewise.
55369         * lib/unictype/pr_other_uppercase.h: Likewise.
55370         * lib/unictype/pr_paired_punctuation.h: Likewise.
55371         * lib/unictype/pr_paragraph_separator.h: Likewise.
55372         * lib/unictype/pr_pattern_syntax.h: Likewise.
55373         * lib/unictype/pr_pattern_white_space.h: Likewise.
55374         * lib/unictype/pr_private_use.h: Likewise.
55375         * lib/unictype/pr_punctuation.h: Likewise.
55376         * lib/unictype/pr_quotation_mark.h: Likewise.
55377         * lib/unictype/pr_radical.h: Likewise.
55378         * lib/unictype/pr_sentence_terminal.h: Likewise.
55379         * lib/unictype/pr_soft_dotted.h: Likewise.
55380         * lib/unictype/pr_space.h: Likewise.
55381         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55382         * lib/unictype/pr_titlecase.h: Likewise.
55383         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55384         * lib/unictype/pr_unified_ideograph.h: Likewise.
55385         * lib/unictype/pr_uppercase.h: Likewise.
55386         * lib/unictype/pr_variation_selector.h: Likewise.
55387         * lib/unictype/pr_white_space.h: Likewise.
55388         * lib/unictype/pr_xid_continue.h: Likewise.
55389         * lib/unictype/pr_xid_start.h: Likewise.
55390         * lib/unictype/pr_zero_width.h: Likewise.
55391         * lib/unictype/scripts.h: Likewise.
55392         * lib/unictype/scripts_byname.gperf: Likewise.
55393         * lib/unictype/sy_c_ident.h: Likewise.
55394         * lib/unictype/sy_c_whitespace.h: Likewise.
55395         * lib/unictype/sy_java_ident.h: Likewise.
55396         * lib/unictype/sy_java_whitespace.h: Likewise.
55397
55398         * lib/unictype/Makefile: New file.
55399         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55400         glibc.
55401         * lib/unictype/3level.h: New file, copied from glibc.
55402         * lib/unictype/3levelbit.h: New file.
55403
55404 2007-11-11  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/gperf: New file.
55407         * modules/iconv_open (Depends-on): Add it.
55408         (Makefile.am): Remove the GPERF definition.
55409
55410 2007-11-11  Bruno Haible  <bruno@clisp.org>
55411
55412         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55413         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55414
55415 2007-11-11  Bruno Haible  <bruno@clisp.org>
55416
55417         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55418         (usage): Remove function.
55419
55420 2007-11-11  Bruno Haible  <bruno@clisp.org>
55421
55422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55423         gl_FUNC_CEILF_LIBS.
55424         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55425         gl_FUNC_CEIL_LIBS.
55426         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55427         gl_FUNC_CEILL_LIBS.
55428         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55429         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55430         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55431
55432 2007-11-11  Bruno Haible  <bruno@clisp.org>
55433
55434         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55435         roundf were declared but do not exist on functions.
55436         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55437         roundl were declared but do not exist on functions.
55438         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55439         HAVE_FLOORL_AND_CEILL, respectively.
55440         Needed for Sun C on Solaris 10.
55441
55442 2007-11-11  Bruno Haible  <bruno@clisp.org>
55443
55444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55445         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55446         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55447         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55449         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55450         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55451         HAVE_DECL_ROUNDF.
55452         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55453         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55455         of HAVE_DECL_ROUND*.
55456         * modules/math (Makefile.am): Update.
55457
55458 2007-11-10  Bruno Haible  <bruno@clisp.org>
55459
55460         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55461         ptrdiff_t as m4/intl.m4.
55462
55463 2007-11-10  Jim Meyering  <meyering@redhat.com>
55464
55465         Avoid link failure for the argmatch test.
55466         * tests/test-argmatch.c (usage): Define function to avoid a link
55467         failure: argmatch_die requires a usage function.
55468
55469 2007-11-09  Bruno Haible  <bruno@clisp.org>
55470
55471         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55472         * doc/functions/vsnprintf.texi: Likewise.
55473         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55474         with a size argument < 2.
55475
55476 2007-11-09  Bruno Haible  <bruno@clisp.org>
55477
55478         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55479         buffer. Fixes an inefficiency introduced on 2007-11-03.
55480
55481 2007-11-09  Bruno Haible  <bruno@clisp.org>
55482
55483         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55484         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55485
55486 2007-11-08  Jim Meyering  <meyering@redhat.com>
55487
55488         Change cache variable name prefix "jm_" to "gl_" everywhere.
55489         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55490         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55491         * m4/uptime.m4: s/gl_/jm_/
55492
55493 2007-11-07  Bruno Haible  <bruno@clisp.org>
55494
55495         Update to GNU gettext 0.17.
55496         * m4/intl.m4: Update to GNU gettext 0.17.
55497         * m4/po.m4: Likewise.
55498         * modules/gettext (Files): Remove m4/ulonglong.m4.
55499         (configure.ac): Require gettext infrastructure from version 0.17.
55500
55501 2007-11-06  Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55504         symbolic values are not defined in a public header.
55505         * lib/freadable.c (freadable) [QNX]: Likewise.
55506         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55507         * lib/freading.c (freading) [QNX]: Likewise.
55508         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55509         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55510         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55511         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55512         Reported by Alain Magloire.
55513
55514         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55515
55516 2007-11-05  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55519         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55520         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55521         Reported by Eric Blake.
55522
55523 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55524             Bruno Haible  <bruno@clisp.org>
55525
55526         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55527         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55528         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55529         (malloc): Undefine also before including <stdlib.h>.
55530         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55531         Needed on OSF/1 4.0.
55532
55533 2007-11-05  Jim Meyering  <meyering@redhat.com>
55534
55535         git-version-gen: sync from coreutils.
55536         * build-aux/git-version-gen: Add comments.
55537         Change the first '-' to '.' in the snapshot version string,
55538         e.g., 6.9-377-08144 -> 6.9.377-08144
55539         Remove first parameter.
55540         Don't declare a version "-dirty" merely because a time
55541         stamp has changed.
55542
55543 2007-11-04  Bruno Haible  <bruno@clisp.org>
55544
55545         * lib/lock.h: Protect all macro definitions containing an 'if'
55546         statement through a "do { ... } while (0)".
55547         * lib/tls.h: Likewise.
55548
55549 2007-11-04  Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55552
55553 2007-11-04  Bruno Haible  <bruno@clisp.org>
55554
55555         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55556         * modules/fprintf-posix (Depends-on): Add nocrash.
55557         * modules/snprintf-posix (Depends-on): Likewise.
55558         * modules/sprintf-posix (Depends-on): Likewise.
55559         * modules/vasnprintf-posix (Depends-on): Likewise.
55560         * modules/vasprintf-posix (Depends-on): Likewise.
55561         * modules/vfprintf-posix (Depends-on): Likewise.
55562         * modules/vsnprintf-posix (Depends-on): Likewise.
55563         * modules/vsprintf-posix (Depends-on): Likewise.
55564         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55565         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55566         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55567         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55568         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55569         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55570         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55571
55572 2007-11-04  Bruno Haible  <bruno@clisp.org>
55573
55574         * modules/nocrash: New file.
55575         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55576         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55577
55578 2007-11-04  Bruno Haible  <bruno@clisp.org>
55579
55580         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55581         precision handling.
55582         * tests/test-vasprintf-posix.c (test_function): Likewise.
55583         * tests/test-snprintf-posix.h (test_function): Likewise.
55584         * tests/test-sprintf-posix.h (test_function): Likewise.
55585
55586         Fix *printf behaviour for large precisions on mingw and BeOS.
55587         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55588         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55590         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55592         gl_PRINTF_PRECISION and test its result. Invoke
55593         gl_PREREQ_VASNPRINTF_PRECISION.
55594         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55595         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55596         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55597         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55598         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55599         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55600         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55601         * doc/functions/fprintf.texi: Update.
55602         * doc/functions/printf.texi: Update.
55603         * doc/functions/snprintf.texi: Update.
55604         * doc/functions/sprintf.texi: Update.
55605         * doc/functions/vfprintf.texi: Update.
55606         * doc/functions/vprintf.texi: Update.
55607         * doc/functions/vsnprintf.texi: Update.
55608         * doc/functions/vsprintf.texi: Update.
55609
55610 2007-11-04  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55613
55614 2007-11-04  Bruno Haible  <bruno@clisp.org>
55615
55616         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55617         Reported by Sylvain Beucler <beuc@gnu.org>.
55618
55619 2007-11-03  Bruno Haible  <bruno@clisp.org>
55620
55621         * tests/test-fprintf-posix2.sh: New file.
55622         * tests/test-fprintf-posix2.c: New file.
55623         * modules/fprintf-posix-tests (Files): Add them.
55624         (TESTS): Add test-fprintf-posix2.sh.
55625         (configure.ac): Check for getrlimit and setrlimit.
55626         (check_PROGRAMS): Add test-fprintf-posix2.
55627
55628         * tests/test-printf-posix2.sh: New file.
55629         * tests/test-printf-posix2.c: New file.
55630         * modules/printf-posix-tests (Files): Add them.
55631         (TESTS): Add test-printf-posix2.sh.
55632         (configure.ac): Check for getrlimit and setrlimit.
55633         (check_PROGRAMS): Add test-printf-posix2.
55634
55635         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55636         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55637         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55638         (decode_double): New function, copied from decode_long_double.
55639         (scale10_round_decimal_decoded): New function, extracted from
55640         scale10_round_decimal_long_double.
55641         (scale10_round_decimal_long_double): Use it.
55642         (scale10_round_decimal_double): New function.
55643         (floorlog10): New function.
55644         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55646         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55648         gl_PRINTF_ENOMEM and test its result. Invoke
55649         gl_PREREQ_VASNPRINTF_ENOMEM.
55650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55653         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55654         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55657         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55658         * modules/snprintf-posix (Depends-on): Likewise.
55659         * modules/sprintf-posix (Depends-on): Likewise.
55660         * modules/vasnprintf-posix (Depends-on): Likewise.
55661         * modules/vasprintf-posix (Depends-on): Likewise.
55662         * modules/vfprintf-posix (Depends-on): Likewise.
55663         * modules/vsnprintf-posix (Depends-on): Likewise.
55664         * modules/vsprintf-posix (Depends-on): Likewise.
55665         * doc/functions/fprintf.texi: Update.
55666         * doc/functions/printf.texi: Update.
55667         * doc/functions/snprintf.texi: Update.
55668         * doc/functions/sprintf.texi: Update.
55669         * doc/functions/vfprintf.texi: Update.
55670         * doc/functions/vprintf.texi: Update.
55671         * doc/functions/vsnprintf.texi: Update.
55672         * doc/functions/vsprintf.texi: Update.
55673
55674 2007-11-03  Bruno Haible  <bruno@clisp.org>
55675
55676         * modules/frexp-nolibm-tests: New file.
55677
55678         * modules/frexp-nolibm: New file.
55679         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55680
55681 2007-11-03  Bruno Haible  <bruno@clisp.org>
55682
55683         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55684         value is C99 compliant.
55685         Needed for OSF/1 5.1.
55686
55687 2007-11-03  Bruno Haible  <bruno@clisp.org>
55688
55689         Fix out-of-memory handling of vasnprintf.
55690         * lib/printf-parse.c: Include <errno.h>.
55691         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55692         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55693         is already set.
55694
55695 2007-11-02  Eric Blake  <ebb9@byu.net>
55696
55697         Fix tests on cygwin.
55698         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55699
55700 2007-11-01  Bruno Haible  <bruno@clisp.org>
55701
55702         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55703         warning.
55704         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55705         needed for POSIX compatibility.
55706
55707 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55710         for compatibility with GNU.
55711
55712 2007-11-01  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55715         (putenv): Renamed from rpl_putenv. Change argument type from
55716         'const char *' to 'char *'.
55717         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55718         of defining putenv in config.h, just set REPLACE_PUTENV.
55719         * modules/putenv (Depends-on): Add stdlib.
55720         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55721         (Include): Use <stdlib.h>.
55722         * lib/stdlib.in.h (putenv): New declaration.
55723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55724         REPLACE_PUTENV.
55725         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55726         REPLACE_PUTENV.
55727         Needed for MacOS X 10.5.0.
55728         Reported by Peter O'Gorman <peter@pogma.com>.
55729
55730 2007-11-01  Jim Meyering  <meyering@redhat.com>
55731
55732         Treat an empty date string exactly like "0".
55733         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55734         if the remaining date string (to be parsed) is empty, use "0".
55735         Reported by Mischa Molhoek and discussed in this thread:
55736         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55737
55738 2007-10-31  Bruno Haible  <bruno@clisp.org>
55739
55740         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55741         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55742         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55743         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55744         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55745         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55746
55747 2007-10-31  Bruno Haible  <bruno@clisp.org>
55748
55749         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55750         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55751         (AC_TYPE_LONG_LONG_INT): Use it.
55752         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55753         it as well.
55754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55755         to m4/longlong.m4.
55756         * modules/stdint (Files): Remove m4/ulonglong.m4.
55757         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55758         m4/ulonglong.m4.
55759         * modules/strtoumax (Files): Likewise.
55760
55761 2007-10-30  Bruno Haible  <bruno@clisp.org>
55762
55763         * modules/xvasprintf-posix: New file.
55764         Suggested by Eric Blake.
55765
55766 2007-10-30  Bruno Haible  <bruno@clisp.org>
55767
55768         * modules/xprintf-posix-tests: New file.
55769         * tests/test-xprintf-posix.sh: New file.
55770         * tests/test-xprintf-posix.c: New file.
55771         * tests/test-xfprintf-posix.c: New file.
55772
55773         * modules/xprintf-posix: New file.
55774
55775 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55776
55777         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55778         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55779         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55780
55781 2007-10-29  Bruno Haible  <bruno@clisp.org>
55782
55783         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55784         contain the special marker '_cv_'.
55785         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55786         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55787         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55788         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55789         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55790         Reported by Ralf Wildenhues.
55791
55792 2007-10-29  Bruno Haible  <bruno@clisp.org>
55793
55794         * gnulib-tool (func_import): When --lgpl is not specified, set
55795         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55796         GPLv3.
55797         Reported by Simon Josefsson.
55798
55799 2007-10-28  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55802         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55803         HAVE_DECL_ISFINITE.
55804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55805         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55806         HAVE_DECL_ISFINITE.
55807
55808 2007-10-28  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55811         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55812
55813 2007-10-28  Bruno Haible  <bruno@clisp.org>
55814
55815         Fix link errors with Sun C 5.0 on Solaris 10.
55816         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55817         function is declared but not present in the compiler's libm.
55818         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55819         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55820         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55821         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55822         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55823         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55824         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55826         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55827         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55828         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55829         HAVE_DECL_FLOORL.
55830
55831 2007-10-28  Bruno Haible  <bruno@clisp.org>
55832
55833         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55834         gl_FUNC_FLOORL. Cache the result.
55835         (gl_FUNC_FLOORL): Use it.
55836         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55837         gl_FUNC_CEILL. Cache the result.
55838         (gl_FUNC_CEILL): Use it.
55839
55840         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55841         gl_FUNC_FLOOR. Cache the result.
55842         (gl_FUNC_FLOOR): Use it.
55843         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55844         gl_FUNC_CEIL. Cache the result.
55845         (gl_FUNC_CEIL): Use it.
55846
55847         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55848         gl_FUNC_FLOORF. Cache the result.
55849         (gl_FUNC_FLOORF): Use it.
55850         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55851         gl_FUNC_CEILF. Cache the result.
55852         (gl_FUNC_CEILF): Use it.
55853
55854 2007-10-28  Bruno Haible  <bruno@clisp.org>
55855
55856         * gnulib-tool: Allow specifying the LGPL version number through
55857         --lgpl=2 or --lgpl=3.
55858         (func_usage): Document --lgpl with argument.
55859         Handle --lgpl=... arguments.
55860         (func_import): Recognize also gl_LGPL calls with an argument. When
55861         --lgpl=2 is used and the module's license is just LGPL, report an
55862         error. Set sed_transform_lib_file according to the lgpl variable. In
55863         the generated files, use --lgpl or gl_LGPL invocations with argument,
55864         if necessary.
55865         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55866         an LGPv2+ license.
55867         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55868         gl_LGPL macro.
55869
55870 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55871             Bruno Haible  <bruno@clisp.org>
55872
55873         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55874         (u16_uctomb_aux): Likewise.
55875         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55876         !HAVE_INLINE.
55877         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55878
55879 2007-10-28  Bruno Haible  <bruno@clisp.org>
55880
55881         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55882         Invoke AM_GETTEXT_OPTION if it exists.
55883         * modules/vasprintf: Likewise.
55884         * modules/verror: Likewise.
55885         * modules/xprintf: Likewise.
55886         * modules/xvasprintf: Likewise.
55887
55888 2007-10-27  Ben Pfaff  <blp@gnu.org>
55889
55890         * lib/math.in.h: Define isfinite macro and prototypes for
55891         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55892         implementations.
55893         * m4/math_h.m4: New substitutions for isfinite module.
55894         * lib/isfinite.c: New file.
55895         * m4/isfinite.m4: New file.
55896         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55897         * modules/isfinite: New file.
55898         * modules/isfinite-tests: New file.
55899         * tests/tests-isfinite.c: New file.
55900         * doc/functions/isfinite.texi: Mention isfinite module.
55901         * MODULES.html.sh: Mention new module.
55902
55903 2007-10-27  Ben Pfaff  <blp@gnu.org>
55904
55905         Ralf Wildenhues reported that Tru64 4.0D declares the round
55906         functions but does not have definitions.
55907         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55908         cannot be found in any library, set the output variable to
55909         "missing" instead of "".
55910         * m4/round.m4: Also use our substitute if we cannot find round in
55911         any library, even if it is declared.
55912         * m4/roundf.m4: Likewise for roundf.
55913         * m4/roundl.m4: Likewise for roundl.
55914         * lib/math.in.h: Undefine roundf, round, roundl before defining
55915         their replacements, to allow for hypothetical systems where these
55916         may be defined as macros but not available in libraries.
55917
55918 2007-10-27  Bruno Haible  <bruno@clisp.org>
55919
55920         * doc/gnulib.texi: Invoke @firstparagraphindent.
55921         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55922         changes in gnulib.
55923         (Source changes): New section.
55924
55925 2007-10-26  Bruno Haible  <bruno@clisp.org>
55926
55927         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55928         borrowed from autoconf.
55929
55930 2007-10-26  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55933         strerror returned the empty string. Needed on HP-UX 11.00.
55934
55935 2007-10-24  Micah Cowan  <micah@cowan.name>
55936
55937         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55938         * build-aux/bootstrap: Remove support for now-unnecessary option,
55939         --cvs-user, and envvars CVS_USER, CVS_RSH.
55940
55941 2007-10-24  Jim Meyering  <meyering@redhat.com>
55942
55943         Avoid diagnostics from sha1sum when there is no cached checksum.
55944         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55945         if the po.s1 file hasn't been created yet.
55946
55947         * build-aux/bootstrap: Sync from coreutils:
55948         2007-10-24  Jim Meyering  <meyering@redhat.com>
55949         Get gnulib from the git repository, not from an obsolete cvs one.
55950         * build-aux/bootstrap: Suggestion from Micah Cowan.
55951         2007-10-04  Jim Meyering  <jim@meyering.net>
55952         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55953         (update_po_files): Work also when there are no .po files in po/.
55954
55955 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55956
55957         * README: Append ".git" to git and cg examples.
55958         Problem reported by Benoit Sigoure.
55959
55960 2007-10-23  Micah Cowan  <micah@cowan.name>
55961
55962         * users.txt: Add wget.
55963
55964 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55965
55966         Fix linking of some unistdio tests on FreeBSD.
55967         * modules/unistdio/u16-vsnprintf-tests
55968         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55969         * modules/unistdio/u16-vsprintf-tests
55970         (test_u16_vsnprintf1_LDADD): Likewise.
55971         * modules/unistdio/u32-vsnprintf-tests
55972         (test_u32_vsnprintf1_LDADD): Likewise.
55973         * modules/unistdio/u32-vsprintf-tests
55974         (test_u32_vsprintf1_LDADD): Likewise.
55975         * modules/unistdio/u8-vsnprintf-tests
55976         (test_u8_vsnprintf1_LDADD): Likewise.
55977         * modules/unistdio/u8-vsprintf-tests
55978         (test_u8_vsprintf1_LDADD): Likewise.
55979         * modules/unistdio/ulc-vsnprintf-tests
55980         (test_ulc_vsnprintf1_LDADD): Likewise.
55981         * modules/unistdio/ulc-vsprintf-tests
55982         (test_ulc_vsprintf1_LDADD): Likewise.
55983
55984         Fix linking of some uniconv tests on FreeBSD.
55985         * modules/uniconv/u16-conv-from-enc-tests
55986         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55987         * modules/uniconv/u16-conv-to-enc-tests
55988         (test_u16_conv_to_enc_LDADD): Likewise.
55989         * modules/uniconv/u16-strconv-from-enc-tests
55990         (test_u16_strconv_from_enc_LDADD): Likewise.
55991         * modules/uniconv/u16-strconv-to-enc-tests
55992         (test_u16_strconv_to_enc_LDADD): Likewise.
55993         * modules/uniconv/u32-conv-from-enc-tests
55994         (test_u32_conv_from_enc_LDADD): Likewise.
55995         * modules/uniconv/u32-conv-to-enc-tests
55996         (test_u32_conv_to_enc_LDADD): Likewise.
55997         * modules/uniconv/u32-strconv-from-enc-tests
55998         (test_u32_strconv_from_enc_LDADD): Likewise.
55999         * modules/uniconv/u32-strconv-to-enc-tests
56000         (test_u32_strconv_to_enc_LDADD): Likewise.
56001         * modules/uniconv/u8-conv-from-enc-tests
56002         (test_u8_conv_from_enc_LDADD): Likewise.
56003         * modules/uniconv/u8-conv-to-enc-tests
56004         (test_u8_conv_to_enc_LDADD): Likewise.
56005         * modules/uniconv/u8-strconv-from-enc-tests
56006         (test_u8_strconv_from_enc_LDADD): Likewise.
56007         * modules/uniconv/u8-strconv-to-enc-tests
56008         (test_u8_strconv_to_enc_LDADD): Likewise.
56009
56010 2007-10-22  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56013         size.
56014
56015 2007-10-22  Eric Blake  <ebb9@byu.net>
56016
56017         Tweak x*printf documentation.
56018         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56019         variable name and comments.
56020         Suggested by Bruno Haible.
56021
56022 2007-10-22  Bruno Haible  <bruno@clisp.org>
56023
56024         * lib/acl.c (copy_acl): Fix file name in comment.
56025
56026 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56027
56028         Fix Tru64 problem with stdbool.h.
56029         * lib/stdbool.in.h (false, true):
56030         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56031         Don't declare as an enum in this situation; it runs afoul of Tru64.
56032         Problem reported by Steven M. Schweda in
56033         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56034
56035 2007-10-22  Eric Blake  <ebb9@byu.net>
56036
56037         Also wrap vf?printf.
56038         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56039         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56040         (xvprintf, xvfprintf): New functions.
56041
56042 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56043
56044         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56045         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56046
56047         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56048         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56049
56050 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56051
56052         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56053         by Bruno Haible.
56054
56055 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56056
56057         * lib/getloadavg.c
56058         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56059         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56060
56061         * tests/test-i-ring.c: Work for C89.
56062
56063 2007-10-22  Bruno Haible  <bruno@clisp.org>
56064
56065         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56066         -1u, in preprocessor expression, so that we don't test for the bug
56067         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56069
56070 2007-10-22  Eric Blake  <ebb9@byu.net>
56071
56072         * tests/test-yesno.sh: Silence stderr during test.
56073
56074 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56075
56076         * modules/crypto/gc-camellia: New file.
56077
56078         * m4/gc-camellia.m4: New file.
56079
56080         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56081
56082         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56083
56084 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56085
56086         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56087         --help to stdout.  Reported by sms@antinode.org (Steven
56088         M. Schweda).
56089
56090 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56091
56092         * users.txt: Fix link to libksba.
56093
56094 2007-10-21  Ben Pfaff  <blp@gnu.org>
56095
56096         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56097         round.c roundf implementation that depends on floorf and ceilf to
56098         be tested unconditionally.
56099
56100 2007-10-21  Ben Pfaff  <blp@gnu.org>
56101
56102         * m4/check-libm-func.m4: Removed.
56103         * m4/check-math-lib.m4: New file.
56104         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56105         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56106         definition and lack of AC_LIBOBJ([roundf]).
56107         * m4/roundl.m4: Ditto, and similarly for roundl.
56108         * modules/round: Reference new m4 file.
56109         * modules/roundf: Ditto.
56110         * modules/roundl: Ditto.
56111         * tests/test-round2.c (main): Use ROUND instead of round.
56112         Bug report from Bruno Haible.
56113
56114 2007-10-21  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56117         context.
56118
56119 2007-10-21  Bruno Haible  <bruno@clisp.org>
56120
56121         * tests/test-wcwidth.c (main): Allow negative result for some control
56122         characters.
56123
56124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56125         Needed on OSF/1 5.1.
56126
56127 2007-10-21  Bruno Haible  <bruno@clisp.org>
56128
56129         * tests/test-floorf1.c: Include isnanf.h.
56130         (main): Use isnanf() instead of isnan().
56131         * tests/test-ceilf1.c: Include isnanf.h.
56132         (main): Use isnanf() instead of isnan().
56133         * tests/test-truncf1.c: Include isnanf.h.
56134         (main): Use isnanf() instead of isnan().
56135         * tests/test-roundf1.c: Include isnanf.h.
56136         (main): Use isnanf() instead of isnan().
56137
56138 2007-10-21  Eric Blake  <ebb9@byu.net>
56139
56140         * users.txt: Update URL for m4.
56141
56142 2007-10-21  Bruno Haible  <bruno@clisp.org>
56143
56144         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56145
56146 2007-10-21  Bruno Haible  <bruno@clisp.org>
56147
56148         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56149         Git's management files if the CVS files are not present.
56150
56151 2007-10-20  Bruno Haible  <bruno@clisp.org>
56152
56153         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56154         gcc-3.4.x.
56155
56156 2007-10-20  Ben Pfaff  <blp@gnu.org>
56157
56158         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56159         implementations.
56160         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56161         * lib/round.c: New file.
56162         * lib/roundf.c: New file.
56163         * lib/roundl.c: New file.
56164         * m4/round.m4: New file.
56165         * m4/roundf.m4: New file.
56166         * m4/roundl.m4: New file.
56167         * m4/check-libm-func-m4: New file.
56168         * modules/math: Replace round, roundf, roundl related @VARS@ in
56169         math.in.h.
56170         * modules/round: New file.
56171         * modules/round-tests: New file.
56172         * modules/roundf: New file.
56173         * modules/roundf-tests: New file.
56174         * modules/roundl: New file.
56175         * modules/roundl-tests: New file.
56176         * tests/test-round1.c: New file.
56177         * tests/test-round2.c: New file.
56178         * tests/test-roundf1.c: New file.
56179         * tests/test-roundf2.c: New file.
56180         * tests/test-roundl.c: New file.
56181         * doc/functions/round.texi: Mention round module.
56182         * doc/functions/roundf.texi: Mention roundf module.
56183         * doc/functions/roundl.texi: Mention roundl module.
56184         * MODULES.html.sh: Mention new modules.
56185         Thanks to Bruno Haible for suggestions.
56186
56187 2007-10-20  Jim Meyering  <meyering@redhat.com>
56188
56189         * lib/xprintf.c: Include <config.h> unconditionally.
56190
56191         Change xprintf's license to GPL.
56192         * modules/xprintf (License): s/LGPL/GPL/, since this module
56193         depends on modules (exit and exitfail) which are GPL.
56194         Suggestion from Bruno Haible.
56195
56196         xprintf fixes.
56197         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56198         Use a clearer diagnostic.
56199         Patch from Bruno Haible.
56200
56201 2007-10-20  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56204         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56206
56207 2007-10-20  Bruno Haible  <bruno@clisp.org>
56208
56209         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56210         precision in the comparison result > x - 1 or similar.
56211         * tests/test-ceilf2.c (correct_result_p): Likewise.
56212         * tests/test-truncf2.c (correct_result_p): Likewise.
56213         * tests/test-trunc2.c (correct_result_p): Likewise.
56214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56215
56216 2007-10-20  Bruno Haible  <bruno@clisp.org>
56217
56218         * modules/ceil: New file.
56219         * m4/ceil.m4: New file.
56220         * doc/functions/ceil.texi: Mention the 'ceil' module.
56221
56222 2007-10-20  Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/floor: New file.
56225         * m4/floor.m4: New file.
56226         * doc/functions/floor.texi: Mention the 'floor' module.
56227
56228 2007-10-20  Bruno Haible  <bruno@clisp.org>
56229
56230         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56231         of %a.
56232         * modules/floorf-tests (Depends-on): Likewise.
56233         * modules/truncf-tests (Depends-on): Likewise.
56234         * modules/trunc-tests (Depends-on): Likewise.
56235         Reported by Ben Pfaff.
56236
56237 2007-10-19  Jim Meyering  <meyering@redhat.com>
56238
56239         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56240         Don't bother testing specific errno values.  Just test ferror.
56241
56242         New module: xprintf
56243         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56244
56245 2007-10-19  Bruno Haible  <bruno@clisp.org>
56246
56247         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56248         syntax.
56249         * modules/javaexec (Makefile.am): Likewise.
56250         * modules/relocatable-prog (Makefile.am): Likewise.
56251         Suggested by Jim Meyering.
56252
56253 2007-10-18  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56256         Reported by Jim Meyering.
56257
56258 2007-10-18  Eric Blake  <ebb9@byu.net>
56259
56260         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56261
56262 2007-10-18  Bruno Haible  <bruno@clisp.org>
56263
56264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56265         the format string into writable memory. Needed in Fortify conditions.
56266
56267 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56268             Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56271         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56272         * modules/trim (Depends-on): Add mbchar.
56273         (configure.ac): Add gl_FUNC_MBRTOWC.
56274         (Makefile.am): Augment lib_SOURCES.
56275
56276 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56277
56278         Modify glob.c to use fstatat and dirfd, to simplify it.
56279         Suggested by Eric Blake.
56280         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56281         Don't include <stdbool.h>; not used.
56282         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56283         (link_exists_p): Simplify implementation, since we can now assume
56284         dirfd and fstatat.
56285         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56286
56287 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56288
56289         * gnulib-tool (func_get_dependencies): Fix sed script to
56290         match only tests.
56291
56292 2007-10-17  Bruno Haible  <bruno@clisp.org>
56293
56294         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56295         allow locale names without encoding suffix.
56296         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56297         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56298
56299 2007-10-16  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56302         * lib/getgroups.c (getgroups): Likewise.
56303         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56304
56305 2007-10-16  Bruno Haible  <bruno@clisp.org>
56306
56307         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56308         * modules/malloc-posix (License): Likewise.
56309         * modules/realloc-posix (License): Likewise.
56310         * modules/calloc-posix (License): Likewise.
56311         * modules/intprops (License): Change from GPL to LGPL, with
56312         Paul Eggert's approval.
56313
56314 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56315
56316         Merge glibc changes into lib/glob.c.
56317
56318         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56319         2007-10-15 04:59:03 UTC.  Here are the changes:
56320
56321         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56322
56323         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56324
56325         * lib/glob.c: Add some branch prediction throughout.
56326
56327         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56328
56329         [BZ #5103]
56330         * lib/glob.c (glob): Recognize patterns starting \/.
56331
56332         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56333
56334         [BZ #3996]
56335         * lib/glob.c (attribute_hidden): Define if not defined.
56336         (glob): Unescape dirname, filename or username when needed and not
56337         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56338         is NULL.  Handle unescaped [ in pattern without closing ].
56339         Don't pass GLOB_CHECK down to recursive glob for directories.
56340         (__glob_pattern_type): New function.
56341         (__glob_pattern_p): Implement using __glob_pattern_type.
56342         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56343         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56344         Remove unreachable code.
56345
56346         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56347
56348         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56349         explain why there are no leaks.
56350
56351         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56352
56353         [BZ #3253]
56354         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56355         time, rather allocate increasingly bigger arrays of pointers, if
56356         possible with alloca, if too large with malloc.
56357
56358 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56359
56360         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56361         Problem reported by H.Merijn Brand in
56362         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56363         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56364         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56365
56366 2007-10-15  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56369         with explicit rpl_ prefix.
56370         * lib/fopen.c (fopen): Likewise.
56371         * lib/freopen.c (freopen): Likewise.
56372         * lib/iconv.c (iconv): Likewise.
56373         * lib/iconv_close.c (iconv_close): Likewise.
56374
56375 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56376
56377         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56378
56379 2007-10-15  Bruno Haible  <bruno@clisp.org>
56380
56381         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56382         <stddef.h> instead of <stdlib.h> since we only need NULL.
56383         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56384
56385 2007-10-15  Bruno Haible  <bruno@clisp.org>
56386
56387         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56388         Replace paragraph talking about LIBOBJS.
56389         Reported by Colin Watson <cjwatson@debian.org>.
56390
56391 2007-10-15  Bruno Haible  <bruno@clisp.org>
56392
56393         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56394         <stdlib.h> before using NULL.
56395
56396 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56397
56398         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56399         Reported by Albert Chin <china@thewrittenword.com>.
56400
56401 2007-10-14  Bruno Haible  <bruno@clisp.org>
56402
56403         * modules/iconv_open-utf-tests: New file.
56404         * tests/test-iconv-utf.c: New file.
56405
56406         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56407         * modules/iconv_open-utf: New file.
56408         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56409         (iconv, iconv_close): New declarations.
56410         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56411         be defined.
56412         (iconv_open): Add special handling of conversion between UTF-8 and
56413         UTF-{16,32}{BE,LE}.
56414         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56415         * lib/iconv_close.c: New file.
56416         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56417         gl_FUNC_ICONV_OPEN.
56418         (gl_FUNC_ICONV_OPEN): Use it.
56419         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56420         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56421         and REPLACE_ICONV_UTF.
56422         * modules/iconv_open (Depends-on): Add c-strcase.
56423         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56424         ICONV_CONST.
56425         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56426
56427 2007-10-13  Albert Chin  <china@thewrittenword.com>
56428             Bruno Haible  <bruno@clisp.org>
56429
56430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56431         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56432
56433 2007-10-13  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56436         defined, use the ISO C99 inline semantics.
56437         * lib/argp.h (ARGP_EI): Likewise.
56438
56439 2007-10-13  Bruno Haible  <bruno@clisp.org>
56440
56441         Handle 'inline' change in gcc 4.3.0.
56442         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56443         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56444         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56445         argp_fmtstream_point): Disable 'extern' declaration if the function
56446         definition is going to be provided inline.
56447         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56448         semantics, not the ISO C99 inline semantics.
56449         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56450         'extern' declaration if the function definition is going to be provided
56451         inline.
56452         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56453         the GNU C inline semantics, not the ISO C99 inline semantics. With
56454         GCC 4.2, avoid a warning.
56455
56456 2007-10-13  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/freading.h (freading): Enable the use of __freading for
56459         glibc >= 2.7.
56460         * lib/freading.c (freading): Likewise.
56461
56462 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56465         "warning: C99 inline functions are not supported; using GNU89".
56466
56467 2007-10-12  Bruno Haible  <bruno@clisp.org>
56468
56469         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56470         of 2.
56471         * tests/test-ceilf2.c: New file.
56472         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56473
56474         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56475         * modules/ceilf-tests: Update.
56476
56477 2007-10-12  Bruno Haible  <bruno@clisp.org>
56478
56479         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56480         of 2.
56481         * tests/test-floorf2.c: New file.
56482         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56483
56484         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56485         * modules/floorf-tests: Update.
56486
56487 2007-10-12  Bruno Haible  <bruno@clisp.org>
56488
56489         * tests/test-trunc2.c: New file.
56490         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56491
56492         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56493         * modules/trunc-tests: Update.
56494
56495 2007-10-12  Bruno Haible  <bruno@clisp.org>
56496
56497         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56498         of 2.
56499         * tests/test-truncf2.c: New file.
56500         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56501
56502         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56503         * modules/truncf-tests: Update.
56504
56505 2007-10-11  Eric Blake  <ebb9@byu.net>
56506
56507         Don't claim strerror is broken on Interix.
56508         * doc/functions/strerror.texi (strerror): Known broken systems are
56509         now Solaris 8, and not Interix.
56510         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56511         Interix on cross-compile.
56512         Reported by Martin Koeppe in
56513         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56514
56515 2007-10-11  Bruno Haible  <bruno@clisp.org>
56516
56517         * modules/i-ring-tests: New file.
56518         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56519         instead of assert.
56520
56521 2007-10-11  Bruno Haible  <bruno@clisp.org>
56522
56523         * modules/filenamecat-tests: New file.
56524         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56525         * lib/filenamecat.c: Remove test code.
56526
56527 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56528
56529         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56530
56531         * lib/strerror.c: Include <string.h> always, to test interface,
56532         and to remove the need for the dummy.
56533         Include intprops.h to compute width instead of doing it ourselves
56534         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56535         (strerror): Define it to return NULL if there's no system strerror.
56536         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56537         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56538         ancient pre-strerror Unix systems well any more.  Saying "unknown
56539         system error" is enough.
56540         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56541         simpler strerror.c implementation.
56542         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56543         Simplify the tests to reflect the simpler strerror implementation.
56544         * modules/strerror (Depends-on): Add intprops.
56545
56546 2007-10-09  Eric Blake  <ebb9@byu.net>
56547
56548         Silence test-fpending.
56549         * modules/fpending-tests (Files): Add wrapper script.
56550         * tests/test-fpending.sh: New file.
56551
56552 2007-10-09  Bruno Haible  <bruno@clisp.org>
56553
56554         * MODULES.html.sh (func_module): Don't create a hyperlink for
56555         function names like 'printf_frexp'.
56556         (Misc): Add crc, memxor.
56557         (Characteristics of floating types): New section.
56558         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56559         isnanf-nolibm, signbit, trunc, truncf, truncl.
56560         (Enhancements for ISO C 99 functions): New subsection Input/output.
56561         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56562         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56563         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56564         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56565         (Enhancements for POSIX:2001 functions): Add chdir-long.
56566         (File system functions): Add areadlink, chdir-safer, read-file.
56567         Remove cycle-check.
56568         (File system as inode set): New section.
56569         (Date and time): Add gethrxtime.
56570         (Multithreading): Add openmp.
56571         (Internationalization functions): Add localename.
56572         (Unicode string functions): Add unistr/u*-mbsnlen.
56573         (Support for maintaining and releasing projects): Add git-version-gen.
56574         (Lone files): Remove directories.
56575
56576 2007-10-08  Ben Pfaff  <blp@gnu.org>
56577
56578         * lib/xmalloca.h: Fix typo in comment.
56579
56580 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56581
56582         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56583         when avoiding problems with integer overflow.  Use a portable test
56584         instead.
56585
56586 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56587
56588         * modules/dummy (License): Change to LGPLv2+.
56589         * modules/float (License): Likewise
56590         * modules/realloc (License): Likewise
56591         * modules/stdlib (License): Likewise
56592
56593 2007-10-07  Bruno Haible  <bruno@clisp.org>
56594
56595         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56596         * floor.c (TWO_MANT_DIG): Likewise.
56597         * ceil.c (TWO_MANT_DIG): Likewise.
56598         Reported by Ben Pfaff.
56599
56600 2007-10-07  Bruno Haible  <bruno@clisp.org>
56601
56602         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56603         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56604         * lib/frexp.c (FUNC): Likewise.
56605         * lib/printf-frexp.h (printf_frexp): Likewise.
56606         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56607         * lib/printf-frexp.c (FUNC): Likewise.
56608         Suggested by Jim Meyering.
56609
56610 2007-10-07  Jim Meyering  <meyering@redhat.com>
56611
56612         Make xnanosleep's integer overflow test more robust.
56613         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56614         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56615
56616 2007-10-07  Bruno Haible  <bruno@clisp.org>
56617
56618         * NEWS: Mention the license change.
56619
56620         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56621         abbreviations in the modules files.
56622
56623         Change copyright notice from GPLv2+ to GPLv3+.
56624         * README: Change copyright notice.
56625         * MODULES.html.sh: Likewise.
56626         * build-aux/bootstrap.conf: Likewise.
56627         * build-aux/config.libpath: Likewise.
56628         * build-aux/csharpcomp.sh.in: Likewise.
56629         * build-aux/csharpexec.sh.in: Likewise.
56630         * build-aux/install-reloc: Likewise.
56631         * build-aux/javacomp.sh.in: Likewise.
56632         * build-aux/javaexec.sh.in: Likewise.
56633         * build-aux/ldd.sh.in: Likewise.
56634         * build-aux/reloc-ldflags: Likewise.
56635         * build-aux/relocatable.sh.in: Likewise.
56636         * build-aux/x-to-1.in: Likewise.
56637         * check-module: Likewise.
56638         * config/srclistvars.sh: Likewise.
56639         * gnulib-tool: Likewise.
56640         * lib/acl-internal.h: Likewise.
56641         * lib/acl.c: Likewise.
56642         * lib/acl.h: Likewise.
56643         * lib/acl_entries.c: Likewise.
56644         * lib/areadlink-with-size.c: Likewise.
56645         * lib/areadlink.c: Likewise.
56646         * lib/areadlink.h: Likewise.
56647         * lib/argmatch.c: Likewise.
56648         * lib/argmatch.h: Likewise.
56649         * lib/argp-ba.c: Likewise.
56650         * lib/argp-eexst.c: Likewise.
56651         * lib/argp-fmtstream.c: Likewise.
56652         * lib/argp-fmtstream.h: Likewise.
56653         * lib/argp-fs-xinl.c: Likewise.
56654         * lib/argp-help.c: Likewise.
56655         * lib/argp-namefrob.h: Likewise.
56656         * lib/argp-parse.c: Likewise.
56657         * lib/argp-pin.c: Likewise.
56658         * lib/argp-pv.c: Likewise.
56659         * lib/argp-pvh.c: Likewise.
56660         * lib/argp-xinl.c: Likewise.
56661         * lib/argp.h: Likewise.
56662         * lib/at-func.c: Likewise.
56663         * lib/atanl.c: Likewise.
56664         * lib/backupfile.c: Likewise.
56665         * lib/backupfile.h: Likewise.
56666         * lib/basename.c: Likewise.
56667         * lib/binary-io.h: Likewise.
56668         * lib/byteswap.in.h: Likewise.
56669         * lib/c-stack.c: Likewise.
56670         * lib/c-stack.h: Likewise.
56671         * lib/c-strcasestr.c: Likewise.
56672         * lib/c-strcasestr.h: Likewise.
56673         * lib/c-strstr.c: Likewise.
56674         * lib/c-strstr.h: Likewise.
56675         * lib/c-strtod.c: Likewise.
56676         * lib/calloc.c: Likewise.
56677         * lib/canon-host.c: Likewise.
56678         * lib/canon-host.h: Likewise.
56679         * lib/canonicalize-lgpl.c: Likewise.
56680         * lib/canonicalize.c: Likewise.
56681         * lib/canonicalize.h: Likewise.
56682         * lib/ceil.c: Likewise.
56683         * lib/ceilf.c: Likewise.
56684         * lib/ceill.c: Likewise.
56685         * lib/chdir-long.c: Likewise.
56686         * lib/chdir-long.h: Likewise.
56687         * lib/chdir-safer.c: Likewise.
56688         * lib/chdir-safer.h: Likewise.
56689         * lib/chown.c: Likewise.
56690         * lib/classpath.c: Likewise.
56691         * lib/classpath.h: Likewise.
56692         * lib/clean-temp.c: Likewise.
56693         * lib/clean-temp.h: Likewise.
56694         * lib/cloexec.c: Likewise.
56695         * lib/close-stream.c: Likewise.
56696         * lib/closein.c: Likewise.
56697         * lib/closein.h: Likewise.
56698         * lib/closeout.c: Likewise.
56699         * lib/closeout.h: Likewise.
56700         * lib/concat-filename.c: Likewise.
56701         * lib/copy-file.c: Likewise.
56702         * lib/copy-file.h: Likewise.
56703         * lib/count-one-bits.h: Likewise.
56704         * lib/crc.c: Likewise.
56705         * lib/crc.h: Likewise.
56706         * lib/creat-safer.c: Likewise.
56707         * lib/csharpcomp.c: Likewise.
56708         * lib/csharpcomp.h: Likewise.
56709         * lib/csharpexec.c: Likewise.
56710         * lib/csharpexec.h: Likewise.
56711         * lib/cycle-check.c: Likewise.
56712         * lib/cycle-check.h: Likewise.
56713         * lib/diacrit.c: Likewise.
56714         * lib/diacrit.h: Likewise.
56715         * lib/diffseq.h: Likewise.
56716         * lib/dirchownmod.c: Likewise.
56717         * lib/dirent.in.h: Likewise.
56718         * lib/dirfd.c: Likewise.
56719         * lib/dirfd.h: Likewise.
56720         * lib/dirname.c: Likewise.
56721         * lib/dirname.h: Likewise.
56722         * lib/dummy.c: Likewise.
56723         * lib/dup-safer.c: Likewise.
56724         * lib/dup2.c: Likewise.
56725         * lib/eealloc.h: Likewise.
56726         * lib/error.c: Likewise.
56727         * lib/error.h: Likewise.
56728         * lib/euidaccess.c: Likewise.
56729         * lib/exclude.c: Likewise.
56730         * lib/exclude.h: Likewise.
56731         * lib/execute.c: Likewise.
56732         * lib/execute.h: Likewise.
56733         * lib/exitfail.c: Likewise.
56734         * lib/exitfail.h: Likewise.
56735         * lib/expl.c: Likewise.
56736         * lib/fatal-signal.c: Likewise.
56737         * lib/fatal-signal.h: Likewise.
56738         * lib/fbufmode.c: Likewise.
56739         * lib/fbufmode.h: Likewise.
56740         * lib/fchdir.c: Likewise.
56741         * lib/fchmodat.c: Likewise.
56742         * lib/fchownat.c: Likewise.
56743         * lib/fcntl--.h: Likewise.
56744         * lib/fcntl-safer.h: Likewise.
56745         * lib/fcntl.in.h: Likewise.
56746         * lib/fd-safer.c: Likewise.
56747         * lib/fflush.c: Likewise.
56748         * lib/file-has-acl.c: Likewise.
56749         * lib/file-set.c: Likewise.
56750         * lib/file-type.c: Likewise.
56751         * lib/file-type.h: Likewise.
56752         * lib/fileblocks.c: Likewise.
56753         * lib/filemode.c: Likewise.
56754         * lib/filemode.h: Likewise.
56755         * lib/filename.h: Likewise.
56756         * lib/filenamecat.c: Likewise.
56757         * lib/filenamecat.h: Likewise.
56758         * lib/findprog.c: Likewise.
56759         * lib/findprog.h: Likewise.
56760         * lib/float.in.h: Likewise.
56761         * lib/floor.c: Likewise.
56762         * lib/floorf.c: Likewise.
56763         * lib/floorl.c: Likewise.
56764         * lib/fopen-safer.c: Likewise.
56765         * lib/fopen.c: Likewise.
56766         * lib/fpending.c: Likewise.
56767         * lib/fpending.h: Likewise.
56768         * lib/fprintf.c: Likewise.
56769         * lib/fprintftime.h: Likewise.
56770         * lib/fpucw.h: Likewise.
56771         * lib/fpurge.c: Likewise.
56772         * lib/fpurge.h: Likewise.
56773         * lib/freadable.c: Likewise.
56774         * lib/freadable.h: Likewise.
56775         * lib/freadahead.c: Likewise.
56776         * lib/freadahead.h: Likewise.
56777         * lib/freading.c: Likewise.
56778         * lib/freading.h: Likewise.
56779         * lib/free.c: Likewise.
56780         * lib/freopen.c: Likewise.
56781         * lib/frexp.c: Likewise.
56782         * lib/frexpl.c: Likewise.
56783         * lib/fseek.c: Likewise.
56784         * lib/fseterr.c: Likewise.
56785         * lib/fseterr.h: Likewise.
56786         * lib/fstatat.c: Likewise.
56787         * lib/fstrcmp.c: Likewise.
56788         * lib/fstrcmp.h: Likewise.
56789         * lib/fsusage.c: Likewise.
56790         * lib/fsusage.h: Likewise.
56791         * lib/ftell.c: Likewise.
56792         * lib/ftello.c: Likewise.
56793         * lib/fts-cycle.c: Likewise.
56794         * lib/fts.c: Likewise.
56795         * lib/fts_.h: Likewise.
56796         * lib/full-read.c: Likewise.
56797         * lib/full-read.h: Likewise.
56798         * lib/full-write.c: Likewise.
56799         * lib/full-write.h: Likewise.
56800         * lib/fwritable.c: Likewise.
56801         * lib/fwritable.h: Likewise.
56802         * lib/fwriteerror.c: Likewise.
56803         * lib/fwriteerror.h: Likewise.
56804         * lib/fwriting.c: Likewise.
56805         * lib/fwriting.h: Likewise.
56806         * lib/gcd.c: Likewise.
56807         * lib/gcd.h: Likewise.
56808         * lib/getcwd.c: Likewise.
56809         * lib/getdate.h: Likewise.
56810         * lib/getdate.y: Likewise.
56811         * lib/getdomainname.c: Likewise.
56812         * lib/getdomainname.h: Likewise.
56813         * lib/getgroups.c: Likewise.
56814         * lib/gethostname.c: Likewise.
56815         * lib/gethrxtime.c: Likewise.
56816         * lib/gethrxtime.h: Likewise.
56817         * lib/getloadavg.c: Likewise.
56818         * lib/getndelim2.c: Likewise.
56819         * lib/getndelim2.h: Likewise.
56820         * lib/getnline.c: Likewise.
56821         * lib/getnline.h: Likewise.
56822         * lib/getopt.c: Likewise.
56823         * lib/getopt.in.h: Likewise.
56824         * lib/getopt1.c: Likewise.
56825         * lib/getopt_int.h: Likewise.
56826         * lib/getpagesize.h: Likewise.
56827         * lib/getsubopt.c: Likewise.
56828         * lib/gettime.c: Likewise.
56829         * lib/getugroups.c: Likewise.
56830         * lib/getugroups.h: Likewise.
56831         * lib/getusershell.c: Likewise.
56832         * lib/gl_anyavltree_list1.h: Likewise.
56833         * lib/gl_anyavltree_list2.h: Likewise.
56834         * lib/gl_anyhash_list1.h: Likewise.
56835         * lib/gl_anyhash_list2.h: Likewise.
56836         * lib/gl_anylinked_list1.h: Likewise.
56837         * lib/gl_anylinked_list2.h: Likewise.
56838         * lib/gl_anyrbtree_list1.h: Likewise.
56839         * lib/gl_anyrbtree_list2.h: Likewise.
56840         * lib/gl_anytree_list1.h: Likewise.
56841         * lib/gl_anytree_list2.h: Likewise.
56842         * lib/gl_anytree_oset.h: Likewise.
56843         * lib/gl_anytreehash_list1.h: Likewise.
56844         * lib/gl_anytreehash_list2.h: Likewise.
56845         * lib/gl_array_list.c: Likewise.
56846         * lib/gl_array_list.h: Likewise.
56847         * lib/gl_array_oset.c: Likewise.
56848         * lib/gl_array_oset.h: Likewise.
56849         * lib/gl_avltree_list.c: Likewise.
56850         * lib/gl_avltree_list.h: Likewise.
56851         * lib/gl_avltree_oset.c: Likewise.
56852         * lib/gl_avltree_oset.h: Likewise.
56853         * lib/gl_avltreehash_list.c: Likewise.
56854         * lib/gl_avltreehash_list.h: Likewise.
56855         * lib/gl_carray_list.c: Likewise.
56856         * lib/gl_carray_list.h: Likewise.
56857         * lib/gl_linked_list.c: Likewise.
56858         * lib/gl_linked_list.h: Likewise.
56859         * lib/gl_linkedhash_list.c: Likewise.
56860         * lib/gl_linkedhash_list.h: Likewise.
56861         * lib/gl_list.c: Likewise.
56862         * lib/gl_list.h: Likewise.
56863         * lib/gl_oset.c: Likewise.
56864         * lib/gl_oset.h: Likewise.
56865         * lib/gl_rbtree_list.c: Likewise.
56866         * lib/gl_rbtree_list.h: Likewise.
56867         * lib/gl_rbtree_oset.c: Likewise.
56868         * lib/gl_rbtree_oset.h: Likewise.
56869         * lib/gl_rbtreehash_list.c: Likewise.
56870         * lib/gl_rbtreehash_list.h: Likewise.
56871         * lib/gl_sublist.c: Likewise.
56872         * lib/gl_sublist.h: Likewise.
56873         * lib/group-member.c: Likewise.
56874         * lib/group-member.h: Likewise.
56875         * lib/hard-locale.c: Likewise.
56876         * lib/hard-locale.h: Likewise.
56877         * lib/hash-pjw.c: Likewise.
56878         * lib/hash-pjw.h: Likewise.
56879         * lib/hash-triple.c: Likewise.
56880         * lib/hash.c: Likewise.
56881         * lib/hash.h: Likewise.
56882         * lib/human.c: Likewise.
56883         * lib/human.h: Likewise.
56884         * lib/i-ring.c: Likewise.
56885         * lib/i-ring.h: Likewise.
56886         * lib/idcache.c: Likewise.
56887         * lib/imaxabs.c: Likewise.
56888         * lib/imaxdiv.c: Likewise.
56889         * lib/inet_pton.c: Likewise.
56890         * lib/inet_pton.h: Likewise.
56891         * lib/intprops.h: Likewise.
56892         * lib/inttostr.c: Likewise.
56893         * lib/inttostr.h: Likewise.
56894         * lib/inttypes.in.h: Likewise.
56895         * lib/isapipe.c: Likewise.
56896         * lib/isdir.c: Likewise.
56897         * lib/isnan.c: Likewise.
56898         * lib/isnan.h: Likewise.
56899         * lib/isnanf.c: Likewise.
56900         * lib/isnanf.h: Likewise.
56901         * lib/isnanl-nolibm.h: Likewise.
56902         * lib/isnanl.c: Likewise.
56903         * lib/isnanl.h: Likewise.
56904         * lib/javacomp.c: Likewise.
56905         * lib/javacomp.h: Likewise.
56906         * lib/javaexec.c: Likewise.
56907         * lib/javaexec.h: Likewise.
56908         * lib/javaversion.c: Likewise.
56909         * lib/javaversion.h: Likewise.
56910         * lib/javaversion.java: Likewise.
56911         * lib/lbrkprop.h: Likewise.
56912         * lib/lchmod.h: Likewise.
56913         * lib/lchown.c: Likewise.
56914         * lib/ldexpl.c: Likewise.
56915         * lib/linebreak.c: Likewise.
56916         * lib/linebreak.h: Likewise.
56917         * lib/linebuffer.c: Likewise.
56918         * lib/linebuffer.h: Likewise.
56919         * lib/locale.in.h: Likewise.
56920         * lib/logl.c: Likewise.
56921         * lib/long-options.c: Likewise.
56922         * lib/long-options.h: Likewise.
56923         * lib/lstat.c: Likewise.
56924         * lib/lstat.h: Likewise.
56925         * lib/math.in.h: Likewise.
56926         * lib/mbchar.c: Likewise.
56927         * lib/mbchar.h: Likewise.
56928         * lib/mbfile.h: Likewise.
56929         * lib/mbiter.h: Likewise.
56930         * lib/mbscasecmp.c: Likewise.
56931         * lib/mbscasestr.c: Likewise.
56932         * lib/mbschr.c: Likewise.
56933         * lib/mbscspn.c: Likewise.
56934         * lib/mbslen.c: Likewise.
56935         * lib/mbsncasecmp.c: Likewise.
56936         * lib/mbsnlen.c: Likewise.
56937         * lib/mbspbrk.c: Likewise.
56938         * lib/mbspcasecmp.c: Likewise.
56939         * lib/mbsrchr.c: Likewise.
56940         * lib/mbssep.c: Likewise.
56941         * lib/mbsspn.c: Likewise.
56942         * lib/mbsstr.c: Likewise.
56943         * lib/mbstok_r.c: Likewise.
56944         * lib/mbswidth.c: Likewise.
56945         * lib/mbswidth.h: Likewise.
56946         * lib/mbuiter.h: Likewise.
56947         * lib/memcasecmp.c: Likewise.
56948         * lib/memcasecmp.h: Likewise.
56949         * lib/memchr.c: Likewise.
56950         * lib/memcmp.c: Likewise.
56951         * lib/memcoll.c: Likewise.
56952         * lib/memcoll.h: Likewise.
56953         * lib/memcpy.c: Likewise.
56954         * lib/memrchr.c: Likewise.
56955         * lib/mkancesdirs.c: Likewise.
56956         * lib/mkdir-p.c: Likewise.
56957         * lib/mkdir-p.h: Likewise.
56958         * lib/mkdir.c: Likewise.
56959         * lib/mkdirat.c: Likewise.
56960         * lib/mkdtemp.c: Likewise.
56961         * lib/mkstemp-safer.c: Likewise.
56962         * lib/mkstemp.c: Likewise.
56963         * lib/modechange.c: Likewise.
56964         * lib/modechange.h: Likewise.
56965         * lib/mountlist.c: Likewise.
56966         * lib/mountlist.h: Likewise.
56967         * lib/mpsort.c: Likewise.
56968         * lib/nanosleep.c: Likewise.
56969         * lib/obstack.c: Likewise.
56970         * lib/obstack.h: Likewise.
56971         * lib/open-safer.c: Likewise.
56972         * lib/open.c: Likewise.
56973         * lib/openat-die.c: Likewise.
56974         * lib/openat-priv.h: Likewise.
56975         * lib/openat-proc.c: Likewise.
56976         * lib/openat.c: Likewise.
56977         * lib/openat.h: Likewise.
56978         * lib/pagealign_alloc.c: Likewise.
56979         * lib/pagealign_alloc.h: Likewise.
56980         * lib/physmem.c: Likewise.
56981         * lib/physmem.h: Likewise.
56982         * lib/pipe-safer.c: Likewise.
56983         * lib/pipe.c: Likewise.
56984         * lib/pipe.h: Likewise.
56985         * lib/posixtm.c: Likewise.
56986         * lib/posixtm.h: Likewise.
56987         * lib/posixver.c: Likewise.
56988         * lib/printf-frexp.c: Likewise.
56989         * lib/printf-frexp.h: Likewise.
56990         * lib/printf-frexpl.c: Likewise.
56991         * lib/printf-frexpl.h: Likewise.
56992         * lib/printf.c: Likewise.
56993         * lib/progname.c: Likewise.
56994         * lib/progname.h: Likewise.
56995         * lib/progreloc.c: Likewise.
56996         * lib/putenv.c: Likewise.
56997         * lib/quote.c: Likewise.
56998         * lib/quote.h: Likewise.
56999         * lib/quotearg.c: Likewise.
57000         * lib/quotearg.h: Likewise.
57001         * lib/raise.c: Likewise.
57002         * lib/readline.c: Likewise.
57003         * lib/readline.h: Likewise.
57004         * lib/readlink.c: Likewise.
57005         * lib/readtokens.c: Likewise.
57006         * lib/readtokens.h: Likewise.
57007         * lib/readtokens0.c: Likewise.
57008         * lib/readtokens0.h: Likewise.
57009         * lib/readutmp.c: Likewise.
57010         * lib/readutmp.h: Likewise.
57011         * lib/realloc.c: Likewise.
57012         * lib/relocwrapper.c: Likewise.
57013         * lib/rename-dest-slash.c: Likewise.
57014         * lib/rename.c: Likewise.
57015         * lib/rmdir.c: Likewise.
57016         * lib/rpmatch.c: Likewise.
57017         * lib/safe-read.c: Likewise.
57018         * lib/safe-read.h: Likewise.
57019         * lib/safe-write.c: Likewise.
57020         * lib/safe-write.h: Likewise.
57021         * lib/same-inode.h: Likewise.
57022         * lib/same.c: Likewise.
57023         * lib/same.h: Likewise.
57024         * lib/save-cwd.c: Likewise.
57025         * lib/save-cwd.h: Likewise.
57026         * lib/savedir.c: Likewise.
57027         * lib/savedir.h: Likewise.
57028         * lib/savewd.c: Likewise.
57029         * lib/savewd.h: Likewise.
57030         * lib/search.in.h: Likewise.
57031         * lib/setenv.c: Likewise.
57032         * lib/setenv.h: Likewise.
57033         * lib/settime.c: Likewise.
57034         * lib/sh-quote.c: Likewise.
57035         * lib/sh-quote.h: Likewise.
57036         * lib/sig2str.c: Likewise.
57037         * lib/sig2str.h: Likewise.
57038         * lib/signal.in.h: Likewise.
57039         * lib/signbitd.c: Likewise.
57040         * lib/signbitf.c: Likewise.
57041         * lib/signbitl.c: Likewise.
57042         * lib/sigprocmask.c: Likewise.
57043         * lib/sincosl.c: Likewise.
57044         * lib/sleep.c: Likewise.
57045         * lib/sprintf.c: Likewise.
57046         * lib/sqrtl.c: Likewise.
57047         * lib/stat-time.h: Likewise.
57048         * lib/stdio--.h: Likewise.
57049         * lib/stdio-safer.h: Likewise.
57050         * lib/stdlib--.h: Likewise.
57051         * lib/stdlib-safer.h: Likewise.
57052         * lib/stdlib.in.h: Likewise.
57053         * lib/stpcpy.c: Likewise.
57054         * lib/stpncpy.c: Likewise.
57055         * lib/strchrnul.c: Likewise.
57056         * lib/strcspn.c: Likewise.
57057         * lib/strerror.c: Likewise.
57058         * lib/strftime.c: Likewise.
57059         * lib/strftime.h: Likewise.
57060         * lib/striconveh.c: Likewise.
57061         * lib/striconveh.h: Likewise.
57062         * lib/striconveha.c: Likewise.
57063         * lib/striconveha.h: Likewise.
57064         * lib/stripslash.c: Likewise.
57065         * lib/strnlen1.c: Likewise.
57066         * lib/strnlen1.h: Likewise.
57067         * lib/strtod.c: Likewise.
57068         * lib/strtoimax.c: Likewise.
57069         * lib/strtok_r.c: Likewise.
57070         * lib/strtol.c: Likewise.
57071         * lib/strtoll.c: Likewise.
57072         * lib/strtoul.c: Likewise.
57073         * lib/strtoull.c: Likewise.
57074         * lib/sysexits.in.h: Likewise.
57075         * lib/tempname.c: Likewise.
57076         * lib/tempname.h: Likewise.
57077         * lib/timespec.h: Likewise.
57078         * lib/tls.c: Likewise.
57079         * lib/tls.h: Likewise.
57080         * lib/tmpdir.c: Likewise.
57081         * lib/tmpdir.h: Likewise.
57082         * lib/tmpfile-safer.c: Likewise.
57083         * lib/tmpfile.c: Likewise.
57084         * lib/trigl.c: Likewise.
57085         * lib/trigl.h: Likewise.
57086         * lib/trim.c: Likewise.
57087         * lib/trim.h: Likewise.
57088         * lib/trunc.c: Likewise.
57089         * lib/truncf.c: Likewise.
57090         * lib/truncl.c: Likewise.
57091         * lib/tsearch.c: Likewise.
57092         * lib/unicodeio.c: Likewise.
57093         * lib/unicodeio.h: Likewise.
57094         * lib/unistd--.h: Likewise.
57095         * lib/unistd-safer.h: Likewise.
57096         * lib/unistdio/ulc-fprintf.c: Likewise.
57097         * lib/unistdio/ulc-vfprintf.c: Likewise.
57098         * lib/unlinkdir.c: Likewise.
57099         * lib/unlinkdir.h: Likewise.
57100         * lib/unlocked-io.h: Likewise.
57101         * lib/unsetenv.c: Likewise.
57102         * lib/userspec.c: Likewise.
57103         * lib/utime.c: Likewise.
57104         * lib/utimecmp.c: Likewise.
57105         * lib/utimecmp.h: Likewise.
57106         * lib/utimens.c: Likewise.
57107         * lib/verify.h: Likewise.
57108         * lib/verror.c: Likewise.
57109         * lib/verror.h: Likewise.
57110         * lib/version-etc-fsf.c: Likewise.
57111         * lib/version-etc.c: Likewise.
57112         * lib/version-etc.h: Likewise.
57113         * lib/vfprintf.c: Likewise.
57114         * lib/vprintf.c: Likewise.
57115         * lib/vsprintf.c: Likewise.
57116         * lib/w32spawn.h: Likewise.
57117         * lib/wait-process.c: Likewise.
57118         * lib/wait-process.h: Likewise.
57119         * lib/wcwidth.c: Likewise.
57120         * lib/write-any-file.c: Likewise.
57121         * lib/xalloc-die.c: Likewise.
57122         * lib/xalloc.h: Likewise.
57123         * lib/xasprintf.c: Likewise.
57124         * lib/xgetcwd.c: Likewise.
57125         * lib/xgetcwd.h: Likewise.
57126         * lib/xgetdomainname.c: Likewise.
57127         * lib/xgetdomainname.h: Likewise.
57128         * lib/xgethostname.c: Likewise.
57129         * lib/xmalloc.c: Likewise.
57130         * lib/xmalloca.c: Likewise.
57131         * lib/xmalloca.h: Likewise.
57132         * lib/xmemcoll.c: Likewise.
57133         * lib/xnanosleep.c: Likewise.
57134         * lib/xreadlink.c: Likewise.
57135         * lib/xreadlink.h: Likewise.
57136         * lib/xsetenv.c: Likewise.
57137         * lib/xsetenv.h: Likewise.
57138         * lib/xstriconv.c: Likewise.
57139         * lib/xstriconv.h: Likewise.
57140         * lib/xstrndup.c: Likewise.
57141         * lib/xstrndup.h: Likewise.
57142         * lib/xstrtod.c: Likewise.
57143         * lib/xstrtod.h: Likewise.
57144         * lib/xstrtol-error.c: Likewise.
57145         * lib/xstrtol.c: Likewise.
57146         * lib/xstrtol.h: Likewise.
57147         * lib/xtime.h: Likewise.
57148         * lib/xvasprintf.c: Likewise.
57149         * lib/xvasprintf.h: Likewise.
57150         * lib/yesno.c: Likewise.
57151         * lib/yesno.h: Likewise.
57152         * posix-modules: Likewise.
57153         * tests/test-alloca-opt.c: Likewise.
57154         * tests/test-arcfour.c: Likewise.
57155         * tests/test-arctwo.c: Likewise.
57156         * tests/test-argmatch.c: Likewise.
57157         * tests/test-argp-2.sh: Likewise.
57158         * tests/test-argp.c: Likewise.
57159         * tests/test-arpa_inet.c: Likewise.
57160         * tests/test-array_list.c: Likewise.
57161         * tests/test-array_oset.c: Likewise.
57162         * tests/test-atexit.c: Likewise.
57163         * tests/test-avltree_list.c: Likewise.
57164         * tests/test-avltree_oset.c: Likewise.
57165         * tests/test-avltreehash_list.c: Likewise.
57166         * tests/test-base64.c: Likewise.
57167         * tests/test-binary-io.c: Likewise.
57168         * tests/test-byteswap.c: Likewise.
57169         * tests/test-c-ctype.c: Likewise.
57170         * tests/test-c-strcasecmp.c: Likewise.
57171         * tests/test-c-strcasestr.c: Likewise.
57172         * tests/test-c-strncasecmp.c: Likewise.
57173         * tests/test-c-strstr.c: Likewise.
57174         * tests/test-canonicalize-lgpl.c: Likewise.
57175         * tests/test-canonicalize.c: Likewise.
57176         * tests/test-carray_list.c: Likewise.
57177         * tests/test-ceilf.c: Likewise.
57178         * tests/test-ceill.c: Likewise.
57179         * tests/test-count-one-bits.c: Likewise.
57180         * tests/test-crc.c: Likewise.
57181         * tests/test-dirname.c: Likewise.
57182         * tests/test-fbufmode.c: Likewise.
57183         * tests/test-fcntl.c: Likewise.
57184         * tests/test-fflush.c: Likewise.
57185         * tests/test-floorf.c: Likewise.
57186         * tests/test-floorl.c: Likewise.
57187         * tests/test-fopen.c: Likewise.
57188         * tests/test-fprintf-posix.c: Likewise.
57189         * tests/test-fprintf-posix.h: Likewise.
57190         * tests/test-fpurge.c: Likewise.
57191         * tests/test-freadable.c: Likewise.
57192         * tests/test-freadahead.c: Likewise.
57193         * tests/test-freading.c: Likewise.
57194         * tests/test-freopen.c: Likewise.
57195         * tests/test-frexp.c: Likewise.
57196         * tests/test-frexpl.c: Likewise.
57197         * tests/test-fseek.c: Likewise.
57198         * tests/test-fseeko.c: Likewise.
57199         * tests/test-fseterr.c: Likewise.
57200         * tests/test-fstrcmp.c: Likewise.
57201         * tests/test-ftell.c: Likewise.
57202         * tests/test-ftello.c: Likewise.
57203         * tests/test-fwritable.c: Likewise.
57204         * tests/test-fwriting.c: Likewise.
57205         * tests/test-getaddrinfo.c: Likewise.
57206         * tests/test-getpass.c: Likewise.
57207         * tests/test-gettimeofday.c: Likewise.
57208         * tests/test-hmac-md5.c: Likewise.
57209         * tests/test-hmac-sha1.c: Likewise.
57210         * tests/test-iconv.c: Likewise.
57211         * tests/test-iconvme.c: Likewise.
57212         * tests/test-inttypes.c: Likewise.
57213         * tests/test-isnan.c: Likewise.
57214         * tests/test-isnanf.c: Likewise.
57215         * tests/test-isnanl-nolibm.c: Likewise.
57216         * tests/test-isnanl.c: Likewise.
57217         * tests/test-isnanl.h: Likewise.
57218         * tests/test-ldexpl.c: Likewise.
57219         * tests/test-linked_list.c: Likewise.
57220         * tests/test-linkedhash_list.c: Likewise.
57221         * tests/test-locale.c: Likewise.
57222         * tests/test-localename.c: Likewise.
57223         * tests/test-lock.c: Likewise.
57224         * tests/test-lseek.c: Likewise.
57225         * tests/test-malloca.c: Likewise.
57226         * tests/test-math.c: Likewise.
57227         * tests/test-mbscasecmp.c: Likewise.
57228         * tests/test-mbscasestr1.c: Likewise.
57229         * tests/test-mbscasestr2.c: Likewise.
57230         * tests/test-mbscasestr3.c: Likewise.
57231         * tests/test-mbscasestr4.c: Likewise.
57232         * tests/test-mbschr.c: Likewise.
57233         * tests/test-mbscspn.c: Likewise.
57234         * tests/test-mbsncasecmp.c: Likewise.
57235         * tests/test-mbspbrk.c: Likewise.
57236         * tests/test-mbspcasecmp.c: Likewise.
57237         * tests/test-mbsrchr.c: Likewise.
57238         * tests/test-mbsspn.c: Likewise.
57239         * tests/test-mbsstr1.c: Likewise.
57240         * tests/test-mbsstr2.c: Likewise.
57241         * tests/test-mbsstr3.c: Likewise.
57242         * tests/test-md5.c: Likewise.
57243         * tests/test-memmem.c: Likewise.
57244         * tests/test-netinet_in.c: Likewise.
57245         * tests/test-open.c: Likewise.
57246         * tests/test-printf-frexp.c: Likewise.
57247         * tests/test-printf-frexpl.c: Likewise.
57248         * tests/test-printf-posix.c: Likewise.
57249         * tests/test-printf-posix.h: Likewise.
57250         * tests/test-rbtree_list.c: Likewise.
57251         * tests/test-rbtree_oset.c: Likewise.
57252         * tests/test-rbtreehash_list.c: Likewise.
57253         * tests/test-read-file.c: Likewise.
57254         * tests/test-rijndael.c: Likewise.
57255         * tests/test-search.c: Likewise.
57256         * tests/test-signbit.c: Likewise.
57257         * tests/test-sleep.c: Likewise.
57258         * tests/test-snprintf-posix.c: Likewise.
57259         * tests/test-snprintf-posix.h: Likewise.
57260         * tests/test-snprintf.c: Likewise.
57261         * tests/test-sprintf-posix.c: Likewise.
57262         * tests/test-sprintf-posix.h: Likewise.
57263         * tests/test-stat-time.c: Likewise.
57264         * tests/test-stdbool.c: Likewise.
57265         * tests/test-stdint.c: Likewise.
57266         * tests/test-stdio.c: Likewise.
57267         * tests/test-stdlib.c: Likewise.
57268         * tests/test-stpncpy.c: Likewise.
57269         * tests/test-strcasestr.c: Likewise.
57270         * tests/test-striconv.c: Likewise.
57271         * tests/test-striconveh.c: Likewise.
57272         * tests/test-striconveha.c: Likewise.
57273         * tests/test-string.c: Likewise.
57274         * tests/test-sys_select.c: Likewise.
57275         * tests/test-sys_socket.c: Likewise.
57276         * tests/test-sys_stat.c: Likewise.
57277         * tests/test-sys_time.c: Likewise.
57278         * tests/test-sysexits.c: Likewise.
57279         * tests/test-time.c: Likewise.
57280         * tests/test-tls.c: Likewise.
57281         * tests/test-trunc.c: Likewise.
57282         * tests/test-truncf.c: Likewise.
57283         * tests/test-truncl.c: Likewise.
57284         * tests/test-unistd.c: Likewise.
57285         * tests/test-vasnprintf-posix.c: Likewise.
57286         * tests/test-vasnprintf-posix2.c: Likewise.
57287         * tests/test-vasnprintf.c: Likewise.
57288         * tests/test-vasprintf-posix.c: Likewise.
57289         * tests/test-vasprintf.c: Likewise.
57290         * tests/test-verify.c: Likewise.
57291         * tests/test-vfprintf-posix.c: Likewise.
57292         * tests/test-vprintf-posix.c: Likewise.
57293         * tests/test-vsnprintf-posix.c: Likewise.
57294         * tests/test-vsnprintf.c: Likewise.
57295         * tests/test-vsprintf-posix.c: Likewise.
57296         * tests/test-wchar.c: Likewise.
57297         * tests/test-wctype.c: Likewise.
57298         * tests/test-wcwidth.c: Likewise.
57299         * tests/test-xstrtol.c: Likewise.
57300         * tests/test-xvasprintf.c: Likewise.
57301         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57302         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57303         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57304         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57305         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57306         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57307         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57308         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57309         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57310         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57311         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57312         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57313         * tests/uniname/test-uninames.c: Likewise.
57314         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57315         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57316         * tests/unistdio/test-u16-printf1.h: Likewise.
57317         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57318         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57319         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57320         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57321         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57322         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57323         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57324         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57325         * tests/unistdio/test-u32-printf1.h: Likewise.
57326         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57327         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57328         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57329         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57330         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57331         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57332         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57333         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57334         * tests/unistdio/test-u8-printf1.h: Likewise.
57335         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57336         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57337         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57338         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57339         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57340         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57341         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57342         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57343         * tests/unistdio/test-ulc-printf1.h: Likewise.
57344         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57345         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57346         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57347         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57348         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57349         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57350         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57351         * tests/uniwidth/test-u16-width.c: Likewise.
57352         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57353         * tests/uniwidth/test-u32-width.c: Likewise.
57354         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57355         * tests/uniwidth/test-u8-width.c: Likewise.
57356         * tests/uniwidth/test-uc_width.c: Likewise.
57357         * config/srclist-update: Likewise.
57358         (fixlicense): Update to GPLv3+.
57359
57360         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57361         * tests/test-tsearch.c: Change copyright notice.
57362
57363         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57364         * lib/c-strcaseeq.h: Change copyright notice.
57365         * lib/streq.h: Likewise.
57366         * lib/uniconv.h: Likewise.
57367         * lib/uniconv/u-conv-from-enc.h: Likewise.
57368         * lib/uniconv/u-conv-to-enc.h: Likewise.
57369         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57370         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57371         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57372         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57373         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57374         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57375         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57376         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57377         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57378         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57379         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57380         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57381         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57382         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57383         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57384         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57385         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57386         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57387         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57388         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57389         * lib/uniname.h: Likewise.
57390         * lib/uniname/uniname.c: Likewise.
57391         * lib/unistdio.h: Likewise.
57392         * lib/unistdio/u-asnprintf.h: Likewise.
57393         * lib/unistdio/u-asprintf.h: Likewise.
57394         * lib/unistdio/u-printf-args.c: Likewise.
57395         * lib/unistdio/u-printf-args.h: Likewise.
57396         * lib/unistdio/u-printf-parse.h: Likewise.
57397         * lib/unistdio/u-snprintf.h: Likewise.
57398         * lib/unistdio/u-sprintf.h: Likewise.
57399         * lib/unistdio/u-vasprintf.h: Likewise.
57400         * lib/unistdio/u-vsnprintf.h: Likewise.
57401         * lib/unistdio/u-vsprintf.h: Likewise.
57402         * lib/unistdio/u16-asnprintf.c: Likewise.
57403         * lib/unistdio/u16-asprintf.c: Likewise.
57404         * lib/unistdio/u16-printf-parse.c: Likewise.
57405         * lib/unistdio/u16-snprintf.c: Likewise.
57406         * lib/unistdio/u16-sprintf.c: Likewise.
57407         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57408         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57409         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57410         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57411         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57412         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57413         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57414         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57415         * lib/unistdio/u16-vasnprintf.c: Likewise.
57416         * lib/unistdio/u16-vasprintf.c: Likewise.
57417         * lib/unistdio/u16-vsnprintf.c: Likewise.
57418         * lib/unistdio/u16-vsprintf.c: Likewise.
57419         * lib/unistdio/u32-asnprintf.c: Likewise.
57420         * lib/unistdio/u32-asprintf.c: Likewise.
57421         * lib/unistdio/u32-printf-parse.c: Likewise.
57422         * lib/unistdio/u32-snprintf.c: Likewise.
57423         * lib/unistdio/u32-sprintf.c: Likewise.
57424         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57425         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57426         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57427         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57428         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57429         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57430         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57431         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57432         * lib/unistdio/u32-vasnprintf.c: Likewise.
57433         * lib/unistdio/u32-vasprintf.c: Likewise.
57434         * lib/unistdio/u32-vsnprintf.c: Likewise.
57435         * lib/unistdio/u32-vsprintf.c: Likewise.
57436         * lib/unistdio/u8-asnprintf.c: Likewise.
57437         * lib/unistdio/u8-asprintf.c: Likewise.
57438         * lib/unistdio/u8-printf-parse.c: Likewise.
57439         * lib/unistdio/u8-snprintf.c: Likewise.
57440         * lib/unistdio/u8-sprintf.c: Likewise.
57441         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57442         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57443         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57444         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57445         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57446         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57447         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57448         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57449         * lib/unistdio/u8-vasnprintf.c: Likewise.
57450         * lib/unistdio/u8-vasprintf.c: Likewise.
57451         * lib/unistdio/u8-vsnprintf.c: Likewise.
57452         * lib/unistdio/u8-vsprintf.c: Likewise.
57453         * lib/unistdio/ulc-asnprintf.c: Likewise.
57454         * lib/unistdio/ulc-asprintf.c: Likewise.
57455         * lib/unistdio/ulc-printf-parse.c: Likewise.
57456         * lib/unistdio/ulc-snprintf.c: Likewise.
57457         * lib/unistdio/ulc-sprintf.c: Likewise.
57458         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57459         * lib/unistdio/ulc-vasprintf.c: Likewise.
57460         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57461         * lib/unistdio/ulc-vsprintf.c: Likewise.
57462         * lib/unistr.h: Likewise.
57463         * lib/unistr/u-cpy-alloc.h: Likewise.
57464         * lib/unistr/u-cpy.h: Likewise.
57465         * lib/unistr/u-endswith.h: Likewise.
57466         * lib/unistr/u-move.h: Likewise.
57467         * lib/unistr/u-set.h: Likewise.
57468         * lib/unistr/u-startswith.h: Likewise.
57469         * lib/unistr/u-stpcpy.h: Likewise.
57470         * lib/unistr/u-stpncpy.h: Likewise.
57471         * lib/unistr/u-strcat.h: Likewise.
57472         * lib/unistr/u-strcpy.h: Likewise.
57473         * lib/unistr/u-strcspn.h: Likewise.
57474         * lib/unistr/u-strdup.h: Likewise.
57475         * lib/unistr/u-strlen.h: Likewise.
57476         * lib/unistr/u-strncat.h: Likewise.
57477         * lib/unistr/u-strncpy.h: Likewise.
57478         * lib/unistr/u-strnlen.h: Likewise.
57479         * lib/unistr/u-strpbrk.h: Likewise.
57480         * lib/unistr/u-strspn.h: Likewise.
57481         * lib/unistr/u-strstr.h: Likewise.
57482         * lib/unistr/u-strtok.h: Likewise.
57483         * lib/unistr/u16-check.c: Likewise.
57484         * lib/unistr/u16-chr.c: Likewise.
57485         * lib/unistr/u16-cmp.c: Likewise.
57486         * lib/unistr/u16-cpy-alloc.c: Likewise.
57487         * lib/unistr/u16-cpy.c: Likewise.
57488         * lib/unistr/u16-endswith.c: Likewise.
57489         * lib/unistr/u16-mblen.c: Likewise.
57490         * lib/unistr/u16-mbsnlen.c: Likewise.
57491         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57492         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57493         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57494         * lib/unistr/u16-mbtouc.c: Likewise.
57495         * lib/unistr/u16-mbtoucr.c: Likewise.
57496         * lib/unistr/u16-move.c: Likewise.
57497         * lib/unistr/u16-next.c: Likewise.
57498         * lib/unistr/u16-prev.c: Likewise.
57499         * lib/unistr/u16-set.c: Likewise.
57500         * lib/unistr/u16-startswith.c: Likewise.
57501         * lib/unistr/u16-stpcpy.c: Likewise.
57502         * lib/unistr/u16-stpncpy.c: Likewise.
57503         * lib/unistr/u16-strcat.c: Likewise.
57504         * lib/unistr/u16-strchr.c: Likewise.
57505         * lib/unistr/u16-strcmp.c: Likewise.
57506         * lib/unistr/u16-strcpy.c: Likewise.
57507         * lib/unistr/u16-strcspn.c: Likewise.
57508         * lib/unistr/u16-strdup.c: Likewise.
57509         * lib/unistr/u16-strlen.c: Likewise.
57510         * lib/unistr/u16-strmblen.c: Likewise.
57511         * lib/unistr/u16-strmbtouc.c: Likewise.
57512         * lib/unistr/u16-strncat.c: Likewise.
57513         * lib/unistr/u16-strncmp.c: Likewise.
57514         * lib/unistr/u16-strncpy.c: Likewise.
57515         * lib/unistr/u16-strnlen.c: Likewise.
57516         * lib/unistr/u16-strpbrk.c: Likewise.
57517         * lib/unistr/u16-strrchr.c: Likewise.
57518         * lib/unistr/u16-strspn.c: Likewise.
57519         * lib/unistr/u16-strstr.c: Likewise.
57520         * lib/unistr/u16-strtok.c: Likewise.
57521         * lib/unistr/u16-to-u32.c: Likewise.
57522         * lib/unistr/u16-to-u8.c: Likewise.
57523         * lib/unistr/u16-uctomb-aux.c: Likewise.
57524         * lib/unistr/u16-uctomb.c: Likewise.
57525         * lib/unistr/u32-check.c: Likewise.
57526         * lib/unistr/u32-chr.c: Likewise.
57527         * lib/unistr/u32-cmp.c: Likewise.
57528         * lib/unistr/u32-cpy-alloc.c: Likewise.
57529         * lib/unistr/u32-cpy.c: Likewise.
57530         * lib/unistr/u32-endswith.c: Likewise.
57531         * lib/unistr/u32-mblen.c: Likewise.
57532         * lib/unistr/u32-mbsnlen.c: Likewise.
57533         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57534         * lib/unistr/u32-mbtouc.c: Likewise.
57535         * lib/unistr/u32-mbtoucr.c: Likewise.
57536         * lib/unistr/u32-move.c: Likewise.
57537         * lib/unistr/u32-next.c: Likewise.
57538         * lib/unistr/u32-prev.c: Likewise.
57539         * lib/unistr/u32-set.c: Likewise.
57540         * lib/unistr/u32-startswith.c: Likewise.
57541         * lib/unistr/u32-stpcpy.c: Likewise.
57542         * lib/unistr/u32-stpncpy.c: Likewise.
57543         * lib/unistr/u32-strcat.c: Likewise.
57544         * lib/unistr/u32-strchr.c: Likewise.
57545         * lib/unistr/u32-strcmp.c: Likewise.
57546         * lib/unistr/u32-strcpy.c: Likewise.
57547         * lib/unistr/u32-strcspn.c: Likewise.
57548         * lib/unistr/u32-strdup.c: Likewise.
57549         * lib/unistr/u32-strlen.c: Likewise.
57550         * lib/unistr/u32-strmblen.c: Likewise.
57551         * lib/unistr/u32-strmbtouc.c: Likewise.
57552         * lib/unistr/u32-strncat.c: Likewise.
57553         * lib/unistr/u32-strncmp.c: Likewise.
57554         * lib/unistr/u32-strncpy.c: Likewise.
57555         * lib/unistr/u32-strnlen.c: Likewise.
57556         * lib/unistr/u32-strpbrk.c: Likewise.
57557         * lib/unistr/u32-strrchr.c: Likewise.
57558         * lib/unistr/u32-strspn.c: Likewise.
57559         * lib/unistr/u32-strstr.c: Likewise.
57560         * lib/unistr/u32-strtok.c: Likewise.
57561         * lib/unistr/u32-to-u16.c: Likewise.
57562         * lib/unistr/u32-to-u8.c: Likewise.
57563         * lib/unistr/u32-uctomb.c: Likewise.
57564         * lib/unistr/u8-check.c: Likewise.
57565         * lib/unistr/u8-chr.c: Likewise.
57566         * lib/unistr/u8-cmp.c: Likewise.
57567         * lib/unistr/u8-cpy-alloc.c: Likewise.
57568         * lib/unistr/u8-cpy.c: Likewise.
57569         * lib/unistr/u8-endswith.c: Likewise.
57570         * lib/unistr/u8-mblen.c: Likewise.
57571         * lib/unistr/u8-mbsnlen.c: Likewise.
57572         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57573         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57574         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57575         * lib/unistr/u8-mbtouc.c: Likewise.
57576         * lib/unistr/u8-mbtoucr.c: Likewise.
57577         * lib/unistr/u8-move.c: Likewise.
57578         * lib/unistr/u8-next.c: Likewise.
57579         * lib/unistr/u8-prev.c: Likewise.
57580         * lib/unistr/u8-set.c: Likewise.
57581         * lib/unistr/u8-startswith.c: Likewise.
57582         * lib/unistr/u8-stpcpy.c: Likewise.
57583         * lib/unistr/u8-stpncpy.c: Likewise.
57584         * lib/unistr/u8-strcat.c: Likewise.
57585         * lib/unistr/u8-strchr.c: Likewise.
57586         * lib/unistr/u8-strcmp.c: Likewise.
57587         * lib/unistr/u8-strcpy.c: Likewise.
57588         * lib/unistr/u8-strcspn.c: Likewise.
57589         * lib/unistr/u8-strdup.c: Likewise.
57590         * lib/unistr/u8-strlen.c: Likewise.
57591         * lib/unistr/u8-strmblen.c: Likewise.
57592         * lib/unistr/u8-strmbtouc.c: Likewise.
57593         * lib/unistr/u8-strncat.c: Likewise.
57594         * lib/unistr/u8-strncmp.c: Likewise.
57595         * lib/unistr/u8-strncpy.c: Likewise.
57596         * lib/unistr/u8-strnlen.c: Likewise.
57597         * lib/unistr/u8-strpbrk.c: Likewise.
57598         * lib/unistr/u8-strrchr.c: Likewise.
57599         * lib/unistr/u8-strspn.c: Likewise.
57600         * lib/unistr/u8-strstr.c: Likewise.
57601         * lib/unistr/u8-strtok.c: Likewise.
57602         * lib/unistr/u8-to-u16.c: Likewise.
57603         * lib/unistr/u8-to-u32.c: Likewise.
57604         * lib/unistr/u8-uctomb-aux.c: Likewise.
57605         * lib/unistr/u8-uctomb.c: Likewise.
57606         * lib/unitypes.h: Likewise.
57607         * lib/uniwidth.h: Likewise.
57608         * lib/uniwidth/cjk.h: Likewise.
57609         * lib/uniwidth/u16-strwidth.c: Likewise.
57610         * lib/uniwidth/u16-width.c: Likewise.
57611         * lib/uniwidth/u32-strwidth.c: Likewise.
57612         * lib/uniwidth/u32-width.c: Likewise.
57613         * lib/uniwidth/u8-strwidth.c: Likewise.
57614         * lib/uniwidth/u8-width.c: Likewise.
57615         * lib/uniwidth/width.c: Likewise.
57616
57617 2007-10-07  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57620         The file is still under LGPL (see modules/inttypes).
57621
57622 2007-10-06  Bruno Haible  <bruno@clisp.org>
57623
57624         * modules/trunc (Dependencies): Add 'extensions'.
57625         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57626         Reported by Ben Pfaff <blp@gnu.org>.
57627
57628 2007-10-06  Bruno Haible  <bruno@clisp.org>
57629
57630         * modules/freopen-tests: New file.
57631         * tests/test-freopen.c: New file.
57632
57633         * modules/fopen-tests: New file.
57634         * tests/test-fopen.c: New file.
57635
57636         * modules/fopen: New file.
57637         * lib/fopen.c: New file.
57638         * m4/fopen.m4: New file.
57639         * modules/freopen: New file.
57640         * lib/freopen.c: New file.
57641         * m4/freopen.m4: New file.
57642         * lib/stdio.in.h (fopen, freopen): New declarations.
57643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57644         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57645         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57646         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57647         * doc/functions/fopen.texi: Mention the 'fopen' module.
57648         * doc/functions/freopen.texi: Mention the 'freopen' module.
57649
57650 2007-10-06  Bruno Haible  <bruno@clisp.org>
57651
57652         * modules/open-tests: New file.
57653         * tests/test-open.c: New file.
57654
57655         * modules/open: New file.
57656         * lib/open.c: New file.
57657         * m4/open.m4: New file.
57658         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57659         lib/open.c does.
57660         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57661         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57662         macros.
57663         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57664         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57665         REPLACE_OPEN.
57666         * doc/functions/open.texi: Mention the 'open' module.
57667
57668 2007-10-04  Bruno Haible  <bruno@clisp.org>
57669
57670         * modules/ceill-tests: New file.
57671         * tests/test-ceill.c: New file.
57672
57673         * modules/ceill: New file.
57674         * lib/ceill.c: Replace entire file.
57675         * m4/ceill.m4: New file.
57676         * lib/math.in.h (ceill): Replace declaration.
57677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57678         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57679         * doc/functions/ceill.texi: Mention the 'ceill' module.
57680         * modules/mathl (Files): Remove lib/ceill.c.
57681         (Depends-on): Add ceill.
57682
57683 2007-10-04  Bruno Haible  <bruno@clisp.org>
57684
57685         * modules/ceilf-tests: New file.
57686         * tests/test-ceilf.c: New file.
57687
57688         * modules/ceilf: New file.
57689         * lib/ceil.c: New file.
57690         * lib/ceilf.c: New file.
57691         * m4/ceilf.m4: New file.
57692         * lib/math.in.h (ceilf): New declaration.
57693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57694         HAVE_DECL_CEILF.
57695         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57696         HAVE_DECL_CEILF.
57697         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57698
57699 2007-10-04  Bruno Haible  <bruno@clisp.org>
57700
57701         * modules/floorl-tests: New file.
57702         * tests/test-floorl.c: New file.
57703
57704         * modules/floorl: New file.
57705         * lib/floorl.c: Replace entire file.
57706         * m4/floorl.m4: New file.
57707         * lib/math.in.h (floorl): Replace declaration.
57708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57709         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57710         * doc/functions/floorl.texi: Mention the 'floorl' module.
57711         * modules/mathl (Files): Remove lib/floorl.c.
57712         (Depends-on): Add floorl.
57713
57714 2007-10-04  Bruno Haible  <bruno@clisp.org>
57715
57716         * modules/floorf-tests: New file.
57717         * tests/test-floorf.c: New file.
57718
57719         * modules/floorf: New file.
57720         * lib/floor.c: New file.
57721         * lib/floorf.c: New file.
57722         * m4/floorf.m4: New file.
57723         * lib/math.in.h (floorf): New declaration.
57724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57725         HAVE_DECL_FLOORF.
57726         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57727         HAVE_DECL_FLOORF.
57728         * doc/functions/floorf.texi: Mention the 'floorf' module.
57729
57730 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57731             Bruno Haible  <bruno@clisp.org>
57732
57733         Advertise for the Git server instead of the CVS server.
57734         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57735         repository instead of the CVS one.
57736         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57737         about all VCS systems generically.
57738         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57739
57740 2007-10-04  Bruno Haible  <bruno@clisp.org>
57741
57742         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57743         means.
57744         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57745
57746 2007-10-04  Bruno Haible  <bruno@clisp.org>
57747
57748         * modules/truncl-tests: New file.
57749         * tests/test-truncl.c: New file.
57750
57751         * modules/truncl: New file.
57752         * lib/truncl.c: New file.
57753         * m4/truncl.m4: New file.
57754         * lib/math.in.h (truncl): New declaration.
57755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57756         HAVE_DECL_TRUNCL.
57757         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57758         HAVE_DECL_TRUNCL.
57759         * doc/functions/truncl.texi: Mention the 'truncl' module.
57760
57761 2007-10-04  Bruno Haible  <bruno@clisp.org>
57762
57763         * modules/truncf-tests: New file.
57764         * tests/test-truncf.c: New file.
57765
57766         * modules/truncf: New file.
57767         * lib/trunc.c: Make paramerizable through USE_* macros.
57768         * lib/truncf.c: New file.
57769         * m4/truncf.m4: New file.
57770         * lib/math.in.h (truncf): New declaration.
57771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57772         HAVE_DECL_TRUNCF.
57773         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57774         HAVE_DECL_TRUNCF.
57775         * doc/functions/truncf.texi: Mention the 'truncf' module.
57776
57777 2007-10-03  Bruno Haible  <bruno@clisp.org>
57778
57779         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57780         augmentation also for tests modules.
57781         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57782         * modules/atexit-tests (Makefile.am): Likewise.
57783         * modules/binary-io-tests (Makefile.am): Likewise.
57784         * modules/c-strcase-tests (Makefile.am): Likewise.
57785         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57786         * modules/canonicalize-tests (Makefile.am): Likewise.
57787         * modules/closein-tests (Makefile.am): Likewise.
57788         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57789         * modules/freadahead-tests (Makefile.am): Likewise.
57790         * modules/fseek-tests (Makefile.am): Likewise.
57791         * modules/fseeko-tests (Makefile.am): Likewise.
57792         * modules/ftell-tests (Makefile.am): Likewise.
57793         * modules/ftello-tests (Makefile.am): Likewise.
57794         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57795         * modules/isnanl-tests (Makefile.am): Likewise.
57796         * modules/lseek-tests (Makefile.am): Likewise.
57797         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57798         * modules/mbscasestr-tests (Makefile.am): Likewise.
57799         * modules/mbschr-tests (Makefile.am): Likewise.
57800         * modules/mbscspn-tests (Makefile.am): Likewise.
57801         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57802         * modules/mbspbrk-tests (Makefile.am): Likewise.
57803         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57804         * modules/mbsrchr-tests (Makefile.am): Likewise.
57805         * modules/mbsspn-tests (Makefile.am): Likewise.
57806         * modules/mbsstr-tests (Makefile.am): Likewise.
57807         * modules/printf-posix-tests (Makefile.am): Likewise.
57808         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57809         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57810         * modules/tsearch-tests (Makefile.am): Likewise.
57811         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57812         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57813         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57814         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57815         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57816         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57817         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57818         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57819         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57820         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57821         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57822         * modules/xstrtol-tests (Makefile.am): Likewise.
57823         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57824         * modules/yesno-tests (Makefile.am): Likewise.
57825
57826 2007-10-03  Bruno Haible  <bruno@clisp.org>
57827
57828         * modules/trunc-tests: New file.
57829         * tests/test-trunc.c: New file.
57830
57831         * modules/trunc: New file.
57832         * lib/trunc.c: New file.
57833         * m4/trunc.m4: New file.
57834         * lib/math.in.h (trunc): New declaration.
57835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57836         HAVE_DECL_TRUNC.
57837         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57838         HAVE_DECL_TRUNC.
57839         * doc/functions/trunc.texi: Mention the 'trunc' module.
57840
57841 2007-10-03  Bruno Haible  <bruno@clisp.org>
57842
57843         * tests/test-fpending.c: New file, mostly copied
57844         from coreutils/lib/t-fpending.c.
57845         * modules/fpending-tests: New file.
57846
57847 2007-10-03  Bruno Haible  <bruno@clisp.org>
57848
57849         Port the stdio extensions to QNX (untested).
57850         * lib/fseterr.c (fseterr): Add support for QNX.
57851         * lib/fbufmode.c (fbufmode): Likewise.
57852         * lib/freadable.c (freadable): Likewise.
57853         * lib/fwritable.c (fwritable): Likewise.
57854         * lib/freading.c (freading): Likewise.
57855         * lib/fwriting.c (fwriting): Likewise.
57856         * lib/freadahead.c (freadahed): Likewise.
57857         * lib/fpurge.c (fpurge): Likewise.
57858         * lib/fseeko.c (rpl_fseeko): Likewise.
57859
57860 2007-10-03  Bruno Haible  <bruno@clisp.org>
57861             Jim Meyering  <jim@meyering.net>
57862             Eric Blake  <ebb9@byu.net>
57863
57864         * doc/relocatable.texi: Use @command instead of @program.
57865
57866 2007-10-02  Jim Meyering  <jim@meyering.net>
57867
57868         Perform one more "_.h" -> ".in.h" substitution.
57869         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57870         instead of unistd_.h here, too.
57871
57872 2007-10-01  Bruno Haible  <bruno@clisp.org>
57873
57874         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57875         Needed for the alloca-opt module.
57876
57877 2007-09-30  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57880         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57881         alloca_.h.
57882         * lib/argz.in.h: Renamed from lib/argz_.h.
57883         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57884         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57885         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57886         byteswap_.h.
57887         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57888         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57889         dirent_.h.
57890         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57891         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57892         fcntl_.h.
57893         * lib/float.in.h: Renamed from lib/float_.h.
57894         * modules/float (Files, Makefile.am): Use float.in.h instead of
57895         float_.h.
57896         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57897         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57898         fnmatch_.h.
57899         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57900         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57901         getopt_.h.
57902         * lib/glob.in.h: Renamed from lib/glob_.h.
57903         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57904         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57905         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57906         iconv_.h.
57907         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57908         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57909         inttypes_.h.
57910         * lib/locale.in.h: Renamed from lib/locale_.h.
57911         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57912         locale_.h.
57913         * lib/math.in.h: Renamed from lib/math_.h.
57914         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57915         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57916         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57917         of netinet_in_.h. Add dependency.
57918         * lib/poll.in.h: Renamed from lib/poll_.h.
57919         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57920         * lib/search.in.h: Renamed from lib/search_.h.
57921         * modules/search (Files, Makefile.am): Use search.in.h instead of
57922         search_.h.
57923         * lib/signal.in.h: Renamed from lib/signal_.h.
57924         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57925         _signal.h.
57926         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57927         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57928         stdbool_.h.
57929         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57930         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57931         stdint_.h.
57932         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57933         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57934         stdio_.h.
57935         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57936         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57937         stdlib_.h.
57938         * lib/string.in.h: Renamed from lib/string_.h.
57939         * modules/string (Files, Makefile.am): Use string.in.h instead of
57940         string_.h.
57941         * doc/gnulib-tool.texi (Initial import): Update.
57942         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57943         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57944         of sys_select_.h. Add dependency.
57945         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57946         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57947         of sys_socket_.h.
57948         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57949         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57950         sys_stat_.h.
57951         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57952         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57953         sys_time_.h.
57954         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57955         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57956         sysexits_.h.
57957         * lib/time.in.h: Renamed from lib/time_.h.
57958         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57959         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57960         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57961         unistd_.h.
57962         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57963         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57964         wchar_.h.
57965         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57966         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57967         wctype_.h.
57968         * build-aux/bootstrap (slurp): Update.
57969         * lib/.cppi-disable: Update.
57970
57971 2007-09-30  Bruno Haible  <bruno@clisp.org>
57972
57973         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57974         Needed on BeOS.
57975
57976 2007-09-30  Bruno Haible  <bruno@clisp.org>
57977
57978         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57979
57980 2007-09-29  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57983
57984 2007-09-29  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57987         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57988         * build-aux/install-reloc: Compile also areadlink.c.
57989         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57990
57991 2007-09-29  Bruno Haible  <bruno@clisp.org>
57992
57993         * gnulib-tool (func_emit_initmacro_done): Indentation.
57994
57995 2007-09-29  Bruno Haible  <bruno@clisp.org>
57996
57997         * README: Add CVS checkout update instructions.
57998         Info from Bob Proulx <bob@proulx.com>.
57999
58000 2007-09-28  Eric Blake  <ebb9@byu.net>
58001
58002         Provide move-if-change.
58003         * build-aux/move-if-change: New file, based on best practice
58004         rather than any canonical upstream location.
58005
58006 2007-09-28  Jim Meyering  <jim@meyering.net>
58007
58008         Fix canonicalize loop-detection corner case.
58009         Do not attempt to stat the symlink values stored via seen_triple.
58010         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58011         on linux-2.6.18, (but not 2.6.22).
58012         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58013         triple_compare.  The former compares dev,ino,filename, while the latter
58014         would actually stat dirname(filename) when dev and ino were equal.
58015         * lib/hash-triple.c: Install <string.h>.
58016         (STREQ): Define.
58017         (triple_compare_ino_str): New function.
58018         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58019
58020 2007-09-28  Eric Blake  <ebb9@byu.net>
58021
58022         Enforce that AC_REPLACE_FUNCS files exist.
58023         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58024         override check for typos.
58025
58026         Fix test-closein on Solaris 10.
58027         * tests/test-closein.c (main): Don't assume stdin can be inherited
58028         closed on all systems.
58029         * tests/test-closein.sh: Likewise.
58030         Reported by Piotr Tarnowski.
58031
58032 2007-09-28  Jim Meyering  <jim@meyering.net>
58033
58034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58035
58036 2007-09-27  Jim Meyering  <jim@meyering.net>
58037
58038         canonicalize: Avoid a false-positive cycle failure.
58039         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58040         Sort.  Remove cycle-check.
58041         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58042         not cycle-check.h.
58043         (seen_triple): New function.
58044         (canonicalize_filename_mode): Use it instead of cycle-check.
58045         * tests/test-canonicalize.c: Add a test for this bug.
58046         * tests/test-canonicalize.sh: Set up and run the test.
58047
58048         New module, file-set, from coreutils.
58049         * modules/file-set: Define it.
58050         * lib/file-set.c, lib/file-set.h: Implement.
58051
58052         New module, hash-triple, from coreutils.
58053         * modules/hash-triple: Define it.
58054         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58055
58056 2007-09-25  Eric Blake  <ebb9@byu.net>
58057
58058         Fix strerror on Interix.
58059         * lib/string_.h (strerror): Declare replacement.
58060         * doc/functions/strerror.texi (strerror): Document the Interix
58061         shortcoming.
58062         * modules/string (Makefile.am): Support new hooks.
58063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58064         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58065         gl_FUNC_STRERROR_SEPARATE.
58066         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58067         * lib/strerror.c (rpl_strerror): Provide replacement.
58068         * modules/strerror (Depends-on): Add string.
58069         (configure.ac): Detect use of module.
58070         * tests/test-strerror.c: New file.
58071         * modules/strerror-tests: New test module.
58072         * modules/argp (Depends-on): Add strerror.
58073         * modules/error (Depends-on): Likewise.
58074         Reported by Martin Koeppe.
58075
58076 2007-09-24  Bruno Haible  <bruno@clisp.org>
58077
58078         * README: Update git instructions.
58079
58080 2007-09-24  Eric Blake  <ebb9@byu.net>
58081
58082         Revert fpending breakage from 2007-09-08.
58083         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58084         __fpending.c.
58085
58086 2007-09-24  Jim Meyering  <jim@meyering.net>
58087
58088         filenamecat.c: Add a test.
58089         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58090         showing how the function works when DIR is the empty string.
58091
58092 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58093
58094         * tests/test-canonicalize.sh: Turn on executable bit.
58095
58096 2007-09-19  Eric Blake  <ebb9@byu.net>
58097
58098         * README: Update CVS instructions.
58099
58100 2007-09-18  Bruno Haible  <bruno@clisp.org>
58101
58102         * modules/areadlink: New file.
58103         * lib/areadlink.h (areadlink): New declaration.
58104         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58105
58106 2007-09-17  Jim Meyering  <jim@meyering.net>
58107
58108         * lib/savewd.c (ESTALE) [!defined]: Define.
58109         Reported to be required on Interix by Martin Koeppe.
58110
58111 2007-09-17  Bruno Haible  <bruno@clisp.org>
58112
58113         * gnulib-tool (func_version): Use $version.
58114
58115 2007-09-16  Bruno Haible  <bruno@clisp.org>
58116
58117         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58118         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58119         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58120         Reported by Greg Schafer <gschafer@zip.com.au>.
58121
58122 2007-09-15  Bruno Haible  <bruno@clisp.org>
58123
58124         * gnulib-tool (sed): Try a little harder to make bash understand the
58125         alias.
58126         Reported by Bruce Korb <bruce.korb@gmail.com>.
58127
58128 2007-09-13  Eric Blake  <ebb9@byu.net>
58129
58130         * ChangeLog: Remove conflict markers.
58131
58132 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58133
58134         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58135         Reported by Bruno Haible <bruno@clisp.org>.
58136
58137 2007-09-12  Bruno Haible  <bruno@clisp.org>
58138
58139         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58140         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58141         is not defined.
58142
58143 2007-09-12  Eric Blake  <ebb9@byu.net>
58144
58145         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58146         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58147         Autoconf definition.
58148         * modules/euidaccess (Depends-on): Add extensions, for
58149         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58150         * modules/fnmatch (Depends-on): Likewise.
58151         * modules/getaddrinfo (Depends-on): Likewise.
58152         * modules/getdelim (Depends-on): Likewise.
58153         * modules/getline (Depends-on): Likewise.
58154         * modules/getsubopt (Depends-on): Likewise.
58155         * modules/gettext (Depends-on): Likewise.
58156         * modules/group-member (Depends-on): Likewise.
58157         * modules/mbchar (Depends-on): Likewise.
58158         * modules/memmem (Depends-on): Likewise.
58159         * modules/mempcpy (Depends-on): Likewise.
58160         * modules/memrchr (Depends-on): Likewise.
58161         * modules/pagealign_alloc (Depends-on): Likewise.
58162         * modules/readutmp (Depends-on): Likewise.
58163         * modules/stpcpy (Depends-on): Likewise.
58164         * modules/stpncpy (Depends-on): Likewise.
58165         * modules/strchrnul (Depends-on): Likewise.
58166         * modules/strndup (Depends-on): Likewise.
58167         * modules/strsep (Depends-on): Likewise.
58168         * modules/strverscmp (Depends-on): Likewise.
58169         * modules/vasprintf (Depends-on): Likewise.
58170         * modules/wcwidth (Depends-on): Likewise.
58171         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58172         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58173         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58175         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58176         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58177         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58178         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58179         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58180         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58181         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58182         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58184         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58185         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58186         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58187         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58188         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58190         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58191         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58192         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58193         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58194         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58195         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58197         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58198         so that lock.m4 can be used in gettext without extensions module.
58199
58200 2007-09-11  Bruno Haible  <bruno@clisp.org>
58201
58202         * m4/isc-posix.m4: Remove file.
58203         Suggested by Eric Blake.
58204
58205 2007-09-11  Eric Blake  <ebb9@byu.net>
58206
58207         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58208
58209 2007-09-10  Bruno Haible  <bruno@clisp.org>
58210
58211         * posix-modules: Fix typo in error message.
58212         Reported by Matt <mkraai@beckman.com>.
58213
58214 2007-09-09  Bruno Haible  <bruno@clisp.org>
58215
58216         * doc/functions/getdelim.texi: Update list of platforms lacking the
58217         function.
58218         * doc/functions/getline.texi: Likewise.
58219
58220 2007-09-09  Jim Meyering  <jim@meyering.net>
58221
58222         * lib/hash.c (hash_initialize): Detect calloc failure.
58223         Reported by Bruno Haible.
58224
58225 2007-09-09  Bruno Haible  <bruno@clisp.org>
58226
58227         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58228         malloc or realloc fails.
58229
58230 2007-09-09  Bruno Haible  <bruno@clisp.org>
58231
58232         * modules/getcwd (Depends-on): Add malloc-posix.
58233         * modules/glob (Depends-on): Likewise.
58234         * modules/putenv (Depends-on): Likewise.
58235         * modules/strdup (Depends-on): Likewise.
58236         * modules/getdelim (Depends-on): Add realloc-posix.
58237         * modules/read-file (Depends-on): Likewise.
58238
58239 2007-09-09  Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58242         (gl_FUNC_MALLOC_POSIX): Require it.
58243         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58244         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58245         * modules/realloc (Files): Add m4/malloc.m4.
58246         * modules/calloc (Files): Likewise.
58247
58248 2007-09-09  Bruno Haible  <bruno@clisp.org>
58249
58250         * modules/malloc-posix: New file.
58251         * modules/malloc (Depends-on): Add malloc-posix.
58252         * lib/malloc.c: Include errno.h.
58253         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58254         and a POSIX-compatible malloc into a single function. Set ENOMEM
58255         when returning NULL.
58256         * m4/malloc.m4: New file.
58257         * doc/functions/malloc.texi: Mention the malloc-posix module.
58258         * lib/stdlib_.h (malloc): New declaration.
58259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58260         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58261         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58262         and HAVE_MALLOC_POSIX.
58263
58264 2007-09-09  Bruno Haible  <bruno@clisp.org>
58265
58266         * modules/realloc-posix: New file.
58267         * modules/realloc (Depends-on): Add realloc-posix.
58268         * lib/realloc.c: Include errno.h.
58269         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58270         and a POSIX-compatible realloc into a single function. Set ENOMEM
58271         when returning NULL.
58272         * m4/realloc.m4: New file.
58273         * doc/functions/realloc.texi: Mention the realloc-posix module.
58274         * lib/stdlib_.h (realloc): New declaration.
58275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58276         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58277         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58278         and HAVE_REALLOC_POSIX.
58279
58280 2007-09-09  Bruno Haible  <bruno@clisp.org>
58281
58282         * modules/calloc-posix: New file.
58283         * modules/calloc (Depends-on): Add calloc-posix.
58284         * lib/calloc.c: Include errno.h.
58285         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58286         and a POSIX-compatible calloc into a single function. Set ENOMEM
58287         when returning NULL.
58288         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58289         * doc/functions/calloc.texi: Mention the calloc-posix module.
58290         * lib/stdlib_.h (calloc): New declaration.
58291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58292         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58293         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58294         and HAVE_CALLOC_POSIX.
58295
58296 2007-09-09  Bruno Haible  <bruno@clisp.org>
58297
58298         Allow for modules to show an arbitrary notice.
58299         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58300         * gnulib-tool: New option --extract-notice.
58301         (func_usage): Document it.
58302         (sed_extract_prog): Update.
58303         (func_get_notice): New function.
58304         (func_modules_notice): New function.
58305         (func_import, func_create_testdir): Invoke it.
58306         Suggested by Jim Meyering.
58307
58308 2007-09-09  Bruno Haible  <bruno@clisp.org>
58309
58310         * gnulib-tool: New options --verbose, --quiet.
58311         (func_usage): Document them.
58312         (verbose): New variable.
58313         (func_execute_command): New function.
58314         (func_import): Don't show the module list and the file list if
58315         $verbose < 0.
58316         (func_create_testdir): Likewise. Use func_execute_command.
58317         (func_create_megatestdir): Use func_execute_command.
58318
58319 2007-09-08  Bruno Haible  <bruno@clisp.org>
58320
58321         * gnulib-tool (func_import): Prefer rsync over wget when available,
58322         for fetching the PO files.
58323
58324 2007-09-08  Bruno Haible  <bruno@clisp.org>
58325
58326         * posix-modules: New file. Portions copied from gnulib-tool.
58327         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58328
58329 2007-09-08  Jim Meyering  <jim@meyering.net>
58330
58331         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58332         * lib/fpending.h: Rename from __fpending.h.
58333         * lib/fpending.c: Rename from __fpending.c.
58334         Include "fpending.h", not "__fpending.h".
58335         * lib/__fpending.h, lib/__fpending.c: Remove files.
58336         * modules/fpending (Files): Reflect new file names.
58337         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58338
58339 2007-09-08  Bruno Haible  <bruno@clisp.org>
58340
58341         * m4/inttypes-h.m4: Remove stub file.
58342
58343 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58344
58345         * doc/headers/stdint.texi: Discuss #include_next issue.
58346
58347 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58350
58351 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58352
58353         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58354         in variable name.
58355
58356 2007-09-03  Jim Meyering  <jim@meyering.net>
58357
58358         New module: git-version-gen.
58359         * modules/git-version-gen: New file.
58360
58361         Import changes from coreutils for bootstrap script.
58362
58363         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58364
58365         bootstrap: uses rsync to download the .po files
58366         * build-aux/bootstrap (po_download_command_format): New global.
58367         (download_po_files): Use rsync.
58368         (update_po_files): Don't remove .po files after download,
58369         so future rsync runs can take advantage of the copies.
58370
58371         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58372
58373         Solve the unnecessary-.po-file-regeneration problem once and for all.
58374         * build-aux/bootstrap (download_po_files): New function, renamed from
58375         get_translations.  Now, downloads, but doesn't update LINGUAS.
58376         (update_po_files): New function.
58377
58378         bootstrap: Ignore more.
58379         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58380         uniwidth to e.g., lib/.gitignore.
58381         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58382
58383         * build-aux/bootstrap: New setting: vc_ignore.
58384         (insert_sorted_if_absent): Create $file if absent.
58385         Adapt to new, possibly empty, list: $vc_ignore.
58386
58387         bootstrap: generate more ignorable names
58388         * build-aux/bootstrap (slurp): When generating ignorable names,
58389         also map .sin to .sed, .gperf to .c, and .y to .c.
58390
58391 2007-09-03  Jim Meyering  <jim@meyering.net>
58392
58393         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58394         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58395
58396 2007-09-02  Bruno Haible  <bruno@clisp.org>
58397
58398         Fix mis-recognition of 'mcs' on QNX 6.
58399         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58400         output contains the string "Mono".
58401         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58402         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58403
58404 2007-09-01  Bruno Haible  <bruno@clisp.org>
58405
58406         Fix collision between uniwidth/* and linebreak modules.
58407         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58408         u32_width): Remove declarations.
58409         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58410         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58411         streq3, streq2, streq1, streq0): Remove functions.
58412         (STREQ): Remove macro.
58413         (is_cjk_encoding): Remove function.
58414         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58415         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58416         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58417         * NEWS: Document the change.
58418
58419 2007-09-01  Bruno Haible  <bruno@clisp.org>
58420
58421         * lib/streq.h: Add double-inclusion guard.
58422
58423 2007-09-01  Karl Berry  <karl@gnu.org>
58424
58425         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58426
58427 2007-08-28  Jim Meyering  <jim@meyering.net>
58428
58429         Rename mreadlink_with_size to areadlink_with_size.
58430         * NEWS: Document the change.
58431         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58432         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58433         * lib/mreadlink.h: Rename this to...
58434         * lib/areadlink.h: ...this.
58435         * modules/mreadlink-with-size: Rename this to...
58436         * modules/areadlink-with-size: ...this.
58437         * lib/canonicalize.c: Reflect the renaming.
58438         * modules/canonicalize: Likewise.
58439
58440 2007-08-26  Bruno Haible  <bruno@clisp.org>
58441
58442         * gnulib-tool (func_import): When deciding which files to remove,
58443         consider also dangling symbolic links.
58444         Reported by Eric Blake.
58445
58446 2007-08-26  Bruno Haible  <bruno@clisp.org>
58447
58448         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58449
58450 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58451
58452         * lib/readline.c: Don't include getline.h, the prototype is now
58453         found in stdio.h.
58454
58455 2007-08-23  Jim Meyering  <jim@meyering.net>
58456
58457         Getdelim touchup.
58458         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58459         around the funlockfile call, since funlockfile never sets errno.
58460         Don't set errno upon failed realloc.
58461
58462 2007-08-22  Eric Blake  <ebb9@byu.net>
58463
58464         Getline touchups.
58465         * lib/getdelim.c (getdelim): Revert regression that required *n to
58466         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58467         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58468         getdelim, rather than whether implementation is missing.
58469         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58470         * lib/stdio_.h (getline): Also declare if replacement is
58471         required.
58472         * doc/functions/getdelim.texi: New file.
58473         * doc/functions/getline.texi: Likewise.
58474         * doc/gnulib.texi (Function Substitutes): Add new files.
58475         Reported by Bruno Haible.
58476
58477 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58478
58479         * users.txt: Add Guile.
58480
58481 2007-08-22  Eric Blake  <ebb9@byu.net>
58482
58483         * tests/test-getdelim.c (main): Use remove, not unlink.
58484         * tests/test-getline.c (main): Likewise.
58485
58486         Move getline and getdelim into stdio.h, per POSIX 200x.
58487         * modules/getline (Files): Remove getline.h.
58488         (Depends-on): Add stdio.
58489         (configure.ac): Add module indicator.
58490         * modules/getdelim (Files): Remove getdelim.h.
58491         (Depends-on): Add stdio.
58492         (configure.ac): Add module indicator.
58493         * modules/stdio (Makefile.am): Work with new indicators.
58494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58495         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58496         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58497         * lib/getdelim.h: Delete.
58498         * lib/getline.h: Delete.
58499         * lib/stdio_.h (getdelim, getline): Declare.
58500         * modules/getdelim-tests: New module.
58501         * modules/getline-tests: Likewise.
58502         * tests/test-getdelim.c: New file.
58503         * tests/test-getline.c: Likewise.
58504         * NEWS: Document the change.
58505         * lib/getline.c: Update choice of header.
58506         * lib/csharpcomp.c: Likewise.
58507         * lib/getpass.c: Likewise.
58508         * lib/javacomp.c: Likewise.
58509         * lib/javaversion.c: Likewise.
58510         * lib/yesno.c: Likewise.
58511         * lib/getdelim.c: Likewise.
58512         (getdelim): Set errno on failure, and avoid memory leak.
58513
58514 2007-08-19  Bruno Haible  <bruno@clisp.org>
58515
58516         * modules/closein (Depends-on): Add freadahead.
58517         * lib/closein.c: Include freadahead.h.
58518         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58519         is zero.
58520
58521 2007-08-19  Bruno Haible  <bruno@clisp.org>
58522
58523         * modules/freadahead-tests: New file.
58524         * tests/test-freadahead.sh: New file.
58525         * tests/test-freadahead.c: New file.
58526
58527         * modules/freadahead: New file.
58528         * lib/freadahead.h: New file.
58529         * lib/freadahead.c: New file.
58530         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58531         fbufmode, fpurge, freadable, fwritable.
58532
58533 2007-08-19  Eric Blake  <ebb9@byu.net>
58534
58535         Test yesno in combination with closein.
58536         * lib/yesno.c (yesno): Document use of stdin.
58537         * modules/yesno-tests (Files): New module.
58538         * tests/test-yesno.c (main): New file.
58539         * tests/test-yesno.sh: Likewise.
58540
58541 2007-08-19  Bruno Haible  <bruno@clisp.org>
58542
58543         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58544         * lib/fseeko.c (rpl_fseeko): Likewise.
58545         * lib/fseterr.c (fseterr): Likewise.
58546
58547 2007-08-19  Bruno Haible  <bruno@clisp.org>
58548
58549         * tests/test-lseek.c (main): Disable a test for BeOS.
58550         * doc/functions/lseek.texi: Document the BeOS bug.
58551
58552 2007-08-19  Bruno Haible  <bruno@clisp.org>
58553             Eric Blake  <ebb9@byu.net>
58554
58555         * lib/lseek.c: Include <sys/stat.h>.
58556         (rpl_lseek): Add workaround code also for Unix platforms.
58557         Needed for BeOS.
58558         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58559         * doc/functions/lseek.texi: Document BeOS definiency.
58560
58561 2007-08-18  Bruno Haible  <bruno@clisp.org>
58562
58563         * modules/fstrcmp-tests: New file.
58564         * tests/test-fstrcmp.c: New file.
58565
58566 2007-08-18  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/fstrcmp: New file, from GNU gettext with modifications.
58569         * lib/fstrcmp.h: New file, from GNU gettext.
58570         * lib/fstrcmp.c: New file, from GNU gettext.
58571         * MODULES.html.sh (String handling): Add fstrcmp.
58572
58573 2007-08-18  Bruno Haible  <bruno@clisp.org>
58574
58575         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58576         'bool'.
58577         (diag, compareseq): Remove const from the ctxt argument.
58578         (USE_HEURISTIC): Undefine at the end.
58579
58580 2007-08-18  Jim Meyering  <jim@meyering.net>
58581
58582         New file: lib/idcache.h
58583         * NEWS: Mention the addition.
58584         * modules/idcache (Files): Add lib/idcache.h
58585         * lib/idcache.c: Include "idcache.h".
58586         Don't include <sys/types.h>.
58587         Add a FIXME comment.
58588         Move file-scoped "static" declarations to the top.
58589         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58590
58591 2007-08-17  Bruno Haible  <bruno@clisp.org>
58592         and Paul Eggert  <eggert@cs.ucla.edu>
58593
58594         * MODULES.html.sh: Add diffseq.
58595         * modules/diffseq: New file.
58596         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58597         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58598
58599 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58600
58601         Import changes from coreutils for bootstrap script.
58602
58603         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * build-aux/bootstrap (slurp): Work even in environments where
58606         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58607         current code does not slurp files whose names start with ".", and
58608         this looks like it might be a troublesome area.
58609
58610         2007-07-11  Jim Meyering  <jim@meyering.net>
58611
58612         If there's a GPL vN copyright comment, require that N == 3.
58613
58614         2007-07-08  Jim Meyering  <jim@meyering.net>
58615
58616         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58617         * build-aux/bootstrap (mam_template): Move definition out of loop.
58618
58619         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58620
58621         * build-aux/bootstrap (symlink_to_dir): Rename function from
58622         symlink_to_gnulib.  Add a directory parameter.  Update all
58623         callers.
58624         (cp_mark_as_generated): Also check for -- and link to -- files in
58625         gl/.
58626
58627         2007-07-08  Jim Meyering  <jim@meyering.net>
58628
58629         Adapt to deeper hierarchy in gnulib.
58630         * build-aux/bootstrap (symlink_to_dir): If the destination
58631         directory doesn't exist, create it. This is required at least for
58632         "lib/uniwidth/cjk.h".
58633
58634         2007-05-15  Jim Meyering  <jim@meyering.net>
58635
58636         * build-aux/bootstrap: Now that generated Makefile.am files
58637         are no longer under version control, they must be created at
58638         bootstrap time.
58639
58640 2007-08-14  Ben Pfaff  <blp@gnu.org>
58641
58642         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58643
58644 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58647         given the changes below.
58648         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58649         even on hosts that have padding bits beyond the supported 64.
58650
58651 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58654         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58655         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58656         depends on it.
58657         (xstrtol_error): Remove.
58658         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58659         but with a different signature.
58660         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58661         * lib/xstrtol-error.c: Include exitfail.h.
58662         (xstrtol_fatal): New function, with a different signature from the
58663         old xstrtol_error, so that the caller need not worry about passing
58664         in an exit status, or about storage management of the option argument.
58665         (xstrtol_error): Now a static function.  Redo signature to
58666         implement xstrtol_fatal.  Output the correct number of hyphens in
58667         front of the option so that the caller need not worry about
58668         storage management.
58669         (N_): New macro.
58670         (_): Remove; not used now.
58671         * modules/xstrtol: Depend on getopt.
58672         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58673         of old STRTOL_FATAL_ERROR macro.
58674         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58675         of test program.
58676         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58677         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58678
58679 2007-08-08  Eric Blake  <ebb9@byu.net>
58680
58681         * lib/xstrtol-error.c: Add missing include.
58682
58683         Move xstrtol messages into gnulib domain, when --pobase is used.
58684         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58685         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58686         * modules/xstrtol (Files): Distribute new file.
58687         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58688         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58689         * tests/test-xstrtol.c: ...into new file.
58690         * tests/test-xstrtoul.c: Also test xstrtoul.
58691         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58692         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58693         * tests/test-xstrtol.sh: Drive the tests.
58694         * tests/test-xstrtoimax.sh: Likewise.
58695         * tests/test-xstrtoumax.sh: Likewise.
58696         * modules/xstrtol-tests: New module.
58697         * modules/xstrtoimax-tests: Likewise.
58698         * modules/xstrtoumax-tests: Likewise.
58699
58700 2007-08-08  Jim Meyering  <jim@meyering.net>
58701
58702         New function: mfile_name_concat.
58703         * lib/filenamecat.c (mfile_name_concat): New function, just like
58704         file_name_concat, but return NULL upon failure rather than exiting
58705         with a diagnostic.
58706         * lib/filenamecat.h: Declare it.
58707
58708 2007-08-07  Bruno Haible  <bruno@clisp.org>
58709
58710         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58711         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58712         warning from gcc.
58713         Reported by Eric Blake.
58714
58715 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58716
58717         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58718         * modules/crypto/arcfour (License): Likewise.
58719         * modules/crypto/des-tests (License): Likewise.
58720         * modules/crypto/gc-arctwo-tests (License): Likewise.
58721         * modules/crypto/gc-des-tests (License): Likewise.
58722         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58723         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58724         * modules/crypto/gc-md2-tests (License): Likewise.
58725         * modules/crypto/gc-md4-tests (License): Likewise.
58726         * modules/crypto/gc-md5-tests (License): Likewise.
58727         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58728         * modules/crypto/gc-rijndael-tests (License): Likewise.
58729         * modules/crypto/gc-sha1-tests (License): Likewise.
58730         * modules/crypto/gc-tests (License): Likewise.
58731         * modules/crypto/hmac-md5 (License): Likewise.
58732         * modules/crypto/hmac-sha1 (License): Likewise.
58733         * modules/crypto/md2-tests (License): Likewise.
58734         * modules/crypto/md4-tests (License): Likewise.
58735         * modules/crypto/md5 (License): Likewise.
58736         * modules/crypto/rijndael (License): Likewise.
58737         * modules/crypto/sha1 (License): Likewise.
58738         * modules/memxor (License): Likewise.
58739
58740 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58741         and Bruno Haible  <bruno@clisp.org>
58742
58743         * NEWS: Describe interface changes to human, xstrtol.
58744         * lib/human.h: Include <xstrtol.h>.
58745         (human_options): Return enum strtol_error, not int.  Remove
58746         bool arg; take int * instead.
58747         * lib/human.c: Don't include "gettext.h".
58748         (_): Remove; no longer used.
58749         Don't include <xstrtol.h>, since human.h does it.
58750         (human_options): Adjust to abovementioned interface changes.
58751         Do not report error to stderr; that's now the caller's
58752         responsibility.
58753         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58754         interface change.
58755         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58756         Str, Argument_type_string.  All uses changed.  Put " argument"
58757         in diagnostics to make them clearer.  Change wording of suffix
58758         message for clarity.
58759         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58760         Argument_type_string.
58761         (STRTOL_FATAL_WARN): Remove; no longer used.
58762         * modules/human (Depends-on): Remove gettext-h.
58763
58764 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58765
58766         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58767
58768 2007-07-31  Bruno Haible  <bruno@clisp.org>
58769
58770         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58771         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58772         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58773
58774 2007-07-31  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58777         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58778
58779 2007-07-30  Bruno Haible  <bruno@clisp.org>
58780
58781         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58782         * modules/c-ctype (License): Likewise.
58783         * modules/c-strcase (License): Likewise.
58784         * modules/check-version (License): Likewise.
58785         * modules/iconv (License): Likewise.
58786         * modules/iconv_open (License): Likewise.
58787         * modules/read-file (License): Likewise.
58788         * modules/striconv (License): Likewise.
58789         * modules/strverscmp (License): Likewise.
58790         * modules/vasprintf (License): Likewise.
58791         * modules/crypto/des (License): Likewise.
58792         * modules/crypto/gc (License): Likewise.
58793         * modules/crypto/gc-arcfour (License): Likewise.
58794         * modules/crypto/gc-arctwo (License): Likewise.
58795         * modules/crypto/gc-des (License): Likewise.
58796         * modules/crypto/gc-hmac-md5 (License): Likewise.
58797         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58798         * modules/crypto/gc-md2 (License): Likewise.
58799         * modules/crypto/gc-md4 (License): Likewise.
58800         * modules/crypto/gc-md5 (License): Likewise.
58801         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58802         * modules/crypto/gc-random (License): Likewise.
58803         * modules/crypto/gc-rijndael (License): Likewise.
58804         * modules/crypto/gc-sha1 (License): Likewise.
58805         * modules/crypto/md2 (License): Likewise.
58806         * modules/crypto/md4 (License): Likewise.
58807
58808 2007-07-30  Jim Meyering  <jim@meyering.net>
58809
58810         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58811         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58812         it has valid stat data.  This bug would cause du not to count the
58813         sizes of inaccessible directories.
58814         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58815         in <http://bugzilla.redhat.com/250077>.
58816
58817 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58818             Bruno Haible  <bruno@clisp.org>
58819
58820         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58821         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58822         #include_next, gives a diagnostic about it, but reports no error in
58823         the exit code.
58824         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58825
58826 2007-07-24  Ben Pfaff  <blp@gnu.org>
58827
58828         Improve name: "count-one-bits" is better than "popcount".
58829         * MODULES.html.sh: Update name.
58830         * lib/popcount.h: Renamed lib/count-one-bits.h.
58831         (popcount): Renamed count_one_bits.
58832         (popcountl): Renamed count_one_bits_l.
58833         (popcountll): Renamed count_one_bits_ll.
58834         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58835         * modules/popcount: Renamed module/count-one-bits.
58836         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58837         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58838
58839 2007-07-23  Ben Pfaff  <blp@gnu.org>
58840
58841         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58842         better code generation, and add U to large constants to avoid
58843         warnings, in non-GCC case.
58844         Suggested by Bruno Haible.
58845
58846 2007-07-23  Ben Pfaff  <blp@gnu.org>
58847
58848         * lib/popcount.h: Use verify_true instead of if...abort.
58849         * modules/popcount: Depend on verify module.
58850         Suggested by Jim Meyering.
58851
58852 2007-07-23  Bruno Haible  <bruno@clisp.org>
58853
58854         * gnulib-tool (func_import): Create a .cvsignore file also when the
58855         directory is not yet in CVS but the toplevel directory is. When
58856         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58857         Reported by Karl Berry.
58858
58859 2007-07-22  Ben Pfaff  <blp@gnu.org>
58860
58861         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58862         case.
58863         Suggested by Eric Blake.
58864
58865 2007-07-22  Ben Pfaff  <blp@gnu.org>
58866
58867         New module: popcount.
58868         * MODULES.html.sh: Add popcount.
58869         * modules/popcount: New file.
58870         * modules/popcount-tests: New file.
58871         * tests/test-popcount.c: New file.
58872         * lib/popcount.h: New file.
58873         * m4/popcount.m4: New file.
58874
58875 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * build-aux/announce-gen: Update to GPLv3.
58878
58879         * build-aux/config.guess: Update from config.
58880
58881 2007-07-21  Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58884         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58885
58886 2007-07-20  Jim Meyering  <jim@meyering.net>
58887
58888         * check-module: Diagnose a self-dependency.
58889
58890 2007-07-19  Bruno Haible  <bruno@clisp.org>
58891
58892         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58893         empty.
58894         Reported by Eric Blake.
58895
58896 2007-07-18  Bruno Haible  <bruno@clisp.org>
58897
58898         * gnulib-tool: New options --po-base, --po-domain.
58899         (func_usage): Document them.
58900         (pobase, po_domain): New variables.
58901         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58902         DEFAULT_TEXT_DOMAIN.
58903         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58904         (func_import): Consider pobase and po_domain. Create a po/ directory.
58905         (func_create_testdir): Set pobase and po_domain to empty.
58906         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58907         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58908
58909 2007-07-18  Bruno Haible  <bruno@clisp.org>
58910
58911         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58912         EXTRA_DIST augmentation for files in build-aux/.
58913
58914 2007-07-16  Bruno Haible  <bruno@clisp.org>
58915
58916         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58917         * modules/getdelim (License): Likewise.
58918
58919 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58920
58921         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58922         * modules/d-type (License): Likewise.
58923         * modules/extensions (License): Likewise.
58924         * modules/fnmatch (License): Likewise.
58925         * modules/fseeko (License): Likewise.
58926         * modules/getaddrinfo (License): Likewise.
58927         * modules/getline (License): Likewise.
58928         * modules/getlogin_r (License): Likewise.
58929         * modules/getpass (License): Likewise.
58930         * modules/gettimeofday (License): Likewise.
58931         * modules/glob (License): Likewise.
58932         * modules/inet_ntop (License): Likewise.
58933         * modules/malloc (License): Likewise.
58934         * modules/malloca (License): Likewise.
58935         * modules/memmem (License): Likewise.
58936         * modules/mempcpy (License): Likewise.
58937         * modules/memset (License): Likewise.
58938         * modules/minmax (License): Likewise.
58939         * modules/mktime (License): Likewise.
58940         * modules/netinet_in (License): Likewise.
58941         * modules/pathmax (License): Likewise.
58942         * modules/poll (License): Likewise.
58943         * modules/regex (License): Likewise.
58944         * modules/snprintf (License): Likewise.
58945         * modules/stdbool (License): Likewise.
58946         * modules/stdint (License): Likewise.
58947         * modules/stdio (License): Likewise.
58948         * modules/strcase (License): Likewise.
58949         * modules/strcasestr (License): Likewise.
58950         * modules/strdup (License): Likewise.
58951         * modules/string (License): Likewise.
58952         * modules/strndup (License): Likewise.
58953         * modules/strnlen (License): Likewise.
58954         * modules/strpbrk (License): Likewise.
58955         * modules/strptime (License): Likewise.
58956         * modules/strsep (License): Likewise.
58957         * modules/sys_select (License): Likewise.
58958         * modules/sys_socket (License): Likewise.
58959         * modules/sys_stat (License): Likewise.
58960         * modules/sys_time (License): Likewise.
58961         * modules/time (License): Likewise.
58962         * modules/time_r (License): Likewise.
58963         * modules/timegm (License): Likewise.
58964         * modules/unistd (License): Likewise.
58965         * modules/vsnprintf (License): Likewise.
58966         * modules/wctype (License): Likewise.
58967
58968 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58969
58970         * modules/argz (License): LGPLv2+.
58971
58972 2007-07-15  Karl Berry  <karl@gnu.org>
58973
58974         * doc/gnulib.texi: revise node structure per new fdl.texi.
58975
58976 2007-07-14  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58979         the output file.
58980         * lib/uniname/uninames.h: Regenerated.
58981
58982 2007-07-14  Karl Berry  <karl@gnu.org>
58983
58984         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58985         omitting sectioning and index commands.
58986
58987 2007-07-13  Bruno Haible  <bruno@clisp.org>
58988
58989         New gnulib-tool option --more-symlinks.
58990         * gnulib-tool (func_usage): Document --more-symlinks.
58991         (do_copyrights): New variable.
58992         Recognize option --more-symlinks.
58993         (func_import): Don't add a copyright notice transform to
58994         sed_transform_lib_file if do_copyrights is empty.
58995
58996 2007-07-13  Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/vasnprintf.c (decimal_point_char): Define also if
58999         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59000         && !NEED_PRINTF_DIRECTIVE_A.
59001         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59002         Gary V. Vaughan <gary@gnu.org>.
59003
59004 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59005
59006         * lib/inttypes_.h: Undo previous change, since it was fixed
59007         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59008
59009 2007-07-13  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59012         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59013
59014 2007-07-13  Jim Meyering  <jim@meyering.net>
59015
59016         df: Don't fail for Tru64's "file-on-file mount".
59017         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59018         so we fall through and use statfs instead.  Details here:
59019         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59020         Reported by Albert Chin.
59021
59022 2007-07-13  Bruno Haible  <bruno@clisp.org>
59023
59024         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59025         * modules/configmake (License): Likewise.
59026         * modules/gettext (License): Likewise.
59027         * modules/gettext-h (License): Likewise.
59028         * modules/include_next (License): Likewise.
59029         * modules/link-warning (License): Likewise.
59030         * modules/localcharset (License): Likewise.
59031         * modules/localename (License): Likewise.
59032         * modules/lock (License): Likewise.
59033         * modules/relocatable-lib-lgpl (License): Likewise.
59034         * modules/size_max (License): Likewise.
59035         * modules/vasnprintf (License): Likewise.
59036         * modules/wchar (License): Likewise.
59037         * modules/xsize (License): Likewise.
59038
59039 2007-07-13  Bruno Haible  <bruno@clisp.org>
59040
59041         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59042         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59043
59044 2007-07-12  Bruno Haible  <bruno@clisp.org>
59045
59046         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59047         in the modules files.
59048
59049 2007-07-11  Karl Berry  <karl@gnu.org>
59050
59051         * MODULES.html.sh (func_module): use
59052          sed -e '\|^'"${includefile}"'$|d'
59053          instead of /.../d, to avoid errors on $includefile's containing /.
59054
59055 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59056
59057         * gnulib-tool (func_import): Avoid duplication of --avoid
59058         statements
59059         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59060         names to `_' in variable names.
59061
59062 2007-07-10  Eric Blake  <ebb9@byu.net>
59063
59064         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59065         * NEWS: Document this change.
59066
59067 2007-07-08  Bruno Haible  <bruno@clisp.org>
59068
59069         Update to Unicode 5.0.
59070         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59071         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59072         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59073         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59074         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59075         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59076         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59077         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59078         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59079         U+10A3F, U+1D242..U+1D244.
59080         (nonspacing_table_ind): Update.
59081         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59082         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59083
59084 2007-07-08  Bruno Haible  <bruno@clisp.org>
59085
59086         Update to Unicode 5.0.
59087         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59088         code transform. Extend the name index field of unicode_name_to_code and
59089         unicode_code_to_name from 16 to 24 bits.
59090         * lib/uniname/uniname.c (unicode_character_name,
59091         unicode_name_character): Add the range 0x12xxx to the code transform.
59092         * lib/uniname/uninames.h: Regenerated.
59093         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59094
59095 2007-07-07  Bruno Haible  <bruno@clisp.org>
59096
59097         * modules/wcwidth-tests: New file.
59098         * tests/test-wcwidth.c: New file.
59099
59100         Work around MacOS X wcwidth() bug.
59101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59102         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59103         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59104         original wcwidth in non-UTF-8 locales.
59105         * modules/wcwidth (Depends-on): Add localcharset, streq,
59106         uniwidth/width.
59107         * doc/functions/wcwidth.texi: Update.
59108
59109 2007-07-07  Bruno Haible  <bruno@clisp.org>
59110
59111         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59112         (wcwidth): New declaration.
59113         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59114         macros.
59115         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59116         here. Prepare for creating <wchar.h> unconditionally.
59117         * modules/wchar (Depends-on): Add link-warning.
59118         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59119         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59120         * lib/wcwidth.h: Remove file.
59121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59122         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59123         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59124         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59125         (Include): Replace wcwidth.h with <wchar.h>.
59126         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59127         * lib/mbchar.h: Don't include wcwidth.h.
59128         * lib/mbswidth.c: Likewise.
59129         * NEWS: Mention the change.
59130
59131 2007-07-07  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59134         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59135         definition with an external declaration.
59136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59137         defined as a function. Remove AC_C_INLINE requirement.
59138         * modules/wcwidth (Files): Add lib/wcwidth.c.
59139         (Makefile.am): Remove redundant statement.
59140
59141 2007-07-07  Bruno Haible  <bruno@clisp.org>
59142
59143         * MODULES.html.sh (Unicode string functions): Add the new modules.
59144
59145         * tests/uniwidth/test-u32-strwidth.c: New file.
59146         * modules/uniwidth/u32-strwidth-tests: New file.
59147
59148         * lib/uniwidth/u32-strwidth.c: New file.
59149         * modules/uniwidth/u32-strwidth: New file.
59150
59151         * tests/uniwidth/test-u16-strwidth.c: New file.
59152         * modules/uniwidth/u16-strwidth-tests: New file.
59153
59154         * lib/uniwidth/u16-strwidth.c: New file.
59155         * modules/uniwidth/u16-strwidth: New file.
59156
59157         * tests/uniwidth/test-u8-strwidth.c: New file.
59158         * modules/uniwidth/u8-strwidth-tests: New file.
59159
59160         * lib/uniwidth/u8-strwidth.c: New file.
59161         * modules/uniwidth/u8-strwidth: New file.
59162
59163         * tests/uniwidth/test-u32-width.c: New file.
59164         * modules/uniwidth/u32-width-tests: New file.
59165
59166         * lib/uniwidth/u32-width.c: New file.
59167         * modules/uniwidth/u32-width: New file.
59168
59169         * tests/uniwidth/test-u16-width.c: New file.
59170         * modules/uniwidth/u16-width-tests: New file.
59171
59172         * lib/uniwidth/u16-width.c: New file.
59173         * modules/uniwidth/u16-width: New file.
59174
59175         * tests/uniwidth/test-u8-width.c: New file.
59176         * modules/uniwidth/u8-width-tests: New file.
59177
59178         * lib/uniwidth/u8-width.c: New file.
59179         * modules/uniwidth/u8-width: New file.
59180
59181         * tests/uniwidth/test-uc_width.c: New file.
59182         * modules/uniwidth/width-tests: New file.
59183
59184         * lib/uniwidth/width.c: New file, from GNU libiconv.
59185         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59186         * modules/uniwidth/width: New file.
59187
59188         * lib/uniwidth.h: New file, from GNU libiconv.
59189         * modules/uniwidth/base: New file.
59190
59191 2007-07-07  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/uniname.h: New file, from GNU gettext.
59194         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59195         * lib/uniname/uninames.h: New file, from GNU gettext.
59196         * lib/uniname/uniname.c: New file, from GNU gettext.
59197         * tests/uniname/test-uninames.sh: New file.
59198         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59199         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59200         * modules/uniname/base: New file.
59201         * modules/uniname/uniname: New file.
59202         * modules/uniname/uniname-tests: New file.
59203         * MODULES.html.sh (Unicode string functions): Add the new modules.
59204
59205 2007-07-06  Bruno Haible  <bruno@clisp.org>
59206
59207         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59208
59209 2007-07-06  Bruno Haible  <bruno@clisp.org>
59210
59211         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59212         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59213         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59214         include <sys/time.h>.
59215         Reported by Eric Blake.
59216
59217 2007-07-06  Eric Blake  <ebb9@byu.net>
59218
59219         Fix testing canonicalize on cygwin.
59220         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59221         Revert patch from 2007-06-19.
59222         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59223         canonicalize module is also in use.
59224         * tests/test-canonicalize.c: New file.
59225         * tests/test-canonicalize.sh: Likewise.
59226         * modules/canonicalize-tests: Likewise.
59227
59228 2007-07-06  Jim Meyering  <jim@meyering.net>
59229
59230         * lib/getugroups.c (getugroups): Detect getgrent failure.
59231         Adjust comment to reflect reality: this function may return -1.
59232
59233 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59234
59235         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59236         the new TP address.
59237         (usage): Fix typo
59238         (gnulib_mk): New variable.
59239
59240 2007-07-05  Jim Meyering  <jim@meyering.net>
59241
59242         Don't let endgrent clobber errno, no matter how improbable.
59243         * lib/getugroups.c (getugroups): Save and restore errno around
59244         endgrent call.
59245
59246         Close the group DB even when failing with 2^31 or more members.
59247         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59248
59249 2007-07-04  Jim Meyering  <jim@meyering.net>
59250
59251         * lib/getugroups.h: New file.
59252         * lib/getugroups.c: Include "getugroups.h".
59253         Remove uses of "register" keyword.
59254         Move local variable, "cp", down into scope where used.
59255         Give "username" parameter the "const" attribute.
59256         * modules/getugroups (Files): Add lib/getugroups.h
59257
59258 2007-07-04  Karl Berry  <karl@gnu.org>
59259
59260         * MODULES.html.sh (func_all_modules): Complete rename of
59261         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59262
59263 2007-07-02  Bruno Haible  <bruno@clisp.org>
59264
59265         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59266         mode, when inttypes.h comes from gnulib.
59267         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59268
59269 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59270
59271         * NEWS: Mention lgpl module name change.
59272
59273         * modules/lgpl-2.1: Renamed from lgpl.
59274
59275         * NEWS: Mention gpl module name change.
59276
59277         * modules/gpl-3.0: New file, based on gpl-2.0.
59278
59279         * modules/gpl-2.0: Renamed from gpl.
59280
59281         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59282         doc/gpl-2.0.texi.
59283
59284 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59285
59286         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59287         #define __STDC_LIMIT_MACROS temporarily while including
59288         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59289         Problem reported by Joel E. Denny in
59290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59291
59292 2007-07-01  Bruno Haible  <bruno@clisp.org>
59293
59294         * lib/unistdio.h: New file.
59295         * lib/unistdio/u-asnprintf.h: New file.
59296         * lib/unistdio/u-asprintf.h: New file.
59297         * lib/unistdio/u-printf-args.c: New file.
59298         * lib/unistdio/u-printf-args.h: New file.
59299         * lib/unistdio/u-printf-parse.h: New file.
59300         * lib/unistdio/u-snprintf.h: New file.
59301         * lib/unistdio/u-sprintf.h: New file.
59302         * lib/unistdio/u-vasprintf.h: New file.
59303         * lib/unistdio/u-vsnprintf.h: New file.
59304         * lib/unistdio/u-vsprintf.h: New file.
59305         * lib/unistdio/ulc-asnprintf.c: New file.
59306         * lib/unistdio/ulc-asprintf.c: New file.
59307         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59308         * lib/unistdio/ulc-printf-parse.c: New file.
59309         * lib/unistdio/ulc-snprintf.c: New file.
59310         * lib/unistdio/ulc-sprintf.c: New file.
59311         * lib/unistdio/ulc-vasnprintf.c: New file.
59312         * lib/unistdio/ulc-vasprintf.c: New file.
59313         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59314         * lib/unistdio/ulc-vsnprintf.c: New file.
59315         * lib/unistdio/ulc-vsprintf.c: New file.
59316         * lib/unistdio/u8-asnprintf.c: New file.
59317         * lib/unistdio/u8-asprintf.c: New file.
59318         * lib/unistdio/u8-printf-parse.c: New file.
59319         * lib/unistdio/u8-snprintf.c: New file.
59320         * lib/unistdio/u8-sprintf.c: New file.
59321         * lib/unistdio/u8-vasnprintf.c: New file.
59322         * lib/unistdio/u8-vasprintf.c: New file.
59323         * lib/unistdio/u8-vsnprintf.c: New file.
59324         * lib/unistdio/u8-vsprintf.c: New file.
59325         * lib/unistdio/u8-u8-asnprintf.c: New file.
59326         * lib/unistdio/u8-u8-asprintf.c: New file.
59327         * lib/unistdio/u8-u8-snprintf.c: New file.
59328         * lib/unistdio/u8-u8-sprintf.c: New file.
59329         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59330         * lib/unistdio/u8-u8-vasprintf.c: New file.
59331         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59332         * lib/unistdio/u8-u8-vsprintf.c: New file.
59333         * lib/unistdio/u16-asnprintf.c: New file.
59334         * lib/unistdio/u16-asprintf.c: New file.
59335         * lib/unistdio/u16-printf-parse.c: New file.
59336         * lib/unistdio/u16-snprintf.c: New file.
59337         * lib/unistdio/u16-sprintf.c: New file.
59338         * lib/unistdio/u16-vasnprintf.c: New file.
59339         * lib/unistdio/u16-vasprintf.c: New file.
59340         * lib/unistdio/u16-vsnprintf.c: New file.
59341         * lib/unistdio/u16-vsprintf.c: New file.
59342         * lib/unistdio/u16-u16-asnprintf.c: New file.
59343         * lib/unistdio/u16-u16-asprintf.c: New file.
59344         * lib/unistdio/u16-u16-snprintf.c: New file.
59345         * lib/unistdio/u16-u16-sprintf.c: New file.
59346         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59347         * lib/unistdio/u16-u16-vasprintf.c: New file.
59348         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59349         * lib/unistdio/u16-u16-vsprintf.c: New file.
59350         * lib/unistdio/u32-asnprintf.c: New file.
59351         * lib/unistdio/u32-asprintf.c: New file.
59352         * lib/unistdio/u32-printf-parse.c: New file.
59353         * lib/unistdio/u32-snprintf.c: New file.
59354         * lib/unistdio/u32-sprintf.c: New file.
59355         * lib/unistdio/u32-vasnprintf.c: New file.
59356         * lib/unistdio/u32-vasprintf.c: New file.
59357         * lib/unistdio/u32-vsnprintf.c: New file.
59358         * lib/unistdio/u32-vsprintf.c: New file.
59359         * lib/unistdio/u32-u32-asnprintf.c: New file.
59360         * lib/unistdio/u32-u32-asprintf.c: New file.
59361         * lib/unistdio/u32-u32-snprintf.c: New file.
59362         * lib/unistdio/u32-u32-sprintf.c: New file.
59363         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59364         * lib/unistdio/u32-u32-vasprintf.c: New file.
59365         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59366         * lib/unistdio/u32-u32-vsprintf.c: New file.
59367         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59368         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59369         * tests/unistdio/test-ulc-printf1.h: New file.
59370         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59371         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59372         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59373         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59374         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59375         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59376         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59377         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59378         * tests/unistdio/test-u8-asnprintf1.c: New file.
59379         * tests/unistdio/test-u8-asnprintf1.h: New file.
59380         * tests/unistdio/test-u8-printf1.h: New file.
59381         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59382         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59383         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59384         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59385         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59386         * tests/unistdio/test-u8-vasprintf1.c: New file.
59387         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59388         * tests/unistdio/test-u8-vsprintf1.c: New file.
59389         * tests/unistdio/test-u16-asnprintf1.c: New file.
59390         * tests/unistdio/test-u16-asnprintf1.h: New file.
59391         * tests/unistdio/test-u16-printf1.h: New file.
59392         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59393         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59394         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59395         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59396         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59397         * tests/unistdio/test-u16-vasprintf1.c: New file.
59398         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59399         * tests/unistdio/test-u16-vsprintf1.c: New file.
59400         * tests/unistdio/test-u32-asnprintf1.c: New file.
59401         * tests/unistdio/test-u32-asnprintf1.h: New file.
59402         * tests/unistdio/test-u32-printf1.h: New file.
59403         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59404         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59405         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59406         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59407         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59408         * tests/unistdio/test-u32-vasprintf1.c: New file.
59409         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59410         * tests/unistdio/test-u32-vsprintf1.c: New file.
59411         * modules/unistdio/base: New file.
59412         * modules/unistdio/u-printf-args: New file.
59413         * modules/unistdio/ulc-asnprintf: New file.
59414         * modules/unistdio/ulc-asprintf: New file.
59415         * modules/unistdio/ulc-fprintf: New file.
59416         * modules/unistdio/ulc-printf-parse: New file.
59417         * modules/unistdio/ulc-snprintf: New file.
59418         * modules/unistdio/ulc-sprintf: New file.
59419         * modules/unistdio/ulc-vasnprintf: New file.
59420         * modules/unistdio/ulc-vasprintf: New file.
59421         * modules/unistdio/ulc-vfprintf: New file.
59422         * modules/unistdio/ulc-vsnprintf: New file.
59423         * modules/unistdio/ulc-vsprintf: New file.
59424         * modules/unistdio/u8-asnprintf: New file.
59425         * modules/unistdio/u8-asprintf: New file.
59426         * modules/unistdio/u8-printf-parse: New file.
59427         * modules/unistdio/u8-snprintf: New file.
59428         * modules/unistdio/u8-sprintf: New file.
59429         * modules/unistdio/u8-vasnprintf: New file.
59430         * modules/unistdio/u8-vasprintf: New file.
59431         * modules/unistdio/u8-vsnprintf: New file.
59432         * modules/unistdio/u8-vsprintf: New file.
59433         * modules/unistdio/u8-u8-asnprintf: New file.
59434         * modules/unistdio/u8-u8-asprintf: New file.
59435         * modules/unistdio/u8-u8-snprintf: New file.
59436         * modules/unistdio/u8-u8-sprintf: New file.
59437         * modules/unistdio/u8-u8-vasnprintf: New file.
59438         * modules/unistdio/u8-u8-vasprintf: New file.
59439         * modules/unistdio/u8-u8-vsnprintf: New file.
59440         * modules/unistdio/u8-u8-vsprintf: New file.
59441         * modules/unistdio/u16-asnprintf: New file.
59442         * modules/unistdio/u16-asprintf: New file.
59443         * modules/unistdio/u16-printf-parse: New file.
59444         * modules/unistdio/u16-snprintf: New file.
59445         * modules/unistdio/u16-sprintf: New file.
59446         * modules/unistdio/u16-vasnprintf: New file.
59447         * modules/unistdio/u16-vasprintf: New file.
59448         * modules/unistdio/u16-vsnprintf: New file.
59449         * modules/unistdio/u16-vsprintf: New file.
59450         * modules/unistdio/u16-u16-asnprintf: New file.
59451         * modules/unistdio/u16-u16-asprintf: New file.
59452         * modules/unistdio/u16-u16-snprintf: New file.
59453         * modules/unistdio/u16-u16-sprintf: New file.
59454         * modules/unistdio/u16-u16-vasnprintf: New file.
59455         * modules/unistdio/u16-u16-vasprintf: New file.
59456         * modules/unistdio/u16-u16-vsnprintf: New file.
59457         * modules/unistdio/u16-u16-vsprintf: New file.
59458         * modules/unistdio/u32-asnprintf: New file.
59459         * modules/unistdio/u32-asprintf: New file.
59460         * modules/unistdio/u32-printf-parse: New file.
59461         * modules/unistdio/u32-snprintf: New file.
59462         * modules/unistdio/u32-sprintf: New file.
59463         * modules/unistdio/u32-vasnprintf: New file.
59464         * modules/unistdio/u32-vasprintf: New file.
59465         * modules/unistdio/u32-vsnprintf: New file.
59466         * modules/unistdio/u32-vsprintf: New file.
59467         * modules/unistdio/u32-u32-asnprintf: New file.
59468         * modules/unistdio/u32-u32-asprintf: New file.
59469         * modules/unistdio/u32-u32-snprintf: New file.
59470         * modules/unistdio/u32-u32-sprintf: New file.
59471         * modules/unistdio/u32-u32-vasnprintf: New file.
59472         * modules/unistdio/u32-u32-vasprintf: New file.
59473         * modules/unistdio/u32-u32-vsnprintf: New file.
59474         * modules/unistdio/u32-u32-vsprintf: New file.
59475         * modules/unistdio/ulc-asnprintf-tests: New file.
59476         * modules/unistdio/ulc-vasnprintf-tests: New file.
59477         * modules/unistdio/ulc-vasprintf-tests: New file.
59478         * modules/unistdio/ulc-vsnprintf-tests: New file.
59479         * modules/unistdio/ulc-vsprintf-tests: New file.
59480         * modules/unistdio/u8-asnprintf-tests: New file.
59481         * modules/unistdio/u8-vasnprintf-tests: New file.
59482         * modules/unistdio/u8-vasprintf-tests: New file.
59483         * modules/unistdio/u8-vsnprintf-tests: New file.
59484         * modules/unistdio/u8-vsprintf-tests: New file.
59485         * modules/unistdio/u16-asnprintf-tests: New file.
59486         * modules/unistdio/u16-vasnprintf-tests: New file.
59487         * modules/unistdio/u16-vasprintf-tests: New file.
59488         * modules/unistdio/u16-vsnprintf-tests: New file.
59489         * modules/unistdio/u16-vsprintf-tests: New file.
59490         * modules/unistdio/u32-asnprintf-tests: New file.
59491         * modules/unistdio/u32-vasnprintf-tests: New file.
59492         * modules/unistdio/u32-vasprintf-tests: New file.
59493         * modules/unistdio/u32-vsnprintf-tests: New file.
59494         * modules/unistdio/u32-vsprintf-tests: New file.
59495         * MODULES.html.sh (Unicode string functions): Add the new modules.
59496
59497 2007-07-01  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/sprintf.c (sprintf): Limit the available length estimation,
59500         to avoid address wraparound.
59501         * lib/vsprintf.c (vsprintf): Likewise.
59502         * modules/sprintf-posix (Dependencies): Add stdint.
59503         * modules/vsprintf-posix (Dependencies): Likewise.
59504
59505 2007-07-01  Bruno Haible  <bruno@clisp.org>
59506
59507         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59508         Windows PATH as well. Conservative double-quoting. Comments.
59509
59510 2007-07-01  Bruno Haible  <bruno@clisp.org>
59511             Eric Blake  <ebb9@byu.net>
59512             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59513
59514         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59515         empty components in $PATH, denoting '.'.
59516
59517 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59518
59519         * gnulib-tool: Fix indentation.
59520         (func_create_megatestdir): Likewise.
59521         Report by Bruno Haible.
59522
59523 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59524
59525         Sync from Automake.
59526         * build-aux/gnupload: Fix shell portability issues with for loops.
59527         Report by Karl Berry.
59528
59529 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59530
59531         * build-aux/maint.mk (POURL): Use translationproject.org.
59532
59533 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59534             Bruno Haible  <bruno@clisp.org>
59535
59536         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59537         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59538         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59539         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59540         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59541
59542 2007-06-27  Bruno Haible  <bruno@clisp.org>
59543
59544         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59545         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59546
59547 2007-06-26  Karl Berry  <karl@gnu.org>
59548
59549         * MODULES.html.sh: remove xreadlink-with-size.
59550
59551 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59552
59553         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59554         method that I hope also handles the double-include problem noted
59555         by Bruno Haible in
59556         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59557
59558 2007-06-23  Bruno Haible  <bruno@clisp.org>
59559
59560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59561         Don't let the 'mostlyclean' target fail if the last subdirectory could
59562         not be removed.
59563         Reported by Karl Berry.
59564
59565 2007-06-23  Bruno Haible  <bruno@clisp.org>
59566
59567         * gnulib-tool (echo): Add a speedier workaround for ksh.
59568         * tests/test-echo.sh: Likewise.
59569
59570 2007-06-23  Bruno Haible  <bruno@clisp.org>
59571
59572         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59573         * tests/test-echo.sh: Likewise.
59574
59575 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59576
59577         * gnulib-tool (IFS): Initialize early, so we don't set it to
59578         empty later.
59579         (self_abspathname): Rewrite algorithm to set it, reindent.
59580         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59581         (func_create_megatestdir): Merge some sed scripts.
59582
59583 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59586         exposed by Sun Studio 11 cc on Solaris 8.
59587
59588 2007-06-22  Bruno Haible  <bruno@clisp.org>
59589
59590         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59591         backslashes.
59592         * tests/test-echo.sh: New file.
59593
59594 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59595
59596         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59597         simplify `sed_replace_build_aux' scripts, they are portable but
59598         echoing them with `echo' is not.
59599         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59600
59601 2007-06-21  Karl Berry  <karl@gnu.org>
59602
59603         * config/srclist.txt: guess we can't handle the licenses via
59604         srclist at the moment.
59605
59606 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59607
59608         * MODULES.html.sh: Add include_next.
59609         * modules/include_next: New file.
59610
59611 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59612
59613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59614         INCLUDE_NEXT.
59615         (gl_CHECK_NEXT_HEADERS): New macro.
59616         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59617         the obsolescent gl_ABSOLUTE_HEADER.
59618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59619         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59620         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59621         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59622         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59623         * m4/math_h.m4 (gl_MATH_H): Likewise.
59624         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59625         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59626         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59627         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59628         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59629         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59630         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59632         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59633         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59635         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59636         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59637         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59638         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59639         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59640         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59641         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59642         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59643         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59644         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59645         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59646         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59647         * lib/float_.h: Likewise.
59648         * lib/inttypes_.h: Likewise.
59649         * lib/math_.h: Likewise.
59650         * lib/search_.h: Likewise.
59651         * lib/signal_.h: Likewise.
59652         * lib/stdint_.h: Likewise.
59653         * lib/stdio_.h: Likewise.
59654         * lib/stdlib_.h: Likewise.
59655         * lib/string_.h: Likewise.
59656         * lib/sys_stat_.h: Likewise.
59657         * lib/sys_time_.h: Likewise.
59658         * lib/time_.h: Likewise.
59659         * lib/unistd_.h: Likewise.
59660         * lib/wchar_.h: Likewise.
59661         * lib/wctype_.h: Likewise.
59662         * lib/dirent_.h: Likewise.
59663         * lib/iconv_.h: Likewise.
59664         * lib/locale_.h: Likewise.
59665         * lib/netinet_in_.h: Likewise.
59666         * lib/sys_select_.h: Likewise.
59667         * lib/sys_socket_.h: Likewise.
59668         * lib/sysexits_.h: Likewise.
59669         * modules/fcntl (Depends-on): Depend on include_next, not
59670         absolute_header.
59671         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59672         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59673         * modules/fchdir: Likewise.
59674         * modules/float: Likewise.
59675         * modules/iconv_open: Likewise.
59676         * modules/inttypes: Likewise.
59677         * modules/locale: Likewise.
59678         * modules/math: Likewise.
59679         * modules/netinet_in: Likewise.
59680         * modules/search: Likewise.
59681         * modules/signal: Likewise.
59682         * modules/stdint: Likewise.
59683         * modules/stdio: Likewise.
59684         * modules/stdlib: Likewise.
59685         * modules/string: Likewise.
59686         * modules/sys_select: Likewise.
59687         * modules/sys_socket: Likewise.
59688         * modules/sys_stat: Likewise.
59689         * modules/sys_time: Likewise.
59690         * modules/sysexits: Likewise.
59691         * modules/time: Likewise.
59692         * modules/unistd: Likewise.
59693         * modules/wchar: Likewise.
59694         * modules/wctype: Likewise.
59695         * modules/sys_stat: Change maintainer to "all".
59696         * modules/unistd: Likewise.
59697
59698 2007-06-20  Karl Berry  <karl@gnu.org>
59699
59700         * config/srclist.txt: track www changes in license files.
59701
59702 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59703
59704         * build-aux/bootstrap: Remove stray dot.
59705         Make sure build_aux settings are honored when linking
59706         gnulib_extra_files.
59707
59708 2007-06-19  Eric Blake  <ebb9@byu.net>
59709
59710         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59711         Allow compilation on cygwin.
59712
59713 2007-06-19  Jim Meyering  <jim@meyering.net>
59714
59715         xreadlink-with-size: Remove module.  No longer used.
59716         Ex-callers now use xreadlink or mreadlink-with-size.
59717         * modules/xreadlink-with-size: Remove module.
59718         * lib/xreadlink-with-size.c: Remove file.
59719         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59720         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59721         just before the function definition *is* accurate.
59722
59723         Eliminate one way canonicalize_filename_mode could exit.
59724         * lib/canonicalize.c (canonicalize_filename_mode):
59725         Use mreadlink_with_size, not xreadlink_with_size.
59726
59727 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         Detect porting problems to FreeBSD/arm, which has time_t wider than
59730         long int.  Original problem reported for GNU diff by Xin Li in
59731         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59732         * modules/getdate (Depends-on): Add intprops, verify.
59733         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59734         is an integer type no wider than long int.
59735
59736 2007-06-18  Jim Meyering  <jim@meyering.net>
59737
59738         New module: mreadlink-with-size.
59739         * MODULES.html.sh: Add mreadlink-with-size.
59740         * modules/mreadlink-with-size: New module
59741         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59742         not xreadlink-with-size.
59743         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59744
59745 2007-06-16  Bruno Haible  <bruno@clisp.org>
59746
59747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59748         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59749         Reported by Gary V. Vaughan <gary@gnu.org>.
59750
59751 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         Revamp lchown so that it lives in unistd.h where it belongs.
59754         * lib/lchown.h: Remove.
59755         * lib/dirchownmod.c: Don't include lib/lchown.h.
59756         * lib/fchownat.c: Likewise.
59757         * lib/openat.c: Likewise.
59758         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59759         does not follow symlinks.
59760         (EOPNOTSUPP): Define if not defined.
59761         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59762         is defined to 0.
59763         (lchown): New decl.
59764         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59765         Do not check for lchown decl.
59766         Set REPLACE_LCHOWN.
59767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59768         REPLACE_LCHOWN.
59769         * modules/chown: Make it clear it follows symlinks.
59770         * modules/lchown: Make it clear it doesn't follow symlinks.
59771         (Files): Remove lib/lchown.h
59772         (Depends-on): Add unistd.
59773         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59774         (Include): Include <unistd.h>, not "lchown.h".
59775         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59776         REPLACE_LCHOWN.
59777
59778 2007-06-15  Jim Meyering  <jim@meyering.net>
59779
59780         Change license (GPL to LGPL) of fsusage and dependents.
59781         * modules/fsusage (License): Change to LGPL.
59782         * modules/full-read (License): Likewise.
59783         * modules/full-write (License): Likewise.
59784         * modules/safe-read (License): Likewise.
59785         * modules/safe-write (License): Likewise.
59786
59787 2007-06-14  Ben Pfaff  <blp@gnu.org>
59788
59789         Missing part of allocsa -> malloca transition.
59790         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59791         gl_MALLOCA.
59792
59793 2007-06-12  Bruno Haible  <bruno@clisp.org>
59794
59795         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59796         to ia64, x86_64, i386.
59797         Reported by Eric Blake.
59798
59799 2007-06-12  Bruno Haible  <bruno@clisp.org>
59800
59801         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59802         cross-compiling to x86_64.
59803
59804 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59807         glitch reported by Ralf Wildenhues in
59808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59809
59810         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59811         Vin Shelton.
59812
59813 2007-06-11  Bruno Haible  <bruno@clisp.org>
59814
59815         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59816         replacement string.
59817         Reported by Eric Blake.
59818
59819 2007-06-10  Bruno Haible  <bruno@clisp.org>
59820
59821         Prepare vasnprintf code for use with Unicode strings.
59822         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59823         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59824         TYPE_U32_STRING.
59825         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59826         a_u32_string variants.
59827         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59828         * lib/printf-args.c: Don't include config.h and the specification
59829         header if PRINTF_FETCHARGS is already defined.
59830         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59831         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59832         TYPE_U16_STRING, TYPE_U32_STRING.
59833         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59834         u16_directive, u16_directives, u32_directive, u32_directives): New
59835         types.
59836         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59837         New declarations.
59838         * lib/printf-parse.c: Don't include config.h and the specification
59839         header if PRINTF_PARSE is already defined. Eliminate the set of
59840         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59841         them now. Include c-ctype.h.
59842         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59843         directive and CHAR_T_ONLY_ASCII.
59844         * lib/vasnprintf.c: Don't include config.h and the specification header
59845         if VASNPRINTF is already defined.
59846         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59847         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59848         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59849         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59850         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59851         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59852         code accordingly.
59853         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59854         pad_ourselves also in this case, with the 'c' and 's' directives, and
59855         with a different notion of "width".
59856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59857
59858 2007-06-10  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/unistr/u32-mbsnlen: New file.
59861         * lib/unistr/u32-mbsnlen.c: New file.
59862
59863         * modules/unistr/u16-mbsnlen: New file.
59864         * lib/unistr/u16-mbsnlen.c: New file.
59865
59866         * modules/unistr/u8-mbsnlen: New file.
59867         * lib/unistr/u8-mbsnlen.c: New file.
59868
59869         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59870         declarations.
59871
59872 2007-06-10  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/string_.h (mbsnlen): New declaration.
59875         * lib/mbsnlen.c: New file.
59876         * m4/mbsnlen.m4: New file.
59877         * modules/mbsnlen: New file.
59878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59879         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59880         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59881
59882 2007-06-10  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59885
59886 2007-06-10  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59889         * lib/mbuiter.h: Likewise.
59890
59891 2007-06-10  Bruno Haible  <bruno@clisp.org>
59892
59893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59894         declaration.
59895
59896 2007-06-10  Karl Berry  <karl@gnu.org>
59897
59898         * config/srclist.txt: remove gettext entries, Bruno prefers
59899         to update individually.
59900
59901 2007-06-10  Bruno Haible  <bruno@clisp.org>
59902
59903         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59904         'maxlen'. Ensure only length + width bytes are allocated, not
59905         length + 1 + width.
59906
59907 2007-06-09  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59910         (CHAR_T): Remove macro.
59911         (VASNPRINTF): Update.
59912
59913 2007-06-09  Bruno Haible  <bruno@clisp.org>
59914
59915         * MODULES.html.sh (Unicode string functions): Add the new modules.
59916
59917         * modules/uniconv/u32-conv-to-enc: New file.
59918         * lib/uniconv/u32-conv-to-enc.c: New file.
59919         * modules/uniconv/u32-conv-to-enc-tests: New file.
59920         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59921
59922         * modules/uniconv/u16-conv-to-enc: New file.
59923         * lib/uniconv/u16-conv-to-enc.c: New file.
59924         * lib/uniconv/u-conv-to-enc.h: New file.
59925         * modules/uniconv/u16-conv-to-enc-tests: New file.
59926         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59927
59928         * modules/uniconv/u8-conv-to-enc: New file.
59929         * lib/uniconv/u8-conv-to-enc.c: New file.
59930         * modules/uniconv/u8-conv-to-enc-tests: New file.
59931         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59932
59933         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59934         u32_conv_to_encoding): New declarations.
59935
59936 2007-06-09  Bruno Haible  <bruno@clisp.org>
59937
59938         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59939
59940 2007-06-09  Bruno Haible  <bruno@clisp.org>
59941
59942         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59943         * modules/malloca: Renamed from modules/allocsa, updated.
59944         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59945         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59946         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59947         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59948         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59949         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59950         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59951         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59952         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59953         * modules/c-strcasestr (Depends-on): Update.
59954         * lib/c-strcasestr.c: Update.
59955         * modules/c-strstr (Depends-on): Update.
59956         * lib/c-strstr.c: Update.
59957         * modules/canonicalize-lgpl (Depends-on): Update.
59958         * lib/canonicalize-lgpl.c: Update.
59959         * modules/clean-temp (Depends-on): Update.
59960         * lib/clean-temp.c: Update.
59961         * modules/csharpcomp (Depends-on): Update.
59962         * lib/csharpcomp.c: Update.
59963         * modules/csharpexec (Depends-on): Update.
59964         * lib/csharpexec.c: Update.
59965         * modules/javacomp (Depends-on): Update.
59966         * lib/javacomp.c: Update.
59967         * modules/javaexec (Depends-on): Update.
59968         * lib/javaexec.c: Update.
59969         * modules/mbscasestr (Depends-on): Update.
59970         * lib/mbscasestr.c: Update.
59971         * modules/mbsstr (Depends-on): Update.
59972         * lib/mbsstr.c: Update.
59973         * modules/setenv (Depends-on): Update.
59974         * lib/setenv.c: Update.
59975         * modules/strcasestr (Depends-on): Update.
59976         * lib/strcasestr.c: Update.
59977         * modules/striconveha (Depends-on): Update.
59978         * lib/striconveha.c: Update.
59979         * modules/relocatable-prog-wrapper (Files): Update.
59980         * lib/relocwrapper.c: Update.
59981         * build-aux/install-reloc: Update.
59982         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59983
59984 2007-06-08  Bruno Haible  <bruno@clisp.org>
59985
59986         Port to uClibc.
59987         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59988         * lib/fpurge.c (fpurge): Likewise.
59989         * lib/freading.c (freading): Likewise.
59990         * lib/fseeko.c (rpl_fseeko): Likewise.
59991         * lib/fseterr.c (fseterr): Likewise.
59992         * lib/fwriting.c (fwriting): Likewise.
59993         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59994
59995 2007-06-08  Bruno Haible  <bruno@clisp.org>
59996
59997         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59998         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59999         * modules/gettext (Files): Add m4/intlmacosx.m4.
60000
60001 2007-06-07  Bruno Haible  <bruno@clisp.org>
60002
60003         * modules/localename-tests: New file.
60004         * tests/test-localename.c: New file.
60005
60006         New module 'localename'.
60007         * lib/localename.h: New file.
60008         * lib/localename.c: New file, from GNU gettext.
60009         * m4/localename.m4: New file.
60010         * modules/localename: New file.
60011
60012 2007-06-07  Bruno Haible  <bruno@clisp.org>
60013
60014         Work around the lack of <wchar.h> on some builds of uClibc.
60015         * doc/headers/wchar.texi: Update.
60016         * lib/wchar_.h: Include <wchar.h> only if it exists.
60017         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60018         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60019         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60020         doesn't exist.
60021         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60022         * modules/mbfile (Depends-on): Add wchar.
60023         * modules/mbiter (Depends-on): Likewise.
60024         * modules/mbuiter (Depends-on): Likewise.
60025         Reported by Simon Josefsson.
60026
60027 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60028
60029         Work around problem reported by Steven M. Schweda in
60030         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60031         Tru64 5.1B with the Compaq compiler environment installed declares
60032         an 'isblank' function but does not define it in the C library.
60033         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60034         * lib/regex_internal.h (isblank): Likewise.
60035         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60036         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60037
60038 2007-06-05  Bruno Haible  <bruno@clisp.org>
60039
60040         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60041         ia64.
60042         * modules/printf-safe: New file.
60043         * modules/fprintf-posix (Depends-on): Add printf-safe.
60044         * modules/printf-posix (Depends-on): Likewise.
60045         * modules/snprintf-posix (Depends-on): Likewise.
60046         * modules/sprintf-posix (Depends-on): Likewise.
60047         * modules/vasnprintf-posix (Depends-on): Likewise.
60048         * modules/vasprintf-posix (Depends-on): Likewise.
60049         * modules/vfprintf-posix (Depends-on): Likewise.
60050         * modules/vprintf-posix (Depends-on): Likewise.
60051         * modules/vsnprintf-posix (Depends-on): Likewise.
60052         * modules/vsprintf-posix (Depends-on): Likewise.
60053         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60054         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60055         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60056         "no" on i386, x86_64, ia64.
60057         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60058         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60059         on i386, x86_64, ia64.
60060         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60061         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60062         on i386, x86_64, ia64.
60063         * tests/test-vasnprintf-posix.c: Include float.h.
60064         (LDBL80_WORDS): New macro.
60065         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60066         on i386, x86_64, ia64.
60067         * tests/test-vasprintf-posix.c: Include float.h.
60068         (LDBL80_WORDS): New macro.
60069         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60070         on i386, x86_64, ia64.
60071         * tests/test-snprintf-posix.c: Include float.h.
60072         * tests/test-sprintf-posix.c: Likewise.
60073         * tests/test-vsnprintf-posix.c: Likewise.
60074         * tests/test-vsprintf-posix.c: Likewise.
60075
60076 2007-06-05  Bruno Haible  <bruno@clisp.org>
60077
60078         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60080         non-IEEE numbers on i386, x86_64, ia64.
60081         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60082         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60083         * tests/test-isnanl.h: Include float.h.
60084         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60085
60086 2007-06-05  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60089         also the %a / %A. Handle the %a / %A code before this extra handling.
60090
60091 2007-06-05  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60094         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60095
60096 2007-06-05  Bruno Haible  <bruno@clisp.org>
60097
60098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60099         typo in variable name.
60100
60101 2007-06-05  Eric Blake  <ebb9@byu.net>
60102
60103         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60104         Reported by Simon Josefsson.
60105
60106 2007-06-04  Bruno Haible  <bruno@clisp.org>
60107
60108         Avoid test failures on some PowerPC platforms.
60109         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60110         Define differently for PowerPC.
60111         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60112         Reported by Gary V. Vaughan <gary@gnu.org>.
60113
60114 2007-06-02  Bruno Haible  <bruno@clisp.org>
60115
60116         Fix test-stdint failure on FreeBSD/ia64.
60117         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60118         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60119         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60120         * doc/headers/stdint.texi: Update.
60121
60122 2007-06-01  Bruno Haible  <bruno@clisp.org>
60123
60124         * tests/test-binary-io.c (main): Pass a third argument to open().
60125         Reported by Gary V. Vaughan <gary@gnu.org>.
60126
60127 2007-06-01  Bruno Haible  <bruno@clisp.org>
60128
60129         * doc/functions/frexpl.texi: Update for mingw.
60130
60131 2007-06-01  Bruno Haible  <bruno@clisp.org>
60132
60133         * tests/test-lseek.c (main): Disable test of errno for invalid third
60134         argument.
60135         * doc/functions/lseek.texi: Update.
60136         Reported by Gary V. Vaughan <gary@gnu.org>.
60137
60138 2007-05-28  Bruno Haible  <bruno@clisp.org>
60139
60140         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60141
60142 2007-05-31  Eric Blake  <ebb9@byu.net>
60143
60144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60145         cross compiling.
60146
60147 2007-05-30  Eric Blake  <ebb9@byu.net>
60148         and Bruno Haible  <bruno@clisp.org>
60149
60150         Work around mingw test failures exposed by m4-1.4.9b.
60151         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60152         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60153         moment.
60154
60155 2007-05-30  Bruno Haible  <bruno@clisp.org>
60156
60157         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60158         assuming that they are closed. Needed on HP-UX 11.
60159
60160 2007-05-29  Bruno Haible  <bruno@clisp.org>
60161
60162         Fix a problem with #include_next.
60163         * lib/dirent_.h: Split the double-inclusion guard.
60164         * lib/fcntl_.h: Likewise.
60165         * lib/float_.h: Likewise.
60166         * lib/iconv_.h: Likewise.
60167         * lib/inttypes_.h: Likewise.
60168         * lib/locale_.h: Likewise.
60169         * lib/math_.h: Likewise.
60170         * lib/netinet_in_.h: Likewise.
60171         * lib/search_.h: Likewise.
60172         * lib/signal_.h: Likewise.
60173         * lib/stdint_.h: Likewise.
60174         * lib/stdio_.h: Likewise.
60175         * lib/stdlib_.h: Likewise.
60176         * lib/string_.h: Likewise.
60177         * lib/sys_select_.h: Likewise.
60178         * lib/sys_socket_.h: Likewise.
60179         * lib/sys_stat_.h: Likewise.
60180         * lib/sys_time_.h: Likewise.
60181         * lib/sysexits_.h: Likewise.
60182         * lib/time_.h: Likewise.
60183         * lib/unistd_.h: Likewise.
60184         * lib/wchar_.h: Likewise.
60185         * lib/wctype_.h: Likewise.
60186
60187 2007-05-29  Bruno Haible  <bruno@clisp.org>
60188
60189         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60190         for the moment.
60191
60192 2007-05-29  Bruno Haible  <bruno@clisp.org>
60193
60194         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60195         invocation.
60196         Reported by Eric Blake.
60197
60198 2007-05-29  Bruno Haible  <bruno@clisp.org>
60199
60200         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60201         compiling case.
60202
60203 2007-05-29  Eric Blake  <ebb9@byu.net>
60204             Bruno Haible  <bruno@clisp.org>
60205
60206         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60207         cross compiles.
60208
60209 2007-05-28  Eric Blake  <ebb9@byu.net>
60210
60211         * modules/closein-tests (test_closein_LDADD): Support test on
60212         cygwin with libtool.
60213
60214 2007-05-28  Bruno Haible  <bruno@clisp.org>
60215
60216         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60217         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60218         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60219         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60220         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60221         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60222         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60223         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60224         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60225
60226 2007-05-28  Eric Blake  <ebb9@byu.net>
60227
60228         Unconditionally include <config.h> in unit tests.
60229         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60230         * tests/test-allocsa.c, tests/test-arcfour.c,
60231         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60232         tests/test-array_list.c, tests/test-array_oset.c,
60233         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60234         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60235         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60236         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60237         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60238         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60239         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60240         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60241         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60242         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60243         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60244         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60245         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60246         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60247         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60248         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60249         test-md5.c, test-memmem.c, test-printf-posix.c,
60250         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60251         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60252         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60253         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60254         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60255         test-vasnprintf-posix2.c, test-vasnprintf.c,
60256         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60257         test-vfprintf-posix.c, test-vprintf-posix.c,
60258         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60259         test-xvasprintf.c: Likewise.
60260
60261 2007-05-28  Bruno Haible  <bruno@clisp.org>
60262
60263         * gnulib-tool (func_import): Remember the --with-tests command-line
60264         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60265         Reported by Eric Blake.
60266
60267 2007-05-28  Bruno Haible  <bruno@clisp.org>
60268
60269         * modules/ftell-tests: New file.
60270         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60271         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60272
60273         * lib/ftell.c: New file.
60274         * modules/ftell: New file.
60275         * m4/ftell.m4: New file.
60276         * doc/functions/ftell.texi: Update.
60277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60278         REPLACE_FTELL.
60279         * lib/stdio_.h (rpl_ftell): New declaration.
60280         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60281         REPLACE_FTELL.
60282
60283 2007-05-28  Eric Blake  <ebb9@byu.net>
60284
60285         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60286
60287 2007-05-28  Bruno Haible  <bruno@clisp.org>
60288
60289         * modules/fseek-tests: New file.
60290         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60291         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60292
60293         * lib/fseek.c: New file.
60294         * modules/fseek: New file.
60295         * m4/fseek.m4: New file.
60296         * doc/functions/fseek.texi: Update.
60297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60298         REPLACE_FSEEK.
60299         * lib/stdio_.h (rpl_fseek): New declaration.
60300         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60301         REPLACE_FSEEK.
60302
60303 2007-05-28  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/stdio_.h (fflush): More comments.
60306
60307 2007-05-28  Bruno Haible  <bruno@clisp.org>
60308
60309         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60310         runtime test.
60311
60312 2007-05-28  Eric Blake  <ebb9@byu.net>
60313
60314         Improve lseek module.
60315         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60316         * lib/unistd_.h (lseek): Scale back link warning message.
60317         * tests/test-lseek.c: Beef up test.
60318         * tests/test-lseek.sh: Exercise more facets of lseek.
60319         Reported by Bruno Haible.
60320
60321 2007-05-28  Bruno Haible  <bruno@clisp.org>
60322
60323         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60324         to define.
60325
60326 2007-05-27  Bruno Haible  <bruno@clisp.org>
60327
60328         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60329
60330 2007-05-27  Bruno Haible  <bruno@clisp.org>
60331
60332         * modules/openmp: New file.
60333         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60334         Noah Misch.
60335
60336 2007-05-26  Bruno Haible  <bruno@clisp.org>
60337
60338         * modules/chdir-long (Depends-on): Add fchdir.
60339         * modules/chdir-safer (Depends-on): Likewise.
60340         * modules/fts (Depends-on): Likewise.
60341         * modules/fts-lgpl (Depends-on): Likewise.
60342         * modules/openat (Depends-on): Likewise.
60343         * modules/savewd (Depends-on): Likewise.
60344
60345 2007-05-24  Eric Blake  <ebb9@byu.net>
60346
60347         Fix lseek on mingw.
60348         * modules/lseek: New module.
60349         * m4/lseek.m4: New file.
60350         * lib/lseek.c: New file.
60351         * modules/lseek-tests: New file.
60352         * tests/test-lseek.c: New file.
60353         * tests/test-lseek.sh: New file.
60354         * MODULES.html.sh: Document lseek module.
60355         * modules/fflush (Depends-on): Add lseek, fseeko.
60356         * modules/fseeko (Depends-on): Likewise.
60357         * modules/ftello (Depends-on): Likewise.
60358         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60359         broken.
60360         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60361         broken.
60362         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60363         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60364         * lib/ftello.c (rpl_ftello): Likewise.
60365         * tests/test-fseeko.c (main): Test this.
60366         * tests/test-fseeko.sh: Likewise.
60367         * tests/test-ftello.c (main): Likewise.
60368         * tests/test-ftello.sh: Likewise.
60369         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60370         implies replacing fseek.
60371         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60372         HAVE_FTELLO.
60373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60374         * modules/unistd (Makefile.am): Likewise.
60375         * lib/unistd_.h (lseek): Declare a replacement.
60376         * doc/functions/lseek.texi (lseek): Document this fix.
60377         * doc/functions/fseek.texi (fseek): Likewise.
60378         * doc/functions/ftell.texi (ftell): Likewise.
60379
60380 2007-05-24  Bruno Haible  <bruno@clisp.org>
60381
60382         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60383         in the printed representation of a NaN.
60384         * tests/test-vasprintf-posix.c (test_function): Likewise.
60385         * tests/test-snprintf-posix.h (test_function): Likewise.
60386         * tests/test-sprintf-posix.h (test_function): Likewise.
60387         Reported by Eric Blake.
60388
60389 2007-05-23  Eric Blake  <ebb9@byu.net>
60390
60391         Fix fseeko/ftello on cygwin 1.5.24.
60392         * doc/functions/fseeko.texi (fseeko): Document the fix.
60393         * doc/functions/ftello.texi (ftello): Document the fix.
60394         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60395         * doc/functions/stdout.text (stdout): New file.
60396         * doc/functions/stderr.text (stderr): New file.
60397         * doc/gnulib.texi (Function Substitutes): Use new files.
60398         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60399         prior to 1.7.0.
60400         * tests/test-ftello.c (main): Likewise for ftello.
60401         * tests/test-fseeko.sh: New file.
60402         * tests/test-ftello.sh: New file.
60403         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60404         with seekable stdin.
60405         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60406         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60407         (gl_REPLACE_FSEEKO): New macro.
60408         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60409         * modules/fseeko (Files): Distribute fseeko.c.
60410         * modules/ftello (Files): Distribute ftello.c.
60411         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60412         mode.
60413         * lib/ftello.c (rpl_ftello): New file.
60414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60415         fseeko, ftello.
60416         (gl_STDIN_LARGE_OFFSET): New macro.
60417         * modules/stdio (Makefile.am): Perform the replacement.
60418         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60419
60420 2007-05-23  Bruno Haible  <bruno@clisp.org>
60421
60422         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60423         GNULIB_POSIXCHECK is defined.
60424
60425 2007-05-21  Bruno Haible  <bruno@clisp.org>
60426
60427         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60428         Check also the output for NaN arguments. When cross-compiling, guess
60429         no on IRIX.
60430         * lib/vasnprintf.c: Update comments.
60431         * tests/test-vasnprintf-posix.c (strisnan): New function.
60432         (test_function): Use it.
60433         * tests/test-vasprintf-posix.c (strisnan): New function.
60434         (test_function): Use it.
60435         * tests/test-snprintf-posix.h (strisnan): New function.
60436         (test_function): Use it.
60437         * tests/test-sprintf-posix.h (strisnan): New function.
60438         (test_function): Use it.
60439         Reported by Eric Blake.
60440
60441 2007-05-20  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60444         numbers that fails on BeOS.
60445         * doc/functions/frexpl.texi: Update.
60446
60447 2007-05-20  Jim Meyering  <jim@meyering.net>
60448
60449         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60450         forced upon us by glibc-2.6.
60451
60452 2007-05-20  Bruno Haible  <bruno@clisp.org>
60453
60454         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60455         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60456         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60457         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60458         NEED_PRINTF_INFINITE.
60459         (is_infinitel): New function.
60460         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60462         gl_PREREQ_VASNPRINTF_INFINITE.
60463         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60465         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60466         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60467         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60468         gl_PREREQ_VASNPRINTF_INFINITE.
60469         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60475         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60476         * doc/functions/fprintf.texi: Update.
60477         * doc/functions/printf.texi: Update.
60478         * doc/functions/snprintf.texi: Update.
60479         * doc/functions/sprintf.texi: Update.
60480         * doc/functions/vfprintf.texi: Update.
60481         * doc/functions/vprintf.texi: Update.
60482         * doc/functions/vsnprintf.texi: Update.
60483         * doc/functions/vsprintf.texi: Update.
60484
60485 2007-05-20  Bruno Haible  <bruno@clisp.org>
60486
60487         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60488         was not found in libc.
60489         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60490
60491 2007-05-20  Bruno Haible  <bruno@clisp.org>
60492
60493         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60494         printed as "-nan" instead of "nan".
60495         * tests/test-vasprintf-posix.c (test_function): Likewise.
60496         * tests/test-snprintf-posix.h (test_function): Likewise.
60497         * tests/test-sprintf-posix.h (test_function): Likewise.
60498         Needed for HP-UX 11.
60499
60500 2007-05-20  Jim Meyering  <jim@meyering.net>
60501
60502         Fix buggy test for the fchownat-deref bug.
60503         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60504         symlink required for the run-test.  Without it, this test would
60505         always declare that fchownat doesn't work, and client code would
60506         unnecessarily use the replacement function with fixed libc.
60507         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60508         Reported by Greg Schafer.
60509
60510 2007-05-19  Bruno Haible  <bruno@clisp.org>
60511
60512         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60513         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60514         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60515         Needed for IRIX 6.5 and Solaris 2.5.1.
60516
60517 2007-05-19  Bruno Haible  <bruno@clisp.org>
60518
60519         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60520         (test_function): Skip tests involving -0.0 on platforms where
60521         -0.0 = 0.0.
60522         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60523         (test_function): Skip tests involving -0.0 on platforms where
60524         -0.0 = 0.0.
60525         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60526         (test_function): Skip tests involving -0.0 on platforms where
60527         -0.0 = 0.0.
60528         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60529         (test_function): Skip tests involving -0.0 on platforms where
60530         -0.0 = 0.0.
60531         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60532         tests.
60533         * tests/test-printf-posix.h (test_function): Likewise.
60534         * tests/test-printf-posix.output: Remove all -0.0 related results.
60535         Needed for IRIX 6.5.
60536
60537 2007-05-19  Bruno Haible  <bruno@clisp.org>
60538
60539         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60540         printed as "nan0x7fffffff" instead of "nan".
60541         * tests/test-vasprintf-posix.c (test_function): Likewise.
60542         * tests/test-snprintf-posix.h (test_function): Likewise.
60543         * tests/test-sprintf-posix.h (test_function): Likewise.
60544         * tests/test-fprintf-posix.h (NaN): Remove macro.
60545         (test_function): Remove all NaN related tests.
60546         * tests/test-printf-posix.h (NaN): Remove macro.
60547         (test_function): Remove all NaN related tests.
60548         * tests/test-printf-posix.output: Remove all NaN related results.
60549         Needed for IRIX 6.5.
60550
60551 2007-05-19  Bruno Haible  <bruno@clisp.org>
60552
60553         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60555
60556 2007-05-19  Bruno Haible  <bruno@clisp.org>
60557
60558         * lib/float_.h: New file.
60559         * m4/float_h.m4: New file.
60560         * modules/float: New file.
60561         * modules/isnanl (Dependencies): Add float.
60562         * modules/isnanl-nolibm (Dependencies): Likewise.
60563         * modules/mathl (Dependencies): Likewise.
60564         * modules/printf-frexpl (Dependencies): Likewise.
60565         * modules/signbit (Dependencies): Likewise.
60566         * modules/vasnprintf (Dependencies): Likewise.
60567         * doc/headers/float.texi: Update.
60568
60569 2007-05-19  Jim Meyering  <jim@meyering.net>
60570
60571         * lib/utimens.c (gl_futimens): Rename from futimens,
60572         now that glibc-2.6 declares futimens.
60573         * lib/utimens.h: Likewise.
60574
60575 2007-05-19  Bruno Haible  <bruno@clisp.org>
60576
60577         Avoid test failures on mingw.
60578         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60579         * tests/test-printf-posix.sh: Likewise.
60580         * tests/test-vfprintf-posix.sh: Likewise.
60581         * tests/test-vprintf-posix.sh: Likewise.
60582
60583 2007-05-19  Bruno Haible  <bruno@clisp.org>
60584
60585         Fix *printf result for NaN, Inf, -0.0 on mingw.
60586         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60587         * lib/vasnprintf.c: Include math.h and isnan.h.
60588         (is_infinite_or_zero): New function.
60589         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60590         values in the %f, %F, %e, %E, %g, %G directives.
60591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60593         gl_PRINTF_INFINITE and test its result. Invoke
60594         gl_PREREQ_VASNPRINTF_INFINITE.
60595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60602         * doc/functions/fprintf.texi: Update.
60603         * doc/functions/printf.texi: Update.
60604         * doc/functions/snprintf.texi: Update.
60605         * doc/functions/sprintf.texi: Update.
60606         * doc/functions/vfprintf.texi: Update.
60607         * doc/functions/vprintf.texi: Update.
60608         * doc/functions/vsnprintf.texi: Update.
60609         * doc/functions/vsprintf.texi: Update.
60610
60611 2007-05-19  Bruno Haible  <bruno@clisp.org>
60612
60613         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60614         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60615         Instead of multiplying with 10^k, set extra_zeroes to k.
60616         (scale10_round_long_double): Remove function.
60617
60618 2007-05-18  Bruno Haible  <bruno@clisp.org>
60619
60620         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60621         introduced on 2007-05-06.
60622
60623 2007-05-18  Bruno Haible  <bruno@clisp.org>
60624
60625         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60626         %g directives.
60627         * tests/test-vasprintf-posix.c (test_function): Likewise.
60628         * tests/test-snprintf-posix.h (test_function): Likewise.
60629         * tests/test-sprintf-posix.h (test_function): Likewise.
60630
60631 2007-05-18  Bruno Haible  <bruno@clisp.org>
60632
60633         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60634         (strmatch): New function.
60635         (test_function): Test the %f directive on numbers of various exponents.
60636         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60637         (strmatch): New function.
60638         (test_function): Test the %f directive on numbers of various exponents.
60639         * tests/test-snprintf-posix.h (strmatch): New function.
60640         (test_function): Test the %f directive on numbers of various exponents.
60641         * tests/test-sprintf-posix.h (strmatch): New function.
60642         (test_function): Test the %f directive on numbers of various exponents.
60643         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60644         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60645         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60646         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60647
60648 2007-05-18  Bruno Haible  <bruno@clisp.org>
60649
60650         Add support for 'long double' number output.
60651         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60652         * lib/vasnprintf.c: Include math.h and float+.h.
60653         (mp_limb_t): New type.
60654         (GMP_LIMB_BITS): New macro.
60655         (mp_twolimb_t): New type.
60656         (GMP_TWOLIMB_BITS): New macro.
60657         (mpn_t): New type.
60658         (multiply, divide, convert_to_decimal, decode_long_double,
60659         scale10_round_long_double, scale10_round_decimal_long_double,
60660         floorlog10l): New functions.
60661         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60662         for the %f, %F, %e, %E, %g, %G directives.
60663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60665         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60666         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60674         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60675         * modules/snprintf-posix (Depends-on): Likewise.
60676         * modules/sprintf-posix (Depends-on): Likewise.
60677         * modules/vasnprintf-posix (Depends-on): Likewise.
60678         * modules/vasprintf-posix (Depends-on): Likewise.
60679         * modules/vfprintf-posix (Depends-on): Likewise.
60680         * modules/vsnprintf-posix (Depends-on): Likewise.
60681         * modules/vsprintf-posix (Depends-on): Likewise.
60682         * modules/vasnprintf (Files): Add lib/float+.h.
60683         * doc/functions/fprintf.texi: Update.
60684         * doc/functions/printf.texi: Update.
60685         * doc/functions/snprintf.texi: Update.
60686         * doc/functions/sprintf.texi: Update.
60687         * doc/functions/vfprintf.texi: Update.
60688         * doc/functions/vprintf.texi: Update.
60689         * doc/functions/vsnprintf.texi: Update.
60690         * doc/functions/vsprintf.texi: Update.
60691
60692 2007-05-18  Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60695
60696 2007-05-18  Bruno Haible  <bruno@clisp.org>
60697
60698         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60699         for printing 64-bit integers. Needed for mingw.
60700
60701 2007-05-18  Bruno Haible  <bruno@clisp.org>
60702
60703         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60704         gl_FUNC_FREXPL_WORKS.
60705         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60706
60707 2007-05-18  Bruno Haible  <bruno@clisp.org>
60708
60709         * modules/frexpl-nolibm-tests: New file.
60710
60711         * modules/frexpl-nolibm: New file.
60712         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60713
60714 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60717         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60718         GCC 4.2, which otherwise issues a lot of warnings.
60719         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60720         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60721         Likewise.
60722         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60723         * modules/iconv_open (iconv.h): Likewise.
60724         * modules/locale (locale.h): Likewise.
60725         * modules/netinet_in (netinet/in.h): Likewise.
60726         * modules/sys_select (sys_select.h): Likewise.
60727         * modules/sys_socket (sys/socket.h): Likewise.
60728         * modules/sys_stat (sys/stat.h): Likewise.
60729         * modules/sysexits (sysexits.h): Likewise.
60730         * modules/unistd (unistd.h): Likewise.
60731
60732 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60733
60734         * modules/closein-tests (Makefile.am): Distribute
60735         `test-closein.sh'.
60736
60737 2007-05-17  Bruno Haible  <bruno@clisp.org>
60738
60739         * tests/test-printf-posix.output: Renamed from
60740         tests/test-fprintf-posix.out.
60741         * modules/fprintf-posix-tests: Update.
60742         * modules/printf-posix-tests: Update.
60743         * modules/vfprintf-posix-tests: Update.
60744         * modules/vprintf-posix-tests: Update.
60745         * tests/test-fprintf-posix.sh: Update.
60746         * tests/test-printf-posix.sh: Update.
60747         * tests/test-vfprintf-posix.sh: Update.
60748         * tests/test-vprintf-posix.sh: Update.
60749         Reported by Ralf Wildenhues.
60750
60751 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60752
60753         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60754         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60755         GCC 4.2, which otherwise issues a lot of warnings.
60756         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60757         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60758         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60759         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60760         it should no longer be needed.
60761         * lib/string_.h: Likewise.
60762         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60763         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60764         * modules/inttypes (inttypes.h): Likewise.
60765         * modules/math (math.h): Likewise.
60766         * modules/search (search.h): Likewise.
60767         * modules/signal (signal.h): Likewise.
60768         * modules/stdint (stdint.h): Likewise.
60769         * modules/stdio (stdio.h): Likewise.
60770         * modules/stdlib (stdlib.h): Likewise.
60771         * modules/string (string.h): Likewise.
60772         * modules/sys_time (sys/time.h): Likewise.
60773         * modules/time (time.h): Likewise.
60774         * modules/wchar (wchar.h): Likewise.
60775         * modules/wctype (wtype.h): Likewise.
60776
60777 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60778
60779         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60780
60781 2007-05-13  Bruno Haible  <bruno@clisp.org>
60782
60783         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60784         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60785         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60786         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60787         (gl_PREREQ_STRTOK_R): Don't require it here.
60788
60789 2007-05-13  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60792         when used in C++ mode.
60793
60794 2007-05-12  Bruno Haible  <bruno@clisp.org>
60795
60796         * lib/linebuffer.h: Tweak doc.
60797         * lib/linebuffer.c: Likewise.
60798
60799 2007-05-12  James Youngman  <jay@gnu.org>
60800
60801         * lib/linebuffer.c (readlinebuffer_delim): New function,
60802         like readlinebuffer, but use a caller-specified delimiter.
60803         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60804         as the delimiter.
60805         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60806
60807 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60808
60809         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60810         * modules/openat (Files): Remove openat-die.c.
60811         (Depends-on): Add openat-die.
60812         * modules/openat-die: New module.
60813
60814 2007-05-06  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60817         Update with info about Cygwin.
60818         * doc/functions/fprintf.texi: Update.
60819         * doc/functions/printf.texi: Update.
60820         * doc/functions/snprintf.texi: Update.
60821         * doc/functions/sprintf.texi: Update.
60822         * doc/functions/vfprintf.texi: Update.
60823         * doc/functions/vprintf.texi: Update.
60824         * doc/functions/vsnprintf.texi: Update.
60825         * doc/functions/vsprintf.texi: Update.
60826         Reported by Eric Blake.
60827
60828 2007-05-06  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60831         padding ourselves for the floating-point directives.
60832         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60835         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60836         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60844         * tests/test-snprintf-posix.h (test_function): Also check the width
60845         and some flags in the %f directive.
60846         * tests/test-sprintf-posix.h (test_function): Likewise.
60847         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60848         * tests/test-vasprintf-posix.c (test_function): Likewise.
60849         * doc/functions/fprintf.texi: Update.
60850         * doc/functions/printf.texi: Update.
60851         * doc/functions/snprintf.texi: Update.
60852         * doc/functions/sprintf.texi: Update.
60853         * doc/functions/vfprintf.texi: Update.
60854         * doc/functions/vprintf.texi: Update.
60855         * doc/functions/vsnprintf.texi: Update.
60856         * doc/functions/vsprintf.texi: Update.
60857
60858 2007-05-06  Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60861         pass the ' flag character to sprintf or snprintf.
60862         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60865         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60866         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60870         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60874         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60875         flag.
60876         * tests/test-sprintf-posix.h (test_function): Likewise.
60877         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60878         * tests/test-vasprintf-posix.c (test_function): Likewise.
60879         * doc/functions/fprintf.texi: Update.
60880         * doc/functions/printf.texi: Update.
60881         * doc/functions/snprintf.texi: Update.
60882         * doc/functions/sprintf.texi: Update.
60883         * doc/functions/vfprintf.texi: Update.
60884         * doc/functions/vprintf.texi: Update.
60885         * doc/functions/vsnprintf.texi: Update.
60886         * doc/functions/vsprintf.texi: Update.
60887
60888 2007-05-01  Bruno Haible  <bruno@clisp.org>
60889
60890         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60891
60892 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60893
60894         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60895         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60896
60897 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60898
60899         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60900         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60901         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60902
60903 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60904
60905         * lib/argp-help.c (struct hol_entry): New member `ord'.
60906         (HOL_ENTRY_PTRCMP): Use ord for comparison
60907         (hol_sort): Initialize ord.
60908
60909 2007-05-01  Bruno Haible  <bruno@clisp.org>
60910
60911         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60912         Reported by Eric Blake.
60913         * doc/gnulib.texi (Function Substitutes): Update.
60914
60915 2007-05-01  Bruno Haible  <bruno@clisp.org>
60916
60917         * doc/functions.texi: Remove file, now redundant through
60918         doc/functions/*.texi.
60919
60920 2007-05-01  Bruno Haible  <bruno@clisp.org>
60921
60922         * modules/argp (Depends-on): Add sleep.
60923
60924 2007-05-01  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/sleep-tests: New file.
60927         * tests/test-sleep.c: New file.
60928
60929         * modules/sleep: New file.
60930         * lib/sleep.c: New file.
60931         * m4/sleep.m4: New file.
60932         * lib/unistd_.h (sleep): New declaration.
60933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60934         HAVE_SLEEP.
60935         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60936         * doc/functions/sleep.texi: Document the sleep module.
60937
60938 2007-05-01  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/sigprocmask.h: Remove file.
60941         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60942         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60943         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60944         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60945         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60946         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60947         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60948         HAVE_SIGSET_T as a shell variable.
60949         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60950         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60951         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60952         (Depends-on): Add signal. Remove verify.
60953         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60954         (Include): Mention <signal.h> instead of sigprocmask.h.
60955         * NEWS: Mention the change.
60956         * lib/fatal-signal.c: Don't include sigprocmask.h.
60957
60958 2007-05-01  Bruno Haible  <bruno@clisp.org>
60959
60960         * modules/signal: New file.
60961         * lib/signal_.h: New file.
60962         * m4/signal_h.m4: New file.
60963
60964 2007-05-01  Bruno Haible  <bruno@clisp.org>
60965
60966         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60967         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60968         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60969         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60970
60971 2007-05-01  Bruno Haible  <bruno@clisp.org>
60972
60973         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60974         configure time.
60975         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60976         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60977         * modules/sys_stat (Makefile.am): Substitute their values into
60978         sys/stat.h.
60979
60980 2007-05-01  Bruno Haible  <bruno@clisp.org>
60981
60982         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60983         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60984         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60985
60986 2007-05-01  Bruno Haible  <bruno@clisp.org>
60987
60988         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60989         'assert' module here.
60990
60991 2007-05-01  Bruno Haible  <bruno@clisp.org>
60992
60993         * doc/functions/*.texi: New files.
60994         * doc/functions/google-ranking.txt: New file.
60995         * doc/gnulib.texi (Function Substitutes): New chapter.
60996         (ctime, inet_ntoa): Remove sections.
60997         * doc/ctime.texi: Remove file.
60998         * doc/inet_ntoa.texi: Remove file.
60999         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61000         dependencies.
61001         (%.info): New rule, specifying a --reference-limit.
61002
61003 2007-05-01  Bruno Haible  <bruno@clisp.org>
61004
61005         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61006
61007 2007-05-01  Bruno Haible  <bruno@clisp.org>
61008
61009         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61010         the portability of 'mkdir' to mingw systems.
61011
61012 2007-05-01  Bruno Haible  <bruno@clisp.org>
61013
61014         * doc/headers/google-ranking.txt: New file.
61015
61016 2007-04-30  Eric Blake  <ebb9@byu.net>
61017
61018         Prefer fseeko to fseek.
61019         * modules/getpass (Depends-on): Add fseeko.
61020         * lib/getpass.c (getpass): Use fseeko, not fseek.
61021
61022 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61023
61024         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61025         assumes the sorting is stable, while most qsort implementations
61026         are not.  Use argument addresses to ensure they never compare as
61027         equal.
61028
61029         * tests/test-argp-2.sh (usage-indent test): Fix output
61030         (func_compare): Restore diff options
61031         * tests/test-argp.c: Restore #include "progname.h"
61032
61033 2007-04-29  Bruno Haible  <bruno@clisp.org>
61034
61035         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61037         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61039         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61040         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61041         (TESTS, check_PROGRAMS): Add test-snprintf.
61042         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61043         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61044         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61045         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61046         assertions that fail on HP-UX, OSF/1, or IRIX.
61047         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61048
61049 2007-04-29  Bruno Haible  <bruno@clisp.org>
61050
61051         * MODULES.html.sh (posix_functions): Remove 'contents'.
61052
61053 2007-04-29  Karl Berry  <karl@gnu.org>
61054
61055         * config/srclist.txt (gendocs_template_min): new entry.
61056
61057 2007-04-29  Bruno Haible  <bruno@clisp.org>
61058
61059         Work around fpurge bug on BSD systems.
61060         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61061         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61062         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61063         fpurge to rpl_fpurge if the system already has this function.
61064         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61065         the case where the system already has this function. Correct invariants
61066         on BSD systems.
61067         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61068         BSD systems.
61069
61070 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61071
61072         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61073         proposed by Sven Verdoolaege.
61074
61075         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61076         options.
61077         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61078         (usage and help tests): Update
61079
61080 2007-04-29  Bruno Haible  <bruno@clisp.org>
61081
61082         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61083         Print more information in case of failure. Disable a test on BeOS.
61084
61085 2007-04-29  Bruno Haible  <bruno@clisp.org>
61086
61087         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61088         This helps debugging on systems on which no gdb is available.
61089
61090 2007-04-29  Bruno Haible  <bruno@clisp.org>
61091
61092         * lib/freading.h: Improve comments.
61093         * lib/fwriting.h: Likewise.
61094         * tests/test-freading.c (main): Don't check freading immediately after
61095         repositioning. Needed for glibc.
61096
61097 2007-04-29  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/freading.c (freading): Trivial simplification.
61100
61101 2007-04-28  Bruno Haible  <bruno@clisp.org>
61102
61103         * tests/test-fwriting.c (main): Also test the interaction between
61104         fflush and fwriting.
61105         * modules/fwriting-tests (Depends-on): Add fflush.
61106
61107         * tests/test-freading.c (main): Also test the interaction between
61108         fflush and freading.
61109         * modules/freading-tests (Depends-on): Add fflush.
61110
61111 2007-04-28  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61114         fseeko and ftello.
61115         Suggested by Eric Blake.
61116
61117 2007-04-28  Jim Meyering  <jim@meyering.net>
61118
61119         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61120         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61121         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61122
61123 2007-04-27  Eric Blake  <ebb9@byu.net>
61124
61125         * doc/headers/assert.texi (assert.h): Document assert module use.
61126
61127 2007-04-27  Bruno Haible  <bruno@clisp.org>
61128
61129         * doc/headers/*.texi: New files.
61130         * doc/gnulib.texi (Header File Substitutes): New chapter.
61131         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61132         dependencies.
61133         (standards.info ,standards.html, standards.dvi): Update dependencies.
61134         (mostlyclean, clean): New targets.
61135
61136 2007-04-27  Bruno Haible  <bruno@clisp.org>
61137
61138         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61139         * modules/sysexits (Files, Makefile.am): Update.
61140
61141         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61142         * modules/sys_socket (Files, Makefile.am): Update.
61143
61144         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61145         * modules/sys_stat (Files, Makefile.am): Update.
61146
61147 2007-04-27  Eric Blake  <ebb9@byu.net>
61148
61149         * lib/freading.h: Improve comments.
61150         * lib/fwriting.h: Likewise.
61151         * lib/fflush.c: Likewise.
61152
61153         Fix closein for mingw.
61154         * modules/closein-tests: Add tests for closein.
61155         * tests/test-closein.c: New file.
61156         * tests/test-closein.sh: Likewise.
61157         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61158         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61159
61160 2007-04-27  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61163         version is < 6.
61164         * lib/math_.h [__DECC]: Likewise.
61165         * lib/stdio_.h [__DECC]: Likewise.
61166         * lib/stdlib_.h [__DECC]: Likewise.
61167         * lib/string_.h [__DECC]: Likewise.
61168         * lib/time_.h [__DECC]: Likewise.
61169         * lib/wchar_.h [__DECC]: Likewise.
61170         * lib/wctype_.h [__DECC]: Likewise.
61171
61172 2007-04-27  Bruno Haible  <bruno@clisp.org>
61173
61174         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61175
61176 2007-04-27  Bruno Haible  <bruno@clisp.org>
61177
61178         * lib/fflush.c: Add comments.
61179         * modules/fpurge-tests (Depends-on): Add fflush.
61180         * modules/freadable-tests (Depends-on): Likewise.
61181         * modules/fwritable-tests (Depends-on): Likewise.
61182
61183 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61184
61185         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61186         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61187         Report by Bruno Haible <bruno@clisp.org>.
61188
61189 2007-04-26  Eric Blake  <ebb9@byu.net>
61190
61191         Fix fflush on mingw.
61192         * modules/fflush (Depends-on): Add freading.
61193         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61194         but unread data.
61195
61196 2007-04-26  Eric Blake  <ebb9@byu.net>
61197         and Bruno Haible  <bruno@clisp.org>
61198
61199         Implement freading and fwriting.
61200         * lib/freading.c: New file.
61201         * lib/freading.h: Likewise.
61202         * m4/freading.m4: Likewise.
61203         * modules/freading: Likewise.
61204         * modules/freading-tests: Likewise.
61205         * tests/test-freading.c: Likewise.
61206         * lib/fwriting.c: New file.
61207         * lib/fwriting.h: Likewise.
61208         * m4/fwriting.m4: Likewise.
61209         * modules/fwriting: Likewise.
61210         * modules/fwriting-tests: Likewise.
61211         * tests/test-fwriting.c: Likewise.
61212         * MODULES.html.sh (File stream based Input/Output): Mention them.
61213
61214 2007-04-26  Bruno Haible  <bruno@clisp.org>
61215
61216         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61217         'long' when we assume it.
61218         Suggested by Eric Blake.
61219
61220 2007-04-26  Bruno Haible  <bruno@clisp.org>
61221
61222         Ensure fseeko, ftello are declared on glibc systems.
61223         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61224         * modules/fseeko (configure.ac-early): Likewise.
61225         * modules/ftello (configure.ac-early): Likewise.
61226         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61227         AC_FUNC_FSEEKO for this.
61228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61229         (gl_CHECK_FSEEKO): Remove macro.
61230
61231 2007-04-26  Bruno Haible  <bruno@clisp.org>
61232
61233         * tests/test-fflush.c (main): Also check the ftell result after
61234         fflush and fseek/fseeko.
61235         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61236         file descriptor position cache in the stream.
61237         * lib/fseeko.c (rpl_fseeko): Likewise.
61238
61239 2007-04-26  Bruno Haible  <bruno@clisp.org>
61240
61241         * modules/fflush-tests (Depends-on): Add fseeko.
61242
61243 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61244             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61245
61246         * lib/argz_.h: ensure error_t definition is obtained in same
61247         mechanism system argz.h would have.
61248         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61249         argz facilities are known bad.  Err on the side of caution if
61250         cross-compiling.
61251
61252 2007-04-25  Eric Blake  <ebb9@byu.net>
61253
61254         * lib/fpurge.c (includes): Use stdlib.h for free.
61255         * tests/test-fflush.c (main): Also test fflush-fseeko.
61256
61257 2007-04-25  Bruno Haible  <bruno@clisp.org>
61258
61259         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61260         * lib/fseeko.c: New file.
61261         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61262         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61263         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61264         gl_FUNC_FSEEKO.
61265         (gl_FUNC_FSEEKO): Invoke it.
61266         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61267         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61268         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61269
61270 2007-04-25  Bruno Haible  <bruno@clisp.org>
61271
61272         * modules/fflush (Depends-on): Add ftello.
61273
61274 2007-04-25  Bruno Haible  <bruno@clisp.org>
61275
61276         * modules/ftello-tests: New file.
61277         * tests/test-ftello.c: New file.
61278
61279         * modules/ftello: New file.
61280         * m4/ftello.m4: New file.
61281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61282         HAVE_FTELLO.
61283         * lib/stdio_.h (ftello): New declaration.
61284         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61285         HAVE_FTELLO.
61286
61287 2007-04-25  Bruno Haible  <bruno@clisp.org>
61288
61289         * modules/fseeko-tests: New file.
61290         * tests/test-fseeko.c: New file.
61291
61292         * modules/fseeko: New file.
61293         * m4/fseeko.m4: New file.
61294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61295         HAVE_FSEEKO.
61296         * lib/stdio_.h (fseeko): New declaration.
61297         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61298         HAVE_FSEEKO.
61299
61300 2007-04-25  Bruno Haible  <bruno@clisp.org>
61301
61302         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61303
61304 2007-04-25  Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61307         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61308         * tests/test-unistd.c: Likewise.
61309         * tests/test-fcntl.c: Likewise.
61310
61311 2007-04-23  Eric Blake  <ebb9@byu.net>
61312
61313         * lib/fflush.c: Fix missing include.
61314         Reported by Bruno Haible.
61315
61316 2007-04-23  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61319         Reported by Eric Blake.
61320
61321 2007-04-23  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61324
61325 2007-04-23  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61328
61329 2007-04-23  Bruno Haible  <bruno@clisp.org>
61330
61331         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61332         Needed on HP-UX 11.
61333
61334 2007-04-16  Eric Blake  <ebb9@byu.net>
61335
61336         Make fflush rely on fpurge.
61337         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61338         open coding all variants.
61339         * modules/fflush (Depends-on): Add fpurge and unistd.
61340         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61342
61343         Fix --with-tests compilation on cygwin.
61344         * modules/argmatch-tests (Makefile.am): List gnulib library first
61345         in LDADD.
61346         * modules/argp-tests (Makefile.am): Likewise.
61347         * modules/array-list-tests (Makefile.am): Likewise.
61348         * modules/array-oset-tests (Makefile.am): Likewise.
61349         * modules/avltree-list-tests (Makefile.am): Likewise.
61350         * modules/avltree-oset-tests (Makefile.am): Likewise.
61351         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61352         * modules/carray-list-tests (Makefile.am): Likewise.
61353         * modules/dirname-tests (Makefile.am): Likewise.
61354         * modules/frexp-tests (Makefile.am): Likewise.
61355         * modules/isnanl-tests (Makefile.am): Likewise.
61356         * modules/linked-list-tests (Makefile.am): Likewise.
61357         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61358         * modules/lock-tests (Makefile.am): Likewise.
61359         * modules/rbtree-list-tests (Makefile.am): Likewise.
61360         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61361         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61362         * modules/tls-tests (Makefile.am): Likewise.
61363         * modules/tsearch-tests (Makefile.am): Likewise.
61364         * modules/xvasprintf-tests (Makefile.am): Likewise.
61365
61366         Fix fpurge for cygwin.
61367         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61368         value.
61369         * modules/fpurge-tests (Depends-on): Clean up trash.
61370
61371 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61372
61373         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61374
61375         * m4/autobuild.m4: Re-indent.
61376
61377 2007-04-13  Bruno Haible  <bruno@clisp.org>
61378
61379         * modules/fpurge-tests: New file.
61380         * tests/test-fpurge.c: New file.
61381
61382         * modules/fpurge: New file.
61383         * lib/fpurge.h: New file.
61384         * lib/fpurge.c: New file.
61385         * m4/fpurge.m4: New file.
61386
61387 2007-04-13  Bruno Haible  <bruno@clisp.org>
61388
61389         * modules/fbufmode-tests: New file.
61390         * tests/test-fbufmode.c: New file.
61391
61392         * modules/fbufmode: New file.
61393         * lib/fbufmode.h: New file.
61394         * lib/fbufmode.c: New file.
61395         * m4/fbufmode.m4: New file.
61396
61397 2007-04-13  Bruno Haible  <bruno@clisp.org>
61398
61399         * modules/fwritable-tests: New file.
61400         * tests/test-fwritable.c: New file.
61401
61402         * modules/fwritable: New file.
61403         * lib/fwritable.h: New file.
61404         * lib/fwritable.c: New file.
61405         * m4/fwritable.m4: New file.
61406
61407 2007-04-13  Bruno Haible  <bruno@clisp.org>
61408
61409         * modules/freadable-tests: New file.
61410         * tests/test-freadable.c: New file.
61411
61412         * modules/freadable: New file.
61413         * lib/freadable.h: New file.
61414         * lib/freadable.c: New file.
61415         * m4/freadable.m4: New file.
61416
61417 2007-04-13  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61420         MOSTLYCLEANFILES.
61421
61422 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61423
61424         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61425         gzip bootstrap.conf to avoid dragging in i18n machinery.
61426         (gnulib_tool_option): Use it.
61427
61428 2007-04-13  Bruno Haible  <bruno@clisp.org>
61429
61430         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61431         %F directives.
61432         * tests/test-vasprintf-posix.c (test_function): Likewise.
61433         * tests/test-snprintf-posix.h (test_function): Likewise.
61434         * tests/test-sprintf-posix.h (test_function): Likewise.
61435         * tests/test-fprintf-posix.h (test_function): Likewise.
61436         * tests/test-printf-posix.h (test_function): Likewise.
61437         * tests/test-fprintf-posix.out: Likewise.
61438
61439 2007-04-13  Bruno Haible  <bruno@clisp.org>
61440
61441         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61442         * modules/tls-tests (configure.ac): Likewise.
61443         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61444
61445 2007-04-13  Bruno Haible  <bruno@clisp.org>
61446
61447         * lib/tls.c (glthread_tls_get): Fix return type.
61448         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61449
61450 2007-04-12  Eric Blake  <ebb9@byu.net>
61451
61452         * modules/gettime (Depends-on): Remove gettime.
61453         Reported by Dmitry V. Levin.
61454
61455 2007-04-12  Bruno Haible  <bruno@clisp.org>
61456
61457         * modules/fflush (Include): Mention <stdio.h>.
61458         * modules/strtoimax (Include): Mention <inttypes.h>.
61459         * modules/strtoumax (Include): Likewise.
61460
61461 2007-04-12  Eric Blake  <ebb9@byu.net>
61462
61463         * .cvsignore: New file.
61464         * .gitignore: Likewise.
61465
61466 2007-04-12  Bruno Haible  <bruno@clisp.org>
61467
61468         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61469         not before, since $(LDADD) often contains libgnu.a.
61470         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61471         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61472         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61473         Needed on Cygwin.
61474
61475 2007-04-12  Eric Blake  <ebb9@byu.net>
61476
61477         Work around glibc's failure to flush stdin on fclose.
61478         * lib/closein.c (close_stdin): Flush stdin before closing.
61479
61480         Work around glibc's failure to reset seekable stdin on exit.
61481         * modules/closein: New module.
61482         * lib/closein.c: New file.
61483         * lib/closein.h: Likewise.
61484         * m4/closein.m4: Likewise.
61485         * MODULES.html.sh (File stream based Input/Output): Document it.
61486
61487 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61488
61489         * gnulib-tool: Rename generated 'autobuild' script to
61490         'do-autobuild' in --create-megatestdir output.
61491
61492         * doc/gnulib.texi (Build robot for gnulib): Fix.
61493
61494 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61495
61496         * modules/sysexits (Depends-on): Add absolute-header.
61497
61498 2007-04-12  Eric Blake  <ebb9@byu.net>
61499
61500         No need to preserve errno on success.
61501         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61502         Reported by Bruno Haible.
61503
61504 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61505
61506         * MODULES.html.sh (Support for maintaining and releasing
61507         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61508
61509 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61510
61511         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61512
61513 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61514
61515         * modules/autobuild: New module.
61516
61517         * m4/autobuild.m4: New file.
61518
61519 2007-04-11  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61522         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61529         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61530         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61532         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61533         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61534         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61535         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61536         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61538         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61539         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61541         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61542         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61544         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61545         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61547         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61548         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61549         Reported by Eric Blake.
61550
61551 2007-04-11  Bruno Haible  <bruno@clisp.org>
61552
61553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61554
61555 2007-04-10  Bruno Haible  <bruno@clisp.org>
61556
61557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61558         for NaN and Infinity. Needed on FreeBSD 6.1.
61559         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61560         regarding results for "%010a" of Infinity and NaN.
61561         * tests/test-vasprintf-posix.c (test_function): Likewise.
61562         * tests/test-snprintf-posix.h (test_function): Likewise.
61563         * tests/test-sprintf-posix.h (test_function): Likewise.
61564         * tests/test-fprintf-posix.h (test_function): Likewise.
61565         * tests/test-printf-posix.h (test_function): Likewise.
61566         * tests/test-fprintf-posix.out: Likewise.
61567
61568 2007-04-10  Bruno Haible  <bruno@clisp.org>
61569
61570         * modules/locale-tests: New file.
61571         * tests/test-locale.c: New file.
61572
61573         * modules/locale: New file.
61574         * lib/locale_.h: New file.
61575         * m4/locale_h.m4: New file.
61576
61577 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61578             Bruno Haible  <bruno@clisp.org>
61579
61580         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61581         be determined, test for availability of the copysignf, copysign,
61582         copysignl functions.
61583         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61584         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61585         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61586
61587 2007-04-09  Eric Blake  <ebb9@byu.net>
61588
61589         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61590         * modules/stdio (Makefile.am): Support fflush.
61591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61592         * modules/fflush: New file.
61593         * lib/fflush.c: Likewise.
61594         * m4/fflush.m4: Likewise.
61595         * modules/fflush-tests: New test.
61596         * tests/test-fflush.c: Likewise.
61597         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61598
61599 2007-04-06  Bruno Haible  <bruno@clisp.org>
61600
61601         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61602         (VASNPRINTF): Use signbit for faster determination whether to print a
61603         minus sign.
61604         * modules/vasnprintf (Files): Remove lib/float+.h.
61605         * modules/fprintf-posix (Depends-on): Add signbit.
61606         * modules/snprintf-posix (Depends-on): Likewise.
61607         * modules/sprintf-posix (Depends-on): Likewise.
61608         * modules/vasnprintf-posix (Depends-on): Likewise.
61609         * modules/vasprintf-posix (Depends-on): Likewise.
61610         * modules/vfprintf-posix (Depends-on): Likewise.
61611         * modules/vsnprintf-posix (Depends-on): Likewise.
61612         * modules/vsprintf-posix (Depends-on): Likewise.
61613
61614 2007-04-06  Bruno Haible  <bruno@clisp.org>
61615
61616         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61617         * tests/test-frexpl.c (main): Likewise.
61618         * tests/test-ldexpl.c (main): Likewise.
61619         * modules/frexp-tests (Depends-on): Add signbit.
61620         * modules/frexpl-tests (Depdends-on): Likewise.
61621         * modules/ldexpl-tests (Depdends-on): Likewise.
61622
61623 2007-04-06  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/signbit-tests: New file.
61626         * tests/test-signbit.c: New file.
61627
61628         * modules/signbit: New file.
61629         * lib/signbitf.c: New file.
61630         * lib/signbitd.c: New file.
61631         * lib/signbitl.c: New file.
61632         * m4/signbit.m4: New file.
61633         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61634         (signbit): New macro.
61635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61636         REPLACE_SIGNBIT.
61637         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61638         REPLACE_FREXPL into math.h.
61639
61640 2007-04-06  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/isnanf-nolibm-tests: New file.
61643         * tests/test-isnanf.c: New file.
61644
61645         * modules/isnanf-nolibm: New file.
61646         * lib/isnanf.h: New file.
61647         * lib/isnanf.c: New file.
61648         * lib/isnan.c: Consider the USE_FLOAT macro.
61649         * m4/isnanf.m4: New file.
61650
61651 2007-04-06  Bruno Haible  <bruno@clisp.org>
61652
61653         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61654         (Link): New section.
61655
61656         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61657
61658 2007-04-06  Bruno Haible  <bruno@clisp.org>
61659
61660         Assume the 'long double' type.
61661         * m4/longdouble.m4: Remove file.
61662         * config/srclist.txt: Don't mention longdouble.m4.
61663         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61664         * lib/float+.h: Likewise.
61665         * lib/frexp.c: Likewise.
61666         * lib/printf-args.h: Likewise.
61667         * lib/printf-args.c: Likewise.
61668         * lib/printf-frexp.c: Likewise.
61669         * lib/printf-parse.c: Likewise.
61670         * lib/vasnprintf.c: Likewise.
61671         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61672         * m4/intl.m4: Likewise.
61673         * m4/isnanl.m4: Likewise.
61674         * m4/printf.m4: Likewise.
61675         * m4/printf-frexpl.m4: Likewise.
61676         * m4/vasnprintf.m4: Likewise.
61677         * modules/allocsa (Files): Remove m4/longdouble.m4.
61678         * modules/gettext (Files): Likewise.
61679         * modules/relocatable-prog-wrapper (Files): Likewise.
61680         * modules/vasnprintf (Files): Likewise.
61681         * modules/isnanl (Files): Likewise.
61682         (Include): Simplify.
61683         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61684         (Include): Simplify.
61685         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61686         (Include): Simplify.
61687         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61688         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61689         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61690         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61691         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61692         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61693         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61694         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61695         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61696         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61697         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61698         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61699         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61700         * tests/test-isnanl.c: Likewise.
61701         * tests/test-snprintf-posix.h: Likewise.
61702         * tests/test-sprintf-posix.h: Likewise.
61703         * tests/test-vasnprintf-posix.c: Likewise.
61704         * tests/test-vasnprintf-posix2.c: Likewise.
61705         * tests/test-vasprintf-posix.c: Likewise.
61706
61707 2007-04-06  Bruno Haible  <bruno@clisp.org>
61708
61709         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61710         * lib/math_.h [__DECC]: Include the overridden include file through
61711         #include_next, outside the double-inclusion guard.
61712         * lib/stdio_.h [__DECC]: Likewise.
61713         * lib/stdlib_.h [__DECC]: Likewise.
61714         * lib/string_.h [__DECC]: Likewise.
61715         * lib/time_.h [__DECC]: Likewise.
61716         * lib/wchar_.h [__DECC]: Likewise.
61717         * lib/wctype_.h [__DECC]: Likewise.
61718         * lib/inttypes_.h [__DECC]: Likewise.
61719         Reported by Albert Chin <china@thewrittenword.com> in
61720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61721
61722 2007-04-04  Eric Blake  <ebb9@byu.net>
61723
61724         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61725         1.5.x.
61726
61727 2007-04-04  Bruno Haible  <bruno@clisp.org>
61728
61729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61730         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61731
61732 2007-04-04  Bruno Haible  <bruno@clisp.org>
61733
61734         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61735         results for "%010a" of Infinity and NaN.
61736         * tests/test-vasprintf-posix.c (test_function): Likewise.
61737         * tests/test-snprintf-posix.h (test_function): Likewise.
61738         * tests/test-sprintf-posix.h (test_function): Likewise.
61739         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61740         * tests/test-printf-posix.h (test_function): Likewise.
61741         * tests/test-fprintf-posix.out: Update.
61742         Needed for FreeBSD 6.1.
61743
61744 2007-04-04  Bruno Haible  <bruno@clisp.org>
61745
61746         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61747         directly used by the gnulib modules nor by gnulib-tool.
61748
61749 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         * DEPENDENCIES: Give overall description of version dependency
61752         desirability.  Use more-typical names for apps.
61753         Add shell, coreutils, diffutils, grep, tar, gzip.
61754
61755 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61756
61757         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61758
61759 2007-04-04  Karl Berry  <karl@gnu.org>
61760
61761         * MODULES.html.sh (func_module): missing '.
61762
61763 2007-04-03  Bruno Haible  <bruno@clisp.org>
61764
61765         * modules/argmatch-tests (Makefile.am): New variable
61766         test_argmatch_LDADD.
61767         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61768         * modules/array-list-tests (Makefile.am): New variable
61769         test_array_list_LDADD.
61770         * modules/array-oset-tests (Makefile.am): New variable
61771         test_array_oset_LDADD.
61772         * modules/avltree-list-tests (Makefile.am): New variable
61773         test_avltree_list_LDADD.
61774         * modules/avltree-oset-tests (Makefile.am): New variable
61775         test_avltree_oset_LDADD.
61776         * modules/avltreehash-list-tests (Makefile.am): New variable
61777         test_avltreehash_list_LDADD.
61778         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61779         test_canonicalize_lgpl_LDADD.
61780         * modules/carray-list-tests (Makefile.am): New variable
61781         test_carray_list_LDADD.
61782         * modules/dirname-tests (Makefile.am): New variable
61783         test_dirname_LDADD.
61784         * modules/linked-list-tests (Makefile.am): New variable
61785         test_linked_list_LDADD.
61786         * modules/linkedhash-list-tests (Makefile.am): New variable
61787         test_linkedhash_list_LDADD.
61788         * modules/rbtree-list-tests (Makefile.am): New variable
61789         test_rbtree_list_LDADD.
61790         * modules/rbtree-oset-tests (Makefile.am): New variable
61791         test_rbtree_oset_LDADD.
61792         * modules/rbtreehash-list-tests (Makefile.am): New variable
61793         test_rbtreehash_list_LDADD.
61794         * modules/xvasprintf-tests (Makefile.am): New variable
61795         test_xvasprintf_LDADD.
61796         Reported by Eric Blake.
61797
61798 2007-04-03  Eric Blake  <ebb9@byu.net>
61799
61800         * DEPENDENCIES: Weaken m4 requirements.
61801
61802 2007-04-03  Bruno Haible  <bruno@clisp.org>
61803
61804         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61805         * modules/isnanl-tests (configure.ac): Likewise.
61806
61807 2007-04-03  Ben Pfaff  <blp@gnu.org>
61808
61809         * modules/iconv_open: Add $(srcdir)/ to source directory
61810         references in Makefile fragments that call gperf, to fix VPATH
61811         builds.
61812
61813 2007-04-03  Bruno Haible  <bruno@clisp.org>
61814
61815         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61816         * lib/ldexpl.c: Undo last change.
61817
61818 2007-04-03  Bruno Haible  <bruno@clisp.org>
61819
61820         * modules/printf-frexpl (Depends-on): Undo last change.
61821         (Files): Add m4/ldexpl.m4.
61822
61823 2007-04-03  Bruno Haible  <bruno@clisp.org>
61824
61825         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61826         * modules/isnanl (Link): New section.
61827
61828         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61829         * modules/frexp (Link): New section.
61830
61831         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61832         * modules/frexpl (Link): New section.
61833
61834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61835         * modules/ldexpl (Link): New section.
61836
61837 2007-04-03  Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/TEMPLATE-EXTENDED: New file.
61840         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61841
61842 2007-04-03  Bruno Haible  <bruno@clisp.org>
61843
61844         * DEPENDENCIES: New file.
61845         Suggested by Simon Josefsson.
61846
61847 2007-04-03  Bruno Haible  <bruno@clisp.org>
61848
61849         * doc/gnulib.texi: Escape @.
61850
61851 2007-04-03  James Youngman  <jay@gnu.org>
61852         and Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61855         birthtime on all systems that have birthtime, not just those which
61856         use st_birthtimensec rather than st_birthtim.  Putting zero in
61857         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61858         that the birth time is not available for files on an NFS mount.
61859
61860 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61861
61862         * modules/memxor: Move back from crypto/, suggested by Bruno.
61863         * modules/crypto/hmac-sha1: Fix memxor dependency.
61864
61865         * modules/crypto/gc: Moved from ../.
61866
61867 2007-04-02  Eric Blake  <ebb9@byu.net>
61868
61869         * lib/ldexpl.c (includes): Avoid libm.
61870
61871         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61872
61873 2007-04-02  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61876         on IRIX.
61877
61878 2007-04-02  Bruno Haible  <bruno@clisp.org>
61879
61880         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61881         x86 or x86_64 platforms running MacOS X.
61882         Reported by Ryan Schmidt <@ryandesign.com>.
61883
61884 2007-04-02  Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61887         i386.
61888
61889 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61890
61891         * modules/crypto/arcfour: Moved from ../.
61892         * modules/crypto/arcfour-tests: Moved from ../.
61893         * modules/crypto/arctwo: Moved from ../.
61894         * modules/crypto/arctwo-tests: Moved from ../.
61895         * modules/crypto/des: Moved from ../.
61896         * modules/crypto/des-tests: Moved from ../.
61897         * modules/crypto/gc-arcfour: Moved from ../.
61898         * modules/crypto/gc-arcfour-tests: Moved from ../.
61899         * modules/crypto/gc-arctwo: Moved from ../.
61900         * modules/crypto/gc-arctwo-tests: Moved from ../.
61901         * modules/crypto/gc-des: Moved from ../.
61902         * modules/crypto/gc-des-tests: Moved from ../.
61903         * modules/crypto/gc-hmac-md5: Moved from ../.
61904         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61905         * modules/crypto/gc-hmac-sha1: Moved from ../.
61906         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61907         * modules/crypto/gc-md2: Moved from ../.
61908         * modules/crypto/gc-md2-tests: Moved from ../.
61909         * modules/crypto/gc-md4: Moved from ../.
61910         * modules/crypto/gc-md4-tests: Moved from ../.
61911         * modules/crypto/gc-md5: Moved from ../.
61912         * modules/crypto/gc-md5-tests: Moved from ../.
61913         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61914         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61915         * modules/crypto/gc-random: Moved from ../.
61916         * modules/crypto/gc-rijndael: Moved from ../.
61917         * modules/crypto/gc-rijndael-tests: Moved from ../.
61918         * modules/crypto/gc-sha1: Moved from ../.
61919         * modules/crypto/gc-sha1-tests: Moved from ../.
61920         * modules/crypto/gc-tests: Moved from ../.
61921         * modules/crypto/hmac-md5: Moved from ../.
61922         * modules/crypto/hmac-md5-tests: Moved from ../.
61923         * modules/crypto/hmac-sha1: Moved from ../.
61924         * modules/crypto/hmac-sha1-tests: Moved from ../.
61925         * modules/crypto/md2: Moved from ../.
61926         * modules/crypto/md2-tests: Moved from ../.
61927         * modules/crypto/md4: Moved from ../.
61928         * modules/crypto/md4-tests: Moved from ../.
61929         * modules/crypto/md5: Moved from ../.
61930         * modules/crypto/md5-tests: Moved from ../.
61931         * modules/crypto/memxor: Moved from ../.
61932         * modules/crypto/rijndael: Moved from ../.
61933         * modules/crypto/rijndael-tests: Moved from ../.
61934         * modules/crypto/sha1: Moved from ../.
61935
61936 2007-03-30  James Youngman  <jay@gnu.org>
61937
61938         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61939         rename() to change the ctime of a file (because ctime is unaffected
61940         by rename on jfs2 on AIX 5.1).
61941         (main): Start by doing cleanup, in case a previous run failed leaving
61942         test files behind.
61943
61944 2007-03-31  Bruno Haible  <bruno@clisp.org>
61945
61946         Support old proprietary implementations of iconv.
61947         * modules/iconv_open: New file.
61948         * lib/iconv_.h: New file.
61949         * m4/iconv_h.m4: New file.
61950         * lib/iconv_open.c: New file.
61951         * lib/iconv_open-aix.gperf: New file.
61952         * lib/iconv_open-hpux.gperf: New file.
61953         * lib/iconv_open-irix.gperf: New file.
61954         * lib/iconv_open-osf.gperf: New file.
61955         * m4/iconv_open.m4: New file.
61956         * modules/linebreak (Depends-on): Add iconv_open.
61957         * modules/striconv (Depends-on): Likewise.
61958         * modules/striconveh (Depends-on): Likewise.
61959         * modules/unicodeio (Depends-on): Likewise.
61960         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61961         (iconv_t)(-1).
61962         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61963         conversion if cd is (iconv_t)(-1).
61964         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61965         is not possible.
61966
61967 2007-03-31  Bruno Haible  <bruno@clisp.org>
61968
61969         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61970         work on Solaris either. Protect also second use of "autodetect_jp".
61971
61972 2007-03-31  Bruno Haible  <bruno@clisp.org>
61973
61974         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61975         the function is not present.
61976
61977 2007-03-31  Bruno Haible  <bruno@clisp.org>
61978
61979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61980         the function is not present.
61981
61982 2007-03-31  Bruno Haible  <bruno@clisp.org>
61983
61984         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61985         a bug in HP-UX iconv_open().
61986
61987 2007-03-31  Bruno Haible  <bruno@clisp.org>
61988
61989         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61990         (Mathematics <math.h>): New section, add fpieee.
61991         (Input/output <stdio.h>): Add fseterr.
61992         (Mathematics <math.h>): New section, add printf-frexp.
61993         (Container data structures): Add sublist.
61994         (Core language properties): Add fpucw, inline.
61995         (Functions for greatest-width integer types <inttypes.h>): Add
61996         imaxabs, imaxdiv, inttypes.
61997         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61998         isnanl-nolibm, ldexp.
61999         (Mathematics <math.h>): New section, add printf-frexpl.
62000         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62001         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62002         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62003         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62004         (Unicode string functions): Add unistr/u*-mbtoucr.
62005         (Java): Add javacomp-script, javaexec-script.
62006         (C#): Add csharpcomp-script, csharpexec-script.
62007         (Support for building libraries and executables): Add havelib,
62008         relocatable-*.
62009         (Support for maintaining and releasing projects): Renamed from
62010         'Support for maintaining and release projects'. Add announce-gen.
62011
62012 2007-03-31  Bruno Haible  <bruno@clisp.org>
62013
62014         * README: Talk primarily about git.
62015         (git and CVS): Renamed from CVS.
62016         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62017         gnulib is available through git.
62018         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62019
62020 2007-03-30  Bruno Haible  <bruno@clisp.org>
62021
62022         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62023         * lib/poll_.h: Likewise.
62024         * lib/stat_.h: Likewise.
62025         * lib/sys_time_.h: Likewise.
62026         * lib/sysexit_.h: Likewise.
62027         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62028         * lib/stdbool_.h: Likewise.
62029         * lib/byteswap_.h: Add double-inclusion guard.
62030
62031 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62032
62033         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62034
62035 2007-03-30  Karl Berry  <karl@gnu.org>
62036
62037         * config/srclist-update: double space after USA in the license
62038         substitution, since that's how it's usually (?) written.
62039
62040 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62041
62042         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62043         reported by Bruno Haible.
62044
62045 2007-03-29  Bruno Haible  <bruno@clisp.org>
62046
62047         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62048         a bug in AIX iconv().
62049
62050 2007-03-29  Bruno Haible  <bruno@clisp.org>
62051
62052         * modules/ldexpl-tests: New file.
62053         * tests/test-ldexpl.c: New file.
62054
62055 2007-03-29  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/ldexpl.c: Include fpucw.h.
62058         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62059         multiplication.
62060         * modules/ldexpl (Depends-on): Add fpucw.
62061
62062 2007-03-29  Bruno Haible  <bruno@clisp.org>
62063
62064         * modules/ldexpl: New file.
62065         * m4/ldexpl.m4: New file.
62066         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62067         set.
62068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62069         REPLACE_LDEXPL.
62070         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62071         REPLACE_LDEXPL.
62072         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62073         gl_FUNC_LDEXPL_WORKS.
62074         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62075         * modules/mathl (Files): Remove lib/ldexpl.c.
62076         (Depends-on): Add ldexpl.
62077
62078 2007-03-29  Bruno Haible  <bruno@clisp.org>
62079
62080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62081
62082 2007-03-29  Bruno Haible  <bruno@clisp.org>
62083
62084         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62085         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62086         and possibly also HP-UX.
62087         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62088         work on AIX, IRIX, HP-UX, OSF/1.
62089         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62090         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62091         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62092         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62093         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62094         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62095
62096 2007-03-29  Bruno Haible  <bruno@clisp.org>
62097
62098         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62099
62100 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62101
62102         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62103         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62104
62105 2007-03-29  Eric Blake  <ebb9@byu.net>
62106
62107         * lib/acl-internal.h: Remove redundant include.
62108         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62109         Cygwin when a file is locked.
62110
62111 2007-03-29  Bruno Haible  <bruno@clisp.org>
62112
62113         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62114         file.
62115         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62116
62117 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62120         try to remove a parent directory if the child couldn't be removed
62121         (except for the first rmdir, which could fail because the child
62122         doesn't exist).  Problem reported by Jeff Blaine in
62123         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62124
62125 2007-03-28  Bruno Haible  <bruno@clisp.org>
62126
62127         * lib/striconveh.c (utf8conv_carefully): New function.
62128         (mem_cd_iconveh_internal): Invoke it.
62129
62130 2007-03-28  Bruno Haible  <bruno@clisp.org>
62131
62132         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62133         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62134         input.
62135         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62136         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62137         unistr/u8-uctomb.
62138
62139 2007-03-28  Bruno Haible  <bruno@clisp.org>
62140
62141         * modules/unistr/u8-mbtoucr: New file.
62142         * lib/unistr/u8-mbtoucr.c: New file.
62143         * modules/unistr/u16-mbtoucr: New file.
62144         * lib/unistr/u16-mbtoucr.c: New file.
62145         * modules/unistr/u16-mbtoucr: New file.
62146         * lib/unistr/u16-mbtoucr.c: New file.
62147         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62148
62149 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62150             Bruno Haible  <bruno@clisp.org>
62151
62152         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62153         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62154         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62155
62156         * m4/stdio_h.m4: Add stubs for vasprintf too.
62157
62158         * modules/stdio: Support vasprintf in sed command.
62159
62160         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62161         vasprintf.h.  Add stdio module indicator.
62162
62163         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62164         vasprintf.h.
62165
62166         * lib/vasprintf.h: File removed.
62167
62168         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62169         * lib/vasprintf.c: Ditto.
62170         * lib/xvasprintf.c: Ditto.
62171         * tests/test-vasprintf-posix.c: Ditto.
62172         * tests/test-vasprintf.c: Ditto.
62173
62174 2007-03-27  Bruno Haible  <bruno@clisp.org>
62175
62176         Make vasnprintf multithread-safe.
62177         * lib/vasnprintf.c (decimal_point_char): New function.
62178         (VASNPRINTF): Use it.
62179         Suggested by Simon Josefsson.
62180
62181 2007-03-27  Eric Blake  <ebb9@byu.net>
62182
62183         Support sub-second birthtime on cygwin.
62184         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62185         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62186         (get_stat_birthtime): Also work with st_birthtim.
62187
62188 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62189
62190         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62191         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62192         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62193         (get_stat_birthtime_ns): Simplify compile-time tests.
62194         (get_stat_birthtime): Change the API to look like
62195         get_stat_mtime etc., except return a negative tv_nsec on error.
62196         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62197         Don't check for "spare" fields.
62198         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62199         or for struct stat.st_birthtime, as these tests aren't used.
62200         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62201
62202 2007-03-27  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/stat-time.h: Include <sys/stat.h>.
62205
62206 2007-03-27  James Youngman  <jay@gnu.org>
62207
62208         * lib/stat-time.h (get_stat_birthtime): New function for
62209           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62210         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62211           and its variants.
62212         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62213         * modules/stat-time-test: New file.
62214         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62215
62216 2007-03-26  Bruno Haible  <bruno@clisp.org>
62217
62218         Better support of signalling NaNs.
62219         * lib/atanl.c: Include isnanl.h.
62220         (atanl): Perform test for NaN at the beginning of the function and
62221         through a call to isnanl.
62222         * lib/cosl.c: Include isnanl.h.
62223         (cosl): Perform test for NaN at the beginning of the function and
62224         through a call to isnanl.
62225         * lib/ldexpl.c: Include isnanl.h.
62226         (ldexpl): Perform test for NaN through a call to isnanl.
62227         * lib/logl.c: Include isnanl.h.
62228         (logl): Perform test for NaN at the beginning of the function and
62229         through a call to isnanl.
62230         * lib/sinl.c: Include isnanl.h.
62231         (sinl): Perform test for NaN at the beginning of the function and
62232         through a call to isnanl.
62233         * lib/sqrtl.c: Include isnanl.h.
62234         (sqrtl): Perform test for NaN at the beginning of the function and
62235         through a call to isnanl.
62236         * lib/tanl.c: Include isnanl.h.
62237         (tanl): Perform test for NaN at the beginning of the function and
62238         through a call to isnanl.
62239         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62240         * modules/mathl (Depends-on): Add isnanl.
62241
62242 2007-03-26  Eric Blake  <ebb9@byu.net>
62243
62244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62245         regression in logic sense of previous patch.
62246
62247 2007-03-26  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62250         unportable shell command "if ! ...".
62251         Reported by Ralf Wildenhues.
62252
62253 2007-03-25  Bruno Haible  <bruno@clisp.org>
62254
62255         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62256         <sysexits.h> file, and only add EX_CONFIG.
62257         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62258         absolute file name and whether it is sufficient. Substitute also
62259         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62260         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62261         ABSOLUTE_SYSEXITS_H into sysexits.h.
62262
62263 2007-03-25  Bruno Haible  <bruno@clisp.org>
62264
62265         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62266         hints is NULL.
62267
62268 2007-03-25  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62271         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62272
62273 2007-03-25  Bruno Haible  <bruno@clisp.org>
62274
62275         * lib/vasnprintf.c: Include langinfo.h.
62276         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62277         multithread-safe.
62278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62279         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62287         Reported by Simon Josefsson.
62288
62289 2007-03-25  Bruno Haible  <bruno@clisp.org>
62290
62291         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62292         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62293         * modules/vasnprintf (Depends-on): Add stdint.
62294
62295 2007-03-25  Bruno Haible  <bruno@clisp.org>
62296
62297         * modules/fpieee: New file.
62298         * m4/fpieee.m4: New file.
62299         * modules/isnan-nolibm (Depends-on): Add fpieee.
62300         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62301         * modules/isnanl (Depends-on): Add fpieee.
62302
62303 2007-03-25  Bruno Haible  <bruno@clisp.org>
62304
62305         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62306
62307 2007-03-25  Bruno Haible  <bruno@clisp.org>
62308
62309         Avoid test failures on IRIX 6.5.
62310         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62311         (main): Use it.
62312         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62313         macros.
62314         (main): Use them.
62315
62316 2007-03-25  Bruno Haible  <bruno@clisp.org>
62317
62318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62319         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62320         exists but doesn't work.
62321         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62322         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62324         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62325         math.h.
62326
62327 2007-03-25  Bruno Haible  <bruno@clisp.org>
62328
62329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62330         returns inf. Needed on IRIX 6.5.
62331
62332 2007-03-25  Bruno Haible  <bruno@clisp.org>
62333
62334         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62335         (main): Use isnanl instead of x != x idiom.
62336         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62337
62338         * tests/test-frexp.c: Include isnan.h.
62339         (main): Use isnan instead of x != x idiom.
62340         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62341
62342 2007-03-25  Bruno Haible  <bruno@clisp.org>
62343
62344         * tests/test-frexp.c (NaN): New function/macro.
62345         (main): Use it instead of 0.0 / 0.0.
62346         * tests/test-isnan.c (NaN): New function/macro.
62347         (main): Use it instead of 0.0 / 0.0.
62348         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62349         (test_function): Use it instead of 0.0 / 0.0.
62350         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62351         (test_function): Use it instead of 0.0 / 0.0.
62352         * tests/test-snprintf-posix.h (NaN): New function/macro.
62353         (test_function): Use it instead of 0.0 / 0.0.
62354         * tests/test-sprintf-posix.h (NaN): New function/macro.
62355         (test_function): Use it instead of 0.0 / 0.0.
62356         * tests/test-fprintf-posix.h (NaN): New function/macro.
62357         (test_function): Use it instead of 0.0 / 0.0.
62358         * tests/test-printf-posix.h (NaN): New function/macro.
62359         (test_function): Use it instead of 0.0 / 0.0.
62360
62361         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62362
62363 2007-03-25  Bruno Haible  <bruno@clisp.org>
62364
62365         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62366
62367 2007-03-25  Bruno Haible  <bruno@clisp.org>
62368
62369         * lib/regexec.c (merge_state_with_log): Make static.
62370
62371 2007-03-25  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/trigl.c (kernel_rem_pio2): Make static.
62374
62375 2007-03-25  Bruno Haible  <bruno@clisp.org>
62376
62377         * lib/sincosl.c (sincosl_table): Make static.
62378
62379 2007-03-25  Bruno Haible  <bruno@clisp.org>
62380
62381         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62382         if the compiler does not support C99.
62383
62384 2007-03-25  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/time (Makefile.am): Ensure all rule action lines start with a
62387         tab.
62388
62389 2007-03-24  Bruno Haible  <bruno@clisp.org>
62390
62391         * modules/tsearch-tests: New file.
62392         * tests/test-tsearch.sh: New file.
62393         * tests/test-tsearch.c: New file, mostly copied from glibc.
62394
62395         * modules/search-tests: New file.
62396         * tests/test-search.c: New file.
62397
62398         * modules/search: New file.
62399         * lib/search_.h: New file, incorporating lib/tsearch.h.
62400         * m4/search_h.m4: New file.
62401         * lib/tsearch.h: Remove file.
62402         * lib/tsearch.c: Include search.h instead of tsearch.h.
62403         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62404         HAVE_TSEARCH.
62405         * modules/tsearch (Files): Remove lib/tsearch.h.
62406         (Depends-on): Add search.
62407         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62408         (Include): Change tsearch.h into search.h.
62409
62410 2007-03-24  Bruno Haible  <bruno@clisp.org>
62411
62412         * modules/fpucw: New file.
62413         * lib/fpucw.h: New file.
62414         * lib/frexp.c: Include fpucw.h.
62415         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62416         (FUNC): Use them.
62417         * lib/printf-frexp.c: Include fpucw.h.
62418         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62419         (FUNC): Use them.
62420         * lib/vasnprintf.c: Include fpucw.h.
62421         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62422         'long double' calculations.
62423         * tests/test-frexpl.c: Include fpucw.h.
62424         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62425         * tests/test-printf-frexpl.c: Include fpucw.h.
62426         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62427         * modules/frexpl (Depends-on): Add fpucw.
62428         * modules/printf-frexpl (Depends-on): Likewise.
62429         * modules/fprintf-posix (Depends-on): Likewise.
62430         * modules/snprintf-posix (Depends-on): Likewise.
62431         * modules/sprintf-posix (Depends-on): Likewise.
62432         * modules/vasnprintf-posix (Depends-on): Likewise.
62433         * modules/vasprintf-posix (Depends-on): Likewise.
62434         * modules/vfprintf-posix (Depends-on): Likewise.
62435         * modules/vsnprintf-posix (Depends-on): Likewise.
62436         * modules/vsprintf-posix (Depends-on): Likewise.
62437         * modules/frexpl-tests (Depends-on): Likewise.
62438         * modules/printf-frexpl-tests (Depends-on): Likewise.
62439
62440 2007-03-24  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/float+.h: New file.
62443         * lib/isnan.c: Include float+.h.
62444         (SIZE): New macro.
62445         (FUNC): Compare only SIZE bytes of the value.
62446         * lib/vasnprintf.c: Include float+.h.
62447         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62448         SIZEOF_LDBL or SIZEOF_DBL bytes.
62449         * modules/isnan-nolibm (Files): Add lib/float+.h.
62450         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62451         * modules/isnanl (Files): Add lib/float+.h.
62452         * modules/vasnprintf (Files): Add lib/float+.h.
62453
62454 2007-03-24  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62457         include isnanl-nolibm.h.
62458
62459 2007-03-24  Bruno Haible  <bruno@clisp.org>
62460
62461         * tests/test-read-file.c (main): Don't produce spurious output for
62462         expected situations. Make the test fail if it encountered unexpected
62463         results.
62464
62465 2007-03-24  Bruno Haible  <bruno@clisp.org>
62466
62467         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62468         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62469
62470 2007-03-24  Bruno Haible  <bruno@clisp.org>
62471
62472         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62473
62474 2007-03-24  Bruno Haible  <bruno@clisp.org>
62475
62476         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62477         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62478
62479         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62480         * modules/utf8-ucs4: Turn into a symbolic link to module
62481         unistr/u8-mbtouc.
62482
62483         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62484         utf8-ucs4-unsafe.
62485         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62486         unistr/u8-mbtouc-unsafe.
62487
62488         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62489         * modules/utf16-ucs4: Turn into a symbolic link to module
62490         unistr/u16-mbtouc.
62491
62492         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62493         utf16-ucs4-unsafe.
62494         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62495         unistr/u16-mbtouc-unsafe.
62496
62497         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62498         * modules/ucs4-utf8: Turn into a symbolic link to module
62499         unistr/u8-ubtomb.
62500
62501         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62502         * modules/ucs4-utf16: Turn into a symbolic link to module
62503         unistr/u16-ubtomb.
62504
62505 2007-03-24  Bruno Haible  <bruno@clisp.org>
62506
62507         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62508         Enable the function only if HAVE_INLINE.
62509         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62510         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62511         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62512         Enable the function only if HAVE_INLINE.
62513         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62514         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62515         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62516         Enable the function only if HAVE_INLINE.
62517         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62518         Enable the function only if HAVE_INLINE.
62519         * modules/utf8-ucs4: Update.
62520         * modules/utf8-ucs4-unsafe: Update.
62521         * modules/utf16-ucs4: Update.
62522         * modules/utf16-ucs4-unsafe: Update.
62523         * modules/ucs4-utf8: Update.
62524         * modules/ucs4-utf16: Update.
62525
62526 2007-03-24  Bruno Haible  <bruno@clisp.org>
62527
62528         * lib/utf8-ucs4.h: Remove file.
62529         * lib/utf8-ucs4-unsafe.h: Remove file.
62530         * lib/utf16-ucs4.h: Remove file.
62531         * lib/utf16-ucs4-unsafe.h: Remove file.
62532         * lib/ucs4-utf8.h: Remove file.
62533         * lib/ucs4-utf16.h: Remove file.
62534         * lib/unistr.h: Include their previous contents.
62535         * m4/utf-ucs4.m4: Remove file.
62536         * m4/ucs4-utf.m4: Remove file.
62537         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62538         (Depends-on): Add unistr/base.
62539         (configure.ac): Remove gl_UTF_UCS4.
62540         (Makefile.am): Update.
62541         (Include): Change to unistr.h.
62542         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62543         (Depends-on): Add unistr/base.
62544         (configure.ac): Remove gl_UTF_UCS4.
62545         (Makefile.am): Update.
62546         (Include): Change to unistr.h.
62547         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62548         (Depends-on): Add unistr/base.
62549         (configure.ac): Remove gl_UTF_UCS4.
62550         (Makefile.am): Update.
62551         (Include): Change to unistr.h.
62552         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62553         (Depends-on): Add unistr/base.
62554         (configure.ac): Remove gl_UTF_UCS4.
62555         (Makefile.am): Update.
62556         (Include): Change to unistr.h.
62557         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62558         (Depends-on): Add unistr/base.
62559         (configure.ac): Remove gl_UCS4_UTF.
62560         (Makefile.am): Update.
62561         (Include): Change to unistr.h.
62562         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62563         (Depends-on): Add unistr/base.
62564         (configure.ac): Remove gl_UCS4_UTF.
62565         (Makefile.am): Update.
62566         (Include): Change to unistr.h.
62567         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62568         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62569         utf8-ucs4-unsafe.h.
62570         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62571         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62572         utf16-ucs4-unsafe.h.
62573         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62574         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62575         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62576         * lib/unistr/u8-strchr.c: Likewise.
62577         * lib/unistr/u8-strrchr.c: Likewise.
62578         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62579         * lib/unistr/u16-strchr.c: Likewise.
62580         * lib/unistr/u16-strrchr.c: Likewise.
62581         * lib/striconveh.c: Update.
62582         * lib/linebreak.c: Update.
62583
62584 2007-03-24  Bruno Haible  <bruno@clisp.org>
62585
62586         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62587         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62588
62589 2007-03-22  Bruno Haible  <bruno@clisp.org>
62590
62591         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62592
62593 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * MODULES.html.sh (File system functions): New module write-any-file.
62596         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62597         * m4/write-any-file.m4: New files.
62598
62599 2007-03-23  Eric Blake  <ebb9@byu.net>
62600
62601         * gnulib-tool: Rearrange space-tab sequences, since some editors
62602         like to eat them.
62603
62604 2007-03-23  Eric Blake  <ebb9@byu.net>
62605
62606         * lib/version-etc.c (version_etc_va): Update license wording to
62607         be more concise.  Recommended by Richard Stallman.
62608
62609 2007-03-22  Bruno Haible  <bruno@clisp.org>
62610
62611         * lib/poll.c (MSG_PEEK): New fallback definition.
62612
62613 2007-03-22  Bruno Haible  <bruno@clisp.org>
62614
62615         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62616         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62617         (main): Update.
62618         Fixes a compilation error on BeOS.
62619
62620 2007-03-22  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/frexpl-tests: New file.
62623         * tests/test-frexpl.c: New file.
62624
62625         * modules/frexpl: New file.
62626         * m4/frexpl.m4: New file.
62627         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62628         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62630         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62631         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62632         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62633
62634 2007-03-22  Bruno Haible  <bruno@clisp.org>
62635
62636         * lib/frexpl.c: Share code with lib/frexp.c.
62637         * modules/mathl (Files): Add lib/frexp.c.
62638         (Depends-on): Add isnanl-nolibm.
62639
62640 2007-03-22  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/printf-frexp (Files): Add m4/frexp.m4.
62643         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62644         only if the found frexp function actually works.
62645
62646 2007-03-22  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/frexp.c: Remove older implementation that uses divisions.
62649
62650 2007-03-21  Bruno Haible  <bruno@clisp.org>
62651
62652         * modules/frexp-tests: New file.
62653         * tests/test-frexp.c: New file.
62654
62655         * modules/frexp: New file.
62656         * lib/frexp.c: New file.
62657         * m4/frexp.m4: New file.
62658         * lib/math_.h (frexp): New declaration.
62659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62660         REPLACE_FREXP.
62661         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62662
62663 2007-03-21  Bruno Haible  <bruno@clisp.org>
62664
62665         * modules/isnanl-tests: New file.
62666         * tests/test-isnanl.c: New file.
62667
62668         * modules/isnanl: New file.
62669         * lib/isnanl.h: New file.
62670         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62671         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62672         gl_FUNC_ISNANL_WORKS.
62673         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62674         New macros.
62675
62676 2007-03-21  Bruno Haible  <bruno@clisp.org>
62677
62678         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62679         lib/isnanl.h.
62680         (Include): Update.
62681         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62682         * lib/vasnprintf.c: Update.
62683         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62684         tests/test-isnanl.h, remove tests/test-isnanl.c.
62685         (Makefile.am): Update.
62686         * tests/test-isnanl-nolibm.c: New file.
62687         * tests/test-isnanl.h: New file.
62688         * tests/test-isnanl.c: Remove file.
62689
62690 2007-03-21  Jim Meyering  <jim@meyering.net>
62691
62692         When trying to open ".", treat ESTALE like EACCES.
62693         * lib/savewd.c (savewd_save): Resort to forking not just upon
62694         failure with EACCES, but also when errno is ESTALE.
62695
62696 2007-03-20  Bruno Haible  <bruno@clisp.org>
62697
62698         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62699         Needed on AIX 5.1. Reported by Matthew Woehlke.
62700
62701 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62702
62703         Suggestions by Bruno Haible:
62704         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62705         our own.
62706         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62707         * modules/acl (Depends-on): Add gettext.
62708
62709 2007-03-19  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/iconvme: Remove file.
62712         * lib/iconvme.h: Remove file.
62713         * lib/iconvme.c: Remove file.
62714         * m4/iconvme.m4: Remove file.
62715
62716 2007-03-19  Bruno Haible  <bruno@clisp.org>
62717
62718         * doc/relocatable-maint.texi: Break long shell script line.
62719         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62720
62721 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62722
62723         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62724         handle file_has_acl.
62725         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62726         * lib/acl.c: Move header inclusions and related macro defns into
62727         lib/acl-internal.h.
62728         (S_ISLNK): Remove defn, since that's now done for us.
62729         (file_has_acl): Move to lib/file-has-acl.c.
62730         Call acl_trivial if available.  This is the crucial part of the fix.
62731         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62732         shared within the library.  Rewrite a bit, partly to make it compatible
62733         with the GNU coding style.
62734         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62735         Remove unnecessary double-quotes.
62736         Don't test for acl_to_text; the build will catch that.
62737         Replace acl_entries if it doesn't exist and it is needed.
62738         Check for -lsec and acl_trivial (as used on Solaris 10).
62739         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62740         lib/file-has-acl.c.
62741         (Depends-on): Add sys_stat, for S_ISLNK.
62742
62743 2007-03-19  Ben Pfaff  <blp@gnu.org>
62744
62745         * doc/gnulib.texi: Fix typos.
62746         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62747
62748 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62751         If size is zero here, buf must be zero.
62752
62753 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62754
62755         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62756         <bruno@clisp.org>.
62757
62758 2007-03-18  Bruno Haible  <bruno@clisp.org>
62759
62760         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62761         Suggested by Eric Blake.
62762
62763 2007-03-18  Ben Pfaff  <blp@gnu.org>
62764
62765         * doc/relocatable.texi: Recommend using as prefix a directory
62766         that does not exist and will never be created.  Based on
62767         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62768         and others.
62769
62770 2007-03-17  Bruno Haible  <bruno@clisp.org>
62771
62772         * lib/fchownat.c: Include lchown.h.
62773
62774 2007-03-17  Bruno Haible  <bruno@clisp.org>
62775
62776         Fix endless loop when the given allocated size was > INT_MAX.
62777         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62778         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62779         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62780         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62781         * lib/sprintf.c (sprintf): Likewise.
62782
62783 2007-03-17  Bruno Haible  <bruno@clisp.org>
62784
62785         * tests/test-argp-2.sh (func_compare): Output a context diff.
62786
62787 2007-03-17  Bruno Haible  <bruno@clisp.org>
62788
62789         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62790         locale's decimal-point character.
62791
62792 2007-03-17  Bruno Haible  <bruno@clisp.org>
62793
62794         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62795         before comparing it. Needed because on some platforms (e.g. x86) a
62796         'long double' occupies less bytes than sizeof (long double).
62797
62798 2007-03-17  Bruno Haible  <bruno@clisp.org>
62799
62800         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62801         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62802         * tests/test-getaddrinfo.c (simple): Likewise.
62803         * tests/test-read-file.c (main): Likewise.
62804
62805 2007-03-17  Bruno Haible  <bruno@clisp.org>
62806
62807         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62808
62809 2007-03-17  Bruno Haible  <bruno@clisp.org>
62810
62811         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62812         unused variable.
62813
62814 2007-03-17  Bruno Haible  <bruno@clisp.org>
62815
62816         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62817         * tests/test-c-strncasecmp.c: Likewise.
62818
62819 2007-03-17  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/stdlib (Depends-on): Add unistd.
62822         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62823         Needed for MacOS X 10.3.
62824
62825 2007-03-17  Bruno Haible  <bruno@clisp.org>
62826
62827         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62828
62829 2007-03-17  Bruno Haible  <bruno@clisp.org>
62830
62831         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62832
62833 2007-03-17  Bruno Haible  <bruno@clisp.org>
62834
62835         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62836         to reflect files copied from gnulib (with or without modifications).
62837         Suggested by Jim Meyering.
62838
62839 2007-03-17  Eric Blake  <ebb9@byu.net>
62840
62841         * NEWS: Document stdlib change from 2007-02-18.
62842
62843 2007-03-17  Jim Meyering  <jim@meyering.net>
62844
62845         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62846         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62847         someone uses a name containing shell meta-characters.
62848         Reported by Alfred M. Szmidt.
62849
62850         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62851
62852 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62853
62854         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62855         and copy gettext configuration files only if configure.ac contains
62856         a use of AM_GNU_GETTEXT_VERSION.
62857
62858 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62859
62860         * build-aux/bootstrap (gnulib_name): New variable.
62861         (gnulib_tool_options): Use it.
62862
62863 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62864
62865         * tests/test-des.c: Use new namespace.
62866
62867 2007-03-15  Bruno Haible  <bruno@clisp.org>
62868
62869         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62870         Reported by James Youngman <jay@gnu.org>.
62871
62872 2007-03-15  Bruno Haible  <bruno@clisp.org>
62873
62874         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62875         declared prototype. Needed with cc on OSF/1 5.1.
62876
62877 2007-03-15  Bruno Haible  <bruno@clisp.org>
62878
62879         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62880         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62881         (struct gl_list_implementation): Add dispose_fn argument to the
62882         'create_empty', 'create' methods.
62883         (struct gl_list_impl_base): Add field 'dispose_fn'.
62884         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62885         argument.
62886         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62887         dispose_fn argument.
62888         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62889         dispose_fn on the dropped values.
62890         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62891         dispose_fn argument.
62892         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62893         dropped values.
62894         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62895         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62896         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62897         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62898         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62899         argument.
62900         (gl_tree_list_free): Call dispose_fn on the dropped values.
62901         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62902         the dropped values.
62903         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62904         Add dispose_fn argument.
62905         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62906         Call dispose_fn on the dropped values.
62907         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62908         Add dispose_fn argument.
62909         (gl_sublist_create): Initialize the 'dispose_fn' field.
62910         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62911         * tests/test-array_list.c (main): Update.
62912         * tests/test-carray_list.c (main): Update.
62913         * tests/test-avltree_list.c (main): Update.
62914         * tests/test-rbtree_list.c (main): Update.
62915         * tests/test-avltreehash_list.c (main): Update.
62916         * tests/test-rbtreehash_list.c (main): Update.
62917         * tests/test-linked_list.c (main): Update.
62918         * tests/test-linkedhash_list.c (main): Update.
62919         * tests/test-array_oset.c (main): Update.
62920
62921 2007-03-15  Bruno Haible  <bruno@clisp.org>
62922
62923         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62924         (gl_oset_create_empty): Add dispose_fn argument.
62925         (struct gl_oset_implementation): Add dispose_fn argument to
62926         'create_empty' method.
62927         (struct gl_oset_impl_base): Add dispose_fn field.
62928         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62929         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62930         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62931         values.
62932         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62933         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62934         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62935         dropped value.
62936         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62937         dropped value.
62938         * tests/test-array_oset.c (main): Update.
62939         * tests/test-avltree_oset.c (main): Update.
62940         * tests/test-rbtree_oset.c (main): Update.
62941         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62942
62943 2007-03-13  Bruno Haible  <bruno@clisp.org>
62944
62945         * tests/test-stdbool.c (i): Update after last patch.
62946
62947 2007-03-12  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62950         the iswprint macro. Needed on Solaris 2.5.1.
62951
62952 2007-03-12  Bruno Haible  <bruno@clisp.org>
62953
62954         * tests/test-printf-frexp.c (main): Declare x as volatile.
62955
62956 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62957
62958         * doc/gnulib.texi (Build robot for gnulib): New section.
62959
62960 2007-03-12  Jim Meyering  <jim@meyering.net>
62961
62962         * build-aux/bootstrap: New file.
62963         * build-aux/bootstrap.conf: New file, from coreutils.
62964
62965 2007-03-11  Bruno Haible  <bruno@clisp.org>
62966
62967         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62968
62969 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62970
62971         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62972         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62973         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62974
62975 2007-03-11  Bruno Haible  <bruno@clisp.org>
62976
62977         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62978         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62979
62980 2007-03-11  Bruno Haible  <bruno@clisp.org>
62981
62982         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62983         formula. Needed for SunPRO C 5.0.
62984
62985 2007-03-11  Bruno Haible  <bruno@clisp.org>
62986
62987         * modules/long-options (Depends-on): Add getopt.
62988
62989 2007-03-11  Bruno Haible  <bruno@clisp.org>
62990
62991         * modules/modechange (Depends-on): Add stdbool.
62992
62993 2007-03-11  Bruno Haible  <bruno@clisp.org>
62994
62995         * modules/i-ring (Depends-on): Add stdbool.
62996
62997 2007-03-11  Bruno Haible  <bruno@clisp.org>
62998
62999         * modules/gc-des (Depends-on): Add stdbool.
63000
63001 2007-03-11  Bruno Haible  <bruno@clisp.org>
63002
63003         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63004
63005 2007-03-11  Bruno Haible  <bruno@clisp.org>
63006
63007         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63008
63009 2007-03-11  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63012
63013 2007-03-11  Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/vasnprintf.c (sprintf): Undefine.
63016
63017 2007-03-11  Bruno Haible  <bruno@clisp.org>
63018
63019         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63020         initializers in SunPRO C and Compaq C compilers.
63021
63022 2007-03-11  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63025         decrementing code ANSI C compliant.
63026
63027 2007-03-11  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63030         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63031
63032 2007-03-11  Bruno Haible  <bruno@clisp.org>
63033
63034         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63035         <stdbool.h> substitute doesn't pass.
63036
63037 2007-03-11  Bruno Haible  <bruno@clisp.org>
63038
63039         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63040
63041 2007-03-11  Bruno Haible  <bruno@clisp.org>
63042
63043         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63044         script, for submission to autobuild.josefsson.org.
63045
63046 2007-03-10  Bruno Haible  <bruno@clisp.org>
63047
63048         * modules/canonicalize-lgpl-tests: New file.
63049         * tests/test-canonicalize-lgpl.sh: New file.
63050         * tests/test-canonicalize-lgpl.c: New file.
63051
63052         * modules/c-strcase-tests: New file.
63053         * tests/test-c-strcase.sh: New file.
63054         * tests/test-c-strcasecmp.c: New file.
63055         * tests/test-c-strncasecmp.c: New file.
63056
63057         * modules/atexit-tests: New file.
63058         * tests/test-atexit.sh: New file.
63059         * tests/test-atexit.c: New file.
63060
63061 2007-03-10  Bruno Haible  <bruno@clisp.org>
63062
63063         * tests/test-binary-io.sh: Use temporary filenames that are not so
63064         likely to clash with those of other tests (in a parallel make).
63065         * tests/test-binary-io.c: Likewise.
63066
63067 2007-03-10  Bruno Haible  <bruno@clisp.org>
63068
63069         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63070         fallback; use #error instead.
63071         Suggested by Simon Josefsson.
63072
63073 2007-03-10  Bruno Haible  <bruno@clisp.org>
63074
63075         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63076         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63077         first and the last.
63078
63079 2007-03-10  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63082
63083 2007-03-10  Bruno Haible  <bruno@clisp.org>
63084
63085         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63086         "make distcheck".
63087         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63088         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63089         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63090
63091 2007-03-10  Bruno Haible  <bruno@clisp.org>
63092
63093         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63094         variable.
63095         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63096         variable.
63097
63098 2007-03-09  Eric Blake  <ebb9@byu.net>
63099         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63100
63101         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63102         types are not being provided by gnulib.
63103         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63104         types are supported.
63105
63106 2007-03-10  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/stdio_.h (__attribute__): New macro.
63109         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63110         vsprintf): Specify __attribute__ __format__ for GCC.
63111         Suggested by Eric Blake.
63112
63113 2007-03-09  Bruno Haible  <bruno@clisp.org>
63114
63115         * modules/printf-posix-tests: New file.
63116         * tests/test-printf-posix.sh: New file.
63117         * tests/test-printf-posix.c: New file.
63118
63119         * modules/printf-posix: New file.
63120         * lib/printf.c: New file.
63121         * m4/printf-posix-rpl.m4: New file.
63122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63123         REPLACE_PRINTF.
63124         * lib/stdio_.h (printf): New declaration.
63125         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63126         ____strfmon____): New macros.
63127         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63128         REPLACE_PRINTF.
63129
63130 2007-03-09  Bruno Haible  <bruno@clisp.org>
63131
63132         * tests/test-vasnprintf-posix2.sh: New file.
63133         * tests/test-vasnprintf-posix2.c: New file.
63134         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63135         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63136         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63137
63138         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63139         a locale dependent decimal point, rather than always '.'.
63140
63141 2007-03-09  Eric Blake  <ebb9@byu.net>
63142
63143         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63144         spite of platforms like Tandem/NSK that define it to -1.
63145
63146 2007-03-08  Bruno Haible  <bruno@clisp.org>
63147
63148         * modules/vprintf-posix-tests: New file.
63149         * tests/test-vprintf-posix.sh: New file.
63150         * tests/test-vprintf-posix.c: New file.
63151         * tests/test-printf-posix.h: New file.
63152
63153         * modules/vprintf-posix: New file.
63154         * lib/vprintf.c: New file.
63155         * m4/vprintf-posix.m4: New file.
63156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63157         REPLACE_VPRINTF.
63158         * lib/stdio_.h (vprintf): New declaration.
63159         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63160         REPLACE_VPRINTF.
63161
63162 2007-03-08  Bruno Haible  <bruno@clisp.org>
63163
63164         * modules/fprintf-posix-tests: New file.
63165         * tests/test-fprintf-posix.sh: New file.
63166         * tests/test-fprintf-posix.c: New file.
63167
63168         * modules/fprintf-posix: New file.
63169         * lib/fprintf.c: New file.
63170         * m4/fprintf-posix.m4: New file.
63171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63172         REPLACE_FPRINTF.
63173         * lib/stdio_.h (fprintf): New declaration.
63174         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63175         REPLACE_FPRINTF.
63176
63177 2007-03-08  Bruno Haible  <bruno@clisp.org>
63178
63179         * modules/vfprintf-posix-tests: New file.
63180         * tests/test-vfprintf-posix.sh: New file.
63181         * tests/test-vfprintf-posix.c: New file.
63182         * tests/test-fprintf-posix.h: New file.
63183         * tests/test-fprintf-posix.out: New file.
63184
63185         * modules/vfprintf-posix: New file.
63186         * lib/vfprintf.c: New file.
63187         * m4/vfprintf-posix.m4: New file.
63188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63189         REPLACE_VFPRINTF.
63190         * lib/stdio_.h (vfprintf): New declaration.
63191         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63192         REPLACE_VFPRINTF.
63193
63194 2007-03-08  Bruno Haible  <bruno@clisp.org>
63195
63196         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63197
63198 2007-03-08  Bruno Haible  <bruno@clisp.org>
63199
63200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63201         instead of 'expr' invocations.
63202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63205         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63207         Suggested by Paul Eggert.
63208
63209 2007-03-08  Bruno Haible  <bruno@clisp.org>
63210
63211         * modules/fseterr-tests: New file.
63212         * tests/test-fseterr.c: New file.
63213
63214         * modules/fseterr: New file.
63215         * lib/fseterr.h: New file.
63216         * lib/fseterr.c: New file.
63217
63218 2007-03-08  Bruno Haible  <bruno@clisp.org>
63219
63220         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63221         * lib/getopt_.h: Likewise.
63222         * lib/mbswidth.h: Likewise.
63223         * lib/setenv.h: Likewise.
63224         * lib/vasnprintf.h: Likewise.
63225         * lib/vasprintf.h: Likewise.
63226         * lib/verror.h: Likewise.
63227         * lib/xsetenv.h: Likewise.
63228         * lib/xvasprintf.h: Likewise.
63229
63230 2007-03-08  Jim Meyering  <jim@meyering.net>
63231
63232         * users.txt: Add parted.
63233
63234         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63235
63236 2007-03-07  Bruno Haible  <bruno@clisp.org>
63237
63238         * m4/printf.m4: Make the shell script snippets copy&pastable.
63239
63240 2007-03-02  Bruno Haible  <bruno@clisp.org>
63241
63242         * lib/netinet_in_.h: New file.
63243         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63244         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63245         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63246         (Depends-on): Add absolute-header.
63247         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63248         into netinet/in.h.
63249
63250 2007-03-03  Bruno Haible  <bruno@clisp.org>
63251
63252         * lib/sys_select_.h: New file.
63253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63254         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63255         * modules/sys_select (Files): Add lib/sys_select_.h.
63256         (Depends-on): Add absolute-header.
63257         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63258         into sys/select.h.
63259
63260 2007-03-02  Bruno Haible  <bruno@clisp.org>
63261
63262         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63263         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63264         values.
63265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63266         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63267         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63268         * modules/sys_socket (Depends-on): Add absolute-header.
63269         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63270         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63271         (Include): Remove requirement of inclusion of <sys/types.h>.
63272
63273 2007-03-02  Bruno Haible  <bruno@clisp.org>
63274
63275         * lib/byteswap_.h (bswap_32): Fix formula.
63276
63277 2007-03-06  Bruno Haible  <bruno@clisp.org>
63278
63279         * modules/sprintf-posix-tests: New file.
63280         * tests/test-sprintf-posix.c: New file.
63281
63282         * modules/sprintf-posix: New file.
63283         * lib/sprintf.c: New file.
63284         * m4/sprintf-posix.m4: New file.
63285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63286         REPLACE_SPRINTF.
63287         * lib/stdio_.h (sprintf): New declaration.
63288         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63289         REPLACE_SPRINTF.
63290
63291 2007-03-06  Bruno Haible  <bruno@clisp.org>
63292
63293         * modules/vsprintf-posix-tests: New file.
63294         * tests/test-vsprintf-posix.c: New file.
63295         * tests/test-sprintf-posix.h: New file.
63296
63297         * modules/vsprintf-posix: New file.
63298         * lib/vsprintf.c: New file.
63299         * m4/vsprintf-posix.m4: New file.
63300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63301         REPLACE_VSPRINTF.
63302         * lib/stdio_.h (vsprintf): New declaration.
63303         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63304         REPLACE_VSPRINTF.
63305
63306 2007-03-06  Bruno Haible  <bruno@clisp.org>
63307
63308         * modules/vsnprintf (Depend-on): Remove minmax.
63309
63310 2007-03-06  Bruno Haible  <bruno@clisp.org>
63311
63312         * modules/snprintf-posix-tests: New file.
63313         * tests/test-snprintf-posix.c: New file.
63314
63315         * modules/snprintf-posix: New file.
63316         * m4/snprintf-posix.m4: New file.
63317         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63318         gl_FUNC_SNPRINTF.
63319         (gl_FUNC_SNPRINTF): Invoke it.
63320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63321         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63322         is set.
63323         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63324
63325 2007-03-06  Bruno Haible  <bruno@clisp.org>
63326
63327         * modules/vsnprintf-posix-tests: New file.
63328         * tests/test-vsnprintf-posix.c: New file.
63329         * tests/test-snprintf-posix.h: New file.
63330
63331         * modules/vsnprintf-posix: New file.
63332         * m4/vsnprintf-posix.m4: New file.
63333         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63334         gl_FUNC_VSNPRINTF.
63335         (gl_FUNC_VSNPRINTF): Invoke it.
63336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63337         * lib/stdio_.h (vsnprintf): Define as a replacement if
63338         REPLACE_VSNPRINTF is set.
63339         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63340
63341 2007-03-06  Bruno Haible  <bruno@clisp.org>
63342
63343         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63344         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63345
63346 2007-03-06  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63349         (asinl): Declare also if HAVE_DECL_ASINL is set.
63350         (atanl): Declare also if HAVE_DECL_ATANL is set.
63351         (ceill): Declare also if HAVE_DECL_CEILL is set.
63352         (cosl): Declare also if HAVE_DECL_COSL is set.
63353         (expl): Declare also if HAVE_DECL_EXPL is set.
63354         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63355         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63356         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63357         (logl): Declare also if HAVE_DECL_LOGL is set.
63358         (sinl): Declare also if HAVE_DECL_SINL is set.
63359         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63360         (tanl): Declare also if HAVE_DECL_TANL is set.
63361         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63363         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63364         declaration of frexpl, ldexpl.
63365         * modules/printf-frexpl (Depends-on): Add math.
63366         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63367
63368 2007-03-05  Bruno Haible  <bruno@clisp.org>
63369
63370         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63371         frexpl and ldexpl are declared.
63372         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63373
63374 2007-03-05  Bruno Haible  <bruno@clisp.org>
63375
63376         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63377         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63378
63379 2007-03-05  Bruno Haible  <bruno@clisp.org>
63380
63381         * lib/stdio_.h: Include <stddef.h>.
63382
63383 2007-03-05  Bruno Haible  <bruno@clisp.org>
63384
63385         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63386
63387 2007-03-05  Bruno Haible  <bruno@clisp.org>
63388
63389         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63390         NetBSD 4, from Ralf Wildenhues.
63391
63392 2007-03-04  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/vasprintf.h: Update #if logic for the case when the functions
63395         exist but are overridden.
63396
63397 2007-03-04  Bruno Haible  <bruno@clisp.org>
63398
63399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63400         implementations: glibc-2.4 and MacOS X 10.3.
63401         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63402         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63403         * tests/test-vasprintf-posix.c (test_function): Likewise.
63404
63405 2007-03-04  Bruno Haible  <bruno@clisp.org>
63406
63407         * modules/vasprintf-posix-tests: New file.
63408         * tests/test-vasprintf-posix.c: New file.
63409
63410         * modules/vasprintf-posix: New file.
63411         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63412         defined.
63413         * m4/vasprintf-posix.m4: New file.
63414         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63415         gl_FUNC_VASPRINTF.
63416         (gl_FUNC_VASPRINTF): Invoke it.
63417         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63418         here.
63419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63420
63421 2007-03-04  Bruno Haible  <bruno@clisp.org>
63422
63423         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63424         REPLACE_GETTIMEOFDAY.
63425         * modules/sys_time (Makefile.am): Likewise.
63426         * m4/sys_time_h.m4: Likewise.
63427         * m4/gettimeofday.m4: Likewise.
63428
63429 2007-03-04  Bruno Haible  <bruno@clisp.org>
63430
63431         * modules/vasnprintf-posix-tests: New file.
63432         * tests/test-vasnprintf-posix.c: New file.
63433
63434         * modules/vasnprintf-posix: New file.
63435         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63436         printf-frexpl.h.
63437         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63438         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63439         REPLACE_VASNPRINTF is defined.
63440         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63441         gl_FUNC_VASNPRINTF.
63442         (gl_FUNC_VASNPRINTF): Invoke it.
63443         * m4/vasnprintf-posix.m4: New file.
63444         * m4/printf.m4: New file.
63445
63446 2007-03-04  Bruno Haible  <bruno@clisp.org>
63447
63448         Compile progreloc.c only if --enable-relocatable is specified.
63449         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63450         if --enable-relocatable was specified.
63451         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63452         lib_SOURCES.
63453
63454 2007-03-04  Jim Meyering  <jim@meyering.net>
63455
63456         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63457         Use it consistently, rather than enumerating errno constants.
63458
63459 2007-03-04  Bruno Haible  <bruno@clisp.org>
63460
63461         * modules/xvasprintf-tests: New file.
63462         * tests/test-xvasprintf.c: New file.
63463
63464         * modules/vasprintf-tests: New file.
63465         * tests/test-vasprintf.c: New file.
63466
63467         * modules/vasnprintf-tests: New file.
63468         * tests/test-vasnprintf.c: New file.
63469
63470         * modules/vsnprintf-tests: New file.
63471         * tests/test-vsnprintf.c: New file.
63472
63473         * modules/snprintf-tests: New file.
63474         * tests/test-snprintf.c: New file.
63475
63476 2007-03-04  Bruno Haible  <bruno@clisp.org>
63477
63478         Compile relocatable.c only if --enable-relocatable is specified.
63479         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63480         gl_RELOCATABLE_LIBRARY.
63481         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63482         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63483         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63484         gl_RELOCATABLE_LIBRARY.
63485         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63486         (Makefile.am): Remove lib_SOURCES.
63487         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63488         gl_RELOCATABLE_LIBRARY.
63489         (Makefile.am): Remove lib_SOURCES.
63490         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63491         always.
63492         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63493         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63494
63495 2007-03-04  Bruno Haible  <bruno@clisp.org>
63496
63497         * modules/argmatch-tests: New file.
63498         * tests/test-argmatch.c: New file.
63499
63500         * tests/test-allocsa.c (main): Halve the number of loop runs.
63501
63502         * modules/alloca-opt-tests: New file.
63503         * tests/test-alloca-opt.c: New file.
63504
63505 2007-03-04  Jim Meyering  <jim@meyering.net>
63506
63507         Work around difference between Linux ACLs and Solaris 10 ZFS.
63508         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63509         for EINVAL.
63510
63511 2007-03-03  Bruno Haible  <bruno@clisp.org>
63512
63513         * modules/relocatable-prog (Depends-on): Add back progreloc's
63514         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63515
63516 2007-03-03  Bruno Haible  <bruno@clisp.org>
63517
63518         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63519         * modules/relocatable-lib: New file.
63520
63521 2007-03-03  Bruno Haible  <bruno@clisp.org>
63522
63523         * modules/relocatable-prog: Renamed from modules/relocatable.
63524         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63525
63526 2007-03-03  Bruno Haible  <bruno@clisp.org>
63527
63528         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63529         m4/relocatable-lib.m4.
63530         (Depends-on): Remove 'relocatable'.
63531         (configure.ac): Add gl_RELOCATABLE_NOP.
63532
63533 2007-03-03  Bruno Haible  <bruno@clisp.org>
63534
63535         * modules/relocatable-prog-wrapper: New file.
63536         * modules/relocatable (Depends-on): Add it. Remove all other
63537         dependencies except progname.
63538         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63539
63540         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63541         (gl_FUNC_STRERROR): Nop.
63542         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63543
63544         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63545         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63546
63547         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63548         (gl_FUNC_READLINK): Update.
63549
63550         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63551
63552 2007-03-03  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63555         * modules/xreadlink (Depends-on): Add unistd.
63556         * modules/xreadlink-with-size (Depends-on): Likewise.
63557
63558 2007-03-03  Bruno Haible  <bruno@clisp.org>
63559
63560         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63561         extracted from gt_FUNC_SETENV.
63562         (gt_FUNC_SETENV): Remove macro.
63563         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63564         remove gt_FUNC_SETENV.
63565
63566 2007-03-03  Bruno Haible  <bruno@clisp.org>
63567
63568         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63569         ENABLE_RELOCATABLE here.
63570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63571
63572 2007-03-03  Bruno Haible  <bruno@clisp.org>
63573
63574         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63575         * tests/test-rbtreehash_list.c: Include progname.h.
63576         (main): Call set_program_name.
63577
63578         * modules/rbtree-oset-tests (Depends-on): Add progname.
63579         * tests/test-rbtree_oset.c: Include progname.h.
63580         (main): Call set_program_name.
63581
63582         * modules/rbtree-list-tests (Depends-on): Add progname.
63583         * tests/test-rbtree_list.c: Include progname.h.
63584         (main): Call set_program_name.
63585
63586         * modules/linked-list-tests (Depends-on): Add progname.
63587         * tests/test-linked_list.c: Include progname.h.
63588         (main): Call set_program_name.
63589
63590 2007-03-03  Bruno Haible  <bruno@clisp.org>
63591
63592         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63593         All uses of __restrict changed to _Restrict_.
63594         * lib/glob_.h (__restrict): Remove macro.
63595
63596 2007-03-02  Bruno Haible  <bruno@clisp.org>
63597
63598         * modules/gettext (configure.ac): Require gettext infrastructure
63599         from version 0.16.1.
63600
63601 2007-03-02  Bruno Haible  <bruno@clisp.org>
63602
63603         * modules/linkedhash-list-tests (Depends-on): Add progname.
63604         * tests/test-linkedhash_list.c: Include progname.h.
63605         (main): Call set_program_name.
63606
63607         * modules/carray-list-tests (Depends-on): Add progname.
63608         * tests/test-carray_list.c: Include progname.h.
63609         (main): Call set_program_name.
63610
63611         * modules/avltreehash-list-tests (Depends-on): Add progname.
63612         * tests/test-avltreehash_list.c: Include progname.h.
63613         (main): Call set_program_name.
63614
63615         * modules/avltree-oset-tests (Depends-on): Add progname.
63616         * tests/test-avltree_oset.c: Include progname.h.
63617         (main): Call set_program_name.
63618
63619         * modules/avltree-list-tests (Depends-on): Add progname.
63620         * tests/test-avltree_list.c: Include progname.h.
63621         (main): Call set_program_name.
63622
63623         * modules/array-oset-tests (Depends-on): Add progname.
63624         * tests/test-array_oset.c: Include progname.h.
63625         (main): Call set_program_name.
63626
63627         * modules/array-list-tests (Depends-on): Add progname.
63628         * tests/test-array_list.c: Include progname.h.
63629         (main): Call set_program_name.
63630
63631         * modules/argp-tests (Depends-on): Add progname.
63632         * tests/test-argp.c: Include argp.h first. Include progname.h.
63633         (main): Call set_program_name.
63634
63635 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         * doc/gnulib-tool.texi (Initial import): Reword description of
63638         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63639         limited effect even if defined after the first system include.
63640
63641 2007-03-01  Bruno Haible  <bruno@clisp.org>
63642
63643         * build-aux/config.libpath: Update to libtool-1.5.22.
63644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63645
63646 2007-03-01  Bruno Haible  <bruno@clisp.org>
63647
63648         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63649         foo_CFLAGS.
63650         Reported by Ralf Wildenhues.
63651
63652 2007-03-01  Bruno Haible  <bruno@clisp.org>
63653
63654         * build-aux/install-reloc: Remove object files left over by some
63655         compilers.
63656         Reported by Ralf Wildenhues.
63657
63658 2007-03-01  Bruno Haible  <bruno@clisp.org>
63659
63660         * build-aux/install-reloc: Break long lines.
63661
63662 2007-03-01  Bruno Haible  <bruno@clisp.org>
63663
63664         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63665         Reported by Ralf Wildenhues.
63666
63667 2007-03-01  Bruno Haible  <bruno@clisp.org>
63668
63669         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63670         include ordering constraints.
63671
63672 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63676         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63677         as another example.
63678         * lib/time_.h: Fix misspelling.
63679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63680         Require gl_HEADER_TIME_H_DEFAULTS.
63681         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63682         * m4/time_r.m4 (gl_TIME_R): Likewise.
63683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63684
63685 2007-03-01  Bruno Haible  <bruno@clisp.org>
63686
63687         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63688         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63689
63690 2007-03-01  Jim Meyering  <jim@meyering.net>
63691
63692         * modules/xreadlink (Maintainer): Add my name.
63693         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63694
63695 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63696             Bruno Haible  <bruno@clisp.org>
63697
63698         * build-aux/install-reloc: Compile also c-ctype.c.
63699         * build-aux/relocatable.sh.in: New file.
63700         * doc/relocatable.texi: New file.
63701         * doc/relocatable-maint.texi: New file.
63702         * doc/gnulib.texi: Include relocatable-maint.texi.
63703         * lib/progreloc.c: Include unistd.h unconditionally.
63704         * lib/relocwrapper.c: Include unistd.h unconditionally.
63705         Include c-ctype.h.
63706         (add_dotbin): Use c_tolower.
63707         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63708         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63709         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63710         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63711         to m4/relocatable-lib.m4.
63712         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63713         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63714         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63715         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63716         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63717         * modules/relocatable: New file.
63718         * modules/relocatable-lib: New file.
63719         * modules/relocatable-script: New file.
63720
63721 2007-02-28  Bruno Haible  <bruno@clisp.org>
63722
63723         Import --enable-relocatable infrastructure.
63724         * build-aux/config.libpath: New file, from GNU gettext.
63725         * build-aux/install-reloc: New file, from GNU gettext.
63726         * build-aux/reloc-ldflags: New file, from GNU gettext.
63727         * lib/relocatable.h: New file, from GNU gettext.
63728         * lib/relocatable.c: New file, from GNU gettext.
63729         * lib/relocwrapper.c: New file, from GNU gettext.
63730         * m4/relocatable.m4: New file, from GNU gettext.
63731
63732 2007-02-28  Bruno Haible  <bruno@clisp.org>
63733
63734         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63735
63736         * modules/xreadlink: New file, from GNU gettext with modifications.
63737         * lib/xreadlink.c: New file, from GNU gettext.
63738         * lib/xreadlink.h: Add comments.
63739         (xreadlink): New declaration.
63740
63741         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63742         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63743         lib/xreadlink-with-size.c.
63744         (configure.ac): Remove gl_XREADLINK invocation.
63745         (Makefile.am): Augment lib_SOURCES.
63746         * m4/xreadlink.m4: Remove file.
63747         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63748         (xreadlink_with_size): Renamed from xreadink.
63749         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63750         * modules/canonicalize (Depends-on): Replace xreadlink with
63751         xreadlink-with-size.
63752         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63753
63754 2007-02-25  Jim Meyering  <jim@meyering.net>
63755
63756         * build-aux/announce-gen: When complaining about excess arguments,
63757         list them.
63758
63759 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         * README: Document signed integer overflow situation more
63762         accurately.
63763
63764 2007-02-25  Bruno Haible  <bruno@clisp.org>
63765
63766         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63767         'a' or 'A' conversion.
63768
63769 2007-02-25  Bruno Haible  <bruno@clisp.org>
63770
63771         * modules/filename: Renamed from modules/pathname.
63772         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63773         lib/concatpath.c with lib/concat-filename.c.
63774         (Makefile.am): Update.
63775         (Include): Replace pathname.h with filename.h.
63776         * lib/filename.h: Renamed from lib/pathname.h.
63777         (concatenated_filename): Renamed from concatenated_pathname.
63778         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63779         (concatenated_filename): Renamed from concatenated_pathname.
63780         * lib/findprog.c: Include filename.h instead of pathname.h.
63781         (find_in_path): Update.
63782         * lib/javacomp.c: Include filename.h instead of pathname.h.
63783         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63784         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63785         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63786         is_oldgcj_14_13_usable, is_javac_usable): Update.
63787         * lib/javaexec.c: Include filename.h instead of pathname.h.
63788         (execute_java_class): Update.
63789         * modules/findprog: Update.
63790         * modules/javacomp: Update.
63791         * modules/javaexec: Update.
63792         * MODULES.html.sh (File system functions): Add 'filename', remove
63793         'pathname'.
63794
63795 2007-02-25  Bruno Haible  <bruno@clisp.org>
63796
63797         * modules/printf-frexpl-tests: New file.
63798         * tests/test-printf-frexpl.c: New file.
63799
63800         * modules/printf-frexpl: New file.
63801         * lib/printf-frexpl.h: New file.
63802         * lib/printf-frexpl.c: New file.
63803         * m4/printf-frexpl.m4: New file.
63804
63805 2007-02-25  Bruno Haible  <bruno@clisp.org>
63806
63807         * modules/printf-frexp-tests: New file.
63808         * tests/test-printf-frexp.c: New file.
63809
63810         * modules/printf-frexp: New file.
63811         * lib/printf-frexp.h: New file.
63812         * lib/printf-frexp.c: New file.
63813         * m4/printf-frexp.m4: New file.
63814
63815 2007-02-25  Bruno Haible  <bruno@clisp.org>
63816
63817         Assume automake >= 1.10 for the tests.
63818         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63819         * modules/arctwo-tests: Likewise.
63820         * modules/argp-tests: Likewise.
63821         * modules/avltree-list-tests: Likewise.
63822         * modules/avltree-oset-tests: Likewise.
63823         * modules/avltreehash-list-tests: Likewise.
63824         * modules/carray-list-tests: Likewise.
63825         * modules/crc-tests: Likewise.
63826         * modules/des-tests: Likewise.
63827         * modules/gc-arcfour-tests: Likewise.
63828         * modules/gc-arctwo-tests: Likewise.
63829         * modules/gc-des-tests: Likewise.
63830         * modules/gc-hmac-md5-tests: Likewise.
63831         * modules/gc-hmac-sha1-tests: Likewise.
63832         * modules/gc-md2-tests: Likewise.
63833         * modules/gc-md4-tests: Likewise.
63834         * modules/gc-md5-tests: Likewise.
63835         * modules/gc-pbkdf2-sha1-tests: Likewise.
63836         * modules/gc-rijndael-tests: Likewise.
63837         * modules/gc-sha1-tests: Likewise.
63838         * modules/gc-tests: Likewise.
63839         * modules/getaddrinfo-tests: Likewise.
63840         * modules/hmac-md5-tests: Likewise.
63841         * modules/hmac-sha1-tests: Likewise.
63842         * modules/linked-list-tests: Likewise.
63843         * modules/linkedhash-list-tests: Likewise.
63844         * modules/lock-tests: Likewise.
63845         * modules/md2-tests: Likewise.
63846         * modules/md4-tests: Likewise.
63847         * modules/md5-tests: Likewise.
63848         * modules/rbtree-list-tests: Likewise.
63849         * modules/rbtree-oset-tests: Likewise.
63850         * modules/rbtreehash-list-tests: Likewise.
63851         * modules/read-file-tests: Likewise.
63852         * modules/rijndael-tests: Likewise.
63853         * modules/stdint-tests: Likewise.
63854         * modules/tls-tests: Likewise.
63855
63856 2007-02-24  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63859         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63860         function; instead check whether isnan with a double argument links.
63861         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63862         function; instead check whether isnan with a 'long double' argument
63863         links.
63864         Reported by Eric Blake <ebb9@byu.net>.
63865
63866 2007-02-24  Bruno Haible  <bruno@clisp.org>
63867
63868         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63869         defined.
63870         * lib/isnanl.c: Remove all code. Just include isnan.c.
63871         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63872
63873 2007-02-25  Jim Meyering  <jim@meyering.net>
63874
63875         Avoid conflicting types for 'unsetenv' on FreeBSD.
63876         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63877         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63878         in stdlib.h.
63879
63880 2007-02-24  Bruno Haible  <bruno@clisp.org>
63881
63882         * modules/isnanl-nolibm-tests: New file.
63883         * tests/test-isnanl.c: New file.
63884
63885         * modules/isnanl-nolibm: New file.
63886         * lib/isnanl.h: New file.
63887         * lib/isnanl.c: New file.
63888         * m4/isnanl.m4: New file.
63889
63890 2007-02-24  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/isnan-nolibm-tests: New file.
63893         * tests/test-isnan.c: New file.
63894
63895         * modules/isnan-nolibm: New file.
63896         * lib/isnan.h: New file.
63897         * lib/isnan.c: New file.
63898         * m4/isnan.m4: New file.
63899
63900 2007-02-24  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63903         assume that an exponent fits in 20 bits.
63904
63905 2007-02-24  Jim Meyering  <jim@meyering.net>
63906
63907         * m4/regex.m4: Update the description of the configure-time option,
63908         --without-included-regex, to state accurately what the defaults are,
63909         and perhaps to give people an idea why using this option is risky.
63910
63911 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63914         loops on small arguments.  This attempts to avoid the problem
63915         Bruno Haible reported for AIX 4.3.2 in
63916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63917
63918 2007-02-23  Bruno Haible  <bruno@clisp.org>
63919
63920         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63921         Needed for help2man.
63922
63923 2007-02-23  Karl Berry  <karl@gnu.org>
63924
63925         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63926         exists, foo.h should be cvs-ignored, not committed.
63927
63928 2007-02-23  Eric Blake  <ebb9@byu.net>
63929
63930         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63931         * lib/stat-time.h (includes): Likewise.
63932         * lib/utimecmp.c (includes): Likewise.
63933         * lib/utimens.h (includes): Likewise.
63934         * lib/getdate.y (includes): Also include "timespec.h" for use
63935         internal to the module.
63936         * modules/utimens (Depends-on): Revert yesterday's patch.
63937         * modules/nanosleep (Depends-on): Add missing dependency.
63938
63939 2007-02-22  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/glob.c: Don't include getlogin_r.h.
63942
63943 2007-02-22  Jim Meyering  <jim@meyering.net>
63944
63945         * modules/utimens (Depends-on): Add timespec, required for
63946         utimens.h's inclusion of timespec.h.
63947
63948 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63951         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63952         Schwab in
63953         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63954         I'll try to think of a better way to fix the Solaris problem.
63955
63956         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63957         like glibc; on Solaris 10, it fails with errno == EINVAL.
63958         POSIX says the behavior is unspecified if the first argument is NULL,
63959         so play it safe and never pass NULL to the system getcwd.
63960
63961 2007-02-21  Jim Meyering  <jim@meyering.net>
63962
63963         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63964         of gettimeofday.  It would conflict with the one now always
63965         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63966         an IRIX 6.5 build failure.
63967
63968 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         Minor fixups to port to Solaris 10 with Sun C 5.8.
63971         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63972         * modules/getcwd (Depends-on): Add dirfd.
63973         * lib/putenv.c (putenv): #undef it.
63974         (rpl_putenv): New decl.
63975         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63976
63977 2007-02-20  Bruno Haible  <bruno@clisp.org>
63978
63979         * modules/stdio-tests: New file.
63980         * tests/test-stdio.c: New file.
63981
63982         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63983         (Depends-on): Add stdio.
63984         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63985         (Include): Use <stdio.h> instead of vsnprintf.h.
63986         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63987         HAVE_DECL_VSNPRINTF.
63988         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63989
63990         * modules/snprintf (Files): Remove lib/snprintf.h.
63991         (Depends-on): Add stdio.
63992         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63993         (Include): Use <stdio.h> instead of snprintf.h.
63994         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63995         HAVE_DECL_SNPRINTF.
63996         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63997         * lib/getaddrinfo.c: Likewise.
63998
63999         * modules/stdio: New file.
64000         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64001         * lib/snprintf.h: Remove file.
64002         * lib/vsnprintf.h: Remove file.
64003         * lib/.cppi-disable: Remove snprintf.h.
64004         * m4/stdio_h.m4: New file.
64005         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64006
64007 2007-02-20  Jim Meyering  <jim@meyering.net>
64008
64009         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64010         used by e.g., mingw.  From Bruno Haible.
64011
64012 2007-02-19  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64015         warnings.
64016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64017
64018 2007-02-19  Bruno Haible  <bruno@clisp.org>
64019
64020         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64021         from mingw users.
64022
64023 2007-02-19  Bruno Haible  <bruno@clisp.org>
64024
64025         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64026         warnings.
64027         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64028
64029 2007-02-19  Jim Meyering  <jim@meyering.net>
64030
64031         Don't use FD after a successful "fdopendir (fd)".
64032         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64033         Reset it by calling dirfd on the just-obtained DIR*.
64034
64035         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64036         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64037
64038 2007-02-18  Bruno Haible  <bruno@clisp.org>
64039
64040         * lib/readlink.c: Include <unistd.h>.
64041         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64042         HAVE_READLINK.
64043         * modules/readlink (Depends-on): Add unistd.
64044         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64045         (Include): Add <unistd.h>.
64046
64047         * lib/getlogin_r.h: Remove file.
64048         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64049         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64050         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64051         HAVE_DECL_GETLOGIN_R.
64052         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64054         (Include): Use <unistd.h> instead of getlogin_r.h.
64055
64056         * lib/getcwd.h: Remove file.
64057         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64058         * lib/xgetcwd.c: Likewise.
64059         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64060         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64061         * modules/getcwd (Files): Remove lib/getcwd.h.
64062         (Depends-on): Add unistd.
64063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64064         (Include): Use <unistd.h> instad of getcwd.h.
64065
64066         * lib/ftruncate.c: Include <unistd.h> first.
64067         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64068         Set HAVE_FTRUNCATE.
64069         * modules/ftruncate (Depends-on): Add unistd.
64070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64071
64072         * lib/fchdir.c: Include <unistd.h> first.
64073         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64075         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64076         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64077         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64078
64079         * lib/dup2.c: Include <unistd.h> first.
64080         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64081         HAVE_DUP2.
64082         * modules/dup2 (Depends-on): Add unistd.
64083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64084
64085         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64086         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64087         REPLACE_CHOWN. Don't define chown as a macro here.
64088         * modules/chown (Depends-on): Add unistd.
64089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64090
64091         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64092         Add definition for GL_LINK_WARNING.
64093         (chown, dup2): New declarations.
64094         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64095         link warning.
64096         (ftruncate): New declaration.
64097         (getcwd): New declaration, taken from old getcwd.h.
64098         (getlogin_r): New declaration, taken from old getlogin_r.h.
64099         (readlink): New declaration.
64100         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64101         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64102         (gl_PREREQ_UNISTD): Remove macro.
64103         (gl_UNISTD_MODULE_INDICATOR): New macro.
64104         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64105         many new variables. Don't set UNISTD_H.
64106         * modules/unistd (Description): Change.
64107         (Depends-on): Add link-warning.
64108         (configure.ac): Update.
64109         (Makefile.am): Create unistd.h always. Substitute many new variables
64110         into it.
64111
64112 2007-02-18  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64115         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64116         HAVE_GETSUBOPT.
64117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64118         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64119         * lib/getsubopt.h: Remove file.
64120         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64121         (Depends-on): Add stdlib.
64122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64123         (Includes): Use <stdlib.h> instead of getsubopt.h.
64124         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64125         Set HAVE_GETSUBOPT.
64126         * lib/getsubopt.c: Don't include getsubopt.h.
64127
64128 2007-02-18  Bruno Haible  <bruno@clisp.org>
64129
64130         * modules/fchdir (Depends-on): Add dup2.
64131
64132 2007-02-18  Bruno Haible  <bruno@clisp.org>
64133
64134         * lib/stdlib_.h: Handle glibc's special invocation convention
64135         specially.
64136
64137 2007-02-18  Bruno Haible  <bruno@clisp.org>
64138
64139         * modules/stdlib-tests: New file.
64140         * tests/test-stdlib.c: New file.
64141
64142         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64143         (Depends-on): Add stdlib.
64144         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64145         (Includes): Use <stdlib.h> instead of mkstemp.h.
64146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64147         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64148         * lib/mkstemp.c: Don't include mkstemp.h.
64149         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64150         * lib/stdlib--.h: Don't include mkstemp.h.
64151
64152         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64153         (Depends-on): Add stdlib.
64154         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64155         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64156         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64157         HAVE_MKDTEMP.
64158         * lib/mkdtemp.c: Don't include mkdtemp.h.
64159         * lib/clean-temp.c: Don't include mkdtemp.h.
64160
64161         * modules/exit (Files): Remove lib/exit.h.
64162         (Depends-on): Add stdlib.
64163         (Makefile.am): Remove lib_SOURCES.
64164         (Include): Use <stdlib.h> instead of exit.h.
64165         * lib/argmatch.c: Don't include exit.h.
64166         * lib/execute.c: Likewise.
64167         * lib/pagealign_alloc.c: Likewise.
64168         * lib/pipe.c: Likewise.
64169         * lib/wait-process.c: Likewise.
64170         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64171         * lib/exitfail.c: Likewise.
64172         * lib/savewd.c: Likewise.
64173         * lib/xsetenv.c: Likewise.
64174
64175         * modules/stdlib: New file.
64176         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64177         and extra comments about mkstemp().
64178         * lib/exit.h: Remove file.
64179         * lib/mkdtemp.h: Remove file.
64180         * lib/mkstemp.h: Remove file.
64181         * m4/stdlib_h.m4: New file.
64182         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64183
64184 2007-02-18  Bruno Haible  <bruno@clisp.org>
64185
64186         * modules/math-tests: New file.
64187         * tests/test-math.c: New file.
64188
64189         * modules/math: New file.
64190         * modules/mathl (Files): Remove lib/mathl.h.
64191         (Depends-on): Add math.
64192         (Makefile.am): Don't mention mathl.h.
64193         (Include): Use <math.h> instead of mathl.h.
64194         * lib/math_.h: New file.
64195         * lib/mathl.h: Remove file.
64196         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64197         mathl.h.
64198         * lib/asinl.c: Likewise.
64199         * lib/atanl.c: Likewise.
64200         * lib/ceill.c: Likewise.
64201         * lib/cosl.c: Likewise.
64202         * lib/expl.c: Likewise.
64203         * lib/floorl.c: Likewise.
64204         * lib/frexpl.c: Likewise.
64205         * lib/ldexpl.c: Likewise.
64206         * lib/logl.c: Likewise.
64207         * lib/sincosl.c: Likewise.
64208         * lib/sinl.c: Likewise.
64209         * lib/sqrtl.c: Likewise.
64210         * lib/tanl.c: Likewise.
64211         * lib/trigl.c: Likewise.
64212         * m4/math_h.m4: New file.
64213         * MODULES.html.sh (Mathematics): Add math.
64214
64215 2007-02-17  Bruno Haible  <bruno@clisp.org>
64216
64217         * modules/wctype-tests: New file.
64218         * tests/test-wctype.c: New file.
64219
64220         * modules/wchar-tests: New file.
64221         * tests/test-wchar.c: New file.
64222
64223         * modules/unistd-tests: New file.
64224         * tests/test-unistd.c: New file.
64225
64226         * modules/time-tests: New file.
64227         * tests/test-time.c: New file.
64228
64229         * modules/sysexits-tests: New file.
64230         * tests/test-sysexits.c: New file.
64231
64232         * modules/sys_time-tests: New file.
64233         * tests/test-sys_time.c: New file.
64234
64235         * modules/sys_stat-tests: New file.
64236         * tests/test-sys_stat.c: New file.
64237
64238         * modules/sys_socket-tests: New file.
64239         * tests/test-sys_socket.c: New file.
64240
64241         * modules/sys_select-tests: New file.
64242         * tests/test-sys_select.c: New file.
64243
64244         * modules/string-tests: New file.
64245         * tests/test-string.c: New file.
64246
64247         * modules/stdbool-tests: New file.
64248         * tests/test-stdbool.c: New file.
64249
64250         * modules/netinet_in-tests: New file.
64251         * tests/test-netinet_in.c: New file.
64252
64253         * modules/inttypes-tests: New file.
64254         * tests/test-inttypes.c: New file.
64255
64256         * modules/fcntl-tests: New file.
64257         * tests/test-fcntl.c: New file.
64258
64259         * modules/byteswap-tests: New file.
64260         * tests/test-byteswap.c: New file.
64261
64262         * modules/arpa_inet-tests: New file.
64263         * tests/test-arpa_inet.c: New file.
64264
64265 2007-02-17  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64268         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64269         if the corresponding module is not enabled. Emit link warnings if
64270         the function is used nevertheless.
64271         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64272         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64273         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64274         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64275         * modules/inttypes (Depends-on): Add link-warning.
64276         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64277         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64278         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64279         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64280         * modules/imaxdiv (configure.ac): Likewise.
64281         * modules/strtoimax (configure.ac): Likewise.
64282         * modules/strtoumax (configure.ac): Likewise.
64283
64284 2007-02-17  Bruno Haible  <bruno@clisp.org>
64285
64286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64287         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64288         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64289         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64290
64291 2007-02-17  Bruno Haible  <bruno@clisp.org>
64292
64293         * modules/link-warning: New file.
64294         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64295         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64296         * modules/string (Depends-on): Add link-warning.
64297         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64298         string.h.
64299         * MODULES.html.sh (Support for building libraries and executables): Add
64300         link-warning.
64301
64302 2007-02-17  Bruno Haible  <bruno@clisp.org>
64303
64304         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64305         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64306         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64307         long lines.
64308
64309 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64310             Bruno Haible  <bruno@clisp.org>
64311
64312         * modules/tmpfile: New file.
64313         * lib/tmpfile.c: New file.
64314         * m4/tmpfile.m4: New file.
64315         * MODULES.html.sh (func_all_modules): New section "Input/output".
64316
64317 2007-02-15  Bruno Haible  <bruno@clisp.org>
64318
64319         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64320         (supports_delete_on_close): New function.
64321         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64322
64323 2007-02-14  Bruno Haible  <bruno@clisp.org>
64324
64325         * modules/mbspcasecmp-tests: New file.
64326         * tests/test-mbspcasecmp.sh: New file.
64327         * tests/test-mbspcasecmp.c: New file.
64328
64329         New module mbspcasecmp.
64330         * modules/mbspcasecmp: New file.
64331         * lib/mbspcasecmp.c: New file.
64332         * lib/string_.h (strncasecmp): Change warning message.
64333         (mbspcasecmp): New declaration.
64334         * m4/mbspcasecmp.m4: New file.
64335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64336         GNULIB_MBSPCASECMP.
64337         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64338         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64339
64340 2007-02-14  Bruno Haible  <bruno@clisp.org>
64341
64342         * modules/mbsncasecmp-tests: New file.
64343         * tests/test-mbsncasecmp.sh: New file.
64344         * tests/test-mbsncasecmp.c: New file.
64345
64346         New module mbsncasecmp.
64347         * modules/mbsncasecmp: New file.
64348         * lib/mbsncasecmp.c: New file.
64349         * lib/string_.h (mbsncasecmp): New declaration.
64350         * m4/mbsncasecmp.m4: New file.
64351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64352         GNULIB_MBSNCASECMP.
64353         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64354         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64355
64356 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64359         Verify that it doesn't overlap with our flags.
64360         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64361         do not have the desired effect in multibyte locales; instead, use
64362         mbscasecmp.
64363         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64364         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64365         we don't require GNU fnmatch ourselves (if our users require it, they
64366         should do so explicitly).
64367
64368         Fix regex code so it doesn't rely on strcasecmp.
64369         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64370         Otherwise, include gnulib's langinfo.h.
64371         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64372         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64373         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64374         * modules/regex (FILES): Remove m4/codeset.m4.
64375         (Depends-on): Add localcharset.  Remove strcase.
64376
64377 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64378
64379         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64380         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64381
64382 2007-02-13  Bruno Haible  <bruno@clisp.org>
64383
64384         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64386
64387 2007-02-12  Bruno Haible  <bruno@clisp.org>
64388
64389         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64390         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64391         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64392         time warning rather than a link error.
64393
64394 2007-02-12  Bruno Haible  <bruno@clisp.org>
64395
64396         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64397         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64398         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64399
64400 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64403         args, not 2.
64404
64405 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         New module 'time', so that apps can include <time.h> as per
64408         POSIX and GNU instead of separate include files like time_r.h
64409         and timegm.h.  This implementation tries out a simpler approach
64410         for replacing decls in standard include files (as compared to
64411         the string module), somewhat as an experiment.
64412
64413         * config/srclist.txt: Comment out mktime.c for now.
64414         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64415         since it doesn't apply any more.  Use generic wording instead.
64416         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64417         'time'.
64418         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64419         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64420         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64421         Don't include <sys/types.h>; no longer needed since we assume C89.
64422         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64423         * lib/strftime.c: Likewise.
64424         * lib/time_r.c: Likewise.
64425         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64426         * lib/nanosleep.c: Include <time.h> first, to check interface.
64427         * lib/strptime.c: Likewise.
64428         * lib/time_r.c: Likewise.
64429         * lib/timegm.c: Likewise.
64430         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64431         needed.
64432         * lib/timegm.c: Don't include timegm.h; no longer needed.
64433         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64434         time.h now handles any problems in that area.
64435         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64436         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64437         that time.h defines struct timespec.
64438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64439         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64440         handles that.
64441         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64442         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64443         needed.  Set REPLACE_LOCALTIME.
64444         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64445         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64446         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64447         nanosleep; time_h.m4 now does that.  Don't require
64448         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64449         module handles this now.
64450         * modules/getdate (Depends-on): Remove timespec.  Add time.
64451         * modules/nanosleep (Depends-on): Likewise.
64452         * modules/stat-time (Depends-on): Likewise.
64453         * modules/nanosleep (Include): Include time.h, not timespec.h.
64454         * modules/strptime (Files): Remove lib/strptime.h.
64455         (Depends-on): Add extensions, time.
64456         (Include): Include time.h, not strptime.h.
64457         * modules/time_r (Files): Remove lib/time_r.h.
64458         (Depends-on): Add time.
64459         (Include): Include time.h, not time_r.h.
64460         * modules/timegm: Likewise.
64461         * modules/timespec (Description): Now does timespec-related decls
64462         of our own, instead of struct timespec itself.
64463         (Depends-on): Add time; remove extensions.
64464         (Maintainer): Add self.
64465         * modules/utimecmp (Depends-on): Add time; remove timespec.
64466         * modules/utimens (Depends-on): Likewise.
64467         * modules/xnanosleep (Depends-on): Likewise.
64468
64469 2007-02-11  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/c-strstr.c: Include allocsa.h.
64472         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64473         * lib/c-strcasestr.c: Include allocsa.h.
64474         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64475         * lib/strcasestr.c: Include allocsa.h.
64476         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64477         * lib/mbsstr.c: Include allocsa.h.
64478         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64479         allocsa/freesa instead of malloc/free.
64480         * lib/mbscasestr.c: Include allocsa.h.
64481         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64482         allocsa/freesa instead of malloc/free.
64483         * modules/c-strstr (Depends-on): Add allocsa.
64484         * modules/c-strcasestr (Depends-on): Likewise.
64485         * modules/strcasestr (Depends-on): Likewise.
64486         * modules/mbsstr (Depends-on): Likewise.
64487         * modules/mbscasestr (Depends-on): Likewise.
64488
64489 2007-02-11  Bruno Haible  <bruno@clisp.org>
64490
64491         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64492
64493         * modules/mbsspn-tests: New file.
64494         * tests/test-mbsspn.sh: New file.
64495         * tests/test-mbsspn.c: New file.
64496
64497 2007-02-11  Bruno Haible  <bruno@clisp.org>
64498
64499         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64500
64501         * modules/mbspbrk-tests: New file.
64502         * tests/test-mbspbrk.sh: New file.
64503         * tests/test-mbspbrk.c: New file.
64504
64505 2007-02-11  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64508         unneeded cast.
64509
64510         * modules/mbscspn-tests: New file.
64511         * tests/test-mbscspn.sh: New file.
64512         * tests/test-mbscspn.c: New file.
64513
64514 2007-02-11  Bruno Haible  <bruno@clisp.org>
64515
64516         * modules/mbscasecmp-tests: New file.
64517         * tests/test-mbscasecmp.sh: New file.
64518         * tests/test-mbscasecmp.c: New file.
64519
64520 2007-02-11  Bruno Haible  <bruno@clisp.org>
64521
64522         Ensure O(n) worst-case complexity of mbscasestr.
64523         * lib/mbscasestr.c: Include stdbool.h.
64524         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64525         functions.
64526         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64527         the bookkeeping indicates that it's worth it.
64528         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64529
64530         * modules/mbscasestr-tests: New file.
64531         * tests/test-mbscasestr1.c: New file.
64532         * tests/test-mbscasestr2.sh: New file.
64533         * tests/test-mbscasestr2.c: New file.
64534         * tests/test-mbscasestr3.sh: New file.
64535         * tests/test-mbscasestr3.c: New file.
64536         * tests/test-mbscasestr4.sh: New file.
64537         * tests/test-mbscasestr4.c: New file.
64538         * m4/locale-tr.m4: New file.
64539
64540 2007-02-11  Bruno Haible  <bruno@clisp.org>
64541
64542         Ensure O(n) worst-case complexity of mbsstr.
64543         * lib/mbsstr.c: Include stdbool.h.
64544         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64545         functions.
64546         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64547         bookkeeping indicates that it's worth it.
64548         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64549
64550         * modules/mbsstr-tests: New file.
64551         * tests/test-mbsstr1.c: New file.
64552         * tests/test-mbsstr2.sh: New file.
64553         * tests/test-mbsstr2.c: New file.
64554         * tests/test-mbsstr3.sh: New file.
64555         * tests/test-mbsstr3.c: New file.
64556         * m4/locale-fr.m4: New file.
64557
64558 2007-02-11  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/mbsrchr.c (mbsrchr): Fix bug.
64561
64562         * modules/mbsrchr-tests: New file.
64563         * tests/test-mbsrchr.sh: New file.
64564         * tests/test-mbsrchr.c: New file.
64565
64566 2007-02-11  Bruno Haible  <bruno@clisp.org>
64567
64568         * lib/mbschr.c (mbschr): Fix bug.
64569
64570         * modules/mbschr-tests: New file.
64571         * tests/test-mbschr.sh: New file.
64572         * tests/test-mbschr.c: New file.
64573         * m4/locale-zh.m4: New file.
64574
64575 2007-02-11  Bruno Haible  <bruno@clisp.org>
64576
64577         Support for copying multibyte string iterators.
64578         * lib/mbiter.h: Include <string.h>.
64579         (mbiter_multi_copy): New function.
64580         (mbi_copy): New macro.
64581         * lib/mbuiter.h: Include <string.h>.
64582         (mbuiter_multi_copy): New function.
64583         (mbui_copy): New macro.
64584
64585 2007-02-11  Bruno Haible  <bruno@clisp.org>
64586
64587         New module mbslen.
64588         * modules/mbslen: New file.
64589         * lib/mbslen.c: New file.
64590         * lib/string_.h (mbslen): New declaration.
64591         * m4/mbslen.m4: New file.
64592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64593         GNULIB_MBSLEN.
64594         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64595         * MODULES.html.sh (Internationalization functions): Add mbslen.
64596
64597 2007-02-11  Bruno Haible  <bruno@clisp.org>
64598
64599         Ensure O(n) worst-case complexity of strcasestr substitute.
64600         * lib/strcasestr.c: Include stdbool.h.
64601         (knuth_morris_pratt): New function.
64602         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64603         bookkeeping indicates that it's worth it.
64604         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64605
64606         * modules/strcasestr-tests: New file.
64607         * tests/test-strcasestr.c: New file.
64608
64609 2007-02-11  Bruno Haible  <bruno@clisp.org>
64610
64611         Ensure O(n) worst-case complexity of c_strcasestr.
64612         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64613         (knuth_morris_pratt): New function.
64614         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64615         the bookkeeping indicates that it's worth it.
64616         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64617
64618         * modules/c-strcasestr-tests: New file.
64619         * tests/test-c-strcasestr.c: New file.
64620
64621 2007-02-11  Bruno Haible  <bruno@clisp.org>
64622
64623         Ensure O(n) worst-case complexity of c_strstr.
64624         * lib/c-strstr.c: Include stdbool.h, string.h.
64625         (knuth_morris_pratt): New function.
64626         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64627         bookkeeping indicates that it's worth it.
64628         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64629
64630         * lib/c-strstr.c: Complete rewrite for maintainability.
64631
64632         * modules/c-strstr-tests: New file.
64633         * tests/test-c-strstr.c: New file.
64634
64635 2007-02-11  Bruno Haible  <bruno@clisp.org>
64636
64637         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64638         5.2.1 and earlier, whereby \055 was treated just like the range
64639         delimiter '-'.
64640         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64641
64642 2007-02-08  Bruno Haible  <bruno@clisp.org>
64643
64644         * modules/regex (Depends-on): Add stdbool.
64645         Reported by Dalibor Topic <robilad@kaffe.org>.
64646
64647 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64650         Prefer returning from main to exiting from it.
64651         Remove unnecessary parens after sizeof.
64652
64653 2007-02-05  Bruno Haible  <bruno@clisp.org>
64654
64655         New module mbssep.
64656         * modules/mbssep: New file.
64657         * lib/mbssep.c: New file.
64658         * lib/string_.h (strsep): Add a conditional link warning.
64659         (mbssep): New declaration.
64660         * m4/mbssep.m4: New file.
64661         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64662         GNULIB_MBSSEP.
64663         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64664         * MODULES.html.sh (Internationalization functions): Add mbssep.
64665
64666 2007-02-05  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64669         Optimize search in case of 1 delimiter.
64670
64671 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64672
64673         * lib/acl.h: Include sys/types.h before sys/acl.h.
64674
64675 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64676
64677         Merge upstream fix for glibc bugzilla #3957:
64678
64679         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64680
64681         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64682         bit for RE_HAT_LISTS_NOT_NEWLINE.
64683         (build_charclass_op): Remove bogus comment.
64684
64685 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64686
64687         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64688
64689 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64692         * lib/memmem.c [!defined _LIBC]: Include config.h.
64693
64694 2007-02-04  Bruno Haible  <bruno@clisp.org>
64695
64696         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64697         warning message.
64698
64699 2007-02-04  Bruno Haible  <bruno@clisp.org>
64700
64701         New module mbstok_r.
64702         * modules/mbstok_r: New file.
64703         * lib/mbstok_r.c: New file.
64704         * lib/string_.h (strtok_r): Change argument names to match the
64705         comments. Add a conditional link warning.
64706         (mbstok_r): New declaration.
64707         * m4/mbstok_r.m4: New file.
64708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64709         GNULIB_MBSTOK_R.
64710         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64711         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64712
64713 2007-02-04  Bruno Haible  <bruno@clisp.org>
64714
64715         New module mbsspn.
64716         * modules/mbsspn: New file.
64717         * lib/mbsspn.c: New file.
64718         * lib/string_.h (strspn): Add a conditional link warning.
64719         (mbsspn): New declaration.
64720         * m4/mbsspn.m4: New file.
64721         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64722         GNULIB_MBSSPN.
64723         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64724         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64725
64726 2007-02-04  Bruno Haible  <bruno@clisp.org>
64727
64728         New module mbspbrk.
64729         * modules/mbspbrk: New file.
64730         * lib/mbspbrk.c: New file.
64731         * lib/string_.h (strpbrk): Add a conditional link warning.
64732         (mbspbrk): New declaration.
64733         * m4/mbspbrk.m4: New file.
64734         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64735         GNULIB_MBSPBRK.
64736         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64737         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64738
64739 2007-02-04  Bruno Haible  <bruno@clisp.org>
64740
64741         New module mbscspn.
64742         * modules/mbscspn: New file.
64743         * lib/mbscspn.c: New file.
64744         * lib/string_.h (strcspn): Add a conditional link warning.
64745         (mbscspn): New declaration.
64746         * m4/mbscspn.m4: New file.
64747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64748         GNULIB_MBSCSPN.
64749         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64750         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64751
64752 2007-02-04  Bruno Haible  <bruno@clisp.org>
64753
64754         New module mbscasestr, reduced goal of strcasestr.
64755         * modules/mbscasestr: New file.
64756         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64757         (mbscasestr): Renamed from strcasestr.
64758         * lib/strcasestr.c: Don't include mbuiter.h.
64759         (strcasestr): Remove support for multibyte locales.
64760         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64761         Change the conditional link warning.
64762         (mbscasestr): New declaration.
64763         * m4/mbscasestr.m4: New file.
64764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64765         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64766         REPLACE_STRCASESTR.
64767         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64769         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64770         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64771         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64772         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64773         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64774         (Depends-on): Remove mbuiter.
64775         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64776
64777 2007-02-04  Bruno Haible  <bruno@clisp.org>
64778
64779         Simplify handling of strncasecmp.
64780         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64781         the conditional link warning.
64782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64783         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64784         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64785         * modules/strcase (configure.ac): Don't invoke
64786         gl_STRING_MODULE_INDICATOR.
64787         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64788
64789 2007-02-04  Bruno Haible  <bruno@clisp.org>
64790
64791         New module mbscasecmp, reduced goal of strcasecmp.
64792         * modules/mbscasecmp: New file.
64793         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64794         (mbscasecmp): Renamed from strcasecmp.
64795         * lib/strcasecmp.c: Don't include mbuiter.h.
64796         (strcasecmp): Remove support for multibyte locales.
64797         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64798         Change the conditional link warning.
64799         (mbscasecmp): New declaration.
64800         * m4/mbscasecmp.m4: New file.
64801         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64802         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64803         REPLACE_STRCASECMP.
64804         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64806         GNULIB_MBSCASECMP.
64807         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64808         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64809         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64810         (Depends-on): Remove mbuiter.
64811         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64812
64813 2007-02-04  Bruno Haible  <bruno@clisp.org>
64814
64815         New module mbsstr. Remove module strstr.
64816         * modules/mbsstr: New file.
64817         * modules/strstr: Remove file.
64818         * lib/mbsstr.c: Renamed from lib/strstr.c.
64819         (mbsstr): Renamed from strstr.
64820         * lib/string_.h (strstr): Remove declaration. Change the conditional
64821         link warning.
64822         (mbsstr): New declaration.
64823         * m4/mbsstr.m4: New file.
64824         * m4/strstr.m4: Remove file.
64825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64826         REPLACE_STRSTR.
64827         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64828         Don't initialize GNULIB_STRSTR.
64829         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64830         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64831         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64832         (Support for systems lacking ANSI C 89): Remove strstr.
64833
64834 2007-02-04  Bruno Haible  <bruno@clisp.org>
64835
64836         New module mbsrchr.
64837         * modules/mbsrchr: New file.
64838         * lib/mbsrchr.c: New file.
64839         * lib/string_.h (strrchr): Add a conditional link warning.
64840         (mbsrchr): New declaration.
64841         * m4/mbsrchr.m4: New file.
64842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64843         GNULIB_MBSRCHR.
64844         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64845         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64846
64847 2007-02-04  Bruno Haible  <bruno@clisp.org>
64848
64849         New module mbschr.
64850         * modules/mbschr: New file.
64851         * lib/mbschr.c: New file.
64852         * lib/string_.h (strchr): Add a conditional link warning.
64853         (mbschr): New declaration.
64854         * m4/mbschr.m4: New file.
64855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64856         GNULIB_MBSCHR.
64857         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64858         * MODULES.html.sh (Internationalization functions): Add mbschr.
64859
64860 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64863
64864         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64865
64866 2007-02-04  Bruno Haible  <bruno@clisp.org>
64867
64868         New module description section 'configure.ac-early'.
64869         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64870         (func_get_autoconf_early_snippet): New function.
64871         (func_import, func_create_testdir): Use it. Remove special cases for
64872         modules 'extensions' and 'lock'.
64873         * modules/extensions (configure.ac-early): Require
64874         gl_USE_SYSTEM_EXTENSIONS.
64875         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64876
64877 2007-02-04  Bruno Haible  <bruno@clisp.org>
64878
64879         Make use of gcj-4.3's -fsource and -ftarget option.
64880         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64881         and if so try the options -fsource and -ftarget.
64882         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64883         source_version, ftarget_option, target_version arguments.
64884         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64885         (is_envjavac_oldgcj_14_14_usable): Renamed from
64886         is_envjavac_gcj_14_14_usable.
64887         (is_envjavac_oldgcj_14_13_usable): Renamed from
64888         is_envjavac_gcj_14_13_usable.
64889         (is_gcj_present): Update.
64890         (is_gcj_43, is_gcj43_usable): New functions.
64891         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64892         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64893         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64894         try the options -fsource and -ftarget.
64895
64896 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64897
64898         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64899         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64900         larger value.
64901
64902 2007-02-03  Jim Meyering  <jim@meyering.net>
64903
64904         Give tools a better chance to allocate space for very large buffers.
64905         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64906
64907         Make pwd and readlink work also when run with an unreadable parent dir
64908         on systems with openat support.
64909         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64910         provided getcwd function, even when we have openat support.
64911         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64912
64913 2007-02-02  Bruno Haible  <bruno@clisp.org>
64914
64915         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64916         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64917         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64918         portability problems if one of these functions is only used on specific
64919         platforms.
64920         Reported by Paul Eggert.
64921
64922 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64925         is causing more trouble than it's curing.
64926         * lib/regex_internal.h (__mempcpy): Remove.
64927         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64928         (and make the code a tad smaller to boot).
64929         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64930
64931 2007-02-02  Jim Meyering  <jim@meyering.net>
64932
64933         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64934         section, not in the Makefile.am: one.
64935
64936 2007-02-02  Eric Blake  <ebb9@byu.net>
64937
64938         * lib/strchrnul.c: Always include config.h first.
64939
64940         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64941         gnulib strstr is not necessary here.
64942
64943 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64944
64945         * m4/socklen.m4: Fix typo.
64946
64947 2007-02-02  Eric Blake  <ebb9@byu.net>
64948
64949         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64950         * modules/netinet_in (Makefile.am): Likewise.
64951
64952 2007-02-01  Bruno Haible  <bruno@clisp.org>
64953
64954         * lib/string_.h (GL_LINK_WARNING): New macro.
64955         (strcasecmp, strstr, strcasestr): If provided by the system,
64956         conditionally define as a macro that leads to a warning instead of to
64957         an error.
64958         (strncasecmp): Conditionally define as a macro that leads to a warning.
64959
64960 2007-02-01  Karl Berry  <karl@gnu.org>
64961
64962         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64963
64964 2007-02-01  Bruno Haible  <bruno@clisp.org>
64965
64966         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64967         renamings.
64968
64969 2007-02-01  Eric Blake  <ebb9@byu.net>
64970
64971         * modules/regex (Depends-on): Revert dependence on mempcpy.
64972         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64973         module's definition of mempcpy.
64974         Reported by Paul Eggert.
64975
64976 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64977
64978         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64979         the symbol XYZ before redefining it.  This fixes a problem with
64980         programs that don't use XYZ, when compiled on systems that define
64981         XYZ to something else.
64982
64983 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64984
64985         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64986         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64987         writeable to group or other and (2) is intended to have a special
64988         mode bit that is set or cleared.  In such a case, the directory
64989         should be neither group- nor other-writeable until the special
64990         mode bits are right.
64991
64992 2007-01-31  Eric Blake  <ebb9@byu.net>
64993
64994         * modules/mountlist (Depends-on): Add strstr.
64995
64996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64997         bug.
64998         * modules/string (Makefile.am): Remove redundant replacement.
64999         * modules/regex (Depends-on): Add mempcpy.
65000
65001 2007-01-31  Bruno Haible  <bruno@clisp.org>
65002
65003         New module description field 'Link'.
65004         * gnulib-tool (func_usage): Document --extract-link-directive.
65005         (sed_extract_prog): Recognize 'Link' directive.
65006         (func_get_link_directive): New function.
65007         (func_import): Show summary of link directives.
65008         Handle --extract-link-directive option.
65009         * modules/acl (Link): New section.
65010         * modules/clock-time (Link): New section.
65011         * modules/euidaccess (Link): New section.
65012         * modules/gettext (Link): New section.
65013         * modules/iconv (Link): New section.
65014         * modules/lock (Link): New section.
65015         * modules/nanosleep (Link): New section.
65016         * modules/readline (Link): New section.
65017
65018 2007-01-27  Bruno Haible  <bruno@clisp.org>
65019
65020         Enforce the use of gnulib modules for unportable <string.h> functions.
65021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65022         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65023         (gl_HEADER_STRING_H_BODY): Require it.
65024         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65025         the symbol XYZ to one that gives a link error.
65026         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65027         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65028         * modules/mempcpy (configure.ac): Likewise.
65029         * modules/memrchr (configure.ac): Likewise.
65030         * modules/stpcpy (configure.ac): Likewise.
65031         * modules/stpncpy (configure.ac): Likewise.
65032         * modules/strcase (configure.ac): Likewise.
65033         * modules/strcasestr (configure.ac): Likewise.
65034         * modules/strchrnul (configure.ac): Likewise.
65035         * modules/strdup (configure.ac): Likewise.
65036         * modules/strndup (configure.ac): Likewise.
65037         * modules/strnlen (configure.ac): Likewise.
65038         * modules/strpbrk (configure.ac): Likewise.
65039         * modules/strsep (configure.ac): Likewise.
65040         * modules/strstr (configure.ac): Likewise.
65041         * modules/strtok_r (configure.ac): Likewise.
65042
65043 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65044
65045         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65046
65047 2007-01-30  Jim Meyering  <jim@meyering.net>
65048
65049         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65050
65051 2007-01-29  Bruno Haible  <bruno@clisp.org>
65052
65053         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65054         * lib/execute.c: Likewise.
65055         * lib/pipe.c: Likewise.
65056         * lib/printf-args.h: Likewise.
65057         * lib/printf-args.c: Likewise.
65058         * lib/printf-parse.c: Likewise.
65059         * lib/vasnprintf.c: Likewise.
65060
65061 2007-01-29  Eric Blake  <ebb9@byu.net>
65062
65063         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65064         declaration.
65065
65066 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65067
65068         * lib/strptime.h (strptime): Use 'restrict' for args where
65069         POSIX requires this.
65070         * lib/strptime.c (strptime): Likewise.
65071         Change license notice from LGPL to GPL, since gnulib-tool will
65072         change this as needed.
65073         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65074         defined.
65075         Include "strptime.h" first, to check interface.
65076         Do not #undef _LIBC and _NL_CURRENT.
65077         Do not include <stdlib.h>; no longer needed.
65078         Include "time_r.h" and declare ptime_locale_status
65079         only if _LIBC is not defined.
65080         (__P): Remove unused macro.
65081         (match_string): Bring back glibc version, but use it only if _LIBC
65082         is defined.
65083         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65084         Remove unnecessary assertion and abort() call.
65085         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65086         * m4/strptime.m4: Fix serial number comment.
65087         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65088         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65089         (Depends-on): Add time_r.
65090
65091 2007-01-29  Bruno Haible  <bruno@clisp.org>
65092
65093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65094         strptime.
65095         * modules/strptime (Depends-on): Add stdbool.
65096         * lib/strptime.h: Include <time.h> always. Add comments.
65097
65098 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65099
65100         * modules/strptime: New file.
65101         * lib/strptime.h: New file.
65102         * lib/strptime.c: New file.
65103         * m4/strptime.m4: New file.
65104
65105 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65106
65107         * MODULES.html.sh: New module mpsort.
65108         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65109
65110         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65111         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65112         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65113         All uses changed.
65114         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65115         All uses changed.
65116         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65117         to _Restrict_.
65118         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65119         the parameter matches the prototype.
65120
65121 2007-01-28  Jim Meyering  <jim@meyering.net>
65122
65123         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65124         sys/time.h here, reverting that part of the previous patch:
65125         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65126
65127 2007-01-28  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65130         value of $(SYS_TIME_H).
65131         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65132         remove it conditionally, too. [added by Jim Meyering]
65133         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65134         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65135         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65136         GETTIMEOFDAY_REPLACEMENT to 1.
65137
65138 2007-01-28  Bruno Haible  <bruno@clisp.org>
65139
65140         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65141         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65143         Set UNISTD_H instead of UNISTD_H2.
65144         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65145
65146 2007-01-28  Bruno Haible  <bruno@clisp.org>
65147
65148         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65149         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65150
65151 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65152
65153         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65154         (func_create_testdir): Ensure C locale for `grep' and `tr'
65155         character ranges.
65156         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65157         ACLOCAL_AMFLAGS parsing state machine.
65158
65159 2007-01-27  Bruno Haible  <bruno@clisp.org>
65160
65161         * modules/unistr/base: Update.
65162
65163 2007-01-27  Bruno Haible  <bruno@clisp.org>
65164
65165         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65166         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65167         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65168         modules/unistr/u32-mbtouc.
65169         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65170         * lib/unistr.h: Update.
65171         * lib/linebreak.c: Update.
65172         * modules/unistr/u32-mbtouc: Renamed from
65173         modules/unistr/u32-mbtouc-safe.
65174         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65175         * lib/unistr.h: Update.
65176         * lib/unistr/u32-to-u8.c: Update.
65177         * lib/unistr/u32-to-u16.c: Update.
65178
65179 2007-01-27  Bruno Haible  <bruno@clisp.org>
65180
65181         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65182         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65183         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65184         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65185         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65186         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65187         modules/unistr/u16-mbtouc.
65188         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65189         * lib/unistr.h: Update.
65190         * lib/linebreak.c: Update.
65191         * modules/linebreak: Update.
65192         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65193         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65194         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65195         * modules/unistr/u16-mbtouc: Renamed from
65196         modules/unistr/u16-mbtouc-safe.
65197         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65198         * lib/unistr.h: Update.
65199         * lib/unistr/u16-to-u8.c: Update.
65200         * modules/unistr/u16-to-u8: Update.
65201         * lib/unistr/u16-to-u32.c: Update.
65202         * modules/unistr/u16-to-u32: Update.
65203
65204 2007-01-27  Bruno Haible  <bruno@clisp.org>
65205
65206         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65207         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65208         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65209         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65210         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65211         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65212         modules/unistr/u8-mbtouc.
65213         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65214         * lib/unistr.h: Update.
65215         * lib/striconveh.c: Update.
65216         * modules/striconveh: Update.
65217         * lib/linebreak.c: Update.
65218         * modules/linebreak: Update.
65219         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65220         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65221         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65222         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65223         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65224         * lib/unistr.h: Update.
65225         * lib/striconveh.c: Update.
65226         * modules/striconveh: Update.
65227         * lib/unistr/u8-to-u16.c: Update.
65228         * modules/unistr/u8-to-u16: Update.
65229         * lib/unistr/u8-to-u32.c: Update.
65230         * modules/unistr/u8-to-u32: Update.
65231
65232 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65233
65234         Sync from Libtool.
65235         * lib/argz.c: Do not include strings.h nor memory.h, include
65236         string.h unconditionally.  Patch by Simon Josefsson.
65237
65238 2007-01-27  Bruno Haible  <bruno@clisp.org>
65239
65240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65241         from gl_HEADER_STRING_H_BODY.
65242         (gl_HEADER_STRING_H_BODY): Require it.
65243         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65244         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65245         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65246         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65248         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65250         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65251         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65252         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65253         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65254         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65255         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65256         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65257         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65258
65259 2007-01-27  Bruno Haible  <bruno@clisp.org>
65260
65261         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65262         check_PROGRAMS into noinst_PROGRAMS.
65263         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65264         check_PROGRAMS in this case.
65265         (func_import): Set for_test to false.
65266         (func_create_testdir): Set for_test to true.
65267
65268 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65269             Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65272         (Depends-on): Add string.
65273         (Includes): Use <string.h> instead of strcasestr.h.
65274         * modules/string (Makefile.am): Also substitute the value of
65275         REPLACE_STRCASESTR.
65276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65277         assume strcasestr is declared in <string.h> not <strings.h>. Also
65278         set REPLACE_STRCASESTR.
65279         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65280         REPLACE_STRCASESTR.
65281         * lib/strcasestr.h: Remove file.
65282         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65283         * lib/string_.h (strcasestr): New declaration.
65284
65285 2007-01-27  Bruno Haible  <bruno@clisp.org>
65286
65287         * lib/string_.h: Use 'extern'.
65288
65289 2007-01-27  Jim Meyering  <jim@meyering.net>
65290
65291         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65292         of set-but-not-used local, "q".
65293
65294         * lib/mempcpy.c: Include <config.h> before <string.h>.
65295         This fixes a compilation error on HP-UX, due to the system's
65296         "restrict"-using mempcpy prototype.
65297
65298 2007-01-26  Bruno Haible  <bruno@clisp.org>
65299
65300         Small optimization.
65301         * lib/javacomp.c: Include c-strstr.h.
65302          (is_envjavac_gcj): Use c_strstr instead of strstr.
65303         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65304
65305 2007-01-26  Bruno Haible  <bruno@clisp.org>
65306
65307         * MODULES.html.sh (Unicode string functions): Add the new modules.
65308
65309         * modules/uniconv/u32-strconv-to-locale: New file.
65310         * lib/uniconv/u32-strconv-to-locale.c: New file.
65311
65312         * modules/uniconv/u16-strconv-to-locale: New file.
65313         * lib/uniconv/u16-strconv-to-locale.c: New file.
65314
65315         * modules/uniconv/u8-strconv-to-locale: New file.
65316         * lib/uniconv/u8-strconv-to-locale.c: New file.
65317
65318         * modules/uniconv/u32-strconv-from-locale: New file.
65319         * lib/uniconv/u32-strconv-from-locale.c: New file.
65320
65321         * modules/uniconv/u16-strconv-from-locale: New file.
65322         * lib/uniconv/u16-strconv-from-locale.c: New file.
65323
65324         * modules/uniconv/u8-strconv-from-locale: New file.
65325         * lib/uniconv/u8-strconv-from-locale.c: New file.
65326
65327         * modules/uniconv/u32-strconv-to-enc: New file.
65328         * lib/uniconv/u32-strconv-to-enc.c: New file.
65329         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65330         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65331
65332         * modules/uniconv/u16-strconv-to-enc: New file.
65333         * lib/uniconv/u16-strconv-to-enc.c: New file.
65334         * lib/uniconv/u-strconv-to-enc.h: New file.
65335         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65336         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65337
65338         * modules/uniconv/u8-strconv-to-enc: New file.
65339         * lib/uniconv/u8-strconv-to-enc.c: New file.
65340         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65341         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65342
65343         * modules/uniconv/u32-strconv-from-enc: New file.
65344         * lib/uniconv/u32-strconv-from-enc.c: New file.
65345         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65346         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65347
65348         * modules/uniconv/u16-strconv-from-enc: New file.
65349         * lib/uniconv/u16-strconv-from-enc.c: New file.
65350         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65351         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65352
65353         * modules/uniconv/u8-strconv-from-enc: New file.
65354         * lib/uniconv/u8-strconv-from-enc.c: New file.
65355         * lib/uniconv/u-strconv-from-enc.h: New file.
65356         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65357         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65358
65359         * modules/uniconv/u32-conv-from-enc: New file.
65360         * lib/uniconv/u32-conv-from-enc.c: New file.
65361         * modules/uniconv/u32-conv-from-enc-tests: New file.
65362         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65363
65364         * modules/uniconv/u16-conv-from-enc: New file.
65365         * lib/uniconv/u16-conv-from-enc.c: New file.
65366         * lib/uniconv/u-conv-from-enc.h: New file.
65367         * modules/uniconv/u16-conv-from-enc-tests: New file.
65368         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65369
65370         * modules/uniconv/u8-conv-from-enc: New file.
65371         * lib/uniconv/u8-conv-from-enc.c: New file.
65372         * modules/uniconv/u8-conv-from-enc-tests: New file.
65373         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65374
65375         * modules/uniconv/base: New file.
65376         * lib/uniconv.h: New file.
65377
65378 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * doc/gnulib-tool.texi (Initial import): Update to match current
65381         behavior with strdup module.
65382         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65383         * lib/memmem.h: Remove; all uses removed.  This is now done
65384         by <string.h>.
65385         * lib/mempcpy.h: Likewise.
65386         * lib/memrchr.h: Likewise.
65387         * lib/stpcpy.h: Likewise.
65388         * lib/stpncpy.h: Likewise.
65389         * lib/strcase.h: Likewise.
65390         * lib/strchrnul.h: Likewise.
65391         * lib/strdup.h: Likewise.
65392         * lib/strndup.h: Likewise.
65393         * lib/strnlen.h: Likewise.
65394         * lib/strpbrk.h: Likewise.
65395         * lib/strsep.h: Likewise.
65396         * lib/strstr.h: Likewise.
65397         * lib/strtok_r.h: Likewise.
65398         * lib/string_.h: New file.
65399         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65400         Rely on <string.h> instead.
65401         * lib/canon-host.c: Likewise.
65402         * lib/chdir-long.c: Likewise.
65403         * lib/concatpath.c: Likewise.
65404         * lib/exclude.c: Likewise.
65405         * lib/fchdir.c: Likewise.
65406         * lib/getaddrinfo.c: Likewise.
65407         * lib/getcwd.c: Likewise.
65408         * lib/getsubopt.c: Likewise.
65409         * lib/glob.c: Likewise.
65410         * lib/hard-locale.c: Likewise.
65411         * lib/iconvme.c: Likewise.
65412         * lib/javacomp.c: Likewise.
65413         * lib/mempcpy.c: Likewise.
65414         * lib/memrchr.c: Likewise.
65415         * lib/regex_internal.h: Likewise.
65416         * lib/stpncpy.c: Likewise.
65417         * lib/strcasecmp.c: Likewise.
65418         * lib/strchrnul.c: Likewise.
65419         * lib/strdup.c: Likewise.
65420         * lib/striconv.c: Likewise.
65421         * lib/striconveh.c: Likewise.
65422         * lib/striconveha.c: Likewise.
65423         * lib/strncasecmp.c: Likewise.
65424         * lib/strndup.c: Likewise.
65425         * lib/strnlen.c: Likewise.
65426         * lib/strsep.c: Likewise.
65427         * lib/strstr.c: Likewise.
65428         * lib/strtok_r.c: Likewise.
65429         * lib/userspec.c: Likewise.
65430         * lib/w32spawn.h: Likewise.
65431         * lib/xstrndup.c: Likewise.
65432         * lib/mountlist.c (strstr): Remove decl.
65433         * m4/string_h.m4: New file.
65434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65435         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65436         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65437         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65438         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65439         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65440         Set REPLACE_STRCASECMP if necessary.
65441         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65442         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65443         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65445         HAVE_DECL_STRDUP if necessary.
65446         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65447         since gl_FUNC_STRNDUP does that now.
65448         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65449         Check for decl here...
65450         (gl_PREREQ_STRNLEN): ... not here.
65451         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65452         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65453         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65455         necessary.
65456         * modules/string: New file.
65457         * modules/memmem (Files): Remove special-purpose include file.
65458         (Depends-on): Add string.
65459         (Include): Include <string.h>, not the removed file.
65460         * modules/mempcpy: Likewise.
65461         * modules/memrchr: Likewise.
65462         * modules/stpcpy: Likewise.
65463         * modules/stpncpy: Likewise.
65464         * modules/strcase: Likewise.
65465         * modules/strchrnul: Likewise.
65466         * modules/strdup: Likewise.
65467         * modules/strndup: Likewise.
65468         * modules/strnlen: Likewise.
65469         * modules/strpbrk: Likewise.
65470         * modules/strsep: Likewise.
65471         * modules/strstr: Likewise.
65472         * modules/strtok_r: Likewise.
65473         * tests/test-dirname.c: Don't include "strdup.h", since
65474         <string.h> now suffices.
65475         * tests/test-memmem.c: Don't include "memmem.h", since
65476         <string.h> now suffices.
65477
65478 2007-01-25  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65481         *resultp is 0.
65482
65483         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65484         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65485         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65486         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65487
65488         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65489         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65490         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65491         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65492         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65493         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65494
65495 2007-01-24  Bruno Haible  <bruno@clisp.org>
65496
65497         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65499         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65500         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65501         gl_FUNC_FTS_CORE.
65502         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65503         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65504         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65505         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65506         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65507         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65508         gl_FUNC_FCHOWNAT.
65509         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65510         gl_FUNC_STRFTIME.
65511         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65512         Reported by Ralf Wildenhues.
65513
65514 2007-01-24  Bruno Haible  <bruno@clisp.org>
65515
65516         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65517         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65518         gl_GETADDRINFO.
65519         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65520         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65521         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65522
65523 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65524
65525         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65526         Don't use 'exit'; just return from 'main'.
65527         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65528
65529         * lib/fnmatch_.h: Readjust white space and comments to match
65530         glibc, to avoid spurious diffs.
65531
65532 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65535         2004-12-01 change by Jakub Jelinek, since this code won't compile
65536         if !LIBC.  Problem reported by Bob Proulx.
65537
65538 2007-01-23  Bruno Haible  <bruno@clisp.org>
65539
65540         * lib/striconveh.c: Include c-strcaseeq.h.
65541         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65542         * modules/striconveh (Depends-on): Add c-strcaseeq.
65543
65544 2007-01-23  Bruno Haible  <bruno@clisp.org>
65545
65546         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65547
65548         * modules/c-strcaseeq: New file.
65549         * lib/c-strcaseeq.h: New file.
65550
65551         * modules/streq: New file.
65552         * lib/streq.h: New file.
65553
65554 2007-01-23  Bruno Haible  <bruno@clisp.org>
65555
65556         * modules/striconveha-tests: New file.
65557         * tests/test-striconveha.c: New file.
65558
65559         * lib/striconveha.h: Include <stdbool.h>.
65560         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65561         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65562         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65563         (mem_iconveha): New function.
65564         (str_iconveha_notranslit): Renamed from str_iconveha.
65565         (str_iconveha): New function.
65566         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65567         c-strcase.
65568
65569 2007-01-23  Bruno Haible  <bruno@clisp.org>
65570
65571         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65572         encodings without forgiving before trying any encoding with handler.
65573         (str_iconveha): Try all encodings without forgiving before trying any
65574         encoding with handler.
65575
65576 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65577
65578         Import the following changes from libc.
65579
65580         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65581
65582         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65583
65584         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65585
65586         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65587         normal_bracket label.
65588
65589         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65590
65591         [BZ #361]
65592         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65593         to normal_bracket after fetching the next character.
65594
65595 2007-01-22  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65598         argument.
65599         * lib/striconveh.c (iconv_carefully_1): New function.
65600         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65601         argument.
65602         (str_cd_iconveh): Update.
65603         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65604         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65605         * tests/test-striconveh.c (MAGIC): New macro.
65606         (new_offsets): New function.
65607         (main): Test call with and without offsets.
65608
65609 2007-01-22  Bruno Haible  <bruno@clisp.org>
65610
65611         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65612         * modules/sys_select (Makefile.am): Likewise.
65613         * modules/sys_socket (Makefile.am): Likewise.
65614         * modules/sys_time (Makefile.am): Likewise.
65615
65616 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         * modules/gettimeofday (License): Change from GPL to LGPL, since
65619         gettimeofday is a library function.
65620
65621 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65622
65623         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65624
65625 2007-01-21  Bruno Haible  <bruno@clisp.org>
65626
65627         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65628
65629 2007-01-21  Bruno Haible  <bruno@clisp.org>
65630
65631         * modules/striconveha: New file.
65632         * lib/striconveha.h: New file.
65633         * lib/striconveha.c: New file.
65634         * MODULES.html.sh (Internationalization functions): Add striconveha.
65635         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65636         string.
65637         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65638
65639 2007-01-21  Bruno Haible  <bruno@clisp.org>
65640
65641         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65642         * lib/striconveh.c (str_iconveh): Likewise.
65643
65644 2007-01-21  Bruno Haible  <bruno@clisp.org>
65645
65646         * lib/striconveh.h (mem_iconveh): New declaration.
65647         * lib/striconveh.c (mem_iconveh): New function.
65648         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65649
65650 2007-01-21  Bruno Haible  <bruno@clisp.org>
65651
65652         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65653
65654         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65655         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65656         original result buffer.
65657         (str_cd_iconveh): Update.
65658         * tests/test-striconveh.c (main): Update.
65659
65660         * lib/striconv.h (mem_cd_iconv): Change specification.
65661         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65662         result buffer.
65663         (str_cd_iconv): Update.
65664         * tests/test-striconv.c (main): Update.
65665
65666 2007-01-21  Bruno Haible  <bruno@clisp.org>
65667
65668         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65669
65670 2007-01-20  Jim Meyering  <jim@meyering.net>
65671
65672         * lib/userspec.c (parse_with_separator): If a user or group string
65673         starts with "+", skip the corresponding name-to-ID look-up, since
65674         such a look-up must fail: user and group names may not include "+".
65675
65676 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65679         since we now assume the sys_time module.
65680         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65681         check for sys/time.h; no longer needed.
65682         * modules/poll (Depends-on): Depend on sys_time.
65683
65684 2007-01-18  Bruno Haible  <bruno@clisp.org>
65685
65686         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65687         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65688
65689         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65690         gettimeofday.
65691
65692         * tests/test-gettimeofday.c: Include <time.h>.
65693         (dummy): Remove variable.
65694
65695         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65696         gl_HEADER_SYS_TIME_H.
65697         (gl_HEADER_SYS_TIME_H): New macro.
65698
65699         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65700         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65701         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65702         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65703         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65704         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65705         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65706         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65707         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65708         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65709         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65710
65711         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65712         last change; it caused a compilation error when cross-compiling to
65713         Cygwin.
65714
65715 2007-01-18  Jim Meyering  <jim@meyering.net>
65716
65717         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65718         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65719         than the race-prone "test -d sys || mkdir sys".
65720         (configure.ac): Use AC_PROG_MKDIR_P.
65721         * modules/sys_select: Likewise.
65722         * modules/sys_socket: Likewise.
65723         * modules/sys_time: Likewise.
65724
65725 2007-01-18  Eric Blake  <ebb9@byu.net>
65726
65727         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65728         replace gettimeofday.
65729         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65730         name, to avoid infinite recursion.
65731
65732 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65733
65734         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65735         module sys_time.
65736         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65737         assume timespec.h defines struct timeval.
65738         * lib/settime.c: Likewise.
65739         * lib/utimens.c: Likewise.
65740         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65741         since we now assume the gettimeofday module.
65742         * lib/tempname.c (__gen_tempname): Likewise.
65743         * lib/gettimeofday.h: Remove.
65744         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65745         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65746         Include <time.h>, for 'time()'.
65747         (localtime_buffer_addr): Also use this workaround if
65748         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65749         to simplify the uses.  All uses changed.
65750         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65751         that #undef is inside {}, and 'const' follows type name consistently.
65752         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65753         (gettimeofday): Do not use the maximum possible value for
65754         tv->tv_usec, since that might break usages other than ls.c.
65755         Instead, we'll leave ls.c alone.  This undoes today's patch
65756         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65757         we've never observed the problem but might as well keep the
65758         canary.
65759         * lib/nanosleep.c: Include timespec.h first, for interface check.
65760         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65761         now assume the sys_time module.
65762         * lib/tempname.c: Likewise.
65763         * lib/timespec.h: Likewise.
65764         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65765         needed.
65766         * lib/strftime.c: Likewise.
65767         * lib/timespec.h: Likewise.
65768         * lib/posixtm.c: Include posixtm.h first, for interface check.
65769         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65770         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65771         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65772         * lib/sys_time_.h: New file.
65773         * lib/timespec.h (struct timespec): Use long int, not long.
65774         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65775         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65776         Remove obsolescent call to AC_HEADER_TIME.
65777         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65779         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65780         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65781         Likewise.
65782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65783         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65784         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65785         into the sys_time module.  Check for gettimeofday just once.
65786         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65787         for gettimeofday signature to just check the signature.  Merely
65788         compile it, since linking doesn't test signature.  Improve test for
65789         whether gettimeofday.o is actually needed.
65790         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65791         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65792         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65793         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65794         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65795         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65796         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65797         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65798         than worrying about sys/time.h.
65799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65800         Don't bother worrying about TIME_WITH_SYS_TIME.
65801         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65802         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65803         * m4/sys_time_h.m4: New file.
65804         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65805         Don't include sys/time.h.  Return from main rather than exiting.
65806         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65807         all uses changed.
65808         * modules/gethrxtime (Depends-on): Add sys_time.
65809         * modules/gettime (Depends-on): Likewise.
65810         * modules/gettimeofday (Depends-on): Likewise.
65811         * modules/nanosleep (Depends-on): Likewise.
65812         * modules/settime (Depends-on): Likewise.
65813         * modules/tempname (Depends-on): Likewise.
65814         * modules/utimens (Depends-on): Likewise.
65815         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65816         (Include): Change back to <sys/time.h>.
65817         (Maintainer): Add self.
65818         * modules/sys_time: New file.
65819         * modules/tempname (Depends-on): Add gettimeofday.
65820         * tests/test-gettimeofday.c: Include <sys/time.h>
65821         rather than gettimeofday.h.
65822
65823 2007-01-17  Bruno Haible  <bruno@clisp.org>
65824
65825         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65826         the license default to GPL.
65827         (func_create_testdir): Don't complain if a module is LGPL and its
65828         tests module depends on GPLed modules.
65829
65830 2007-01-17  Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/gettimeofday.c (gettimeofday): Add code for the case
65833         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65834         maximum possible value for tv->tv_usec, rather than the minimum one.
65835
65836 2005-10-08  Martin Lambers  <marlam@marlam.de>
65837 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65838 2007-01-16  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65841         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65842         gl_FUNC_GETTIMEOFDAY.
65843         (Include): Add gettimeofday.h.
65844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65845         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65846         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65847         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65848         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65849         * lib/gettimeofday.h: New file.
65850         * lib/gettimeofday.c: Include <sys/timeb.h>.
65851         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65852         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65853         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65854         fall back on time().
65855
65856         * tests/test-gettimeofday.c: New file.
65857         * modules/gettimeofday-tests: New file.
65858
65859 2007-01-16  Eric Blake  <ebb9@byu.net>
65860
65861         * modules/fnmatch (Depends-on): Depend on wchar.
65862         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65863         * m4/fnmatch.m4: Likewise.
65864         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65865         * m4/mbchar.m4: Likewise.
65866         * modules/mbswidth (Depends-on): Depend on wchar.
65867         * lib/mbswidth.c: Assume <wchar.h>.
65868         * m4/mbswidth.m4: Likewise.
65869         * modules/quotearg (Depends-on): Depend on wchar.
65870         * lib/quotearg.c: Assume <wchar.h>.
65871         * m4/quotearg.m4: Likewise.
65872         * modules/regex (Depends-on): Depend on wchar.
65873         * lib/regex_internal.h: Assume <wchar.h>.
65874         * m4/regex.m4: Likewise.
65875         * modules/stdint (Depends-on): Depend on wchar.
65876         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65877         * m4/stdint.m4: Likewise.
65878         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65879         * modules/strftime (Depends-on): Depend on wchar.
65880         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65881         * modules/strtol (Depends-on): Depend on wchar.
65882         * lib/strtol.c: Assume <wchar.h>.
65883         * modules/wcwidth (Depends-on): Depend on wchar.
65884         * lib/wcwidth.h: Assume <wchar.h>.
65885         * m4/wcwidth.m4: Likewise.
65886
65887 2007-01-16  Bruno Haible  <bruno@clisp.org>
65888
65889         * modules/csharpexec-script: New, created from...
65890         * modules/csharpexec: ... this.
65891
65892 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65893
65894         * modules/javaexec-script: New, created from...
65895         * modules/javaexec: ... this.
65896
65897 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65898
65899         * modules/poll (Dependencies): Add sys_select.
65900
65901 2007-01-15  Jim Meyering  <jim@meyering.net>
65902
65903         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65904         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65905         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65906         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65907
65908 2007-01-15  Bruno Haible  <bruno@clisp.org>
65909
65910         * modules/striconveh: New file.
65911         * lib/striconveh.h: New file.
65912         * lib/striconveh.c: New file.
65913         * MODULES.html.sh (Internationalization functions): Add striconveh.
65914
65915         * modules/striconveh-tests: New file.
65916         * tests/test-striconveh.c: New file.
65917
65918 2007-01-15  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65921         not from GNU libiconv or GNU libc.
65922
65923 2007-01-15  Bruno Haible  <bruno@clisp.org>
65924
65925         * doc/gnulib-intro.texi (Copyright): Explain the different license
65926         terms for module descriptions, autoconf macros, tests, documentation.
65927
65928 2007-01-14  Bruno Haible  <bruno@clisp.org>
65929
65930         * modules/striconv-tests: New file.
65931         * tests/test-striconv.c: New file.
65932
65933 2007-01-14  Bruno Haible  <bruno@clisp.org>
65934
65935         * modules/iconv-tests: New file.
65936         * tests/test-iconv.c: New file.
65937
65938 2007-01-14  Bruno Haible  <bruno@clisp.org>
65939
65940         * gnulib-tool (func_get_license): For test modules, use the license of
65941         the main module.
65942
65943 2007-01-14  Bruno Haible  <bruno@clisp.org>
65944
65945         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65946         if iconv is found to exist.
65947
65948 2007-01-14  Bruno Haible  <bruno@clisp.org>
65949
65950         * modules/c-ctype-tests: New file.
65951         * tests/test-c-ctype.c: New file.
65952
65953 2007-01-14  Bruno Haible  <bruno@clisp.org>
65954
65955         * modules/binary-io-tests: New file.
65956         * tests/test-binary-io.sh: New file.
65957         * tests/test-binary-io.c: New file.
65958
65959 2007-01-14  Bruno Haible  <bruno@clisp.org>
65960
65961         * modules/array-oset-tests: New file.
65962         * tests/test-array_oset.c: New file.
65963
65964 2007-01-14  Bruno Haible  <bruno@clisp.org>
65965
65966         * modules/array-list-tests: New file.
65967         * tests/test-array_list.c: New file.
65968
65969 2007-01-14  Bruno Haible  <bruno@clisp.org>
65970
65971         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65972         and make.
65973         Reported by Simon Josefsson in
65974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65975
65976 2007-01-14  Bruno Haible  <bruno@clisp.org>
65977
65978         * modules/allocsa-tests: New file.
65979         * tests/test-allocsa.c: New file.
65980
65981 2007-01-14  Bruno Haible  <bruno@clisp.org>
65982
65983         * modules/fchdir (Depends-on): Add absolute-header.
65984         * modules/unistd (Depends-on): Likewise.
65985
65986 2006-12-30  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/fchdir: New file.
65989         * modules/unistd (Files): Add lib/unistd_.h.
65990         (Makefile.am): Generate unistd.h from unistd_.h.
65991         * lib/fchdir.c: New file.
65992         * lib/dirent_.h: New file.
65993         * lib/unistd_.h: New file.
65994         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65995         * m4/fchdir.m4: New file.
65996         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65997         (gl_HEADER_UNISTD): Invoke it.
65998         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65999         function.
66000         * lib/backupfile.c (opendir, closedir): Undefine.
66001         * lib/chown.c (open, close): Undefine.
66002         * lib/clean-temp.c (open, close): Undefine.
66003         * lib/copy-file.c (open, close): Undefine.
66004         * lib/execute.c (open, close): Undefine.
66005         * lib/fsusage.c (open, close): Undefine.
66006         * lib/gc-gnulib.c (open, close): Undefine.
66007         * lib/getcwd.c (opendir, closedir): Undefine.
66008         * lib/glob.c (opendir, closedir): Undefine.
66009         * lib/javacomp.c (open, close): Undefine.
66010         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66011         * lib/openat-proc.c (open, close): Undefine.
66012         * lib/pagealign_alloc.c (open, close): Undefine.
66013         * lib/pipe.c (open, close): Undefine.
66014         * lib/progreloc.c (open, close): Undefine.
66015         * lib/savedir.c (opendir, closedir): Undefine.
66016         * lib/utime.c (open, close): Undefine.
66017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66018
66019 2007-01-10  Bruno Haible  <bruno@clisp.org>
66020
66021         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66022
66023 2007-01-12  Eric Blake  <ebb9@byu.net>
66024
66025         Provide a robust <wchar.h>.  Further simplifications are now
66026         possible in other modules, but not included here.
66027         * modules/wchar: New module.
66028         * m4/wchar.m4: New file.
66029         * lib/wchar_.h: Likewise.
66030         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66031         of the new module.
66032         * MODULES.html.sh (Extended multibyte and wide character utilities):
66033         New section.
66034
66035 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66038         to a reasonable default for memory allocation.
66039         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66040         file system that reports garbage st_size values for symlinks.
66041         Problem reported by Liyang Hu.
66042
66043 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66044
66045         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66046         Emacs .#* auto-save files).
66047
66048 2007-01-11  Bruno Haible  <bruno@clisp.org>
66049
66050         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66051         directory.
66052
66053 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         Use @...@ consistently in lib/wctype_.h.
66056         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66057         on it being set to 1 or 0.
66058         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66059         go back to AC_SUBSTing it.
66060         * modules/wctype (Makefile.am): Undo previous change.
66061
66062 2007-01-10  Eric Blake  <ebb9@byu.net>
66063
66064         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66065         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66066         * modules/wctype (Makefile.am): Likewise.
66067         Reported by Chris McGuire.
66068
66069 2007-01-10  Jim Meyering  <jim@meyering.net>
66070
66071         fts.c: a small readability/maintainability improvement
66072         * lib/fts.c (fts_read): Make this code slightly more readable and
66073         maintainable by hoisting the "sp->fts_cur = p" assignments to
66074         immediately follow the statements that set P.  Derived from
66075         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66076
66077 2007-01-10  Eric Blake  <ebb9@byu.net>
66078
66079         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66080         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66082         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66083         Reported by Chris McGuire.
66084
66085 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66086
66087         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66088         in sed script.
66089
66090 2007-01-09  Bruno Haible  <bruno@clisp.org>
66091
66092         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66093         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66094         variables.
66095         (func_module): Use them.
66096
66097 2007-01-09  Bruno Haible  <bruno@clisp.org>
66098
66099         * modules/unistr/base: New file.
66100         * lib/unistr.h: New file.
66101
66102         * modules/unistr/u8-to-u16: New file.
66103         * lib/unistr/u8-to-u16.c: New file.
66104
66105         * modules/unistr/u8-to-u32: New file.
66106         * lib/unistr/u8-to-u32.c: New file.
66107
66108         * modules/unistr/u16-to-u8: New file.
66109         * lib/unistr/u16-to-u8.c: New file.
66110
66111         * modules/unistr/u16-to-u32: New file.
66112         * lib/unistr/u16-to-u32.c: New file.
66113
66114         * modules/unistr/u32-to-u8: New file.
66115         * lib/unistr/u32-to-u8.c: New file.
66116
66117         * modules/unistr/u32-to-u16: New file.
66118         * lib/unistr/u32-to-u16.c: New file.
66119
66120         * modules/unistr/u8-check: New file.
66121         * modules/unistr/u16-check: New file.
66122         * modules/unistr/u32-check: New file.
66123         * lib/unistr/u8-check.c: New file.
66124         * lib/unistr/u16-check.c: New file.
66125         * lib/unistr/u32-check.c: New file.
66126
66127         * modules/unistr/u8-chr: New file.
66128         * modules/unistr/u16-chr: New file.
66129         * modules/unistr/u32-chr: New file.
66130         * lib/unistr/u8-chr.c: New file.
66131         * lib/unistr/u16-chr.c: New file.
66132         * lib/unistr/u32-chr.c: New file.
66133
66134         * modules/unistr/u8-cmp: New file.
66135         * modules/unistr/u16-cmp: New file.
66136         * modules/unistr/u32-cmp: New file.
66137         * lib/unistr/u8-cmp.c: New file.
66138         * lib/unistr/u16-cmp.c: New file.
66139         * lib/unistr/u32-cmp.c: New file.
66140
66141         * modules/unistr/u8-cpy: New file.
66142         * modules/unistr/u16-cpy: New file.
66143         * modules/unistr/u32-cpy: New file.
66144         * lib/unistr/u8-cpy.c: New file.
66145         * lib/unistr/u16-cpy.c: New file.
66146         * lib/unistr/u32-cpy.c: New file.
66147         * lib/unistr/u-cpy.h: New file.
66148
66149         * modules/unistr/u8-cpy-alloc: New file.
66150         * modules/unistr/u16-cpy-alloc: New file.
66151         * modules/unistr/u32-cpy-alloc: New file.
66152         * lib/unistr/u8-cpy-alloc.c: New file.
66153         * lib/unistr/u16-cpy-alloc.c: New file.
66154         * lib/unistr/u32-cpy-alloc.c: New file.
66155         * lib/unistr/u-cpy-alloc.h: New file.
66156
66157         * modules/unistr/u8-endswith: New file.
66158         * modules/unistr/u16-endswith: New file.
66159         * modules/unistr/u32-endswith: New file.
66160         * lib/unistr/u8-endswith.c: New file.
66161         * lib/unistr/u16-endswith.c: New file.
66162         * lib/unistr/u32-endswith.c: New file.
66163         * lib/unistr/u-endswith.h: New file.
66164
66165         * modules/unistr/u8-mblen: New file.
66166         * modules/unistr/u16-mblen: New file.
66167         * modules/unistr/u32-mblen: New file.
66168         * lib/unistr/u8-mblen.c: New file.
66169         * lib/unistr/u16-mblen.c: New file.
66170         * lib/unistr/u32-mblen.c: New file.
66171
66172         * modules/unistr/u8-mbtouc: New file.
66173         * modules/unistr/u16-mbtouc: New file.
66174         * modules/unistr/u32-mbtouc: New file.
66175         * lib/unistr/u8-mbtouc.c: New file.
66176         * lib/unistr/u16-mbtouc.c: New file.
66177         * lib/unistr/u32-mbtouc.c: New file.
66178
66179         * modules/unistr/u8-mbtouc-safe: New file.
66180         * modules/unistr/u16-mbtouc-safe: New file.
66181         * modules/unistr/u32-mbtouc-safe: New file.
66182         * lib/unistr/u8-mbtouc-safe.c: New file.
66183         * lib/unistr/u16-mbtouc-safe.c: New file.
66184         * lib/unistr/u32-mbtouc-safe.c: New file.
66185
66186         * modules/unistr/u8-move: New file.
66187         * modules/unistr/u16-move: New file.
66188         * modules/unistr/u32-move: New file.
66189         * lib/unistr/u8-move.c: New file.
66190         * lib/unistr/u16-move.c: New file.
66191         * lib/unistr/u32-move.c: New file.
66192         * lib/unistr/u-move.h: New file.
66193
66194         * modules/unistr/u8-next: New file.
66195         * modules/unistr/u16-next: New file.
66196         * modules/unistr/u32-next: New file.
66197         * lib/unistr/u8-next.c: New file.
66198         * lib/unistr/u16-next.c: New file.
66199         * lib/unistr/u32-next.c: New file.
66200
66201         * modules/unistr/u8-prev: New file.
66202         * modules/unistr/u16-prev: New file.
66203         * modules/unistr/u32-prev: New file.
66204         * lib/unistr/u8-prev.c: New file.
66205         * lib/unistr/u16-prev.c: New file.
66206         * lib/unistr/u32-prev.c: New file.
66207
66208         * modules/unistr/u8-set: New file.
66209         * modules/unistr/u16-set: New file.
66210         * modules/unistr/u32-set: New file.
66211         * lib/unistr/u8-set.c: New file.
66212         * lib/unistr/u16-set.c: New file.
66213         * lib/unistr/u32-set.c: New file.
66214         * lib/unistr/u-set.h: New file.
66215
66216         * modules/unistr/u8-startswith: New file.
66217         * modules/unistr/u16-startswith: New file.
66218         * modules/unistr/u32-startswith: New file.
66219         * lib/unistr/u8-startswith.c: New file.
66220         * lib/unistr/u16-startswith.c: New file.
66221         * lib/unistr/u32-startswith.c: New file.
66222         * lib/unistr/u-startswith.h: New file.
66223
66224         * modules/unistr/u8-stpcpy: New file.
66225         * modules/unistr/u16-stpcpy: New file.
66226         * modules/unistr/u32-stpcpy: New file.
66227         * lib/unistr/u8-stpcpy.c: New file.
66228         * lib/unistr/u16-stpcpy.c: New file.
66229         * lib/unistr/u32-stpcpy.c: New file.
66230         * lib/unistr/u-stpcpy.h: New file.
66231
66232         * modules/unistr/u8-stpncpy: New file.
66233         * modules/unistr/u16-stpncpy: New file.
66234         * modules/unistr/u32-stpncpy: New file.
66235         * lib/unistr/u8-stpncpy.c: New file.
66236         * lib/unistr/u16-stpncpy.c: New file.
66237         * lib/unistr/u32-stpncpy.c: New file.
66238         * lib/unistr/u-stpncpy.h: New file.
66239
66240         * modules/unistr/u8-strcat: New file.
66241         * modules/unistr/u16-strcat: New file.
66242         * modules/unistr/u32-strcat: New file.
66243         * lib/unistr/u8-strcat.c: New file.
66244         * lib/unistr/u16-strcat.c: New file.
66245         * lib/unistr/u32-strcat.c: New file.
66246         * lib/unistr/u-strcat.h: New file.
66247
66248         * modules/unistr/u8-strchr: New file.
66249         * modules/unistr/u16-strchr: New file.
66250         * modules/unistr/u32-strchr: New file.
66251         * lib/unistr/u8-strchr.c: New file.
66252         * lib/unistr/u16-strchr.c: New file.
66253         * lib/unistr/u32-strchr.c: New file.
66254
66255         * modules/unistr/u8-strcmp: New file.
66256         * modules/unistr/u16-strcmp: New file.
66257         * modules/unistr/u32-strcmp: New file.
66258         * lib/unistr/u8-strcmp.c: New file.
66259         * lib/unistr/u16-strcmp.c: New file.
66260         * lib/unistr/u32-strcmp.c: New file.
66261
66262         * modules/unistr/u8-strcpy: New file.
66263         * modules/unistr/u16-strcpy: New file.
66264         * modules/unistr/u32-strcpy: New file.
66265         * lib/unistr/u8-strcpy.c: New file.
66266         * lib/unistr/u16-strcpy.c: New file.
66267         * lib/unistr/u32-strcpy.c: New file.
66268         * lib/unistr/u-strcpy.h: New file.
66269
66270         * modules/unistr/u8-strcspn: New file.
66271         * modules/unistr/u16-strcspn: New file.
66272         * modules/unistr/u32-strcspn: New file.
66273         * lib/unistr/u8-strcspn.c: New file.
66274         * lib/unistr/u16-strcspn.c: New file.
66275         * lib/unistr/u32-strcspn.c: New file.
66276         * lib/unistr/u-strcspn.h: New file.
66277
66278         * modules/unistr/u8-strdup: New file.
66279         * modules/unistr/u16-strdup: New file.
66280         * modules/unistr/u32-strdup: New file.
66281         * lib/unistr/u8-strdup.c: New file.
66282         * lib/unistr/u16-strdup.c: New file.
66283         * lib/unistr/u32-strdup.c: New file.
66284         * lib/unistr/u-strdup.h: New file.
66285
66286         * modules/unistr/u8-strlen: New file.
66287         * modules/unistr/u16-strlen: New file.
66288         * modules/unistr/u32-strlen: New file.
66289         * lib/unistr/u8-strlen.c: New file.
66290         * lib/unistr/u16-strlen.c: New file.
66291         * lib/unistr/u32-strlen.c: New file.
66292         * lib/unistr/u-strlen.h: New file.
66293
66294         * modules/unistr/u8-strmblen: New file.
66295         * modules/unistr/u16-strmblen: New file.
66296         * modules/unistr/u32-strmblen: New file.
66297         * lib/unistr/u8-strmblen.c: New file.
66298         * lib/unistr/u16-strmblen.c: New file.
66299         * lib/unistr/u32-strmblen.c: New file.
66300
66301         * modules/unistr/u8-strmbtouc: New file.
66302         * modules/unistr/u16-strmbtouc: New file.
66303         * modules/unistr/u32-strmbtouc: New file.
66304         * lib/unistr/u8-strmbtouc.c: New file.
66305         * lib/unistr/u16-strmbtouc.c: New file.
66306         * lib/unistr/u32-strmbtouc.c: New file.
66307
66308         * modules/unistr/u8-strncat: New file.
66309         * modules/unistr/u16-strncat: New file.
66310         * modules/unistr/u32-strncat: New file.
66311         * lib/unistr/u8-strncat.c: New file.
66312         * lib/unistr/u16-strncat.c: New file.
66313         * lib/unistr/u32-strncat.c: New file.
66314         * lib/unistr/u-strncat.h: New file.
66315
66316         * modules/unistr/u8-strncmp: New file.
66317         * modules/unistr/u16-strncmp: New file.
66318         * modules/unistr/u32-strncmp: New file.
66319         * lib/unistr/u8-strncmp.c: New file.
66320         * lib/unistr/u16-strncmp.c: New file.
66321         * lib/unistr/u32-strncmp.c: New file.
66322
66323         * modules/unistr/u8-strncpy: New file.
66324         * modules/unistr/u16-strncpy: New file.
66325         * modules/unistr/u32-strncpy: New file.
66326         * lib/unistr/u8-strncpy.c: New file.
66327         * lib/unistr/u16-strncpy.c: New file.
66328         * lib/unistr/u32-strncpy.c: New file.
66329         * lib/unistr/u-strncpy.h: New file.
66330
66331         * modules/unistr/u8-strnlen: New file.
66332         * modules/unistr/u16-strnlen: New file.
66333         * modules/unistr/u32-strnlen: New file.
66334         * lib/unistr/u8-strnlen.c: New file.
66335         * lib/unistr/u16-strnlen.c: New file.
66336         * lib/unistr/u32-strnlen.c: New file.
66337         * lib/unistr/u-strnlen.h: New file.
66338
66339         * modules/unistr/u8-strpbrk: New file.
66340         * modules/unistr/u16-strpbrk: New file.
66341         * modules/unistr/u32-strpbrk: New file.
66342         * lib/unistr/u8-strpbrk.c: New file.
66343         * lib/unistr/u16-strpbrk.c: New file.
66344         * lib/unistr/u32-strpbrk.c: New file.
66345         * lib/unistr/u-strpbrk.h: New file.
66346
66347         * modules/unistr/u8-strrchr: New file.
66348         * modules/unistr/u16-strrchr: New file.
66349         * modules/unistr/u32-strrchr: New file.
66350         * lib/unistr/u8-strrchr.c: New file.
66351         * lib/unistr/u16-strrchr.c: New file.
66352         * lib/unistr/u32-strrchr.c: New file.
66353
66354         * modules/unistr/u8-strspn: New file.
66355         * modules/unistr/u16-strspn: New file.
66356         * modules/unistr/u32-strspn: New file.
66357         * lib/unistr/u8-strspn.c: New file.
66358         * lib/unistr/u16-strspn.c: New file.
66359         * lib/unistr/u32-strspn.c: New file.
66360         * lib/unistr/u-strspn.h: New file.
66361
66362         * modules/unistr/u8-strstr: New file.
66363         * modules/unistr/u16-strstr: New file.
66364         * modules/unistr/u32-strstr: New file.
66365         * lib/unistr/u8-strstr.c: New file.
66366         * lib/unistr/u16-strstr.c: New file.
66367         * lib/unistr/u32-strstr.c: New file.
66368         * lib/unistr/u-strstr.h: New file.
66369
66370         * modules/unistr/u8-strtok: New file.
66371         * modules/unistr/u16-strtok: New file.
66372         * modules/unistr/u32-strtok: New file.
66373         * lib/unistr/u8-strtok.c: New file.
66374         * lib/unistr/u16-strtok.c: New file.
66375         * lib/unistr/u32-strtok.c: New file.
66376         * lib/unistr/u-strtok.h: New file.
66377
66378         * modules/unistr/u8-uctomb: New file.
66379         * modules/unistr/u16-uctomb: New file.
66380         * modules/unistr/u32-uctomb: New file.
66381         * lib/unistr/u8-uctomb.c: New file.
66382         * lib/unistr/u16-uctomb.c: New file.
66383         * lib/unistr/u32-uctomb.c: New file.
66384
66385         * MODULES.html.sh (Unicode string functions): Add the new modules.
66386
66387 2007-01-08  Bruno Haible  <bruno@clisp.org>
66388
66389         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66390         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66391         subdirectories.
66392
66393 2007-01-08  Karl Berry  <karl@gnu.org>
66394
66395         * doc/error.texi: mention that main() fns must set program_name
66396         when progname is used.
66397
66398 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66399
66400         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66401         WCTYPE_H is empty, for the benefit of builds from non-distclean
66402         directories.  Problem reported by Eric Blake in
66403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66404
66405 2007-01-08  Bruno Haible  <bruno@clisp.org>
66406
66407         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66408         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66409         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66410         PROVIDE_CANONICALIZE_FILENAME_MODE.
66411         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66412
66413 2007-01-08  Bruno Haible  <bruno@clisp.org>
66414
66415         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66416         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66417         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66418         * lib/fts.c: Likewise.
66419         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66420
66421 2006-12-25  Bruno Haible  <bruno@clisp.org>
66422
66423         * modules/utf8-ucs4-safe: New file.
66424         * lib/utf8-ucs4-safe.h: New file.
66425         * lib/unistr/utf8-ucs4-safe.c: New file.
66426
66427         * modules/utf16-ucs4-safe: New file.
66428         * lib/utf16-ucs4-safe.h: New file.
66429         * lib/unistr/utf16-ucs4-safe.c: New file.
66430
66431         * MODULES.html.sh (Unicode string functions): Add the new modules.
66432
66433 2007-01-08  Bruno Haible  <bruno@clisp.org>
66434
66435         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66436         (Depends-on): Add unitypes.
66437         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66438         (u8_mbtouc_aux): Move out to separate file.
66439         (u8_mbtouc): Use ucs4_t, uint8_t types.
66440         * lib/unistr/utf8-ucs4.c: New file.
66441
66442         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66443         (Depends-on): Add unitypes.
66444         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66445         (u16_mbtouc_aux): Move out to separate file.
66446         (u16_mbtouc): Use ucs4_t, uint16_t types.
66447         * lib/unistr/utf16-ucs4.c: New file.
66448
66449         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66450         (Depends-on): Add unitypes.
66451         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66452         (u8_uctomb_aux): Move out to separate file.
66453         (u8_uctomb): Use ucs4_t, uint8_t types.
66454         * lib/unistr/ucs4-utf8.c: New file.
66455
66456         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66457         (Depends-on): Add unitypes.
66458         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66459         (u16_uctomb_aux): Move out to separate file.
66460         (u16_uctomb): Use ucs4_t, uint16_t types.
66461         * lib/unistr/ucs4-utf16.c: New file.
66462
66463 2006-12-25  Bruno Haible  <bruno@clisp.org>
66464
66465         * modules/unitypes: New file.
66466         * lib/unitypes.h: New file.
66467         * MODULES.html.sh (func_all_modules): New section "Unicode string
66468         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66469         this section. Add unitypes.
66470
66471 2007-01-08  Bruno Haible  <bruno@clisp.org>
66472
66473         Avoid variable names that conflict with those from libtool.
66474         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66475         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66476         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66477         library_names_spec to acl_library_names_spec, hardcode_* to
66478         acl_hardcode_*.
66479         Reported by Ralf Wildenhues.
66480
66481 2007-01-08  Bruno Haible  <bruno@clisp.org>
66482
66483         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66484         definition.
66485         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66486         definition.
66487         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66488         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66489         definition.
66490         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66491         definition.
66492         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66493         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66494         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66495         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66496         definition.
66497         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66498         definition.
66499         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66500         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66501         GC_USE_<algorithm>.
66502         * lib/gc-libgcrypt.c: Likewise.
66503         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66504         * modules/gc-arctwo (configure.ac): Likewise.
66505         * modules/gc-des (configure.ac): Likewise.
66506         * modules/gc-hmac-md5 (configure.ac): Likewise.
66507         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66508         * modules/gc-md2 (configure.ac): Likewise.
66509         * modules/gc-md4 (configure.ac): Likewise.
66510         * modules/gc-md5 (configure.ac): Likewise.
66511         * modules/gc-random (configure.ac): Likewise.
66512         * modules/gc-rijndael (configure.ac): Likewise.
66513         * modules/gc-sha1 (configure.ac): Likewise.
66514
66515 2007-01-08  Bruno Haible  <bruno@clisp.org>
66516
66517         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66518         macro definition.
66519         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66520         definition.
66521         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66522         definition.
66523         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66524         * modules/fcntl-safer (configure.ac): Likewise.
66525         * modules/fopen-safer (configure.ac): Likewise.
66526         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66527         GNULIB_FWRITEERROR macro definition.
66528
66529 2007-01-08  Bruno Haible  <bruno@clisp.org>
66530
66531         * m4/gnulib-common.m4: New file.
66532         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66533         (func_get_filelist): Add m4/gnulib-common.m4.
66534
66535 2007-01-08  Bruno Haible  <bruno@clisp.org>
66536
66537         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66538         command.
66539
66540 2007-01-08  Jim Meyering  <jim@meyering.net>
66541
66542         Use a more robust test for a "can't happen" condition.
66543         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66544         narrowed the st_size value.  Presuming the "can't happen" condition
66545         is true, that narrowing could conceivably convert an invalid st_size
66546         value into a valid one.  Instead, use a change based on Matthew
66547         Woehlke's original patch.
66548
66549         Slight readability improvement: use an assert-like macro
66550         in place of literal "abort ()" uses.
66551         * lib/fts.c (fts_assert): Define.
66552         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66553         Use this macro instead of a bare 'abort'.
66554
66555 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66556
66557         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66558         simply work around them.
66559         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66560         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66561         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66562         declaring.
66563         Don't bother to define as macros, since the standard doesn't require it.
66564         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66565         longer worry about IRIX 5.3.
66566         (HAVE_WCTYPE_CTMP_BUG): Remove.
66567
66568 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66571         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66572         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66573         Problems reported by Georg Schwarz for IRIX 5.3.
66574
66575         * gnulib-tool (autoconf_minversion): Take the maximum version number
66576         found, not the minimum.  Problem reported by James Youngman.
66577
66578 2007-01-03  Karl Berry  <karl@gnu.org>
66579
66580         * doc/error.texi: new file, explaining interaction with progname.
66581         * doc/gnulib.texi: include it.  Update copyright.
66582
66583 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66584
66585         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66586         AC_CANONICAL_HOST, to improve autobuild outputs.
66587
66588 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66589             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66590
66591         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66592         sockets, server sockets, and other file descriptors.  Count errors
66593         to compute the return value.  Reorder the code a bit to be easier
66594         to follow.  Don't set event bits that were not requested (except
66595         POLLERR and POLLHUP).
66596
66597 2007-01-01  Bruno Haible  <bruno@clisp.org>
66598
66599         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66600
66601 2007-01-03  Jim Meyering  <jim@meyering.net>
66602
66603         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66604
66605 2007-01-02  Bruno Haible  <bruno@clisp.org>
66606
66607         * modules/settime (Include): Require timespec.h.
66608         * modules/nanosleep (Include): Likewise.
66609
66610 2007-01-01  Bruno Haible  <bruno@clisp.org>
66611
66612         * gnulib-tool (func_emit_copyright_notice): Bump year.
66613         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66614
66615 2007-01-01  Bruno Haible  <bruno@clisp.org>
66616
66617         Improve support for OpenBSD.
66618         * build-aux/config.rpath (libname_spec): Export.
66619         (library_names_spec): New variable. Export.
66620         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66621         library_names_spec from the config.rpath output. Locate shared library
66622         through the name pattern in library_names_spec.
66623
66624 2007-01-01  Eric Blake  <ebb9@byu.net>
66625
66626         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66627
66628 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66629
66630         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66631         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66632         assume the C locale, and avoid an "eval" that could cause trouble.
66633         Problem with SORT reported by Bob Proulx.
66634
66635         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66636         Define.  Trivial patch from Henning Nielsen Lund, originally
66637         sent to bug-grep@gnu.org today.
66638
66639 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66640
66641         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66642         struct stat.  Problem reported by Henning Nielsen Lund.
66643         * lib/acl.c: Include acl.h first, to check interface.  Don't
66644         bother to include sys/types.h and sys/stat.h again.
66645
66646 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66647
66648         Import the following change from libc; problem reported by
66649         Sven Verdoolaege.
66650
66651         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66652
66653         [BZ #1373]
66654         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66655
66656 2006-12-28  Jim Meyering  <jim@meyering.net>
66657
66658         * build-aux/announce-gen: Do not assume that the package
66659         builds any of tar.gz, tar.bz2, and .xdelta files.
66660         Suggestion from Simon Josefsson.
66661
66662 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66663
66664         * modules/announce-gen: New file.
66665
66666 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66667
66668         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66669         handles its gotchas now.
66670         * lib/mbswidth.c: Likewise.
66671         * lib/wcwidth.h: Likewise.
66672         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66673         and iswcntrl; the wctype module does this stuff now.
66674         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66676         * modules/mbchar (Depends-on): Add wctype.
66677         * modules/mbswidth (Depends-on): Likewise.
66678         * modules/wcwidth (Depends-on): Likewise.
66679
66680 2006-12-27  Eric Blake  <ebb9@byu.net>
66681
66682         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66683         module uses more than what <wctype.h> is required to provide.
66684
66685 2006-12-26  Eric Blake  <ebb9@byu.net>
66686
66687         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66688
66689 2006-12-26  Eric Blake  <ebb9@byu.net>
66690
66691         * modules/absolute-header: New module.
66692         * modules/fcntl (Depends-on): Depend on it.
66693         * modules/inttypes (Depends-on): Likewise.
66694         * modules/stdint (Depends-on): Likewise.
66695         * modules/sys_stat (Depends-on): Likewise.
66696         * modules/wctype (Depends-on): Likewise.
66697         * MODULES.html.sh (Support for building libraries and
66698         executables): Document it.
66699
66700 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66701
66702         * gnulib-tool (SED): Remove, undoing previous change.
66703         The problem was that it broke coreutils on Solaris, because
66704         "sed --posix" leaked into a makefile.
66705         (sed): New alias, if 'alias' and GNU sed.
66706
66707 2006-12-24  Jim Meyering  <jim@meyering.net>
66708
66709         Work around an fchownat bug in glibc-2.4:
66710         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66711         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66712         in spite of the -P option.
66713         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66714         New macros.
66715         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66716         * modules/openat (Files): Add lib/fchownat.c.
66717         * lib/openat.c (fchownat): Don't define here.  Move to...
66718         * lib/fchownat.c: ...this new file.
66719
66720 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         Fix bug reported by Bruno Haible in
66723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66724         where quotearg.c didn't compile on Mac OS X 10.2 because it
66725         lacks <wchar.h> and wint_t.
66726         * lib/wctype_.h (__wctype_wint_t): New type.
66727         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66728         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66729         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66730         Arg is now of type __wctype_wint_t, not wint_t.
66731         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66732         substitute HAVE_WINT_T.
66733         * modules/wctype (Files): Add m4/wint_t.m4.
66734         (wctype.h): Substitute HAVE_WINT_T.
66735
66736 2006-12-23  Bruno Haible  <bruno@clisp.org>
66737
66738         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66739
66740 2006-12-23  Bruno Haible  <bruno@clisp.org>
66741
66742         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66743         S_ISLNK.
66744         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66745         mingw.
66746
66747 2006-12-22  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/copy-file.c: Include acl.h.
66750         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66751         Close the file descriptors only after being done with copy_acl.
66752         * modules/copy-file (Depends-on): Add acl.
66753
66754 2006-12-22  Bruno Haible  <bruno@clisp.org>
66755
66756         * gnulib-tool (SED): New variable.
66757         Use $SED instead of sed everywhere.
66758
66759 2006-12-22  Bruno Haible  <bruno@clisp.org>
66760
66761         * modules/no-c++: New file.
66762         * m4/no-c++.m4: New file.
66763         * MODULES.html.sh (Support for building libraries and executables):
66764         Add no-c++.
66765
66766 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66769         Include <limits.h>, and use its INT_MAX to rewrite the
66770         j loop so that it does not overflow 'int'.  Problem reported by
66771         Ralf Wildenhues in
66772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66773         Play it safe by shifting left by 1 rather than multiplying by 2,
66774         as GCC is less likely to optimize this away when the value
66775         is signed (when it assumes overflow leads to undefined behavior).
66776         Also, don't assume time_t uses two's complement.
66777
66778 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66779
66780         * MODULES.html.sh: New module wctype.
66781         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66782         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66783         <wctype.h>, since the new wctype module should fix this.
66784         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66785         the wctype module should arrange for it.
66786         * lib/regex_internal.h: Likewise.
66787         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66788         since the wctype module should handle this now.
66789         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66790         * modules/fnmatch (Depends-on): Add wctype.
66791         * modules/quotearg (Depends-on): Likewise.
66792         * modules/regex (Depends-on): Likewise.
66793
66794 2006-12-19  Bruno Haible  <bruno@clisp.org>
66795
66796         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66797         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66798
66799 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66800
66801         * modules/savewd (Depends-on): Fix dependency on fcntl.
66802
66803 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66804
66805         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66806         conforms to C99, rather than relying on the user's environment
66807         setting of STDINT_H.
66808
66809 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66810         and Eric Blake  <ebb9@byu.net>
66811
66812         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66813         This is more consistent with the other defines here.
66814         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66815         Port to z/OS.  Problem reported by Paul Gilmartin.
66816         Change local vars to use gl_ prefix rather than ac_.
66817         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66818         with other defines.
66819         * modules/double-slash-root: New module.
66820         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66821         (Depends-on): Add double-slash-root.
66822         * MODULES.html.sh (File system functions): Mention new module.
66823
66824 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66825
66826         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66827         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66828         This is for the benefit of gzip, which doesn't do i18n.
66829
66830 2006-12-12  Jim Meyering  <jim@meyering.net>
66831
66832         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66833         Reported by Andreas Schwab <schwab@suse.de>.
66834
66835 2006-12-12  Bruno Haible  <bruno@clisp.org>
66836
66837         Merge these changes.
66838         2006-09-05  Bruno Haible  <bruno@clisp.org>
66839         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66840         iconv_alloc succeeded.
66841         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66842         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66843         test for " && dest " at the end - dest is always != NULL there. Call
66844         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66845         with 2xNULL arguments, also to flush the state storage. Handle the
66846         IRIX iconv behaviour. Realloc the final result, to throw away unused
66847         memory.
66848
66849 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66850
66851         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66852         and fchmodat unconditionally, since glibc 2.4 has them.
66853         Problem reported by Arkadiusz Miskiewicz.
66854
66855 2006-12-10  Bruno Haible  <bruno@clisp.org>
66856
66857         * gnulib-tool (func_import): Show the include files only for those
66858         modules that are copied and specified.
66859         Reported by Karl Berry.
66860
66861 2006-12-08  Jim Meyering  <jim@meyering.net>
66862
66863         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66864         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66865
66866         * build-aux/announce-gen: Add two new options, both optional:
66867         --bootstrap-tools=TOOL_LIST
66868               a comma-separated list of tools, e.g.,
66869               autoconf,automake,bison,gnulib
66870         --gnulib-snapshot-date=DATE
66871               if gnulib is in the bootstrap tool list,
66872               then report this as the snapshot date.
66873               If not specified, use the current date/time.
66874               If you specify a date here, be sure it's UTC.
66875
66876 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66877
66878         * tests/test-argp-2.sh: Fix test to match actual output.
66879         (func_compare): Fix sed script to be portable.
66880
66881 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66884         workaround for this case.  It is not autoconfigured now; offhand
66885         it's hard to see how to autoconfigure it.
66886
66887 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66890         a directory that is about to be chowned.  Such a directory's
66891         initial file permissions should permit the owner only and this
66892         should not be changed until after the chown, since the group and
66893         other bits would be incorrect if they granted permission before
66894         the chown.
66895
66896         Fix porting problem for iswctype reported by Georg Schwarz in:
66897         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66898         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66899         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66901         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66902
66903 2006-12-03  Jim Meyering  <jim@meyering.net>
66904
66905         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66906         p->fts_statp may not yet be defined.
66907         (fts_read): Instead, set it in the caller, once p->fts_statp is
66908         sure to be defined, and corresponds to a top-level directory.
66909         This bug made du -x fail.  Here's the coreutils test case:
66910         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66911         Reported by Mike Frysinger.
66912
66913 2006-12-01  Jim Meyering  <jim@meyering.net>
66914
66915         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66916         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66917         Reported by Simon Josefsson.
66918
66919 2006-11-30  Jim Meyering  <jim@meyering.net>
66920
66921         * m4/warning.m4: Use the all-permissive copyright notice
66922         recommended by RMS (rather than LGPL).
66923         * m4/vararrays.m4: Likewise.
66924         * m4/flexmember.m4: Likewise.
66925
66926 2006-11-29  Bruno Haible  <bruno@clisp.org>
66927
66928         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66929         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66930         using +=.
66931         Reported by Simon Josefsson <simon@josefsson.org>.
66932
66933 2006-11-28  James Youngman <jay@gnu.org>
66934
66935         * README: Advise users that they might find the bug-gnulib@gnu.org
66936         and autotools-announce@gnu.org mailing lists useful.
66937
66938 2006-11-28  Bruno Haible  <bruno@clisp.org>
66939
66940         * m4/ptrdiff_max.m4: Remove file.
66941
66942 2006-11-21  Bruno Haible  <bruno@clisp.org>
66943
66944         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66945         _AC_COMPUTE_INT.
66946         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66947         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66948         _AC_COMPUTE_INT.
66949         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66950         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66951         _AC_COMPUTE_INT.
66952         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66953
66954 2006-11-28  Jim Meyering  <jim@meyering.net>
66955
66956         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66957         warning from "gcc -Wshadow" about shadowing the builtin.
66958
66959 2006-11-27  Bruno Haible  <bruno@clisp.org>
66960
66961         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66962         _AC_COMPUTE_INT.
66963         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66964
66965 2006-11-27  Bruno Haible  <bruno@clisp.org>
66966             Paul Eggert  <eggert@cs.ucla.edu>
66967
66968         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66969
66970 2006-11-26  Bruno Haible  <bruno@clisp.org>
66971
66972         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66973         noinst_LTLIBRARIES.
66974
66975 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66976             Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66979         if compiling with "gcc -ansi".
66980
66981 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66982
66983         Fix some incompatibilities with gcc -ansi -pedantic.
66984         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66985         if compiling pedantically with GCC, unless it's C99 or later.
66986         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66987         it mishandles gcc -ansi -pedantic as well.
66988         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66989         if gcc -pedantic.
66990         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66991         initializers for struct if -pedantic, unless it's C99 or later.
66992
66993 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66994
66995         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66996         Don't close an fd more than once. Identical atimes indicate
66997         success, not failure.
66998
66999 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67000
67001         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67002
67003 2006-11-23  Jim Meyering  <jim@meyering.net>
67004
67005         * build-aux/announce-gen: New file.  From coreutils.
67006
67007 2006-11-22  Jim Meyering  <jim@meyering.net>
67008
67009         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67010         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67011         (fts_read): Use a temporary to narrow the overused st_size member
67012         before using it in a switch statement.  Reported by Matthew Woehlke.
67013
67014         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67016
67017 2006-11-20  Bruno Haible  <bruno@clisp.org>
67018
67019         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67020         changequote instead of pairs of brackets.
67021         Reported by Andreas Schwab <schwab@suse.de>.
67022
67023 2006-11-21  Jim Meyering  <jim@meyering.net>
67024
67025         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67026         so as to remain compatible with older compilers.
67027         Patch from Michael Deutschmann.
67028
67029 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * MODULES.html.sh (File system functions): Add openat.
67032
67033         * lib/openat.h (rpl_fstatat): New macro, if
67034         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67035         (fstatat): Define to rpl_fstatat under the same conditions,
67036         unless COMPILING_FSTATAT.
67037         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67038         seems to have the bug.
67039         * lib/fstatat.c: New file.
67040         * modules/openat (Files): Add it.
67041
67042 2006-11-20  Bruno Haible  <bruno@clisp.org>
67043
67044         * Makefile: New file.
67045
67046 2006-11-20  Jim Meyering  <jim@meyering.net>
67047
67048         The beginnings of syntax-related checks for gnulib.
67049         * lib/Makefile: New file.
67050         * lib/t-idcache: New script.  Ensure that the two halves of
67051         idcache.c stay in sync.
67052
67053         * lib/idcache.c: Adjust comments in user- and group- portions to
67054         be more accurate, and to be consistent with one another.
67055
67056 2006-11-20  Jim Meyering  <jim@meyering.net>
67057
67058         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67059         continue using the flexible array member (thus, this module performs
67060         half as many malloc calls), with the addition that...
67061         (getgroup, getuser): Consistently record a non-match via an empty
67062         "name" string, and map an empty string match to a NULL return value.
67063         * modules/idcache (Depends-on): Re-add flexmember.
67064
67065         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67066         (getuidbyname, getgroup, getgidbyname): Likewise.
67067
67068         Use cleaner syntax: NULL rather than 0.
67069         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67070
67071 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67072
67073         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67074         It mishandled the case where the group was missing.
67075         Problem reported by Greg Schafer.
67076         * modules/idcache: Likewise.
67077
67078 2006-11-18  Jim Meyering  <jim@meyering.net>
67079
67080         * check-module (%exempt_header): Add exception for some
67081         conditionally-included headers.
67082
67083         * modules/i-ring (Depends-on): Add verify.
67084         (License): Change to LGPL.
67085
67086 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67089         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67090         and inttostr.h.  Use snprintf rather than uinttostr, so that
67091         LGPLed code doesn't depend on GPLed.
67092
67093 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67094
67095         * modules/inline (License): Change from GPL to LGPL.
67096
67097 2006-11-17  Jim Meyering  <jim@meyering.net>
67098
67099         * modules/d-type (License): Switch to LGPL.
67100
67101 2006-11-15  Bruno Haible  <bruno@clisp.org>
67102
67103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67104
67105 2006-11-15  Eric Blake  <ebb9@byu.net>
67106
67107         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67108         the module dependency.
67109
67110 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67111             Bruno Haible  <bruno@clisp.org>
67112
67113         * gnulib-tool (func_create_testdir): Add license consistency check.
67114
67115 2006-11-15  Eric Blake  <ebb9@byu.net>
67116
67117         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67118         random "(cached)" in configure output.
67119
67120 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67121
67122         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67123         test for conforming inttypes.h is both announced and cached.
67124
67125         * MODULES.html.sh (seen_modules, seen_files): New variables.
67126         (func_module): Rewrite to use a few less gnulib-tool and sed
67127         invocations.  Avoid a couple of quadratic algorithms for ...
67128         (missed_modules, missed_files): ... these, with ...
67129         (func_append, func_tmpdir): ... these new functions, from
67130         gnulib-tool.  Analogously, install traps for cleanup.
67131
67132         * tests/test-gc.c (main): Remove unused variables.
67133         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67134
67135 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67136
67137         * modules/inttostr (License): Change to LGPL.
67138
67139 2006-11-14  Eric Blake  <ebb9@byu.net>
67140
67141         * modules/tempname (License): Change to LGPL.
67142
67143 2006-11-14  Eric Blake  <ebb9@byu.net>
67144
67145         * doc/functions.texi (Function Portability): *printf functions on
67146         Cygwin now understand all POSIX size specifiers.
67147
67148 2006-11-14  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/c-ctype (License): Change to LGPL.
67151
67152 2006-11-12  Bruno Haible  <bruno@clisp.org>
67153
67154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67155         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67156         for GNOME libraries, for which the include files are installed in
67157         subdirectories of $prefix/include.
67158
67159 2006-11-12  Bruno Haible  <bruno@clisp.org>
67160
67161         * m4/lib-link.m4: Require at least autoconf-2.54.
67162         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67163         name to underscores for the --with option.
67164
67165 2006-11-13  Bruno Haible  <bruno@clisp.org>
67166
67167         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67168         the tests directory.
67169         Reported by Ralf Wildenhues.
67170
67171 2006-11-13  Bruno Haible  <bruno@clisp.org>
67172
67173         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67174         (func_emit_initmacro_end): Undo the override here.
67175         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67176         Works around the famous automake error in coreutils.
67177
67178 2006-11-13  Eric Blake  <ebb9@byu.net>
67179
67180         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67181         element, not its node.
67182
67183 2006-11-12  Bruno Haible  <bruno@clisp.org>
67184
67185         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67186         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67187
67188 2006-11-12  Bruno Haible  <bruno@clisp.org>
67189
67190         * gnulib-tool: New option --local-symlink.
67191         (func_usage): Document it.
67192         (lsymbolic): New variable.
67193         (func_import, func_create_testdir): If --symlink was not specified,
67194         test whether --local-symlink was specified and the file comes from
67195         the local_gnulib_dir.
67196
67197 2006-11-12  Bruno Haible  <bruno@clisp.org>
67198
67199         * gnulib-tool (func_ln): New function.
67200         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67201
67202 2006-11-12  Bruno Haible  <bruno@clisp.org>
67203
67204         Finish support for source files in subdirectories.
67205         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67206         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67207         AUTOMAKE_OPTIONS.
67208         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67209
67210 2006-11-12  Bruno Haible  <bruno@clisp.org>
67211
67212         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67213         EXTRA_lib_SOURCES augmentation.
67214         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67215
67216 2006-11-12  Jim Meyering  <jim@meyering.net>
67217
67218         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67219         file descriptors.  This also averts a failure on systems with
67220         native openat support when a traversed directory lacks "x" access.
67221         * lib/fts_.h: Include "i-ring.h"
67222         (struct FTS) [fts_fd_ring]: New member.
67223         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67224         (FCHDIR): Add parentheses.
67225         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67226         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67227         When descending, rather than simply closing the previous
67228         fts_cwd_fd value, push that file descriptor onto the ring.
67229         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67230         (fts_open): Initialize the new fd_ring member.
67231         (fts_close): Clear the ring.
67232         (fts_safe_changedir): When possible, use our new fd_ring to skip
67233         the diropen and fstat and dev/ino comparison that would normally
67234         accompany a virtual `chdir ("..")'.
67235
67236         * modules/fts (Depends-on): Add i-ring.
67237         * modules/i-ring: New module.
67238         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67239         * m4/i-ring.m4: New file.
67240
67241 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67242
67243         * gnulib-tool (func_create_testdir): Fix replacement of
67244         `build-aux' in configure.ac.  Run autotools in gltests
67245         subdirectory.
67246         (func_create_testdir, func_create_megatestdir, test): There is
67247         no need for '--force' in most autotool invocations in a new
67248         tree.  Actually fail the whole test if any of the tools, or the
67249         configure or make stages fail.
67250
67251         Sync from Automake.
67252         * build-aux/gnupload: Revert last change.  Add pointer to upload
67253         instructions of the GNU Maintenance Instructions.
67254         Suggestion by Karl Berry.
67255
67256 2006-11-10  Jim Meyering  <jim@meyering.net>
67257
67258         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67259
67260 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67261
67262         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67263         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67264         (bind_textdomain_codeset) [! ENABLE_NLS]:
67265         Evaluate all the arguments.  That way, callers get compatible behavior
67266         if the arguments have side effects.  Also, it avoids some GCC
67267         diagnostics in some cases; Joel E. Denny reported problems when Bison
67268         was configured with --enable-gcc-warnigs.
67269
67270 2006-11-10  Jim Meyering  <jim@meyering.net>
67271
67272         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67273         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67274         account.
67275
67276 2006-11-10  Jim Meyering  <jim@meyering.net>
67277
67278         * modules/inline: New file/module.
67279         * modules/xalloc (Files): Remove m4/inline.m4.
67280         (Depends-on): Add inline, instead.
67281         * modules/oset: Likewise.
67282         * modules/list: Likewise.
67283
67284 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67285
67286         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67287         Problem reported by Matthew Woehlke.
67288
67289 2006-11-09  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/tempname.c (gen_tempname): Remove variant that invokes
67292         __gen_tempname.
67293         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67294         __gen_tempname.
67295
67296 2006-11-08  Bruno Haible  <bruno@clisp.org>
67297
67298         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67299         to 'yes' instead of 'cross-compiling'.
67300
67301 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * lib/quotearg.h (quotearg_free): New decl.
67304         * lib/quotearg.c (quotearg_free): New function.
67305         (slot0, nslots, slotvec0, slotvec):
67306         Now file-scope so that quotearg_free can get at them.
67307
67308 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67309
67310         Sync from Automake.
67311         * build-aux/gnupload: Add missing 'gnu' to example URL.
67312         Report by Karl Berry.
67313
67314 2006-11-08  Bruno Haible  <bruno@clisp.org>
67315
67316         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67317         Suggested by Paul Eggert.
67318
67319 2006-11-08  Jim Meyering  <jim@meyering.net>
67320
67321         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67322         It's already included if !_LIBC.
67323         (fts_safe_changedir): Add a comment.
67324
67325 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67328         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67329         Matthew Woehlke.
67330
67331         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67332         definitions up, to avoid colliding with change below.
67333         (static_inline) [HAVE_INLINE]: New macro.
67334         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67335         Provide extern decls when !HAVE_INLINE.  Do not define unless
67336         static_inline is defined, either by us or by xmalloc.c.  Use
67337         static_inline rather than static inline.
67338         (XCALLOC): Optimize sizeof(T) = 1 case.
67339         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67340
67341 2006-11-07  Bruno Haible  <bruno@clisp.org>
67342
67343         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67344         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67345         AC_C_INLINE.
67346         * modules/xalloc (Files): Add m4/inline.m4.
67347
67348 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67349
67350         * README: Fix typo.
67351         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67352         (Miscellanous Notes): ...from this.
67353
67354 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67355
67356         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67357         Mention that offsetof should be used instead of sizeof.
67358         From Bruno Haible.
67359
67360 2006-11-07  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67363
67364 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67367         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67368         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67369         (gl_tree_add_before, gl_tree_add_after):
67370         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67371         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67372         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67373         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67374         (gl_linked_add_after, gl_linked_add_at): Likewise.
67375         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67376         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67377         (gl_tree_add_before, gl_tree_add_after): Likewise.
67378         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67379         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67380         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67381
67382 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67383
67384         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67385
67386 2006-11-06  Bruno Haible  <bruno@clisp.org>
67387
67388         * m4/inline.m4: New file.
67389         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67390         * modules/list (Files): Add m4/inline.m4.
67391         * modules/oset (Files): Likewise.
67392
67393 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * lib/idcache.c: Include <stddef.h>, for offsetof.
67396         (struct userid.name): Change from char * to a flexible array member.
67397         All uses changed.
67398         * modules/idcache (Depends-on): Add flexmember.
67399
67400         * MODULES.html.sh (Core language properties): New module flexmember.
67401         * modules/flexmember, m4/flexmember.m4: New files.
67402
67403         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67404         inline functions that are identical with the old xnmalloc_inline,
67405         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67406         that we can avoid some unnecessary integer multiplications and
67407         divisions in the common case where the element size is known at
67408         compile time.
67409         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67410         needed.
67411         (xnboundedmalloc): Remove.
67412         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67413         arguments, for consistency with rest of this header.
67414         (xcharalloc): Rewrite using XNMALLOC.
67415         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67416         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67417         versions have been moved to lib/xalloc.h and renamed to be the
67418         non-*_inline versions.
67419         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67420         and xnrealloc functions, since those functions are now inline and
67421         now call us.
67422         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67423         renaming described above.
67424         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67425         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67426         captures the dependency in AC_C_INLINE.
67427
67428         New module canonicalize-lgpl, proposed by Charles Wilson in
67429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67430         with a few small changes afterwards.
67431         * MODULES.html.sh (File system functions): New module
67432         canonicalize-lgpl.
67433         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67434         and canonicalize_file_name.
67435         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67436         * modules/canonicalize-lgpl: New files.
67437
67438 2006-11-05  Bruno Haible  <bruno@clisp.org>
67439
67440         * gnulib-tool (func_import, func_create_testdir): Create directories
67441         also for files in subdirectories of lib/.
67442
67443 2006-11-05  Bruno Haible  <bruno@clisp.org>
67444
67445         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67446         ANSI C compliant.
67447
67448 2006-11-03  Bruno Haible  <bruno@clisp.org>
67449
67450         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67451         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67452         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67453         (xnboundedmalloc): New inline function.
67454         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67455         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67456         xmalloc.
67457         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67458         xmalloc.
67459         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67460         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67461         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67462         xmalloc.
67463         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67464         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67465         xmalloc.
67466         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67467         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67468         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67469         xmalloc.
67470         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67471         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67472         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67473         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67474         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67475         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67476         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67477
67478 2006-11-03  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/c-ctype.h [C++]: Define functions without name mangling.
67481         * lib/fwriteerror.h [C++]: Likewise.
67482         * lib/gcd.h [C++]: Likewise.
67483         * lib/linebreak.h [C++]: Likewise.
67484
67485 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67488         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67489         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67490         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67491         Check for functions and headers just once.
67492         Check for declaration of canonicalize_file_name.
67493         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67494
67495 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67496
67497         * gnulib-tool (func_import): Fix typo in actioncmd.
67498
67499 2006-11-02  Bruno Haible  <bruno@clisp.org>
67500
67501         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67502         newline sequence in the Makefile.am snippet as a space, like "make"
67503         does.
67504         Reported by Roger Persson <perrog@gmail.com>.
67505
67506 2006-11-01  Bruno Haible  <bruno@clisp.org>
67507
67508         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67509         already declared in <string.h>.
67510         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67511
67512 2006-11-01  Bruno Haible  <bruno@clisp.org>
67513
67514         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67515         * lib/strcase.h: Include <string.h>.
67516         (strcasecmp): Define to rpl_strcasecmp here.
67517
67518 2006-11-01  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67521
67522 2006-11-01  Eric Blake  <ebb9@byu.net>
67523
67524         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67525
67526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67527
67528 2006-10-29  Bruno Haible  <bruno@clisp.org>
67529
67530         Make it compile in C++ mode.
67531         * lib/full-write.c (full_rw): Add a cast.
67532
67533 2006-11-01  Bruno Haible  <bruno@clisp.org>
67534
67535         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67536         be POSIX compliant.
67537         Reported by Roger Persson <perrog@gmail.com>.
67538
67539 2006-11-01  Eric Blake  <ebb9@byu.net>
67540
67541         * lib/getopt_.h: Fix comments.
67542
67543 2006-10-31  Eric Blake  <ebb9@byu.net>
67544
67545         * modules/tmpdir (Depends-on): Add sys_stat.
67546         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67547         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67548         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67549         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67550         tempname.
67551
67552 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67553
67554         Avoid some C++ diagnostics reported by Bruno Haible.
67555         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67556         xmalloc.
67557         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67558         (struct slotvec): Move to top level.
67559         (quotearg_n_options): Rewrite to avoid xmalloc.
67560         * lib/xalloc.h (xcharalloc): New function.
67561         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67562         [defined __cplusplus]: Add function template that provides result
67563         type propagation.  This part of the change is from Bruno Haible.
67564
67565 2006-10-29  Bruno Haible  <bruno@clisp.org>
67566
67567         Make it compile in C++ mode.
67568         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67569         * lib/strnlen1.c (strnlen1): Cast memchr result.
67570         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67571         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67572         (create_temp_dir): Rename local variable 'template'.
67573         (compile_csharp_using_sscli): Add cast.
67574         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67575         * lib/findprog.c (find_in_path): Likewise.
67576         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67577         * lib/wait-process.c (register_slave_subprocess): Likewise.
67578
67579 2006-10-22  Bruno Haible  <bruno@clisp.org>
67580
67581         * modules/tsearch: New file.
67582         * lib/tsearch.h: New file.
67583         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67584         * m4/tsearch.m4: New file.
67585         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67586
67587 2006-10-29  Eric Blake  <ebb9@byu.net>
67588
67589         * lib/arcfour.c: Assume config.h.
67590         * lib/arctwo.c: Likewise.
67591         * lib/base64.c: Likewise.
67592         * lib/check-version.c: Likewise.
67593         * lib/crc.c: Likewise.
67594         * lib/des.c: Likewise.
67595         * lib/gc-gnulib.c: Likewise.
67596         * lib/gc-libgcrypt.c: Likewise.
67597         * lib/gc-pbkdf2-sha1.c: Likewise.
67598         * lib/getaddrinfo.c: Likewise.
67599         * lib/getdelim.c: Likewise.
67600         * lib/getline.c: Likewise.
67601         * lib/hmac-md5.c: Likewise.
67602         * lib/hmac-sha1.c: Likewise.
67603         * lib/iconvme.c: Likewise.
67604         * lib/md2.c: Likewise.
67605         * lib/md4.c: Likewise.
67606         * lib/memxor.c: Likewise.
67607         * lib/read-file.c: Likewise.
67608         * lib/readline.c: Likewise.
67609         * lib/rijndael-alg-fst.c: Likewise.
67610         * lib/rijndael-api-fst.c: Likewise.
67611         * lib/xgetdomainname.c: Likewise.
67612
67613 2006-10-28  Eric Blake  <ebb9@byu.net>
67614
67615         * lib/xstrndup.c: Assume config.h.
67616
67617 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67620         stat-macros.h is now for our own macros, whereas stat_h is for
67621         macros in the <sys/stat.h> name space.
67622         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67623         (STAT_MACROS_H): Remove.
67624         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67625         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67626         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67627         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67628         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67629         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67630         Move these macros to ...
67631         * lib/stat_.h: here.  Don't include stat-macros.h.
67632         * lib/canonicalize.c: Don't include stat-macros.h.
67633         * lib/chown.c: Likewise.
67634         * lib/euidaccess.c: Likewise.
67635         * lib/file-type.c: Likewise.
67636         * lib/filemode.c: Likewise.
67637         * lib/glob.c: Likewise.
67638         * lib/isapipe.c: Likewise.
67639         * lib/lchown.c: Likewise.
67640         * lib/lstat.c: Likewise.
67641         * lib/mkdir-p.c: Likewise.
67642         * lib/rmdir.c: Likewise.
67643         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67645         unless mkdir isn't declared, to speed up 'configure'.
67646         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67647         would define all the S_* symbols.
67648         * modules/canonicalize (Depends-on):
67649         Depend on sys_stat, not stat-macros.
67650         * modules/chown: Likewise.
67651         * modules/euidaccess: Likewise.
67652         * modules/filemode: Likewise.
67653         * modules/file-type: Likewise.
67654         * modules/glob: Likewise.
67655         * modules/isapipe: Likewise.
67656         * modules/lchown: Likewise.
67657         * modules/lstat: Likewise.
67658         * modules/mkancesdirs: Likewise.
67659         * modules/rmdir: Likewise.
67660         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67661         * modules/modechange: Likewise.
67662         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67663         (configure.ac): Remove gl_STAT_MACROS.
67664         * modules/sys_stat (Depends-on): Remove stat-macros.
67665
67666 2006-10-27  Bruno Haible  <bruno@clisp.org>
67667
67668         * m4/signed.m4: Remove file.
67669         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67670         invocation.
67671         * modules/vasnprintf (Files): Remove m4/signed.m4.
67672
67673 2006-10-27  Bruno Haible  <bruno@clisp.org>
67674
67675         Update to GNU gettext 0.16.
67676         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67677         m4/inttypes-h.m4, m4/signed.m4.
67678         * m4/gettext.m4: Update to GNU gettext 0.16.
67679         * m4/intl.m4: New file, from GNU gettext.
67680         * m4/intldir.m4: New file, from GNU gettext.
67681         * config/srclist.txt: Update
67682
67683 2006-10-27  Eric Blake  <ebb9@byu.net>
67684
67685         * MODULES.html.sh: Document tempname.
67686         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67687         dependencies.
67688         (Files): Move lib/tempname.c...
67689         * modules/tempname: ...to this new module.
67690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67691         (gl_PREREQ_TEMPNAME): Move...
67692         * m4/tempname.m4: ...to this new file.
67693         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67694         * modules/sys_stat (Depends-on): Add stat-macros.
67695         * lib/stat_.h (includes): Pick up stat macros.
67696         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67697         if stat macros are broken.
67698         * lib/tempname.c (includes): No need to include "stat-macros.h".
67699         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67700         (direxists, __path_search) [!_LIBC]: Don't compile these in
67701         gnulib; the tmpdir module covers that.
67702         * lib/tempname.h: New file.
67703
67704 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * COPYING: Explain how gnulib-tool converts licence headers.
67707         Almost all wording by Eric Blake.
67708
67709 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * lib/mbchar.h (is_basic_table): Make read-only.
67712         * lib/mbchar.c (is_basic_table): Likewise.
67713         Reported by John Darrington.
67714
67715 2006-10-25  Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/progname.h (set_program_name): Undefine before defining.
67718
67719 2006-10-25  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67722         false for non-gcc C++ compilers.
67723         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67724
67725 2006-10-24  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67728         iconv implementations like Irix iconv.
67729
67730 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * modules/vararrays: New file.
67733         * m4/vararrays.m4: New file, taken from diffutils.
67734         * MODULES.html.sh: New module vararrays.
67735
67736 2006-10-24  Karl Berry  <karl@gnu.org>
67737
67738         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67739         Don't call GNU Unix.
67740
67741 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67742
67743         * users.txt: Add Libtool.
67744
67745         Sync from Libtool:
67746
67747         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67750         to gnulib's policy of including config.h unconditionally.
67751
67752 2006-10-24  Bruno Haible  <bruno@clisp.org>
67753
67754         * modules/wcwidth (Files): Add m4/wint_t.m4.
67755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67756         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67757
67758 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67759
67760         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67761         to pacify GCC with some -W flags enabled.  Problem reported by
67762         Bruno Haible.
67763
67764 2006-10-24  Jim Meyering  <jim@meyering.net>
67765
67766         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67767         Reported by Karl Berry.
67768
67769 2006-10-23  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67772
67773 2006-10-24  Bruno Haible  <bruno@clisp.org>
67774
67775         * lib/gl_list.h: Use C comment style, not C++ comment style.
67776
67777 2006-10-23  Eric Blake  <ebb9@byu.net>
67778
67779         * lib/getaddrinfo.c (includes): Add missing include.
67780
67781 2006-10-23  Bruno Haible  <bruno@clisp.org>
67782             Paul Eggert  <eggert@cs.ucla.edu>
67783
67784         Ability to rename obstack_free.
67785         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67786         obstack_free.
67787         (obstack_free): Invoke the __obstack_free macro.
67788         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67789
67790 2006-10-23  Bruno Haible  <bruno@clisp.org>
67791             Paul Eggert  <eggert@cs.ucla.edu>
67792
67793         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67794         __argc, __argv from the declaration. (They are defined as macros on
67795         mingw.)
67796
67797 2006-10-22  Bruno Haible  <bruno@clisp.org>
67798
67799         * doc/gnulib-intro.texi: New file.
67800         * doc/gnulib.texi: Include it.
67801
67802 2006-10-21  Bruno Haible  <bruno@clisp.org>
67803
67804         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67805         "Introduction", "Miscellanous Notes", "Particular Modules".
67806
67807 2006-10-21  Bruno Haible  <bruno@clisp.org>
67808
67809         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67810         Change mostlyclean-local rule to avoid sh syntax error from bash
67811         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67812
67813 2006-10-23  Jim Meyering  <jim@meyering.net>
67814
67815         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67816         in place of snprintf.
67817
67818         * modules/inttostr (Files): Add lib/uinttostr.c.
67819         * lib/uinttostr.c (inttostr): New file/function.
67820         * lib/inttostr.h (uinttostr): Declare.
67821         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67822         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67823         Add uinttostr.
67824         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67825
67826 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * lib/canonicalize.c (ELOOP): Define if not already defined.
67829         Problem reported by Bruno Haible in
67830         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67831
67832 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67833
67834         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67835         Problem reported by Perry Smith and Ville Laurikari.
67836
67837         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67838         uses.
67839
67840 2006-10-19  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67843         for mingw.
67844
67845 2006-10-19  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67848         Needed for mingw.
67849
67850 2006-10-19  Bruno Haible  <bruno@clisp.org>
67851
67852         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67853
67854 2006-10-19  Bruno Haible  <bruno@clisp.org>
67855
67856         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67857         it.
67858
67859 2006-10-19  Bruno Haible  <bruno@clisp.org>
67860
67861         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67862         invocation.
67863
67864 2006-10-19  Bruno Haible  <bruno@clisp.org>
67865
67866         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67867         mountlist by default.
67868
67869 2006-10-16  Bruno Haible  <bruno@clisp.org>
67870
67871         * lib/c-strstr.c: Include c-strstr.h.
67872
67873 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67874
67875         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67876         in a slash.
67877
67878 2006-10-18  Bruno Haible  <bruno@clisp.org>
67879
67880         * lib/lock.h [C++]: Wrap definitions in extern "C".
67881
67882 2006-10-18  Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67885         gl_LIBOBJS list.
67886
67887 2006-10-18  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67890
67891 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * lib/xstrtol.h: Include gettext.h.
67894         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67895         Problem reported by Eric Blake.
67896         * modules/xstrtol (Depends-on): Add gettext-h.
67897
67898 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67899
67900         * lib/strftime.c (advance): New macro.
67901         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67902         incomplete type, so you can't add 0 to it.  Problem and patch
67903         reported by Eelco Dolstra for dietlibc.
67904
67905 2006-10-18  Jim Meyering  <jim@meyering.net>
67906
67907         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67908         type for a local, and rename it: s/up/user_proc/.
67909
67910 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67911
67912         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67913         READ_UTMP_USER_PROCESS.
67914         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67915
67916 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67919         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67920
67921 2006-10-17  Eric Blake  <ebb9@byu.net>
67922
67923         * lib/sigprocmask.c (sigprocmask): Fix typo.
67924
67925         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67926
67927         * modules/clean-temp (Makefile.am): Don't add to make output...
67928         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67929         config.h.
67930
67931 2006-10-17  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67934         differently if DEFAULT_TEXT_DOMAIN is set.
67935
67936 2006-10-16  Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/clean-temp.c: Include fwriteerror.h.
67939
67940 2006-10-16  Bruno Haible  <bruno@clisp.org>
67941
67942         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67943
67944 2006-10-16  Bruno Haible  <bruno@clisp.org>
67945
67946         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67947         * lib/sigprocmask.h: Include <sys/types.h>.
67948         (sigset_t): Use the system's definition if present.
67949
67950 2006-10-17  Eric Blake  <ebb9@byu.net>
67951
67952         * lib/xvasprintf.c (includes): Assume config.h.
67953         * lib/xasprintf.c (includes): Likewise.
67954
67955 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67958         at least as wide as intmax_t.
67959
67960 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67961
67962         (Imported from Automake.)
67963         * build-aux/gnupload: Update to version 1.1 of directive file.
67964
67965 2006-10-16  Eric Blake  <ebb9@byu.net>
67966
67967         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67968         match Automake 1.10a.
67969
67970 2006-10-14  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/sigprocmask: New file.
67973         * lib/sigprocmask.h: New file.
67974         * lib/sigprocmask.c: New file.
67975         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67976         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67977         request sigprocmask.o.
67978         (gl_PREREQ_SIGPROCMASK): New macro.
67979         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67980         (Depends-on): Add sigprocmask.
67981         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67982         gt_SIGNALBLOCKING. Test for 'raise' only once.
67983         * lib/fatal-signal.c: Include sigprocmask.h.
67984         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67985         unblock_fatal_signals): Define always.
67986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67987         sigprocmask.
67988
67989 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         Sync from Automake.
67992         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67993         which incorrectly sets the mode of an existing destination
67994         directory.  In some cases the unpatched install-sh could do the
67995         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67996         system.  We hope this is rare in practice, but it's clearly worth
67997         fixing.  Problem reported by Alex Unleashed in
67998         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67999         Also, don't bother to check for -m bugs unless we're using -m;
68000         suggested by Stepan Kasal.
68001
68002 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68003
68004         Sync from Automake.
68005         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68006         `-c' flag, so they appear at the same position as in %FASTDEP%
68007         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68008         which ignores unknown options only after the first non-option.
68009         Bug report against M4 by Nelson H. F. Beebe.
68010
68011 2006-10-13  Jim Meyering  <jim@meyering.net>
68012
68013         Fix a bug in yesterday's change.
68014         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68015         p->fts_statp->st_dev would be used uninitialized.
68016         Ensures that we always call fts_stat on the very first entry.
68017         Miklos Szeredi reported that find -xdev stopped working.
68018
68019 2006-10-12  Bruno Haible  <bruno@clisp.org>
68020
68021         * gnulib-tool (func_get_automake_snippet): Append an automatically
68022         computed EXTRA_DIST augmentation.
68023         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68024         * modules/alloca-opt (Makefile.am): Likewise.
68025         * modules/allocsa (Makefile.am): Likewise.
68026         * modules/arcfour (Makefile.am): Likewise.
68027         * modules/arctwo (Makefile.am): Likewise.
68028         * modules/argmatch (Makefile.am): Likewise.
68029         * modules/argz (Makefile.am): Likewise.
68030         * modules/atexit (Makefile.am): Likewise.
68031         * modules/backupfile (Makefile.am): Likewise.
68032         * modules/byteswap (Makefile.am): Likewise.
68033         * modules/c-strtod (Makefile.am): Likewise.
68034         * modules/c-strtold (Makefile.am): Likewise.
68035         * modules/calloc (Makefile.am): Likewise.
68036         * modules/canon-host (Makefile.am): Likewise.
68037         * modules/canonicalize (Makefile.am): Likewise.
68038         * modules/chdir-long (Makefile.am): Likewise.
68039         * modules/chdir-safer (Makefile.am): Likewise.
68040         * modules/check-version (Makefile.am): Likewise.
68041         * modules/chown (Makefile.am): Likewise.
68042         * modules/cloexec (Makefile.am): Likewise.
68043         * modules/close-stream (Makefile.am): Likewise.
68044         * modules/closeout (Makefile.am): Likewise.
68045         * modules/crc (Makefile.am): Likewise.
68046         * modules/csharpexec (Makefile.am): Likewise.
68047         * modules/cycle-check (Makefile.am): Likewise.
68048         * modules/des (Makefile.am): Likewise.
68049         * modules/dev-ino (Makefile.am): Likewise.
68050         * modules/dirfd (Makefile.am): Likewise.
68051         * modules/dirname (Makefile.am): Likewise.
68052         * modules/dup2 (Makefile.am): Likewise.
68053         * modules/eealloc (Makefile.am): Likewise.
68054         * modules/error (Makefile.am): Likewise.
68055         * modules/euidaccess (Makefile.am): Likewise.
68056         * modules/exclude (Makefile.am): Likewise.
68057         * modules/exitfail (Makefile.am): Likewise.
68058         * modules/fcntl-safer (Makefile.am): Likewise.
68059         * modules/fcntl (Makefile.am): Likewise.
68060         * modules/file-type (Makefile.am): Likewise.
68061         * modules/fileblocks (Makefile.am): Likewise.
68062         * modules/filemode (Makefile.am): Likewise.
68063         * modules/filenamecat (Makefile.am): Likewise.
68064         * modules/fnmatch (Makefile.am): Likewise.
68065         * modules/fopen-safer (Makefile.am): Likewise.
68066         * modules/fpending (Makefile.am): Likewise.
68067         * modules/fprintftime (Makefile.am): Likewise.
68068         * modules/free (Makefile.am): Likewise.
68069         * modules/fsusage (Makefile.am): Likewise.
68070         * modules/ftruncate (Makefile.am): Likewise.
68071         * modules/fts (Makefile.am): Likewise.
68072         * modules/gc-arcfour (Makefile.am): Likewise.
68073         * modules/gc-des (Makefile.am): Likewise.
68074         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68075         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68076         * modules/gc-md4 (Makefile.am): Likewise.
68077         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68078         * modules/gc-sha1 (Makefile.am): Likewise.
68079         * modules/gc (Makefile.am): Likewise.
68080         * modules/getaddrinfo (Makefile.am): Likewise.
68081         * modules/getcwd (Makefile.am): Likewise.
68082         * modules/getdelim (Makefile.am): Likewise.
68083         * modules/getdomainname (Makefile.am): Likewise.
68084         * modules/getgroups (Makefile.am): Likewise.
68085         * modules/gethostname (Makefile.am): Likewise.
68086         * modules/gethrxtime (Makefile.am): Likewise.
68087         * modules/getline (Makefile.am): Likewise.
68088         * modules/getloadavg (Makefile.am): Likewise.
68089         * modules/getlogin_r (Makefile.am): Likewise.
68090         * modules/getndelim2 (Makefile.am): Likewise.
68091         * modules/getopt (Makefile.am): Likewise.
68092         * modules/getpagesize (Makefile.am): Likewise.
68093         * modules/getpass-gnu (Makefile.am): Likewise.
68094         * modules/getpass (Makefile.am): Likewise.
68095         * modules/getsubopt (Makefile.am): Likewise.
68096         * modules/gettime (Makefile.am): Likewise.
68097         * modules/gettimeofday (Makefile.am): Likewise.
68098         * modules/getugroups (Makefile.am): Likewise.
68099         * modules/getusershell (Makefile.am): Likewise.
68100         * modules/glob (Makefile.am): Likewise.
68101         * modules/group-member (Makefile.am): Likewise.
68102         * modules/hard-locale (Makefile.am): Likewise.
68103         * modules/hash (Makefile.am): Likewise.
68104         * modules/hmac-md5 (Makefile.am): Likewise.
68105         * modules/hmac-sha1 (Makefile.am): Likewise.
68106         * modules/human (Makefile.am): Likewise.
68107         * modules/idcache (Makefile.am): Likewise.
68108         * modules/imaxabs (Makefile.am): Likewise.
68109         * modules/imaxdiv (Makefile.am): Likewise.
68110         * modules/inet_ntop (Makefile.am): Likewise.
68111         * modules/inet_pton (Makefile.am): Likewise.
68112         * modules/intprops (Makefile.am): Likewise.
68113         * modules/inttostr (Makefile.am): Likewise.
68114         * modules/inttypes (Makefile.am): Likewise.
68115         * modules/isapipe (Makefile.am): Likewise.
68116         * modules/javaversion (Makefile.am): Likewise.
68117         * modules/lchmod (Makefile.am): Likewise.
68118         * modules/lchown (Makefile.am): Likewise.
68119         * modules/localcharset (Makefile.am): Likewise.
68120         * modules/long-options (Makefile.am): Likewise.
68121         * modules/lstat (Makefile.am): Likewise.
68122         * modules/malloc (Makefile.am): Likewise.
68123         * modules/mathl (Makefile.am): Likewise.
68124         * modules/mbchar (Makefile.am): Likewise.
68125         * modules/md2 (Makefile.am): Likewise.
68126         * modules/md4 (Makefile.am): Likewise.
68127         * modules/md5 (Makefile.am): Likewise.
68128         * modules/memcasecmp (Makefile.am): Likewise.
68129         * modules/memchr (Makefile.am): Likewise.
68130         * modules/memcmp (Makefile.am): Likewise.
68131         * modules/memcoll (Makefile.am): Likewise.
68132         * modules/memcpy (Makefile.am): Likewise.
68133         * modules/memmem (Makefile.am): Likewise.
68134         * modules/memmove (Makefile.am): Likewise.
68135         * modules/mempcpy (Makefile.am): Likewise.
68136         * modules/memrchr (Makefile.am): Likewise.
68137         * modules/memset (Makefile.am): Likewise.
68138         * modules/memxor (Makefile.am): Likewise.
68139         * modules/mkancesdirs (Makefile.am): Likewise.
68140         * modules/mkdir-p (Makefile.am): Likewise.
68141         * modules/mkdir (Makefile.am): Likewise.
68142         * modules/mkdtemp (Makefile.am): Likewise.
68143         * modules/mkstemp (Makefile.am): Likewise.
68144         * modules/mktime (Makefile.am): Likewise.
68145         * modules/modechange (Makefile.am): Likewise.
68146         * modules/mountlist (Makefile.am): Likewise.
68147         * modules/nanosleep (Makefile.am): Likewise.
68148         * modules/obstack (Makefile.am): Likewise.
68149         * modules/openat (Makefile.am): Likewise.
68150         * modules/pagealign_alloc (Makefile.am): Likewise.
68151         * modules/pathmax (Makefile.am): Likewise.
68152         * modules/physmem (Makefile.am): Likewise.
68153         * modules/poll (Makefile.am): Likewise.
68154         * modules/posixtm (Makefile.am): Likewise.
68155         * modules/posixver (Makefile.am): Likewise.
68156         * modules/putenv (Makefile.am): Likewise.
68157         * modules/quote (Makefile.am): Likewise.
68158         * modules/quotearg (Makefile.am): Likewise.
68159         * modules/raise (Makefile.am): Likewise.
68160         * modules/read-file (Makefile.am): Likewise.
68161         * modules/readline (Makefile.am): Likewise.
68162         * modules/readlink (Makefile.am): Likewise.
68163         * modules/readtokens (Makefile.am): Likewise.
68164         * modules/readutmp (Makefile.am): Likewise.
68165         * modules/realloc (Makefile.am): Likewise.
68166         * modules/regex (Makefile.am): Likewise.
68167         * modules/rename-dest-slash (Makefile.am): Likewise.
68168         * modules/rename (Makefile.am): Likewise.
68169         * modules/rijndael (Makefile.am): Likewise.
68170         * modules/rmdir (Makefile.am): Likewise.
68171         * modules/rpmatch (Makefile.am): Likewise.
68172         * modules/safe-read (Makefile.am): Likewise.
68173         * modules/safe-write (Makefile.am): Likewise.
68174         * modules/same-inode (Makefile.am): Likewise.
68175         * modules/same (Makefile.am): Likewise.
68176         * modules/save-cwd (Makefile.am): Likewise.
68177         * modules/savedir (Makefile.am): Likewise.
68178         * modules/setenv (Makefile.am): Likewise.
68179         * modules/settime (Makefile.am): Likewise.
68180         * modules/sha1 (Makefile.am): Likewise.
68181         * modules/sig2str (Makefile.am): Likewise.
68182         * modules/snprintf (Makefile.am): Likewise.
68183         * modules/stat-macros (Makefile.am): Likewise.
68184         * modules/stat-time (Makefile.am): Likewise.
68185         * modules/stdbool (Makefile.am): Likewise.
68186         * modules/stdint (Makefile.am): Likewise.
68187         * modules/stdlib-safer (Makefile.am): Likewise.
68188         * modules/stpcpy (Makefile.am): Likewise.
68189         * modules/stpncpy (Makefile.am): Likewise.
68190         * modules/strcase (Makefile.am): Likewise.
68191         * modules/strcasestr (Makefile.am): Likewise.
68192         * modules/strchrnul (Makefile.am): Likewise.
68193         * modules/strcspn (Makefile.am): Likewise.
68194         * modules/strdup (Makefile.am): Likewise.
68195         * modules/strerror (Makefile.am): Likewise.
68196         * modules/strftime (Makefile.am): Likewise.
68197         * modules/strndup (Makefile.am): Likewise.
68198         * modules/strnlen (Makefile.am): Likewise.
68199         * modules/strpbrk (Makefile.am): Likewise.
68200         * modules/strsep (Makefile.am): Likewise.
68201         * modules/strstr (Makefile.am): Likewise.
68202         * modules/strtod (Makefile.am): Likewise.
68203         * modules/strtoimax (Makefile.am): Likewise.
68204         * modules/strtok_r (Makefile.am): Likewise.
68205         * modules/strtol (Makefile.am): Likewise.
68206         * modules/strtoll (Makefile.am): Likewise.
68207         * modules/strtoul (Makefile.am): Likewise.
68208         * modules/strtoull (Makefile.am): Likewise.
68209         * modules/strtoumax (Makefile.am): Likewise.
68210         * modules/strverscmp (Makefile.am): Likewise.
68211         * modules/sys_socket (Makefile.am): Likewise.
68212         * modules/sys_stat (Makefile.am): Likewise.
68213         * modules/sysexits (Makefile.am): Likewise.
68214         * modules/time_r (Makefile.am): Likewise.
68215         * modules/timegm (Makefile.am): Likewise.
68216         * modules/timespec (Makefile.am): Likewise.
68217         * modules/tmpfile-safer (Makefile.am): Likewise.
68218         * modules/trim (Makefile.am): Likewise.
68219         * modules/unistd-safer (Makefile.am): Likewise.
68220         * modules/unlinkdir (Makefile.am): Likewise.
68221         * modules/unlocked-io (Makefile.am): Likewise.
68222         * modules/userspec (Makefile.am): Likewise.
68223         * modules/utime (Makefile.am): Likewise.
68224         * modules/utimecmp (Makefile.am): Likewise.
68225         * modules/utimens (Makefile.am): Likewise.
68226         * modules/vasnprintf (Makefile.am): Likewise.
68227         * modules/vasprintf (Makefile.am): Likewise.
68228         * modules/vsnprintf (Makefile.am): Likewise.
68229         * modules/xalloc (Makefile.am): Likewise.
68230         * modules/xgetcwd (Makefile.am): Likewise.
68231         * modules/xnanosleep (Makefile.am): Likewise.
68232         * modules/xreadlink (Makefile.am): Likewise.
68233         * modules/xstrtod (Makefile.am): Likewise.
68234         * modules/xstrtol (Makefile.am): Likewise.
68235         * modules/xstrtold (Makefile.am): Likewise.
68236         * modules/yesno (Makefile.am): Likewise.
68237         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68238
68239 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68240
68241         * modules/error (Makefile.am): Distribute files through
68242         EXTRA_DIST, not lib_SOURCES.
68243
68244 2006-10-12  Eric Blake  <ebb9@byu.net>
68245
68246         * modules/error (Makefile.am): Distribute files in /lib.
68247         * modules/obstack (Makefile.am): Likewise.
68248
68249 2006-10-12  Bruno Haible  <bruno@clisp.org>
68250
68251         * modules/acl (Makefile.am): Distribute all files in lib/ through
68252         EXTRA_DIST.
68253         * modules/arcfour (Makefile.am): Likewise.
68254         * modules/arctwo (Makefile.am): Likewise.
68255         * modules/argmatch (Makefile.am): Likewise.
68256         * modules/argz (Makefile.am): Likewise.
68257         * modules/atexit (Makefile.am): Likewise.
68258         * modules/backupfile (Makefile.am): Likewise.
68259         * modules/c-strtod (Makefile.am): Likewise.
68260         * modules/c-strtold (Makefile.am): Likewise.
68261         * modules/calloc (Makefile.am): Likewise.
68262         * modules/canon-host (Makefile.am): Likewise.
68263         * modules/canonicalize (Makefile.am): Likewise.
68264         * modules/chdir-long (Makefile.am): Likewise.
68265         * modules/chdir-safer (Makefile.am): Likewise.
68266         * modules/check-version (Makefile.am): Likewise.
68267         * modules/chown (Makefile.am): Likewise.
68268         * modules/cloexec (Makefile.am): Likewise.
68269         * modules/close-stream (Makefile.am): Likewise.
68270         * modules/closeout (Makefile.am): Likewise.
68271         * modules/crc (Makefile.am): Likewise.
68272         * modules/cycle-check (Makefile.am): Likewise.
68273         * modules/des (Makefile.am): Likewise.
68274         * modules/dirfd (Makefile.am): Likewise.
68275         * modules/dirname (Makefile.am): Likewise.
68276         * modules/dup2 (Makefile.am): Likewise.
68277         * modules/euidaccess (Makefile.am): Likewise.
68278         * modules/exclude (Makefile.am): Likewise.
68279         * modules/exitfail (Makefile.am): Likewise.
68280         * modules/fcntl-safer (Makefile.am): Likewise.
68281         * modules/file-type (Makefile.am): Likewise.
68282         * modules/fileblocks (Makefile.am): Likewise.
68283         * modules/filemode (Makefile.am): Likewise.
68284         * modules/filenamecat (Makefile.am): Likewise.
68285         * modules/fnmatch (Makefile.am): Likewise.
68286         * modules/fopen-safer (Makefile.am): Likewise.
68287         * modules/fpending (Makefile.am): Likewise.
68288         * modules/fprintftime (Makefile.am): Likewise.
68289         * modules/free (Makefile.am): Likewise.
68290         * modules/fsusage (Makefile.am): Likewise.
68291         * modules/ftruncate (Makefile.am): Likewise.
68292         * modules/fts (Makefile.am): Likewise.
68293         * modules/gc (Makefile.am): Likewise.
68294         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68295         * modules/getaddrinfo (Makefile.am): Likewise.
68296         * modules/getcwd (Makefile.am): Likewise.
68297         * modules/getdelim (Makefile.am): Likewise.
68298         * modules/getdomainname (Makefile.am): Likewise.
68299         * modules/getgroups (Makefile.am): Likewise.
68300         * modules/gethostname (Makefile.am): Likewise.
68301         * modules/gethrxtime (Makefile.am): Likewise.
68302         * modules/getline (Makefile.am): Likewise.
68303         * modules/getloadavg (Makefile.am): Likewise.
68304         * modules/getlogin_r (Makefile.am): Likewise.
68305         * modules/getopt (Makefile.am): Likewise.
68306         * modules/getpass (Makefile.am): Likewise.
68307         * modules/getpass-gnu (Makefile.am): Likewise.
68308         * modules/getsubopt (Makefile.am): Likewise.
68309         * modules/gettime (Makefile.am): Likewise.
68310         * modules/gettimeofday (Makefile.am): Likewise.
68311         * modules/getugroups (Makefile.am): Likewise.
68312         * modules/getusershell (Makefile.am): Likewise.
68313         * modules/glob (Makefile.am): Likewise.
68314         * modules/group-member (Makefile.am): Likewise.
68315         * modules/hard-locale (Makefile.am): Likewise.
68316         * modules/hash (Makefile.am): Likewise.
68317         * modules/hmac-md5 (Makefile.am): Likewise.
68318         * modules/hmac-sha1 (Makefile.am): Likewise.
68319         * modules/human (Makefile.am): Likewise.
68320         * modules/idcache (Makefile.am): Likewise.
68321         * modules/imaxabs (Makefile.am): Likewise.
68322         * modules/imaxdiv (Makefile.am): Likewise.
68323         * modules/inet_ntop (Makefile.am): Likewise.
68324         * modules/inet_pton (Makefile.am): Likewise.
68325         * modules/inttostr (Makefile.am): Likewise.
68326         * modules/isapipe (Makefile.am): Likewise.
68327         * modules/lchown (Makefile.am): Likewise.
68328         * modules/long-options (Makefile.am): Likewise.
68329         * modules/lstat (Makefile.am): Likewise.
68330         * modules/malloc (Makefile.am): Likewise.
68331         * modules/mathl (Makefile.am): Likewise.
68332         * modules/mbchar (Makefile.am): Likewise.
68333         * modules/md2 (Makefile.am): Likewise.
68334         * modules/md4 (Makefile.am): Likewise.
68335         * modules/md5 (Makefile.am): Likewise.
68336         * modules/memcasecmp (Makefile.am): Likewise.
68337         * modules/memchr (Makefile.am): Likewise.
68338         * modules/memcmp (Makefile.am): Likewise.
68339         * modules/memcoll (Makefile.am): Likewise.
68340         * modules/memcpy (Makefile.am): Likewise.
68341         * modules/memmem (Makefile.am): Likewise.
68342         * modules/memmove (Makefile.am): Likewise.
68343         * modules/mempcpy (Makefile.am): Likewise.
68344         * modules/memrchr (Makefile.am): Likewise.
68345         * modules/memset (Makefile.am): Likewise.
68346         * modules/memxor (Makefile.am): Likewise.
68347         * modules/mkancesdirs (Makefile.am): Likewise.
68348         * modules/mkdir (Makefile.am): Likewise.
68349         * modules/mkdir-p (Makefile.am): Likewise.
68350         * modules/mkdtemp (Makefile.am): Likewise.
68351         * modules/mkstemp (Makefile.am): Likewise.
68352         * modules/mktime (Makefile.am): Likewise.
68353         * modules/modechange (Makefile.am): Likewise.
68354         * modules/mountlist (Makefile.am): Likewise.
68355         * modules/nanosleep (Makefile.am): Likewise.
68356         * modules/openat (Makefile.am): Likewise.
68357         * modules/pagealign_alloc (Makefile.am): Likewise.
68358         * modules/physmem (Makefile.am): Likewise.
68359         * modules/poll (Makefile.am): Likewise.
68360         * modules/posixtm (Makefile.am): Likewise.
68361         * modules/posixver (Makefile.am): Likewise.
68362         * modules/putenv (Makefile.am): Likewise.
68363         * modules/quote (Makefile.am): Likewise.
68364         * modules/quotearg (Makefile.am): Likewise.
68365         * modules/raise (Makefile.am): Likewise.
68366         * modules/read-file (Makefile.am): Likewise.
68367         * modules/readline (Makefile.am): Likewise.
68368         * modules/readlink (Makefile.am): Likewise.
68369         * modules/readtokens (Makefile.am): Likewise.
68370         * modules/readutmp (Makefile.am): Likewise.
68371         * modules/realloc (Makefile.am): Likewise.
68372         * modules/regex (Makefile.am): Likewise.
68373         * modules/rename (Makefile.am): Likewise.
68374         * modules/rename-dest-slash (Makefile.am): Likewise.
68375         * modules/rijndael (Makefile.am): Likewise.
68376         * modules/rmdir (Makefile.am): Likewise.
68377         * modules/rpmatch (Makefile.am): Likewise.
68378         * modules/safe-read (Makefile.am): Likewise.
68379         * modules/safe-write (Makefile.am): Likewise.
68380         * modules/same (Makefile.am): Likewise.
68381         * modules/save-cwd (Makefile.am): Likewise.
68382         * modules/savedir (Makefile.am): Likewise.
68383         * modules/setenv (Makefile.am): Likewise.
68384         * modules/settime (Makefile.am): Likewise.
68385         * modules/sha1 (Makefile.am): Likewise.
68386         * modules/sig2str (Makefile.am): Likewise.
68387         * modules/snprintf (Makefile.am): Likewise.
68388         * modules/stdlib-safer (Makefile.am): Likewise.
68389         * modules/stpcpy (Makefile.am): Likewise.
68390         * modules/stpncpy (Makefile.am): Likewise.
68391         * modules/strcase (Makefile.am): Likewise.
68392         * modules/strcasestr (Makefile.am): Likewise.
68393         * modules/strchrnul (Makefile.am): Likewise.
68394         * modules/strcspn (Makefile.am): Likewise.
68395         * modules/strdup (Makefile.am): Likewise.
68396         * modules/strerror (Makefile.am): Likewise.
68397         * modules/strftime (Makefile.am): Likewise.
68398         * modules/strndup (Makefile.am): Likewise.
68399         * modules/strnlen (Makefile.am): Likewise.
68400         * modules/strpbrk (Makefile.am): Likewise.
68401         * modules/strsep (Makefile.am): Likewise.
68402         * modules/strstr (Makefile.am): Likewise.
68403         * modules/strtod (Makefile.am): Likewise.
68404         * modules/strtoimax (Makefile.am): Likewise.
68405         * modules/strtok_r (Makefile.am): Likewise.
68406         * modules/strtol (Makefile.am): Likewise.
68407         * modules/strtoll (Makefile.am): Likewise.
68408         * modules/strtoul (Makefile.am): Likewise.
68409         * modules/strtoull (Makefile.am): Likewise.
68410         * modules/strtoumax (Makefile.am): Likewise.
68411         * modules/strverscmp (Makefile.am): Likewise.
68412         * modules/time_r (Makefile.am): Likewise.
68413         * modules/timegm (Makefile.am): Likewise.
68414         * modules/tmpfile-safer (Makefile.am): Likewise.
68415         * modules/unistd-safer (Makefile.am): Likewise.
68416         * modules/unlinkdir (Makefile.am): Likewise.
68417         * modules/userspec (Makefile.am): Likewise.
68418         * modules/utime (Makefile.am): Likewise.
68419         * modules/utimecmp (Makefile.am): Likewise.
68420         * modules/utimens (Makefile.am): Likewise.
68421         * modules/vasnprintf (Makefile.am): Likewise.
68422         * modules/vasprintf (Makefile.am): Likewise.
68423         * modules/vsnprintf (Makefile.am): Likewise.
68424         * modules/xalloc (Makefile.am): Likewise.
68425         * modules/xgetcwd (Makefile.am): Likewise.
68426         * modules/xnanosleep (Makefile.am): Likewise.
68427         * modules/xreadlink (Makefile.am): Likewise.
68428         * modules/xstrtod (Makefile.am): Likewise.
68429         * modules/xstrtol (Makefile.am): Likewise.
68430         * modules/xstrtold (Makefile.am): Likewise.
68431         * modules/yesno (Makefile.am): Likewise.
68432
68433 2006-10-12  Jim Meyering  <jim@meyering.net>
68434
68435         * m4/getloadavg.m4: Revert the change below.
68436
68437         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68438         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68439         fail with a symlink, which is what coreutils' ./bootstrap now
68440         creates by default.
68441
68442 2006-10-12  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68445         mingw.
68446         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68447         MSVC and mingw explicitly.
68448
68449 2006-10-11  Simon Josefsson  <jas@extundo.com>
68450             Bruno Haible  <bruno@clisp.org>
68451
68452         Add support for multiple gnulib-tool invocations in the scope of a
68453         single configure.ac file.
68454         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68455         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68456         with the same contents as the _LIBADD variable.
68457         (func_emit_initmacro_start, func_emit_initmacro_end,
68458         func_emit_initmacro_done): New functions.
68459         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68460         gl_LIBOBJS and gl_LTLIBOBJS.
68461
68462 2006-10-11  Bruno Haible  <bruno@clisp.org>
68463
68464         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68465         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68466         autoreconf. Instead, invoke autopoint explicitly but move back the
68467         *.m4 files from gnulib.
68468
68469 2006-10-11  Bruno Haible  <bruno@clisp.org>
68470
68471         * gnulib-tool (func_usage): Make module names after --create-testdir
68472         optional.
68473         (func_create_testdir): If no module was specified, use nearly all
68474         modules.
68475
68476 2006-10-12  Jim Meyering  <jim@meyering.net>
68477
68478         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68479         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68480         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68481         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68482         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68483         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68484         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68485         (fts_set_stat_required): New function.
68486         (fts_open): Defer the calls to fts_stat, if possible or requested.
68487         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68488         into fts_stat itself.
68489         (fts_read): Perform any required (deferred) fts_stat call.
68490         (fts_build): Likewise, for the directory we're about to open and read.
68491         In the readdir loop, carefully decide whether each entry will require
68492         an eventual call to fts_stat, using dirent.d_type info if available.
68493         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68494         a command line argument into this function.  Update all callers.
68495         Map a return value of FTS_DOT to FTS_D for a command line argument.
68496         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68497         Thanks to Miklos Szeredi for his tenacity and for the initial
68498         bug report about "find" failing on a FUSE-based file system.
68499
68500         * lib/fts.c (fts_open): Use consistent indentation.
68501
68502 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68505         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68506         reported by Jim Meyering.  All uses of cache variables renamed
68507         to match Autoconf's.
68508         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68509         the other one.
68510
68511         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68512         Fix misspelling in diagnostic.
68513
68514 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68515
68516         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68517         defined.  Problem reported by Matthew Woehlke.
68518
68519         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68520         Add support for Tandem NonStop R series.
68521         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68522         Use new macro.
68523
68524         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68525         (has_trailing_slash): Omit size arg; all callers changed.
68526         Omit 'inline', since it doesn't help performance and we'd
68527         need to configure it.
68528         Don't count //, ///, etc. as having a trailing slash.
68529         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68530         (rpl_rename_dest_slash): On failure, use rename's errno rather
68531         than (in some cases) an incorrect or junk errno.
68532         Simplify code by removing need to compute length; this does
68533         cause it to make two passes instead of one over the file name,
68534         but it's worth it.
68535
68536         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68537         change, since Autoconf's version may no longer be appropriate now
68538         that we are using CVS Autoconf's version.  Add support for Tandem.
68539
68540 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68541             Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68544         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68545         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68546         gl_AC_TYPE_LONG_LONG.
68547
68548         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68549         instead of HAVE_LONG_LONG.
68550         * lib/printf-args.c (printf_fetchargs): Likewise.
68551         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68552         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68553         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68554         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68555         gl_AC_TYPE_LONG_LONG.
68556
68557 2006-10-11  Bruno Haible  <bruno@clisp.org>
68558
68559         * m4/longlong.m4: Add comments.
68560         * m4/ulonglong.m4: Likewise.
68561
68562 2006-10-10  Bruno Haible  <bruno@clisp.org>
68563
68564         Make it possible to #define stpcpy, strdup to aliases.
68565         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68566         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68567
68568 2006-10-10  Bruno Haible  <bruno@clisp.org>
68569
68570         Make it possible to #define gcd to an alias.
68571         * lib/gcd.c: Include config.h.
68572
68573 2006-10-10  Bruno Haible  <bruno@clisp.org>
68574
68575         Make it possible to #define c_isascii to an alias.
68576         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68577         defined. Undefine the macros before defining them, to avoid gcc
68578         warnings.
68579         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68580         define NO_C_CTYPE_MACROS early.
68581
68582 2006-10-10  Bruno Haible  <bruno@clisp.org>
68583
68584         Make it possible to #define set_program_name to an alias.
68585         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68586         ENABLE_RELOCATABLE early.
68587
68588 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68589
68590         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68591         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68592         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68593         More generally, don't assume that 64-bit signed int is available
68594         if unsigned int is, and vice versa.
68595         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68596         unsigned symbols, not on their signed counterparts.
68597         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68598         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68599         (UINT64_C, UINTMAX_C):
68600         Likewise.
68601         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68602         unsigned counterparts.
68603         (Have_long_long, Unsigned): New macros.
68604         (Int): Renamed from INT.
68605         (strtoimax): Use the new macros.
68606         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68607         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68608         * modules/inttypes (inttypes.h): Substitute
68609         HAVE_UNSIGNED_LONG_LONG_INT.
68610         * modules/stdint (stdint.h): Likewise.
68611         (Files): Add m4/ulonglong.m4.
68612
68613 2006-10-10  Bruno Haible  <bruno@clisp.org>
68614
68615         Fix a gcc -Wshadow warning.
68616         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68617         to 'bucket'.
68618         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68619         gl_linked_indexof_from_to): Likewise.
68620         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68621         Likewise.
68622         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68623         Likewise.
68624         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68625         Reported by Eric Blake.
68626
68627 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68630         for NetBSD.  Problem reported by Bruno Haible.
68631
68632 2006-10-09  Jim Meyering  <jim@meyering.net>
68633
68634         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68635         Patch from Bruno Haible.
68636
68637 2006-10-09  Jim Meyering  <jim@meyering.net>
68638
68639         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68640         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68641         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68642
68643 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68644
68645         Don't include <config.h> twice; this doesn't work in some cases,
68646         e.g., when config.h has "#define intmax_t long long int" and
68647         we include <config.h>, <inttypes.h>, <config.h> in that order.
68648         Problem reported by Matthew Woehlke in:
68649         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68650         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68651         * lib/fts-cycle.c: Don't include config.h.
68652         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68653         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68654         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68655         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68656         inttypes.h.
68657         * lib/xstrtoumax.c: Likewise.
68658         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68659         __strtol and the like, so that this module is more like its siblings.
68660         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68661         Remove; no longer needed now that we assume gnulib inttypes.h.
68662
68663 2006-10-08  Bruno Haible  <bruno@clisp.org>
68664
68665         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68666         option.
68667
68668 2006-10-07  Jim Meyering  <jim@meyering.net>
68669
68670         * modules/inttypes (inttypes.h): Revert what seems to have been
68671         an inadvertent part of today's change: use "|", not "/" in the
68672         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68673
68674 2006-10-07  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/sublist: New file.
68677
68678 2006-10-07  Bruno Haible  <bruno@clisp.org>
68679
68680         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68681         * modules/argz (argz.h): Likewise.
68682         * modules/arpa_inet (arpa/inet.h): Likewise.
68683         * modules/byteswap (byteswap.h): Likewise.
68684         * modules/configmake (configmake.h): Likewise.
68685         * modules/fcntl (fcntl.h): Likewise.
68686         * modules/fnmatch (fnmatch.h): Likewise.
68687         * modules/getopt (getopt.h): Likewise.
68688         * modules/glob (glob.h): Likewise.
68689         * modules/inttypes (inttypes.h): Likewise.
68690         * modules/netinet_in (netinet/in.h): Likewise.
68691         * modules/poll (poll.h): Likewise.
68692         * modules/stdbool (stdbool.h): Likewise.
68693         * modules/stdint (stdint.h): Likewise.
68694         * modules/sys_select (sys/select.h): Likewise.
68695         * modules/sys_socket (sys/socket.h): Likewise.
68696         * modules/sys_stat (sys/stat.h): Likewise.
68697         * modules/sysexits (sysexits.h): Likewise.
68698         * modules/unistd (unistd.h): Likewise.
68699         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68700         Add a "DO NOT EDIT" comment to the generated file.
68701         (func_import): Likewise for gnulib-comp.m4.
68702
68703 2006-10-07  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/gl_sublist.h: New file.
68706         * lib/gl_sublist.c: New file.
68707
68708 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68711         name (relative to the original working directory) and the file
68712         name component (relative to the temporary working directory).  All
68713         callers changed.
68714         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68715         * lib/mkdir-p.c (make_dir_parents): Likewise.
68716         * lib/mkdir-p.h (make_dir_parents): Likewise.
68717
68718 2006-10-06  Eric Blake  <ebb9@byu.net>
68719
68720         Define several macros for use by the clean-temp module.
68721         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68722         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68723         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68724
68725         * lib/clean-temp.h (close_stream_temp): New declaration.
68726         * lib/clean-temp.c (includes): Pull in headers according to what
68727         other modules are in use.
68728         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68729
68730 2006-10-06  Bruno Haible  <bruno@clisp.org>
68731
68732         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68733         instead of fopen, fwriteerror.
68734
68735 2006-10-06  Bruno Haible  <bruno@clisp.org>
68736
68737         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68738         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68739         int.
68740         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68741         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68742         Return an error indicator.
68743         Suggested by Eric Blake.
68744
68745 2006-10-06  Bruno Haible  <bruno@clisp.org>
68746
68747         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68748         Reported by Eric Blake.
68749
68750 2006-10-06  Bruno Haible  <bruno@clisp.org>
68751
68752         * modules/closeout (Description): Mention stderr too.
68753
68754 2006-10-06  Bruno Haible  <bruno@clisp.org>
68755         and Paul Eggert  <eggert@cs.ucla.edu>
68756
68757         * lib/closeout.c (close_stdout): Also close stderr.
68758         * lib/closeout.h: Update comment.
68759
68760 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68761
68762         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68763         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68764         * lib/dirchownmod.c: Include lchown.h.
68765         * lib/lchown.c: Don't include files that lchown.h now includes.
68766         Don't declare chown, since lchown.h now does that.
68767         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68768         (lchown): Define to rpl_chown if lchown is declared but
68769         does not exist.  Declare using a prototype if lchown is not
68770         declared.  Add a copyright notice.
68771         * lib/mkstemp.h: Include <unistd.h>.
68772         * lib/openat.c: Include lchown.h.
68773
68774         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68775         we now test for that separately.
68776         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68777         rather than O_NOFOLLOW, when testing whether it's possible to
68778         avoid a race condition reliably.
68779         * lib/savewd.c (savewd_chdir): Likewise.
68780
68781         Remove macros that are no longer needed now that stdint.h is
68782         reliable.
68783         * lib/fsusage.c (UINTMAX_MAX): Remove.
68784         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68785         * lib/utimecmp.c (SIZE_MAX): Remove.
68786
68787         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68788
68789         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68790         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68791         O_NOATIME works.
68792
68793 2006-10-05  Bruno Haible  <bruno@clisp.org>
68794
68795         * lib/gl_list.h (gl_sortedlist_search_from_to,
68796         gl_sortedlist_indexof_from_to): New declarations.
68797         (gl_list_implementation): New fields sortedlist_search_from_to,
68798         sortedlist_indexof_from_to.
68799         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68800         inline functions.
68801         * lib/gl_list.c (gl_sortedlist_search_from_to,
68802         gl_sortedlist_indexof_from_to): New functions.
68803         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68804         function.
68805         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68806         (gl_array_sortedlist_search_from_to): New function.
68807         (gl_array_list_implementation): Update.
68808         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68809         function.
68810         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68811         (gl_carray_sortedlist_search_from_to): New function.
68812         (gl_carray_list_implementation): Update.
68813         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68814         gl_linked_sortedlist_indexof_from_to): New functions.
68815         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68816         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68817         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68818         gl_tree_sortedlist_indexof_from_to): New functions.
68819         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68820         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68821         Update.
68822         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68823         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68824         Update.
68825
68826 2006-10-05  Bruno Haible  <bruno@clisp.org>
68827
68828         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68829         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68830         (struct gl_list_implementation): Add fields search_from_to,
68831         indexof_from_to. Remove fields search, indexof.
68832         (gl_list_search): Use the search_from_to method.
68833         (gl_list_search_from, gl_list_search_from_to): New functions.
68834         (gl_list_indexof): Use the indexof_from_to method.
68835         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68836         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68837         (gl_list_search_from, gl_list_search_from_to): New functions.
68838         (gl_list_indexof): Use the indexof_from_to method.
68839         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68840         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68841         gl_array_indexof. Add start_index, end_index arguments.
68842         (gl_array_search_from_to): Renamed from gl_array_search. Add
68843         start_index, end_index arguments.
68844         (gl_array_remove, gl_array_list_implementation): Update.
68845         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68846         gl_carray_indexof. Add start_index, end_index arguments.
68847         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68848         start_index, end_index arguments.
68849         (gl_carray_remove, gl_carray_list_implementation): Update.
68850         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68851         gl_linked_search. Add start_index, end_index arguments.
68852         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68853         start_index, end_index arguments.
68854         (gl_linked_remove): Update.
68855         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68856         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68857         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68858         field to 'size_t'.
68859         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68860         gl_tree_search. Add start_index, end_index arguments.
68861         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68862         start_index, end_index arguments.
68863         (gl_tree_remove): Update.
68864         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68865         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68866         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68867         function.
68868         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68869         gl_tree_search. Add start_index, end_index arguments.
68870         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68871         start_index, end_index arguments.
68872         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68873         Update.
68874         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68875
68876 2006-10-05  Bruno Haible  <bruno@clisp.org>
68877
68878         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68879
68880         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68881         fwriteerror_temp): New declarations.
68882         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68883         (descriptors): New variable.
68884         (cleanup): First, close the descriptors.
68885         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68886         fclose_temp, fwriteerror_temp): New functions.
68887
68888 2006-10-04  Jim Meyering  <jim@meyering.net>
68889
68890         * lib/fts.c (fts_open): Tiny comment change.
68891
68892 2006-10-04  Bruno Haible  <bruno@clisp.org>
68893
68894         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68895         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68896         gl_LOCK_BODY.
68897         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68898         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68899         gl_LOCK_EARLY_BODY.
68900         (gl_LOCK): Require gl_LOCK_BODY.
68901
68902 2006-10-04  Bruno Haible  <bruno@clisp.org>
68903
68904         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68905         (gl_oset_search_atleast): New declaration.
68906         (struct gl_oset_implementation): Add field 'search_atleast'.
68907         (gl_oset_search_atleast): New inline function.
68908         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68909         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68910         (gl_array_oset_implementation): Update.
68911         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68912         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68913         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68914
68915 2006-10-04  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68918
68919 2006-10-03  Bruno Haible  <bruno@clisp.org>
68920
68921         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68922         from gl_avltreehash_list_implementation.
68923
68924 2006-10-03  Bruno Haible  <bruno@clisp.org>
68925
68926         * lib/gl_oset.c (gl_oset_add): Fix return type.
68927
68928 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68929
68930         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68931
68932 2006-10-02  Eric Blake  <ebb9@byu.net>
68933
68934         * modules/strnlen (Depends-on): Add extensions.
68935
68936 2006-10-02  Eric Blake  <ebb9@byu.net>
68937
68938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68939         definition in 2.60+.
68940
68941 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68942
68943         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68944         checks.
68945
68946 2006-10-02  Bruno Haible  <bruno@clisp.org>
68947
68948         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68949         to the AUTOMAKE_OPTIONS.
68950         Reported by Jim Meyering.
68951
68952 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68953
68954         Work around bug in Solaris 10 /proc file system:
68955         /proc/self/fd/NNN/.. isn't the parent directory of
68956         the directory whose file descriptor is NNN.  This needs to
68957         be worked around at run time, not compile time, since a
68958         program might be built on Solaris 8, where things work, and
68959         run on Solaris 10.
68960         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68961         to use the following interface instead:
68962         (OPENAT_BUFFER_SIZE): New macro.
68963         (openat_proc_name): New function.
68964         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68965         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68966         Likewise.
68967         * lib/openat-proc.c: New file.
68968         * modules/openat (Files): Add lib/openat-proc.c.
68969         (Depends-on): Add same-inode, stdbool.
68970         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68971
68972 2006-09-29  Bruno Haible  <bruno@clisp.org>
68973
68974         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68975         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68976         argument. Set stdout_closed before testing for ferror, not after.
68977         (fwriteerror, fwriteerror_no_ebadf): New functions.
68978
68979 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68980
68981         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68982
68983 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68984
68985         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68986         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68987
68988 2006-09-28  Jim Meyering  <jim@meyering.net>
68989
68990         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68991         Include <unistd.h>.
68992
68993 2006-09-28  Bruno Haible  <bruno@clisp.org>
68994
68995         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68996         * modules/linkedhash-list (Depends-on): Likewise.
68997         * modules/rbtreehash-list (Depends-on): Likewise.
68998
68999 2006-09-28  Bruno Haible  <bruno@clisp.org>
69000
69001         * lib/strndup.h: Simplify the redefinition of strndup.
69002         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69004
69005 2006-09-28  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69008         * lib/gl_linkedhash_list.c: Likewise.
69009         * lib/gl_rbtreehash_list.c: Likewise.
69010
69011 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69012
69013         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69014         getaddrinfo.
69015
69016         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69017         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69018         it causes <stdio_ext.h> to cause a compile-time error.
69019         Problem reported by Nelson H. F. Beebe.
69020         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69021         of HAVE_DECL___PENDING.
69022
69023         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69024         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69025         declaration.
69026
69027 2006-09-27  Jim Meyering  <jim@meyering.net>
69028
69029         This file could end up with a definition for a function
69030         named __strndup, rather than rpl_strndup on a system with
69031         incomplete weak_alias support.
69032         * lib/strndup.c (strndup): Rename from __strndup.
69033         Remove #defines that used to map __strndup to strndup.
69034         Don't use K&R prototypes.
69035         Remove LIBC-related code, since this file is not sync'd with glibc.
69036         * lib/strndup.h: Revamp, accordingly.
69037         * m4/strndup.m4: Modernize.
69038
69039 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * modules/savewd (Depends-on): Add 'raise'.
69042         * lib/savewd.c: Include <signal.h>, for 'raise'.
69043
69044 2006-09-26  Jim Meyering  <jim@meyering.net>
69045
69046         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69047         when we detect Darwin 8.7.0's acl_get_file bug.
69048         Rearrange to perform the new (below) run-test while $LIBS
69049         contains any acl-related library.  Set USE_ACL at the end.
69050         (gl_ACL_GET_FILE): New function.
69051
69052 2006-09-26  Eric Blake  <ebb9@byu.net>
69053
69054         * lib/verror.c: Include <config.h> unconditionally.
69055
69056 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69057
69058         * modules/clock-time (Maintainer): Add self.
69059         * modules/getlogin_r (Depends-on): Add extensions.
69060
69061 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69062
69063         * modules/clock-time: New module.
69064         * modules/nanosleep (Depends-on): Add clock-time.
69065         * modules/gethrxtime (Depends-on): Likewise.
69066         * modules/gettime (Depends-on): Likewise.
69067         * modules/settime (Depends-on): Likewise.
69068
69069         * modules/fts-lgpl: Depend on openat.
69070         * modules/mkancesdirs: Depend on savewd.
69071         * modules/mkdir-p: Likewise.
69072
69073 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69074
69075         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69076
69077         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69078         `gl_have_arbitrary_file_name_length_limit' to
69079         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69080         actually works between configure runs.
69081
69082 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69083             Bruno Haible  <bruno@clisp.org>
69084
69085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69086
69087 2006-09-25  Jim Meyering  <jim@meyering.net>
69088
69089         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69090         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69091
69092 2006-09-25  Eric Blake  <ebb9@byu.net>
69093
69094         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69095         exec's in 2006-09-18 patch when shuffling fds.
69096
69097 2006-09-25  Bruno Haible  <bruno@clisp.org>
69098
69099         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69100         Reported by Jim Meyering.
69101
69102 2006-09-24  Jim Meyering  <jim@meyering.net>
69103
69104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69105         compare a pointer against a literal "0".  That caused failures with
69106         at least HP-UX's hpcc.
69107
69108 2006-09-22  Simon Josefsson  <jas@extundo.com>
69109
69110         * modules/gc-sha1:
69111         * modules/gc-md4:
69112         * modules/gc-hmac-sha1:
69113         * modules/gc-hmac-md5:
69114         * modules/gc-des:
69115         * modules/gc-arcfour: Distribute more files.
69116
69117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69118
69119         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69120         (gl_linked_iterator_from_to): Initialize struct completely.
69121         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69122         (gl_tree_iterator_from_to): Likewise
69123         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69124         * lib/gl_array_list.c [lint] (gl_array_iterator)
69125         (gl_array_iterator_from_to): Likewise.
69126         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69127         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69128         (gl_carray_iterator_from_to): Likewise.
69129
69130         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69131         * lib/md4.c (md4_process_block): Remove unused variable.
69132         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69133         parentheses for clarity.
69134
69135 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69136
69137         * modules/bison-i18n (Depends-on): Add gettext.
69138
69139 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69140
69141         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69142         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69143         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69144         also add missing comma that caused broken test.
69145         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69146         stdlib.h, for `abort'.
69147         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69148         variables.
69149         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69150         include unistd.h if present, for `rmdir'.
69151         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69152         variables.
69153         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69154         in the process include standard headers for prototypes.
69155         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69156         gets declared on GNU/Linux.
69157         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69158         unistd.h, for `rmdir'.
69159         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69160
69161         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69162         always true.
69163         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69164
69165         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69166
69167 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69168
69169         * gnulib-tool (func_version): Create output all at once.  This
69170         may help avoid triggering unnecessary SIGPIPEs, and at any
69171         rate it doesn't hurt.
69172
69173 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69174             Bruno Haible  <bruno@clisp.org>
69175
69176         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69177         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69178         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69179
69180         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69181         (gl_FUNC_VASPRINTF): Invoke it.
69182
69183 2006-09-22  Bruno Haible  <bruno@clisp.org>
69184
69185         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69186         getloadavg.c as first argument.
69187
69188 2006-09-22  Bruno Haible  <bruno@clisp.org>
69189
69190         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69191         at the beginning of the gl_INIT macro.
69192         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69193         gl_GETLOADAVG.
69194
69195 2006-09-22  Bruno Haible  <bruno@clisp.org>
69196
69197         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69198         module.
69199         Suggested by Ralf Wildenhues.
69200
69201 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         Import this patch from libc:
69204
69205         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69206
69207         * lib/regex_internal.c (re_string_reconstruct): Handle
69208         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69209         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69210         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69211         re_string_context_at.
69212
69213         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69214         now requires it.
69215         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69216         gl_REGEX now does it for us.
69217         (gl_REGEX): Add test taken from
69218         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69219
69220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69221         Check that large offsets work.  Modernize Autoconf usages.
69222         Prefer "yes" to mean a good thing rather than a bad.
69223         Don't put "#define mkstemp" in config.h, as this might interfere
69224         with standard system headers that "#define mkstemp mkstemp64".
69225
69226         * modules/mkstemp (Depends-on): Add extensions, so that
69227         mkstemp is visible on some platforms.
69228         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69229         (Include): Change to "mkstemp.h" from <stdlib.h>.
69230         (Files): Add mkstemp.h.
69231
69232         * lib/mkstemp.h: New file, since some standard headers
69233         #define mkstemp.
69234         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69235         Include "mkstemp.h".
69236         Make the _LIBC code resemble glibc original more,
69237         e.g., use K&R style.
69238         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69239         (mkstemp): Remove, since mkstemp.h does this for us.
69240         * lib/stdlib--.h: Include mkstemp.h.
69241
69242         Import this patch from libc:
69243
69244         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69245
69246         * lib/tempname.c (__gen_tempname): Change attempts_min
69247         into a macro.  Use preprocessor to decide how to initialize
69248         attempts [Coverity CID 67].
69249
69250 2006-09-20  Bruno Haible  <bruno@clisp.org>
69251
69252         * lib/mkdtemp.c: Import from libc.
69253         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69254                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69255                 attempts_min into a macro.  Use preprocessor to decide how to
69256                 initialize attempts [Coverity CID 67].
69257         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69258                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69259                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69260
69261 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69262
69263         * gnulib-tool (func_exit): New function, to allow to pass the
69264         exit status portably through the trap.  Use everywhere.
69265         (--help, --version): Signal a write error.
69266         (trap): catch SIGPIPE, for write errors.
69267         Exit at the end of the trap, with the correct exit status.
69268
69269 2006-09-19  Karl Berry  <karl@gnu.org>
69270
69271         * doc/gnulib.texi: note about the license texinfo files.
69272
69273 2006-09-19  Eric Blake  <ebb9@byu.net>
69274
69275         * gnulib-tool: Avoid space-tab.
69276
69277 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69280         that prevented coreutils 6.1 from building.  Problem reported
69281         by Petter Reinholdtsen.
69282
69283 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         * gnulib-tool (avoidlist): Fix typo that broke options like
69286         --avoid=lock that are used by coreutils bootstrap.
69287
69288 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69289
69290         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69291         more systematically.
69292
69293 2006-09-18  Jim Meyering  <jim@meyering.net>
69294
69295         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69296
69297 2006-09-18  Bruno Haible  <bruno@clisp.org>
69298
69299         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69300
69301 2006-09-18  Bruno Haible  <bruno@clisp.org>
69302
69303         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69304         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69305         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69306         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69307         * m4/gettext.m4: Require autoconf >= 2.52.
69308         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69309         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69310         of gl_cv_header_inttypes_h.
69311
69312 2006-09-18  Bruno Haible  <bruno@clisp.org>
69313
69314         * lib/javaversion.c: Include configmake.h.
69315
69316 2006-09-18  Bruno Haible  <bruno@clisp.org>
69317
69318         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69319         avoid that the while loops be executed in a subshell.
69320
69321 2006-09-18  Bruno Haible  <bruno@clisp.org>
69322
69323         * MODULES.html.sh (func_module): Break long lines.
69324         Suggested by Bruce Korb <bkorb@gnu.org>.
69325
69326 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69327
69328         Speed up by a factor of 1.12.
69329         * gnulib-tool (nl): New variable.
69330         (func_import): Rewrite include directive extraction to only read each
69331         directive once.
69332
69333 2006-09-17  Bruno Haible  <bruno@clisp.org>
69334
69335         * modules/javaversion (Makefile.am): Remove DEFS setting.
69336         (Depends-on): Add configmake, for PKGDATADIR definition.
69337
69338 2006-09-17  Bruno Haible  <bruno@clisp.org>
69339
69340         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69341
69342 2006-09-17  Bruno Haible  <bruno@clisp.org>
69343
69344         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69345         (func_modules_transitive_closure, func_modules_add_dummy,
69346         func_modules_to_filelist, func_import, func_create_testdir,
69347         func_create_megatestdir, ...): Use it wherever possible.
69348         Suggested by Ralf Wildenhues.
69349
69350 2006-09-16  Karl Berry  <karl@gnu.org>
69351
69352         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69353         to avoid sectioning errors.
69354         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69355         [ifinfo]: blank line after @center-ed titles.
69356         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69357         Spell FSF address consistently with others.
69358         (These changes approved by rms.)
69359
69360 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69361
69362         Speed up by a factor of 1.61.
69363         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69364         already checked module names again.
69365
69366 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69367
69368         Speed up by a factor of 1.13.
69369         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69370         for new_files, and the input to func_add_or_update.
69371
69372 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69373
69374         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69375         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69376
69377 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         * modules/mkancesdirs (Depends-on): Add fcntl.
69380         * modules/savewd: New file.
69381         * MODULES.html.sh (File system functions): Add savewd.
69382
69383         * modules/configmake (Makefile.am): Add support for the
69384         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69385
69386 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * m4/savewd.m4: New file.
69389
69390 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69393         (dirchownmod): New arg FD.  All callers changed.
69394         Use FD rather than opening the directory ourself, as opening is
69395         now the caller's responsibility.
69396         * lib/dirchownmod.h: Likewise.
69397         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69398         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69399         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69400         (test_dir): Remove.
69401         (mkancesdirs): Return length of prefix of FILE that has already
69402         been made, or -2 if there is a child doing the work.  Redo
69403         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69404         ".", and treat ".." specially since it might stray back into
69405         already-created areas.  Use a subprocess if necessary.  New arg
69406         WD; all users changed.  MAKE_DIR function should now return 1
69407         if it creates a directory that is not readable.  Return -2 if
69408         a child process is spun off.
69409         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69410         Adjust signature to match code.
69411         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69412         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69413         all users changed.
69414         * lib/savewd.c, lib/savewd.h: New files.
69415
69416 2006-09-15  Jim Meyering  <jim@meyering.net>
69417
69418         * modules/rename-dest-slash: New module.
69419         * MODULES.html.sh (posix_compat): Add it here.
69420
69421         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69422
69423 2006-09-15  Jim Meyering  <jim@meyering.net>
69424
69425         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69426         file.
69427
69428         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69429
69430 2006-09-15  Jim Meyering  <jim@meyering.net>
69431
69432         * lib/rename-dest-slash.c (has_trailing_slash): Use
69433         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69434         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69435         test before testing whether SRC is a directory.
69436         Suggestions from Bruno Haible.
69437
69438         Avoid a warning about an unused variable.
69439         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69440         into the #ifdef block where it's used.
69441
69442         * lib/rename-dest-slash.c: New file.
69443
69444 2006-09-14  Bruno Haible  <bruno@clisp.org>
69445
69446         * lib/allocsa.c: Include <config.h> unconditionally.
69447         * lib/asnprintf.c: Likewise.
69448         * lib/asprintf.c: Likewise.
69449         * lib/c-strcasecmp.c: Likewise.
69450         * lib/c-strcasestr.c: Likewise.
69451         * lib/c-strncasecmp.c: Likewise.
69452         * lib/c-strstr.c: Likewise.
69453         * lib/classpath.c: Likewise.
69454         * lib/clean-temp.c: Likewise.
69455         * lib/concatpath.c: Likewise.
69456         * lib/copy-file.c: Likewise.
69457         * lib/csharpcomp.c: Likewise.
69458         * lib/csharpexec.c: Likewise.
69459         * lib/execute.c: Likewise.
69460         * lib/fatal-signal.c: Likewise.
69461         * lib/findprog.c: Likewise.
69462         * lib/fwriteerror.c: Likewise.
69463         * lib/gl_array_list.c: Likewise.
69464         * lib/gl_array_oset.c: Likewise.
69465         * lib/gl_avltree_list.c: Likewise.
69466         * lib/gl_avltree_oset.c: Likewise.
69467         * lib/gl_avltreehash_list.c: Likewise.
69468         * lib/gl_carray_list.c: Likewise.
69469         * lib/gl_linked_list.c: Likewise.
69470         * lib/gl_linkedhash_list.c: Likewise.
69471         * lib/gl_list.c: Likewise.
69472         * lib/gl_oset.c: Likewise.
69473         * lib/gl_rbtree_list.c: Likewise.
69474         * lib/gl_rbtree_oset.c: Likewise.
69475         * lib/gl_rbtreehash_list.c: Likewise.
69476         * lib/imaxabs.c: Likewise.
69477         * lib/imaxdiv.c: Likewise.
69478         * lib/javacomp.c: Likewise.
69479         * lib/javaexec.c: Likewise.
69480         * lib/javaversion.c: Likewise.
69481         * lib/linebreak.c: Likewise.
69482         * lib/localcharset.c: Likewise.
69483         * lib/lock.c: Likewise.
69484         * lib/mbchar.c: Likewise.
69485         * lib/mbswidth.c: Likewise.
69486         * lib/mkdtemp.c: Likewise.
69487         * lib/pipe.c: Likewise.
69488         * lib/printf-args.c: Likewise.
69489         * lib/printf-parse.c: Likewise.
69490         * lib/progname.c: Likewise.
69491         * lib/progreloc.c: Likewise.
69492         * lib/readlink.c: Likewise.
69493         * lib/sh-quote.c: Likewise.
69494         * lib/stpcpy.c: Likewise.
69495         * lib/stpncpy.c: Likewise.
69496         * lib/strcasecmp.c: Likewise.
69497         * lib/strcasestr.c: Likewise.
69498         * lib/strcspn.c: Likewise.
69499         * lib/striconv.c: Likewise.
69500         * lib/strncasecmp.c: Likewise.
69501         * lib/strnlen1.c: Likewise.
69502         * lib/strstr.c: Likewise.
69503         * lib/strtok_r.c: Likewise.
69504         * lib/tls.c: Likewise.
69505         * lib/tmpdir.c: Likewise.
69506         * lib/unicodeio.c: Likewise.
69507         * lib/unsetenv.c: Likewise.
69508         * lib/vasnprintf.c: Likewise.
69509         * lib/vasprintf.c: Likewise.
69510         * lib/wait-process.c: Likewise.
69511         * lib/xallocsa.c: Likewise.
69512         * lib/xsetenv.c: Likewise.
69513         * lib/xstriconv.c: Likewise.
69514
69515 2006-09-13  Simon Josefsson  <jas@extundo.com>
69516
69517         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69518         that internally, suggested by Ralf Wildenhues
69519         <Ralf.Wildenhues@gmx.de>.
69520
69521 2006-09-13  Simon Josefsson  <jas@extundo.com>
69522
69523         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69524         @LIBOBJS@.
69525         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69526
69527 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69530         longer worry about uses that don't define HAVE_CONFIG_H.
69531         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69532         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69533         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69534         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69535         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69536         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69537         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69538         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69539         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69540         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69541         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69542         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69543         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69544         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69545         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69546         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69547         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69548         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69549         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69550         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69551         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69552         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69553         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69554         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69555         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69556         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69557         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69558         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69559         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69560         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69561         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69562         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69563         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69564         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69565         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69566         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69567         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69568         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69569         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69570         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69571         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69572         Likewise.
69573
69574 2006-09-13  Eric Blake  <ebb9@byu.net>
69575
69576         * lib/getopt.c: Fix typo in last commit.
69577
69578 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69579
69580         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69581         dgettext.
69582
69583 2006-09-12  Jim Meyering  <jim@meyering.net>
69584
69585         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69586         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69587         Reported by Nelson H. F. Beebe.
69588
69589 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69590
69591         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69592         program_invocation_name and program_invocation_short_name are
69593         initialized.
69594         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69595         and program_invocation_short_name to argp.h, so they are visible
69596         to user programs.
69597         * lib/argp.h: Likewise
69598
69599 2006-09-10  Bruno Haible  <bruno@clisp.org>
69600
69601         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69602         m4/inttypes_h.m4, m4/uintmax_t.m4.
69603
69604 2006-09-10  Bruno Haible  <bruno@clisp.org>
69605
69606         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69607         gl_AC_TYPE_UINTMAX_T.
69608
69609 2006-09-10  Bruno Haible  <bruno@clisp.org>
69610
69611         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69612
69613 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69614
69615         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69616         convention.  Text proposed by Bruno Haible.
69617         (struct argp_option): Document the use of N_() wrappers.
69618
69619         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69620         '\v', and translate the two parts separately, instead of feeding
69621         the whole string to gettext.  This allows to exclude
69622         '\v' from the strings visible to the translator by writing doc
69623         strings as N_("..") "\v" N_("..").
69624
69625 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * config/srclist.txt: Undo latest change; the bug was fixed.
69628
69629 2006-09-09  Bruno Haible  <bruno@clisp.org>
69630
69631         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69632         assignments if building a library without libtool.
69633         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69634         in func_emit_lib_Makefile_am.
69635         (func_import): When building a static library libfoo.a, arrange to
69636         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69637         (func_create_testdir): Likewise.
69638         * modules/gc (configure.ac, Makefile.am): If building statically,
69639         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69640         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69641         * modules/striconv (configure.ac, Makefile.am): Likewise.
69642         Based on a suggestion by Ralf Wildenhues.
69643
69644 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69645
69646         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69647         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69648         Also:
69649
69650         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69651         Add year_2050_test to catch glibc bug 2821
69652         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69653
69654         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69655         Prefer #ifdef to #if.
69656
69657         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69658         Return from 'main' instead of calling 'exit'.
69659
69660 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69663         returned the maximum time_t value rather than (time_t) -1.
69664         Problem originally reported by William Bardwell
69665         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69666
69667         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69668         Moved to here ...
69669         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69670         ... from here.
69671
69672 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69675         2821 is fixed.
69676
69677 2006-09-08  Jim Meyering  <jim@meyering.net>
69678
69679         Don't make generated files read-only.  That would bother too many
69680         people.  However, do retain the ability to work when targets are
69681         read-only: remove the destination and temporary files before writing
69682         them (when generated via sed or echo), or by using the -f option for
69683         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69684         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69685         * modules/byteswap, modules/configmake, modules/fcntl:
69686         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69687         * modules/localcharset, modules/netinet_in, modules/poll:
69688         * modules/stdbool, modules/stdint, modules/sys_select:
69689         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69690
69691 2006-09-08  Jim Meyering  <jim@meyering.net>
69692
69693         Avoid new build failure on FreeBSD 6.0.
69694         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69695         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69696         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69697
69698 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69699
69700         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69701
69702 2006-09-07  Jim Meyering  <jim@meyering.net>
69703
69704         Fix global typo in last change: use chmod u-w, not chmod u-x.
69705         Spotted by Paul Eggert and Bruce Korb.
69706         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69707         * modules/byteswap, modules/configmake, modules/fcntl:
69708         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69709         * modules/localcharset, modules/netinet_in, modules/poll:
69710         * modules/stdbool, modules/stdint, modules/sys_select:
69711         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69712
69713 2006-09-06  Jim Meyering  <jim@meyering.net>
69714
69715         Make generated files be read-only.
69716         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69717         Ensure that each generated file is now read-only.
69718         * modules/argz: Likewise.
69719         * modules/arpa_inet: Likewise.
69720         * modules/byteswap: Likewise.
69721         * modules/configmake: Likewise.
69722         * modules/fcntl: Likewise.
69723         * modules/fnmatch: Likewise.
69724         * modules/getopt: Likewise.
69725         * modules/glob: Likewise.
69726         * modules/inttypes: Likewise.
69727         * modules/netinet_in: Likewise.
69728         * modules/poll: Likewise.
69729         * modules/stdbool: Likewise.
69730         * modules/stdint: Likewise.
69731         * modules/sys_select: Likewise.
69732         * modules/sys_socket: Likewise.
69733         * modules/sys_stat: Likewise.
69734         * modules/sysexits: Likewise.
69735         * modules/localcharset: Same as above, but continue using temporary
69736         file named "t-$@" (why different?) rather than the "$@-t" used
69737         everywhere else.
69738
69739         * modules/sysexits (Makefile.am): Replace literal occurrences
69740         of "sysexit.h" more readable, and more consistent, "$@".
69741
69742 2006-09-06  Bruno Haible  <bruno@clisp.org>
69743
69744         * modules/striconv: New file.
69745         * modules/xstriconv: New file.
69746         * MODULES.html.sh (Internationalization functions): Add striconv,
69747         xstriconv.
69748
69749 2006-09-06  Bruno Haible  <bruno@clisp.org>
69750
69751         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69752         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69753         not using libtool correctly.
69754
69755 2006-09-06  Bruno Haible  <bruno@clisp.org>
69756
69757         * lib/striconv.h: New file.
69758         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69759         iconvstring.c.
69760         * lib/xstriconv.h: New file.
69761         * lib/xstriconv.c: New file.
69762
69763 2006-09-06  Bruno Haible  <bruno@clisp.org>
69764
69765         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69766         lib_..._LDFLAGS.
69767
69768 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69769
69770         * lib/argz_.h: Sync from Libtool.
69771
69772         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69773                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69774
69775         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69776
69777 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69778
69779         * modules/trim: New file.
69780
69781 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69782
69783         * lib/trim.h: New file.
69784         * lib/trim.c: New file.
69785
69786 2006-09-05  Bruno Haible  <bruno@clisp.org>
69787
69788         * MODULES.html.sh (String handling): Add trim.
69789
69790 2006-09-04  Karl Berry  <karl@gnu.org>
69791
69792         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69793         until next release.
69794
69795 2006-09-03  Bruno Haible  <bruno@clisp.org>
69796
69797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69798         correctly.
69799
69800 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69803         not gl_GETLOADAVG.  Omit unneeded semicolons.
69804         Problems reported by Ralf Wildenhues in
69805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69806         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69807         at the end, which is the usual gnulib style.
69808
69809         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69810         of doing all the work ourselves.
69811         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69812         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69813
69814 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69815
69816         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69817         Problem reported by Ralf Wildenhues in
69818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69819
69820         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69821         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69822
69823 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69824
69825         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69826         yesterday's patch by changing test -n to test -z.
69827
69828 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69829
69830         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69831         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69832         the former is now obsolescent.
69833
69834         * modules/chdir-long (Depends-on): Add fcntl.
69835
69836 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69839         obsolescent, and programs should use gnulib instead.
69840         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69841         but with prefixes changed.
69842
69843 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69846         or stdbool.h, because they might not exist while configuring.
69847
69848         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69849         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69850         does that for us.
69851         (O_DIRECTORY): Remove.
69852
69853 2006-08-31  Eric Blake  <ebb9@byu.net>
69854
69855         * gnulib-tool: Don't let emacs change spaces to TAB.
69856
69857 2006-08-31  Bruno Haible  <bruno@clisp.org>
69858
69859         * gnulib-tool: When calling func_import more than once, do it in a
69860         subshell.
69861         Reported by Eric Blake <ebb9@byu.net>.
69862
69863 2006-08-31  Bruno Haible  <bruno@clisp.org>
69864
69865         * gnulib-tool (nl): Remove variable.
69866         (sed_transform_lib_file): Use more robust test for config-h module.
69867         (func_import): Fix typo in 2006-08-25 patch.
69868
69869 2006-08-31  Bruno Haible  <bruno@clisp.org>
69870
69871         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69872         specified, augment Makefile.am variables instead of assigning them.
69873
69874 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         Work around a bug in both the Linux and SunOS 64-bit kernels:
69877         nanosleep mishandles sleeps for longer than 2**31 seconds.
69878         Problem reported by Frank v Waveren in
69879         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69881         Check for nanosleep bug.
69882         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69883
69884 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         Work around a bug in both the Linux and SunOS 64-bit kernels:
69887         nanosleep mishandles sleeps for longer than 2**31 seconds.
69888         Problem reported by Frank v Waveren in
69889         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69890         * lib/nanosleep.c (BILLION): New constant.
69891         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69892         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69893         implementation.
69894
69895 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * modules/nanosleep (Depends-on): Add gettime.
69898
69899 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69900         and Simon Josefsson  <jas@extundo.com>
69901         and Oskar Liljeblad  <oskar@osk.mine.nu>
69902
69903         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69904         * gnulib-tool (func_import): New license type 'unmodifiable license
69905         text'.
69906         * modules/fdl: Use it.  Longer description.
69907         * module/gpl, module/lgpl: New files.
69908
69909 2006-08-30  Jim Meyering  <jim@meyering.net>
69910
69911         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69912         shadowing the parameter.
69913
69914 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69915
69916         Sync from Libtool:
69917
69918         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69919
69920         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69921         sharing with gnulib.  Report by Eric Blake.
69922
69923 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * modules/isapipe: New file.
69926         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69927
69928 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69929
69930         * modules/configmake (Makefile.am): Add a comment, and omit
69931         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69932         by Bruno Haible.
69933
69934 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * m4/isapipe.m4: New file.
69937
69938 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         * lib/isapipe.c, lib/isapipe.h: New files.
69941
69942 2006-08-29  Jim Meyering  <jim@meyering.net>
69943
69944         * modules/configmake (Makefile.am): Make configmake.h depend on
69945         Makefile.  Otherwise, a stale configmake.h could hang around.
69946
69947 2006-08-29  Eric Blake  <ebb9@byu.net>
69948
69949         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69950         resolution of upstream bug 3044.
69951
69952 2006-08-29  Bruno Haible  <bruno@clisp.org>
69953
69954         * modules/localcharset (Depends-on): Add configmake.
69955         (Makefile.am): Remove setting of LIBDIR through DEFS.
69956
69957 2006-08-29  Bruno Haible  <bruno@clisp.org>
69958
69959         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69960         defined.
69961
69962 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * modules/fcntl: New file.
69965         * modules/chdir-safer (Depends-on): Add fcntl.
69966         * modules/fts: Likewise.
69967         * modules/mkdir-p: Likewise.
69968
69969         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69970         This undoes the most recent change, since we're now addressing the
69971         problem in a different way.
69972
69973         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69974         into output, since the output might be called Makefile.am even
69975         if $makefile_name is something different.
69976         (func_import): Use $makefile_am rather than
69977         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69978         empty.
69979
69980         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69981
69982 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69985         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69986         recent change to stdint.m4, since we're now addressing the problem in a
69987         different way.
69988
69989 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * m4/fcntl_h.m4: New file.
69992
69993 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         * lib/fcntl_.h: New file.
69996         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69997         the fcntl module.
69998         * lib/dirchownmod.c: Likewise.
69999         * lib/fts.c: Likewise.
70000
70001         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70002         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70003         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70004         just before including <inttypes.h>, to avoid circular inclusion.
70005
70006 2006-08-28  Jim Meyering  <jim@meyering.net>
70007
70008         * doc/visibility.texi: Actually read and correct the grammar of the
70009         sentence affected by yesterday's change.
70010
70011 2006-08-28  Eric Blake  <ebb9@byu.net>
70012
70013         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70014         needs wrapper.
70015
70016 2006-08-28  Eric Blake  <ebb9@byu.net>
70017
70018         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70019
70020 2006-08-28  Eric Blake  <ebb9@byu.net>
70021
70022         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70023
70024 2006-08-28  Bruno Haible  <bruno@clisp.org>
70025
70026         * modules/c-strstr: New file, from GNU gettext.
70027         * MODULES.html.sh (String handling): Add c-strstr.
70028
70029 2006-08-28  Bruno Haible  <bruno@clisp.org>
70030
70031         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70032         macros.
70033         Reported by Eric Blake.
70034
70035 2006-08-28  Bruno Haible  <bruno@clisp.org>
70036
70037         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70038         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70039         * lib/vasprintf.c: Include errno.h, limits.h.
70040         (EOVERFLOW): New fallback definition.
70041         (vasprintf): Test here whether the string length is > INT_MAX.
70042         * lib/vsnprintf.c: Include errno.h, limits.h.
70043         (EOVERFLOW): New fallback definition.
70044         (vsnprintf): Fix bug when generated string was too long for the buffer.
70045         Test here whether the string length is > INT_MAX.
70046
70047 2006-08-28  Bruno Haible  <bruno@clisp.org>
70048
70049         * lib/inttypes_.h (SCNX*): Remove definitions.
70050         Reported by Eric Blake.
70051
70052 2006-08-28  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/c-strstr.h: New file, from GNU gettext.
70055         * lib/c-strstr.c: New file, from GNU gettext.
70056
70057 2006-08-28  Bruno Haible  <bruno@clisp.org>
70058
70059         * gnulib-tool: Reorder some statements.
70060
70061 2006-08-28  Bruno Haible  <bruno@clisp.org>
70062
70063         * gnulib-tool: New option --makefile-name.
70064         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70065         $makefile_name.
70066         (func_import): Write $makefile_name to the cache file, and read it from
70067         there unless explicitly specified. Use $makefile_name as file name
70068         instead of Makefile.am. Adjust the recommendations accordingly.
70069
70070 2006-08-28  Bruno Haible  <bruno@clisp.org>
70071
70072         * gnulib-tool (func_verify_module): Check against misapplying patch.
70073
70074 2006-08-28  Bruno Haible  <bruno@clisp.org>
70075
70076         * gnulib-tool (func_relativize, func_relconcat): New functions.
70077         Give an error if --local-dir is given with --update.
70078         Remove trailing slashes from $local_gnulib_dir.
70079         (func_import): Store the relativized $local_gnulib_dir in
70080         gnulib-cache.m4, and read it from there if not specified explicitly.
70081
70082 2006-08-28  Bruno Haible  <bruno@clisp.org>
70083
70084         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70085         is the current directory. Respect also $local_gnulib_dir.
70086
70087 2006-08-28  Bruno Haible  <bruno@clisp.org>
70088             Simon Josefsson  <jas@extundo.com>
70089
70090         BeOS portability.
70091         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70092
70093 2006-08-27  Jim Meyering  <jim@meyering.net>
70094
70095         * doc/visibility.texi: Remove duplicate word: "pointer".
70096
70097 2006-08-26  Bruno Haible  <bruno@clisp.org>
70098
70099         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70100         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70101         (Makefile.am): Create inttypes.h from inttypes_.h.
70102         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70103
70104         * modules/imaxabs: New file.
70105
70106         * modules/imaxdiv: New file.
70107
70108 2006-08-26  Bruno Haible  <bruno@clisp.org>
70109
70110         * m4/inttypes.m4: New file.
70111         * m4/_inttypes_h.m4: Remove file.
70112         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70113         PRI_MACROS_BROKEN.
70114         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70115
70116         * m4/imaxabs.m4: New file.
70117
70118         * m4/imaxdiv.m4: New file.
70119
70120 2006-08-26  Bruno Haible  <bruno@clisp.org>
70121
70122         * lib/inttypes_.h: New file.
70123         * lib/inttypes.h: Remove file.
70124         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70125
70126         * lib/imaxabs.c: New file.
70127
70128         * lib/imaxdiv.c: New file.
70129
70130 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         New config-h module, so that "make" output needn't be cluttered
70133         by -DHAVE_CONFIG_H.
70134         * MODULES.html.sh (Support for building libraries and executables):
70135         Add config-h.
70136         * modules/config-h: New file.
70137         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70138         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70139         the config-h module is used.
70140
70141         New configmake module, so that "make" output needn't be cluttered
70142         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70143         * MODULES.html.sh (Support for building libraries and executables):
70144         Add configmake.
70145         * modules/configmake: New file.
70146
70147 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70148
70149         * m4/config-h.m4: New file.
70150
70151 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * config/srclist.txt: Add elisp-comp.
70154
70155 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         * MODULES.html.sh (Support for building libraries and executables):
70158         Add elisp-comp.
70159         * build-aux/elisp-comp: New file.
70160         * modules/elisp-comp: New file.
70161
70162 2006-08-24  Bruno Haible  <bruno@clisp.org>
70163
70164         * gnulib-tool (func_create_testdir): Use non-default values of
70165         sourcebase and m4base.
70166
70167 2006-08-24  Bruno Haible  <bruno@clisp.org>
70168
70169         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70170         HTML structure.
70171
70172 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70173
70174         * modules/openat (Depends-on): Add lchown.
70175
70176 2006-08-23  Bruno Haible  <bruno@clisp.org>
70177
70178         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70179         of gl_LOCK_EARLY instead of gl_LOCK.
70180
70181 2006-08-23  Bruno Haible  <bruno@clisp.org>
70182
70183         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70184         on OSF/1 to no.
70185         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70186
70187 2006-08-23  Bruno Haible  <bruno@clisp.org>
70188
70189         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70190         as unusable.
70191
70192         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70193         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70194         (gl_LOCK): New macro.
70195
70196 2006-08-22  Simon Josefsson  <jas@extundo.com>
70197
70198         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70199         to md5 module.
70200
70201 2006-08-22  Simon Josefsson  <jas@extundo.com>
70202
70203         * MODULES.html.sh: Add "Support for maintaining and release
70204         projects".
70205
70206         * build-aux/gnupload: New file, from coreutils.
70207
70208 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70209
70210         Avoid the need for AC_LIBSOURCES in m4 macros.
70211         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70212         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70213         * modules/check-version (EXTRA_DIST): Add check-version.h.
70214         * modules/crc (EXTRA_DIST): Add crc.h.
70215         * modules/des (EXTRA_DIST): Add des.h.
70216         * modules/gc (EXTRA_DIST): Add gc.h.
70217         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70218         * modules/getline (EXTRA_DIST): Add getline.h.
70219         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70220         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70221         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70222         * modules/md2 (EXTRA_DIST): Add md2.h.
70223         * modules/md4 (EXTRA_DIST): Add md4.h.
70224         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70225         * modules/read-file (EXTRA_DIST): Add read-file.h.
70226         * modules/readline (EXTRA_DIST): Add readline.h.
70227         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70228         rijndael-api-fst.h.
70229
70230 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70231
70232         * m4/rijndael.m4 (gl_ARCFOUR):
70233         * m4/arctwo.m4 (gl_ARCTWO):
70234         * m4/check-version.m4 (gl_CHECK_VERSION):
70235         * m4/crc.m4 (gl_CRC):
70236         * m4/des.m4 (gl_DES):
70237         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70238         * m4/gc.m4 (gl_GC):
70239         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70240         * m4/getline.m4 (gl_FUNC_GETLINE):
70241         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70242         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70243         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70244         * m4/md2.m4 (gl_MD2):
70245         * m4/md4.m4 (gl_MD4):
70246         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70247         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70248         * m4/readline.m4 (gl_FUNC_READLINE):
70249         * m4/rijndael.m4 (gl_RIJNDAEL):
70250         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70251         to get the necessary .h files and whatnot.
70252
70253 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70254
70255         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70256         gnulib rather than the other way around.
70257         * config/srclistvars.sh (COREUTILS): Remove.
70258
70259 2006-08-22  Jim Meyering  <jim@meyering.net>
70260
70261         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70262
70263         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70264
70265 2006-08-22  Eric Blake  <ebb9@byu.net>
70266
70267         * modules/regexprops-generic: New file.
70268         * MODULES.html.sh (Support for building documentation): List it.
70269
70270 2006-08-22  Eric Blake  <ebb9@byu.net>
70271
70272         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70273         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70275         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70276
70277 2006-08-22  Bruno Haible  <bruno@clisp.org>
70278
70279         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70280         and lib_LTLIBRARIES like the other lib_* variables.
70281
70282 2006-08-22  Bruno Haible  <bruno@clisp.org>
70283
70284         * build-aux/x-to-1.in: New file, from GNU gettext.
70285
70286 2006-08-22  Bruno Haible  <bruno@clisp.org>
70287
70288         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70289         <utmpx.h> exists.
70290
70291 2006-08-22  Bruno Haible  <bruno@clisp.org>
70292
70293         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70294         <utmpx.h> exists.
70295
70296 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70297
70298         BeOS portability.
70299         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70300         exist.
70301         Problem reported by Bruno Haible.
70302
70303 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         Avoid the need for AC_LIBSOURCES in m4 macros.
70306         * modules/acl (EXTRA_DIST): Add acl.h.
70307         * modules/argmatch (Files): Add m4/argmatch.m4.
70308         (configure.ac): Add gl_ARGMATCH.
70309         (EXTRA_DIST): Renamed from lib_SOURCES, for
70310         consistency with the other modules.  Remove argmatch.c.
70311         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70312         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70313         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70314         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70315         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70316         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70317         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70318         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70319         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70320         * modules/closeout (EXTRA_DIST): Add closeout.h.
70321         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70322         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70323         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70324         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70325         dirname.h; remove basename.c and stripslash.c.
70326         * modules/exclude (EXTRA_DIST): Add exclude.h.
70327         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70328         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70329         * modules/file-type (EXTRA_DIST): Add file-type.h.
70330         * modules/filemode (EXTRA_DIST): Add filemode.h.
70331         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70332         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70333         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70334         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70335         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70336         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70337         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70338         * modules/getdate (EXTRA_DIST): Add getdate.c.
70339         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70340         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70341         * modules/getpass (EXTRA_DIST): Add getpass.h.
70342         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70343         * modules/group-member (EXTRA_DIST): Add group-member.h.
70344         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70345         * modules/hash (EXTRA_DIST): Add hash.h.
70346         * modules/human (EXTRA_DIST): Add human.h.
70347         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70348         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70349         * modules/lchown (EXTRA_DIST): Add lchown.h.
70350         * modules/long-options (EXTRA_DIST): Add long-options.h.
70351         * modules/lstat (EXTRA_DIST): Add lstat.h.
70352         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70353         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70354         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70355         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70356         * modules/memxor (EXTRA_DIST): Add memxor.h.
70357         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70358         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70359         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70360         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70361         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70362         * modules/physmem (EXTRA_DIST): Add physmem.h.
70363         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70364         * modules/posixver (EXTRA_DIST): Add posixver.h.
70365         * modules/quote (EXTRA_DIST): Add quote.h.
70366         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70367         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70368         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70369         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70370         regex_internal.h regexec.c.
70371         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70372         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70373         * modules/same (EXTRA_DIST): Add same.h.
70374         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70375         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70376         * modules/savedir (EXTRA_DIST): Add savedir.h.
70377         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70378         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70379         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70380         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70381         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70382         * modules/strdup (EXTRA_DIST): Add strdup.h.
70383         * modules/strftime (EXTRA_DIST): Add strftime.h.
70384         * modules/strndup (EXTRA_DIST): Add strndup.h.
70385         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70386         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70387         * modules/time_r (EXTRA_DIST): Add time_r.h.
70388         * modules/timespec (EXTRA_DIST): Add timespec.h.
70389         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70390         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70391         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70392         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70393         * modules/userspec (EXTRA_DIST): Add userspec.h.
70394         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70395         * modules/utimens (EXTRA_DIST): Add utimens.h.
70396         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70397         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70398         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70399         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70400         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70401         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70402         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70403         * modules/yesno (EXTRA_DIST): Add yesno.h.
70404
70405 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70406
70407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70408
70409         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70410         * m4/dev-ino.m4, same-inode.m4: Remove.
70411
70412         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70413         * m4/acl.m4 (AC_FUNC_ACL):
70414         * m4/backupfile.m4 (gl_BACKUPFILE):
70415         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70416         * m4/canon-host.m4 (gl_CANON_HOST):
70417         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70418         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70419         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70420         * m4/cloexec.m4 (gl_CLOEXEC):
70421         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70422         * m4/closeout.m4 (gl_CLOSEOUT):
70423         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70424         * m4/dirname.m4 (gl_DIRNAME):
70425         * m4/exclude.m4 (gl_EXCLUDE):
70426         * m4/exitfail.m4 (gl_EXITFAIL):
70427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70428         * m4/file-type.m4 (gl_FILE_TYPE):
70429         * m4/filemode.m4 (gl_FILEMODE):
70430         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70431         * m4/fpending.m4 (gl_FUNC_FPENDING):
70432         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70433         * m4/fts.m4 (gl_FUNC_FTS):
70434         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70435         * m4/getdate.m4 (gl_GETDATE):
70436         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70437         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70438         * m4/getpass.m4 (gl_FUNC_GETPASS):
70439         * m4/gettime.m4 (gl_GETTIME):
70440         * m4/getugroups.m4 (gl_GETUGROUPS):
70441         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70442         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70443         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70444         * m4/hash.m4 (gl_HASH):
70445         * m4/idcache.m4 (gl_IDCACHE):
70446         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70447         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70448         * m4/long-options.m4 (gl_LONG_OPTIONS):
70449         * m4/lstat.m4 (gl_FUNC_LSTAT):
70450         * m4/md5.m4 (gl_MD5):
70451         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70452         * m4/memcoll.m4 (gl_MEMCOLL):
70453         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70454         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70455         * m4/memxor.m4 (gl_MEMXOR):
70456         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70457         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70458         * m4/modechange.m4 (gl_MODECHANGE):
70459         * m4/mountlist.m4 (gl_MOUNTLIST):
70460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70461         * m4/openat.m4 (gl_FUNC_OPENAT):
70462         * m4/pathmax.m4 (gl_PATHMAX):
70463         * m4/physmem.m4 (gl_PHYSMEM):
70464         * m4/posixtm.m4 (gl_POSIXTM):
70465         * m4/posixver.m4 (gl_POSIXVER):
70466         * m4/quote.m4 (gl_QUOTE):
70467         * m4/quotearg.m4 (gl_QUOTEARG):
70468         * m4/readtokens.m4 (gl_READTOKENS):
70469         * m4/readutmp.m4 (gl_READUTMP):
70470         * m4/regex.m4 (gl_REGEX):
70471         * m4/safe-read.m4 (gl_SAFE_READ):
70472         * m4/safe-write.m4 (gl_SAFE_WRITE):
70473         * m4/same.m4 (gl_SAME):
70474         * m4/save-cwd.m4 (gl_SAVE_CWD):
70475         * m4/savedir.m4 (gl_SAVEDIR):
70476         * m4/settime.m4 (gl_SETTIME):
70477         * m4/sha1.m4 (gl_SHA1):
70478         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70479         * m4/stat-macros.m4 (gl_STAT_MACROS):
70480         * m4/stat-time.m4 (gl_STAT_TIME):
70481         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70482         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70483         * m4/strdup.m4 (gl_FUNC_STRDUP):
70484         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70485         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70486         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70487         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70488         * m4/time_r.m4 (gl_TIME_R):
70489         * m4/timespec.m4 (gl_TIMESPEC):
70490         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70491         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70492         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70493         * m4/userspec.m4 (gl_USERSPEC):
70494         * m4/utimecmp.m4 (gl_UTIMECMP):
70495         * m4/utimens.m4 (gl_UTIMENS):
70496         * m4/xalloc.m4 (gl_XALLOC):
70497         * m4/xgetcwd.m4 (gl_XGETCWD):
70498         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70499         * m4/xreadlink.m4 (gl_XREADLINK):
70500         * m4/xstrtod.m4 (gl_XSTRTOD):
70501         * m4/yesno.m4 (gl_YESNO):
70502         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70503         to get the necessary .h files and whatnot.
70504
70505 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70506             Bruno Haible  <bruno@clisp.org>
70507
70508         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70509         /bin/sh understanding of '!' conditional negation.
70510
70511 2006-08-21  Jim Meyering  <jim@meyering.net>
70512
70513         * modules/openat (Depends-on): Really alphabetize.
70514
70515         * modules/acl (Depends-on): Add error and quote.
70516
70517         * check-module (find_included_lib_files): Add at-func.c to the
70518         ok-to-include-more-than-once white list.
70519
70520         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70521
70522 2006-08-21  Bruno Haible  <bruno@clisp.org>
70523
70524         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70525         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70526         Reported by Martin Lambers <marlam@marlam.de>.
70527
70528 2006-08-21  Bruno Haible  <bruno@clisp.org>
70529
70530         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70531         specify an installation location, don't emit a noinst_LIBRARIES or
70532         noinst_LTLIBRARIES assignment.
70533
70534 2006-08-21  Bruno Haible  <bruno@clisp.org>
70535
70536         BeOS portability.
70537         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70538         BeOS has mbrtowc() but no <wctype.h>.
70539
70540 2006-08-21  Bruno Haible  <bruno@clisp.org>
70541
70542         BeOS portability.
70543         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70544         exist.
70545
70546 2006-08-21  Bruno Haible  <bruno@clisp.org>
70547
70548         BeOS portability.
70549         * lib/mbchar.h: Include <wctype.h> only if it exists.
70550
70551 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70552
70553         Remove files that are no longer needed by their respective modules.
70554         * m4/obstack.m4: Remove.
70555         * m4/strerror_r.m4: Remove.
70556         * m4/uint32_t.m4: Remove.
70557         * m4/uintptr_t.m4: Remove.
70558         * m4/ullong_max.m4: Remove.
70559         * m4/xstrtoimax.m4: Remove.
70560         * m4/xstrtoumax.m4: Remove.
70561
70562         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70563         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70564         dependencies now capture this.
70565
70566         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70567         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70568         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70569         * m4/human.m4 (gl_HUMAN): Likewise.
70570         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70571         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70572
70573         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70574
70575         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70576         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70577         stdint.
70578         * m4/human.m4 (gl_HUMAN): Likewise.
70579         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70580         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70581         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70582         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70583         * m4/xstrtol (gl_XSTRTOL): Likewise.
70584
70585         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70586         AC_TYPE_LONG_LONG_INT.
70587         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70588         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70589         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70590         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70591
70592         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70593         on stdbool.
70594
70595         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70596         (gl_PREREQ_XSTRTOUL): Remove.
70597
70598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70599
70600         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70601         mode.
70602
70603 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         Add and change modules to make it easier for coreutils to use
70606         gnulib-tool.
70607         * modules/backupfile (Files): Remove m4/d-ino.m4.
70608         (Depends-on): Add d-ino.
70609         * modules/cycle-check (Depends-on): Add stdint.
70610         (lib_SOURCES): Add cycle-check.h.
70611         * modules/d-ino: New module.
70612         * modules/d-type: New module.
70613         * modules/error (Files): Remove m4/strerror_r.m4.
70614         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70615         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70616         m4/inttypes_h.m4, m4/uintmax_t.m4.
70617         (Depends-on): Add stdint.
70618         (lib_SOURCES): Add fsusage.h.
70619         * modules/getcwd (Files): Remove d-ino.m4.
70620         (Depends-on): Add d-ino.
70621         * modules/getndelim2 (Depends-on): Add stdint.
70622         * modules/glob (Files): Remove m4/d-type.m4.
70623         (Depends-on): Add d-type.
70624         * modules/host-os: New module.
70625         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70626         m4/inttypes_h.m4, m4/uintmax_t.m4.
70627         * Depends-on: Add stdint.
70628         (lib_SOURCES): Add human.h.
70629         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70630         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70631         m4/uintmax_t.m4, m4/ulonglong.m4.
70632         (Depends-on): Add stdint.
70633         (EXTRA_DIST): Add inttostr.h.
70634         * modules/lchmod: New module.
70635         * modules/link-follow: New module.
70636         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70637         (Depends-on): Add lchmod.
70638         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70639         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70640         (Depends-on): Add stdint.
70641         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70642         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70643         (Depends-on): Add stdint.
70644         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70645         * modules/perl: New module.
70646         * modules/regex (Depends-on): Add stdint.
70647         * modules/rmdir-errno: New module.
70648         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70649         m4/intmax_t.m4.
70650         (Depends-on): Add stdint.
70651         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70652         m4/uintmax_t.m4.
70653         (Depends-on): Add stdint.
70654         * modules/unlink-busy: New module.
70655         * modules/utimecmp (Depends-on): Add stdint.
70656         * modules/uptime: New module.
70657         * modules/winsz-ioctl: New module.
70658         * modules/winsz-termios: New module.
70659         * modules/xnanosleep (Depends-on): Add nanosleep.
70660         * modules/ullong_max: Remove.
70661         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70662         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70663         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70664         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70665         (Depends-on): Add inttypes.
70666         (lib_SOURCES): Add xstrtol.h.
70667         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70668         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70669         * MODULES.html.sh: Move 'assert' into the assert section.
70670         Move 'dummy' into the linking section.
70671         Remove ullong_max.
70672         Add section for compatibility checks for POSIX:2001 functions,
70673         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70674         winsz-ioctl, and winsz-termios into it.
70675         Add lchmod.
70676         Add top-level Misc section and put host-os, perl, and uptime
70677         into it.
70678
70679 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70682         now assume the stdint module.  Do not include inttypes.h.
70683         * lib/fsusage.h: Likewise.
70684         * lib/getndelim2.c: Likewise.
70685         * lib/human.h: Likewise.
70686         * lib/inttostr.h: Likewise.
70687         * lib/obstack.c: Likewise.
70688         * lib/regex_internal.h: Likewise.
70689         * lib/tempname.c: Likewise.
70690         * lib/utimecmp.c: Likewise.
70691         * lib/xstrtol.h: Likewise.
70692
70693         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70694
70695         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70696         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70697         * lib/xtime.h: Likewise.
70698
70699 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * modules/openat (Files): Add lib/fchmodat.c.
70702         Fixes problem reported by Jay Youngman.
70703
70704 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70707         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70708
70709 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70710             Bruno Haible  <bruno@clisp.org>
70711
70712         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70713         and is a script that invokes bison. Tighten the code. Add comments.
70714
70715 2006-08-18  Jim Meyering  <jim@meyering.net>
70716
70717         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70718         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70719         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70720         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70721
70722 2006-08-18  Bruno Haible  <bruno@clisp.org>
70723
70724         * modules/bison-i18n: New file.
70725         * MODULES.html.sh (Internationalization functions): Add it.
70726
70727 2006-08-18  Bruno Haible  <bruno@clisp.org>
70728
70729         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70730         sys/statvfs.h. When getmntinfo was found, check its declaration and
70731         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70732
70733 2006-08-18  Bruno Haible  <bruno@clisp.org>
70734
70735         * m4/bison-i18n.m4: New file, from bison.
70736
70737 2006-08-18  Bruno Haible  <bruno@clisp.org>
70738
70739         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70740         (ME_DUMMY): Treat "kernfs" as a dummy.
70741         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70742
70743 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         Update from coreutils.
70746
70747         2006-08-15  Jim Meyering  <jim@meyering.net>
70748
70749         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70750
70751         2006-01-17  Jim Meyering  <jim@meyering.net>
70752
70753         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70754
70755         2006-01-11  Jim Meyering  <jim@meyering.net>
70756
70757         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70758         Check for the lchmod function.
70759
70760 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         Update from coreutils.
70763
70764         * lib/__fpending.h: Add copyright notice.
70765         * lib/fprintftime.h: Likewise.
70766         * lib/savedir.c: Use (C) in copyright notice.
70767         * lib/savedir.h: Likewise.
70768
70769         2006-08-15  Jim Meyering  <jim@meyering.net>
70770
70771         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70772         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70773         in support of the EXPECTED_ERRNO macro.
70774         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70775         definitions.  Instead, define the appropriate symbols and include
70776         "at-func.c".
70777         * lib/mkdirat.c (mkdirat): Likewise.
70778         * lib/fchmodat.c (fchmodat): Likewise.
70779         (ENOSYS): Remove definition.
70780         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70781         it.  Don't include "unistd--.h" -- it wasn't ever used.
70782
70783         2006-01-17  Jim Meyering  <jim@meyering.net>
70784
70785         Rewrite fts.c not to change the current working directory,
70786         by using openat, fstatat, fdopendir, etc..
70787
70788         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70789         (HAVE_OPENAT_SUPPORT): Define.
70790         [_LIBC] (fchdir): Don't undef or define; no longer used.
70791         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70792         Now, this `function' always succeeds, and consumes its file descriptor
70793         parameter -- so callers must not close such FDs.  Update callers.
70794         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70795         (diropen): Add parameter, SP.  Adjust all callers.
70796         Implement using diropen_fd, rather than open.
70797         (fts_open): Initialize new member, fts_cwd_fd.
70798         Remove fts_rft-setting code.
70799         (fts_close): Close fts_cwd_fd, if necessary.
70800         (__opendir2): Define in terms of opendir or opendirat,
70801         depending on whether the FST_NOCHDIR flag is set.
70802         (fts_build): Since fts_safe_changedir consumes its FD, and since
70803         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70804         and close the dup'd file descriptor upon failure.
70805         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70806         (fts_safe_changedir): Tweak semantics to reflect that this function
70807         now calls cwd_advance_fd and hence consumes its FD argument.
70808         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70809         [struct FTS] (fts_rft): Remove now-unused member.
70810         [struct FTS] (fts_cycle.state): Improve comment.
70811
70812         * lib/openat.c (openat_needs_fchdir): New function.
70813         * lib/openat.h (openat_needs_fchdir): Declare it.
70814
70815 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70818         Problem and fix reported by Pádraig Brady in
70819         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70820
70821 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70824
70825 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * lib/memcoll.c (memcoll): Optimize for the common case where the
70828         arguments are bytewise equal.
70829
70830 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         * doc/regexprops-generic.texi: Add a copyright notice.
70833
70834 2006-08-15  Bruno Haible  <bruno@clisp.org>
70835
70836         * modules/tmpdir (License): Change to LGPL.
70837
70838 2006-08-15  Bruno Haible  <bruno@clisp.org>
70839
70840         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70841         module.
70842
70843 2006-08-14  Simon Josefsson  <jas@extundo.com>
70844
70845         * config/srclist.txt: Add gnupload.
70846
70847 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70848
70849         Change copyright notice from LGPL 2 to GPL 2, since that's the
70850         standard form used in the gnulib repository.
70851         * tests/test-lock.c: Likewise.
70852         * tests/test-stdint.c: Likewise.
70853         * tests/test-tls.c: Likewise.
70854
70855         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70856         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70857         Add copyright notice.
70858
70859         * check-module: Add copyright notice.  Output a copyright
70860         notice if "--version" is specified.
70861         * modules/COPYING: New file.
70862         * tests/test-getaddrinfo.c: Add copyright notice.
70863         * tests/test-verify.c: Likewise.
70864
70865 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         Change copyright notice from LGPL 2 to GPL 2, since that's the
70868         standard form used in the gnulib repository.
70869         * lib/lock.c: LGPL -> GPL.
70870         * lib/lock.h: Likewise.
70871         * lib/strnlen1.c: Likewise.
70872         * lib/strnlen1.h: Likewise.
70873         * lib/tls.c: Likewise.
70874         * lib/tls.h: Likewise.
70875         * lib/tmpdir.c: Likewise.
70876
70877         * lib/TODO: Remove; this belongs only in coreutils.
70878
70879 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         Add copyright notices to long-enough files that lack them, since
70882         otherwise the files aren't clearly free.  Use the same notice that
70883         getdate.texi already uses.
70884         * doc/alloca-opt.texi: Add copyright notice.
70885         * doc/alloca.texi: Likewise.
70886         * doc/ctime.texi: Likewise.
70887         * doc/functions.texi: Likewise.
70888         * doc/gcd.texi: Likewise.
70889         * doc/gnulib-tool.texi: Likewise.
70890         * doc/inet_ntoa.texi: Likewise.
70891         * doc/visibility.texi: Likewise.
70892
70893         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70894         * doc/quote.texi: Add copyright notice.
70895
70896         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70897         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70898         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70899         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70900         is now obsolete, and give a pointer to the Sun list.
70901         Add copyright notice.
70902
70903 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * config/srclistvars.sh: Add copyright notice.
70906
70907 2006-08-14  Eric Blake  <ebb9@byu.net>
70908
70909         Import the following change from libc:
70910
70911         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70912
70913         Upstream bug 2997.
70914         * lib/misc/error.c: Add space between program name and message if file
70915         name is missing.
70916
70917 2006-08-12  Karl Berry  <karl@gnu.org>
70918
70919         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70920         remove, these originate in gnulib now.
70921
70922 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70923
70924         * doc/Makefile (standards.info standards.html standards.dvi):
70925         Also depend on make-stds.texi.
70926
70927 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70930         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70931
70932         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70933         in wchar_t.  Problem reported by Eric Blake.
70934
70935         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70936         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70937         Also, help the compiler to keep LEN in a register.
70938
70939 2006-08-11  Eric Blake  <ebb9@byu.net>
70940
70941         * users.txt: Sort.  Add tar.
70942
70943 2006-08-11  Bruno Haible  <bruno@clisp.org>
70944
70945         * users.txt: New file.
70946
70947 2006-08-11  Bruno Haible  <bruno@clisp.org>
70948
70949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70950         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70951
70952 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70953
70954         * modules/snprintf (Depends-on): Remove minmax.
70955         (Maintainer): Add self and Bruno.
70956
70957 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70958
70959         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70960         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70961         (EOVERFLOW): Define if the system does not.
70962         Do not include "minmax.h"; it wasn't used.
70963         (snprintf): Don't assume size_t promotes to an unsigned type.
70964         Fix bug when generated string was too long for the buffer: the
70965         buffer's contents are supposed to be the initial prefix of the
70966         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70967         exceeds INT_MAX; do the check ourselves.
70968
70969         Import the following changes from libc:
70970
70971         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70972
70973         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70974         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70975         set wc to the byte which couldn't be converted.
70976         (re_string_reconstruct): Don't clear valid_raw_len before calling
70977         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70978         tip_context using re_string_context_at.
70979
70980         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70981
70982         * lib/posix/regex.h: g++ still cannot handled [restrict].
70983
70984         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70985
70986         * lib/posix/regex.h: Remove special handling for VMS.
70987
70988 2006-08-10  Jim Meyering  <jim@meyering.net>
70989
70990         * modules/same-inode: New module.
70991         * modules/dev-ino: New module.
70992         * modules/cycle-check: Depend on these modules, rather than simply
70993         including their .h files.
70994         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70995         required via m4/cycle-check.m4.
70996         * modules/same: Depend on new same-inode module, rather than
70997         including same-inode.h.
70998         * modules/chdir-safer: New file.
70999
71000         * modules/chown (Depends-on): Add stat-macros.
71001
71002 2006-08-10  Jim Meyering  <jim@meyering.net>
71003
71004         * m4/cycle-check.m4: New file.
71005         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71006         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71007
71008 2006-08-10  Eric Blake  <ebb9@byu.net>
71009
71010         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71011         in from original proposal.
71012
71013 2006-08-10  Eric Blake  <ebb9@byu.net>
71014         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71015
71016         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71017         namespace.
71018
71019 2006-08-10  Bruno Haible  <bruno@clisp.org>
71020
71021         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71022         as well.
71023
71024 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         Sync from coreutils.
71027
71028         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71029
71030         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71031         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71032
71033 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71034
71035         * modules/restrict: Remove; no longer needed now that we assume
71036         Autoconf 2.59 or later.
71037         * MODULES.html.sh: Remove 'restrict'.
71038         * modules/argp (Depends-on): Remove 'restrict'.
71039         * modules/base64 (Depends-on): Likewise.
71040         * modules/gc (Depends-on): Likewise.
71041         * modules/getaddrinfo (Depends-on): Likewise.
71042         * modules/glob (Depends-on): Likewise.
71043         * modules/inet_ntop (Depends-on): Likewise.
71044         * modules/inet_pton (Depends-on): Likewise.
71045         * modules/memxor (Depends-on): Likewise.
71046         * modules/regex (Depends-on): Likewise.
71047         * modules/strtok_r (Depends-on): Likewise.
71048         * modules/time_r (Depends-on): Likewise.
71049
71050 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71053         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71054         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71055         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71056         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71057         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71058         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71059         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71060
71061         Merge from coreutils.
71062         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71063         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71064         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71065         * m4/time_r.m4 (gl_TIME_R): Likewise.
71066
71067 2006-08-09  Karl Berry  <karl@gnu.org>
71068
71069         * config/srclist.txt: no more gettext-tools, per Bruno.
71070
71071 2006-08-08  Eric Blake  <ebb9@byu.net>
71072
71073         * modules/verror: New module.
71074         * MODULES.html.sh: Document it.
71075
71076 2006-08-08  Eric Blake  <ebb9@byu.net>
71077
71078         * lib/verror.h, lib/verror.c: New files.
71079
71080 2006-08-08  Eric Blake  <ebb9@byu.net>
71081
71082         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71083         verror_at_line output complies with GNU Coding Standards even when
71084         file is NULL.
71085
71086 2006-08-07  Bruno Haible  <bruno@clisp.org>
71087
71088         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71089         versions of AIX.
71090         Reported by Ralf Wildenhues.
71091
71092 2006-08-07  Bruno Haible  <bruno@clisp.org>
71093
71094         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71095         in an AC_DEFUN. Needed so that the autoconf snippets can use
71096         AC_REQUIRE.
71097
71098 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71099
71100         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71101         Initialize pkgdata_DATA.
71102         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71103         overriding it.
71104
71105 2006-08-06  Eric Blake  <ebb9@byu.net>
71106
71107         * lib/error.h: Fold in some upstream changes from glibc.
71108         * lib/error.c: Likewise.
71109
71110 2006-08-04  Bruno Haible  <bruno@clisp.org>
71111
71112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71113         Make the mostlyclean-local rule depend on mostlyclean-generic.
71114         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71115
71116 2006-07-31  Bruno Haible  <bruno@clisp.org>
71117
71118         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71119         <stdlib.h>, <string.h>.
71120
71121 2006-07-30  Bruno Haible  <bruno@clisp.org>
71122
71123         * modules/readlink (License): Change to LGPL.
71124
71125 2006-07-30  Bruno Haible  <bruno@clisp.org>
71126
71127         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71128         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71129         set PKGDATADIR to point to it.
71130
71131 2006-07-30  Bruno Haible  <bruno@clisp.org>
71132
71133         * modules/csharpexec (configure.ac): Comment out macro invocation.
71134         * modules/javaexec (configure.ac): Likewise.
71135         * modules/javacomp-script (configure.ac): Likewise.
71136
71137         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71138
71139 2006-07-30  Bruno Haible  <bruno@clisp.org>
71140
71141         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71142         linked-list.
71143
71144 2006-07-30  Bruno Haible  <bruno@clisp.org>
71145
71146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71147
71148 2006-07-30  Bruno Haible  <bruno@clisp.org>
71149
71150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71151         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71152         get removed.
71153
71154 2006-07-29  Bruno Haible  <bruno@clisp.org>
71155
71156         Make it possible for gnulib-tool to work with locally modified or
71157         augmented gnulib repositories.
71158         * gnulib-tool (func_usage): Document --local-dir option.
71159         (local_gnulib_dir): New variable.
71160         Handle --local-dir option.
71161         (func_lookup_file): New function.
71162         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71163         (func_get_description, func_get_filelist, func_get_description,
71164         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71165         func_get_automake_snippet, func_get_include_directive,
71166         func_get_license, func_get_maintainer): Use func_lookup_file.
71167         (func_import, func_create_testdir): Use func_lookup_file.
71168
71169 2006-07-29  Bruno Haible  <bruno@clisp.org>
71170
71171         * modules/setenv (Depends-on): Add unistd.
71172
71173 2006-07-29  Bruno Haible  <bruno@clisp.org>
71174
71175         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71176
71177 2006-07-29  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71180
71181 2006-07-29  Bruno Haible  <bruno@clisp.org>
71182
71183         * gnulib-tool (import, update): If there is no Makefile.am, look at
71184         aclocal.m4, instead of bailing out.
71185
71186 2006-07-29  Bruno Haible  <bruno@clisp.org>
71187
71188         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71189         Categorize the options by when they are useful.
71190
71191 2006-07-29  Bruno Haible  <bruno@clisp.org>
71192
71193         * gnulib-tool (func_usage): Document option --no-libtool.
71194         Handle option --no-libtool.
71195         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71196         for changed semantics of $libtool variable.
71197         (func_import): Likewise. If libtool is not used, show this through
71198         an option --no-libtool.
71199         (func_create_testdir): Update.
71200
71201 2006-07-29  Bruno Haible  <bruno@clisp.org>
71202
71203         * gnulib-tool (func_import): Extend error message about missing
71204         --doc-base.
71205
71206 2006-07-29  Bruno Haible  <bruno@clisp.org>
71207
71208         * gnulib-tool (func_import): Don't create the $docbase directory if
71209         there is no file to store there.
71210
71211 2006-07-29  Bruno Haible  <bruno@clisp.org>
71212
71213         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71214         relevant, look for configure.ac there, not in the current directory.
71215         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71216
71217 2006-07-29  Bruno Haible  <bruno@clisp.org>
71218
71219         * gnulib-tool (SORT): New variable.
71220         (func_usage): Undocument --assume-autoconf option.
71221         Remove --assume-autoconf option handling.
71222         (autoconf_minversion): Determine from the contents of configure.ac.
71223         (func_import): Remove autoconf_minversion handling.
71224         Suggested by Eric Blake.
71225
71226 2006-07-29  Bruno Haible  <bruno@clisp.org>
71227
71228         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71229
71230 2006-07-29  Bruno Haible  <bruno@clisp.org>
71231
71232         * config/srclist.txt (*setenv.[ch]): Remove rules.
71233
71234 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71235
71236         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71237
71238 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71239
71240         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71241         arpa/inet.h.
71242
71243 2006-07-28  Simon Josefsson  <jas@extundo.com>
71244
71245         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71246         * modules/inet_pton (Depends-on): Likewise.
71247
71248 2006-07-28  Simon Josefsson  <jas@extundo.com>
71249
71250         * m4/netinet_in_h.m4: New file.
71251
71252 2006-07-28  Simon Josefsson  <jas@extundo.com>
71253
71254         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71255         #include's.
71256
71257 2006-07-28  Simon Josefsson  <jas@extundo.com>
71258
71259         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71260         #include's.
71261
71262 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71265         setgid on directories only if they set these bits.
71266         * lib/modechange.h: Remove obsolete comment about masks.
71267
71268 2006-07-28  Eric Blake  <ebb9@byu.net>
71269
71270         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71271         macro expansion.
71272
71273 2006-07-28  Bruno Haible  <bruno@clisp.org>
71274
71275         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71276
71277 2006-07-28  Bruno Haible  <bruno@clisp.org>
71278
71279         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71280
71281 2006-07-28  Bruno Haible  <bruno@clisp.org>
71282
71283         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71284         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71285         Define fallbacks.
71286         Avoids link error on FreeBSD 4.x.
71287         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71288
71289         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71290         encoding.
71291         * lib/mbswidth.c (iswcntrl): Likewise.
71292
71293 2006-07-27  Bruno Haible  <bruno@clisp.org>
71294
71295         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71296         test.
71297
71298 2006-07-27  Bruno Haible  <bruno@clisp.org>
71299
71300         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71301         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71302         defined.
71303
71304 2006-07-26  Eric Blake  <ebb9@byu.net>
71305
71306         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71307
71308 2006-07-26  Eric Blake  <ebb9@byu.net>
71309
71310         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71311         like mingw that lack mkstemp.
71312         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71313         avoid compilation warning on mingw.
71314
71315 2006-07-26  Bruno Haible  <bruno@clisp.org>
71316
71317         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71318         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71319         INT_FAST*_MIN, INTPTR_MIN.
71320
71321 2006-07-25  Bruno Haible  <bruno@clisp.org>
71322
71323         * modules/version-etc (Depends-on): Add stdarg.
71324
71325 2006-07-25  Bruno Haible  <bruno@clisp.org>
71326
71327         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71328         complex commands.
71329
71330 2006-07-25  Bruno Haible  <bruno@clisp.org>
71331
71332         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71333         defined in <stdarg.h> or config.h.
71334
71335 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71336
71337         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71338         (gl_STDIO_SAFER): Remove.
71339
71340 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         * MODULES.html.sh (File stream based Input/Output):
71343         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71344         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71345         * modules/fopen-safer, modules/tmpfile-safer: New files.
71346         * modules/stdio-safer: Remove.
71347
71348 2006-07-24  Bruno Haible  <bruno@clisp.org>
71349
71350         * modules/tmpdir: New file.
71351         * MODULES.html.sh (File system functions): Add it.
71352
71353 2006-07-24  Bruno Haible  <bruno@clisp.org>
71354
71355         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71356         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71357
71358 2006-07-24  Bruno Haible  <bruno@clisp.org>
71359
71360         * modules/clean-temp: New file.
71361
71362 2006-07-24  Bruno Haible  <bruno@clisp.org>
71363
71364         * m4/tmpdir.m4: New file, from GNU gettext.
71365
71366 2006-07-24  Bruno Haible  <bruno@clisp.org>
71367
71368         * lib/tmpdir.h: New file, from GNU gettext.
71369         * lib/tmpdir.c: New file, from GNU gettext.
71370
71371 2006-07-24  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/clean-temp.h: New file, from GNU gettext.
71374         * lib/clean-temp.c: New file, from GNU gettext.
71375
71376 2006-07-23  Eric Blake  <ebb9@byu.net>
71377
71378         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71379         (Depends-on): Add binary-io.
71380
71381 2006-07-23  Eric Blake  <ebb9@byu.net>
71382
71383         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71384
71385 2006-07-23  Eric Blake  <ebb9@byu.net>
71386
71387         * lib/tmpfile-safer.c: New file.
71388         * lib/stdio-safer.h (fopen_safer): Add prototype.
71389         * lib/stdio--.h (tmpfile): Make safer.
71390
71391 2006-07-23  Bruno Haible  <bruno@clisp.org>
71392
71393         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71394         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71395         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71396         gl_linked_remove_at): Use it.
71397
71398 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71399         and Simon Josefsson <jas@extundo.com>
71400
71401         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71402
71403         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71404
71405 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * modules/close-stream: New file.
71408         * modules/closeout (Description): Make it clear that it exits
71409         with a diagnostic on error.
71410         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71411         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71412
71413 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * m4/close-stream.m4: New file.
71416
71417 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * lib/close-stream.c, lib/close-stream.h: New files.
71420
71421 2006-07-22  Bruno Haible  <bruno@clisp.org>
71422
71423         Merge from GNU gettext 0.15.
71424
71425         2006-05-01  Bruno Haible  <bruno@clisp.org>
71426
71427                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71428
71429         2006-07-22  Bruno Haible  <bruno@clisp.org>
71430
71431                 * modules/javaversion: New file.
71432                 * MODULES.html.sh (Java): Add javaversion.
71433
71434         2006-03-12  Bruno Haible  <bruno@clisp.org>
71435
71436                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71437
71438         2005-12-04  Bruno Haible  <bruno@clisp.org>
71439
71440                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71441                 (untested).
71442
71443         2006-06-21  Bruno Haible  <bruno@clisp.org>
71444
71445                 Avoid warnings from recent versions of mcs.
71446                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71447                 -o, -L, -r any more. Use options documented since mcs-1.0
71448                 instead. Similarly for -g.
71449
71450         2005-12-04  Bruno Haible  <bruno@clisp.org>
71451
71452                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71453                 .resources, not .resource.
71454
71455         2005-07-09  Bruno Haible  <bruno@clisp.org>
71456
71457                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71458                 add a .dll suffix.
71459                 Reported by Mark Junker <mjscod@gmx.de>.
71460
71461         2006-07-22  Bruno Haible  <bruno@clisp.org>
71462
71463                 * modules/gettext: Upgrade to gettext-0.15.
71464                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71465                 m4/visibility.m4.
71466                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71467
71468 2006-07-22  Bruno Haible  <bruno@clisp.org>
71469
71470         Merge from GNU gettext 0.15.
71471
71472         2006-03-25  Bruno Haible  <bruno@clisp.org>
71473
71474                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71475
71476         2006-07-21  Bruno Haible  <bruno@clisp.org>
71477
71478                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71479                 "1.1".
71480
71481         2006-05-09  Bruno Haible  <bruno@clisp.org>
71482
71483                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71484                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71485                 for the conftestver execution.
71486
71487         2006-05-01  Bruno Haible  <bruno@clisp.org>
71488
71489                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71490                 optional target-version argument. Verify that the compiler
71491                 groks source of the specified source-version, or add -source
71492                 option as necessary. Verify that the compiler produces
71493                 bytecode in the specified target-version, or add -target and
71494                 -source options as necessary. Make the result of the test
71495                 available as variable CONF_JAVAC. Also log error output in
71496                 config.log.
71497
71498         2006-03-11  Bruno Haible  <bruno@clisp.org>
71499
71500                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71501
71502         2006-05-09  Bruno Haible  <bruno@clisp.org>
71503
71504                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71505                 CLASSPATH_SEPARATOR to a semicolon.
71506
71507         2006-03-12  Bruno Haible  <bruno@clisp.org>
71508
71509                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71510                 available as variable CONF_JAVA, for subsequent autoconf
71511                 tests. Also log error output in config.log.
71512
71513         2006-07-19  Bruno Haible  <bruno@clisp.org>
71514
71515                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71516                 that getline works on glibc2 systems. Needed to avoid trouble
71517                 in relocatable.c.
71518                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71519
71520         2005-12-04  Bruno Haible  <bruno@clisp.org>
71521
71522                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71523                 launcher (untested).
71524
71525         2005-12-04  Bruno Haible  <bruno@clisp.org>
71526
71527                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71528
71529         2006-07-22  Bruno Haible  <bruno@clisp.org>
71530
71531                 * gettext.m4: Update from GNU gettext-0.15.
71532                 * nls.m4: Likewise.
71533                 * po.m4: Likewise.
71534                 * inttypes-pri.m4: Likewise.
71535                 * inttypes-h.m4: Renamed from inttypes.m4.
71536                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71537
71538 2006-07-22  Bruno Haible  <bruno@clisp.org>
71539
71540         Merge from GNU gettext 0.15.
71541
71542         2005-07-05  Bruno Haible  <bruno@clisp.org>
71543
71544                 * printf-args.c (printf_fetchargs): Work around broken
71545                 definition of wint_t on mingw.
71546
71547         2005-02-12  Bruno Haible  <bruno@clisp.org>
71548
71549                 * xallocsa.h: Add extern "C" for C++.
71550
71551         2006-05-17  Bruno Haible  <bruno@clisp.org>
71552
71553                 Cygwin portability.
71554                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71555
71556         2006-04-30  Bruno Haible  <bruno@clisp.org>
71557
71558                 * progreloc.c: Include <mach-o/dyld.h> if available.
71559                 (find_executable): Use _NSGetExecutablePath when possible.
71560
71561         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71562
71563                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71564                 function.
71565
71566         2005-12-29  Bruno Haible  <bruno@clisp.org>
71567
71568                 * progreloc.c (set_program_name_and_installdir): Fix
71569                 compilation error.
71570
71571         2005-12-04  Bruno Haible  <bruno@clisp.org>
71572
71573                 Cygwin portability.
71574                 * progreloc.c: Include <windows.h> also on Cygwin.
71575                 (find_executable): Add support for Cygwin.
71576                 (set_program_name_and_installdir): Handle also platforms with
71577                 nonempty EXEEXT.
71578
71579         2006-07-11  Bruno Haible  <bruno@clisp.org>
71580
71581                 * javacomp.c: Fix a comment.
71582                 Reported by Jim Meyering.
71583
71584         2006-04-30  Bruno Haible  <bruno@clisp.org>
71585
71586                 * javacomp.h (compile_java_class): Add source_version,
71587                 target_version arguments.
71588                 * javacomp.c: Rewritten to choose only a compiler that
71589                 respects the specified source_version and target_version.
71590
71591         2006-06-27  Bruno Haible  <bruno@clisp.org>
71592
71593                 Assume correct S_ISDIR macro.
71594                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71595
71596         2006-07-22  Bruno Haible  <bruno@clisp.org>
71597
71598                 * javaversion.h: New file, from GNU gettext.
71599                 * javaversion.c: New file, from GNU gettext.
71600                 * javaversion.java: New file, from GNU gettext.
71601                 * javaversion.class: New file, from GNU gettext.
71602
71603         2006-05-17  Bruno Haible  <bruno@clisp.org>
71604
71605                 Cygwin portability.
71606                 * javaexec.c (execute_java_class): Test for jview program
71607                 also on Cygwin.
71608
71609         2006-04-09  Bruno Haible  <bruno@clisp.org>
71610
71611                 * fatal-signal.c: Don't include string.h.
71612                 (at_fatal_signal): Use a copying loop instead of memcpy.
71613
71614         2005-12-04  Bruno Haible  <bruno@clisp.org>
71615
71616                 * csharpexec.c: Add support for 'clix' launcher (untested).
71617                 (execute_csharp_using_sscli): New function.
71618                 (execute_csharp_program): Call it.
71619
71620         2006-06-21  Bruno Haible  <bruno@clisp.org>
71621
71622                 Avoid warnings from recent versions of mcs.
71623                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71624                 -o, -L, -r any more. Use options documented since mcs-1.0
71625                 instead. Similarly for -g.
71626
71627         2005-07-09  Bruno Haible  <bruno@clisp.org>
71628
71629                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71630                 add a .dll suffix.
71631                 Reported by Mark Junker <mjscod@gmx.de>.
71632
71633         2006-06-17  Bruno Haible  <bruno@clisp.org>
71634
71635                 * config.charset: Update for NetBSD 3.0.
71636
71637         2006-05-17  Bruno Haible  <bruno@clisp.org>
71638
71639                 Cygwin portability.
71640                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71641
71642         2006-05-16  Bruno Haible  <bruno@clisp.org>
71643
71644                 * localcharset.c [CYGWIN]: Include <windows.h>.
71645                 (get_charset_aliases): For Cygwin, return the same CPxxx
71646                 aliases list as under WIN32.
71647                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71648                 the environment variables. Fall back to GetACP().
71649
71650         2006-04-05  Bruno Haible  <bruno@clisp.org>
71651
71652                 * config.charset: Update Juan Manuel Guerrero's address.
71653
71654         2005-02-12  Bruno Haible  <bruno@clisp.org>
71655
71656                 * allocsa.h: Add extern "C" for C++.
71657
71658         2005-02-10  Bruno Haible  <bruno@clisp.org>
71659
71660                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71661                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71662
71663         2006-07-22  Bruno Haible  <bruno@clisp.org>
71664
71665                 * gettext.h: Update to GNU gettext-0.15.
71666
71667 2006-07-22  Bruno Haible  <bruno@clisp.org>
71668
71669         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71670         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71671         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71672
71673 2006-07-21  Eric Blake  <ebb9@byu.net>
71674
71675         * modules/stdlib-safer: New file.
71676         * MODULES.html.sh (File stream based Input/Output): Add
71677         stdlib-safer.
71678
71679 2006-07-21  Eric Blake  <ebb9@byu.net>
71680
71681         * lib/stdlib-safer.h: New file from coreutils, required by
71682         stdlib--.h.
71683
71684 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71687
71688 2006-07-20  Bruno Haible  <bruno@clisp.org>
71689
71690         * gnulib-tool: Recognize new option --assume-autoconf.
71691         (autoconf_minversion): New variable.
71692         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71693
71694 2006-07-20  Bruno Haible  <bruno@clisp.org>
71695
71696         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71697
71698 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71699
71700         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71701         Reindent and repaginate.
71702
71703 2006-07-19  Derek Price  <derek@ximbiot.com>
71704
71705         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71706         Correct grammar.
71707
71708 2006-07-17  Bruno Haible  <bruno@clisp.org>
71709
71710         * modules/list: New file.
71711         * modules/array-list: New file.
71712         * modules/carray-list, modules/carray-list-tests: New files.
71713         * modules/linked-list, modules/linked-list-tests: New files.
71714         * modules/avltree-list, modules/avltree-list-tests: New files.
71715         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71716         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71717         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71718         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71719         * modules/oset: New file.
71720         * modules/array-oset: New file.
71721         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71722         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71723         * tests/test-carray_list.c: New file.
71724         * tests/test-linked_list.c: New file.
71725         * tests/test-avltree_list.c: New file.
71726         * tests/test-rbtree_list.c: New file.
71727         * tests/test-linkedhash_list.c: New file.
71728         * tests/test-avltreehash_list.c: New file.
71729         * tests/test-rbtreehash_list.c: New file.
71730         * tests/test-avltree_oset.c: New file.
71731         * tests/test-rbtree_oset.c: New file.
71732         * MODULES.html.sh (Container data structures): New section.
71733
71734 2006-07-17  Bruno Haible  <bruno@clisp.org>
71735
71736         * m4/gl_list.m4: New file.
71737
71738 2006-07-17  Bruno Haible  <bruno@clisp.org>
71739
71740         * lib/gl_list.h: New file.
71741         * lib/gl_list.c: New file.
71742         * lib/gl_array_list.h: New file.
71743         * lib/gl_array_list.c: New file.
71744         * lib/gl_carray_list.h: New file.
71745         * lib/gl_carray_list.c: New file.
71746         * lib/gl_linked_list.h: New file.
71747         * lib/gl_linked_list.c: New file.
71748         * lib/gl_anylinked_list1.h: New file.
71749         * lib/gl_anylinked_list2.h: New file.
71750         * lib/gl_avltree_list.h: New file.
71751         * lib/gl_avltree_list.c: New file.
71752         * lib/gl_anyavltree_list1.h: New file.
71753         * lib/gl_anyavltree_list2.h: New file.
71754         * lib/gl_rbtree_list.h: New file.
71755         * lib/gl_rbtree_list.c: New file.
71756         * lib/gl_anyrbtree_list1.h: New file.
71757         * lib/gl_anyrbtree_list2.h: New file.
71758         * lib/gl_anytree_list1.h: New file.
71759         * lib/gl_anytree_list2.h: New file.
71760         * lib/gl_linkedhash_list.h: New file.
71761         * lib/gl_linkedhash_list.c: New file.
71762         * lib/gl_anyhash_list1.h: New file.
71763         * lib/gl_anyhash_list2.h: New file.
71764         * lib/gl_avltreehash_list.h: New file.
71765         * lib/gl_avltreehash_list.c: New file.
71766         * lib/gl_rbtreehash_list.h: New file.
71767         * lib/gl_rbtreehash_list.c: New file.
71768         * lib/gl_anytreehash_list1.h: New file.
71769         * lib/gl_anytreehash_list2.h: New file.
71770
71771         * lib/gl_oset.h: New file.
71772         * lib/gl_oset.c: New file.
71773         * lib/gl_array_oset.h: New file.
71774         * lib/gl_array_oset.c: New file.
71775         * lib/gl_avltree_oset.h: New file.
71776         * lib/gl_avltree_oset.c: New file.
71777         * lib/gl_rbtree_oset.h: New file.
71778         * lib/gl_rbtree_oset.c: New file.
71779         * lib/gl_anytree_oset.h: New file.
71780
71781 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * m4/mkancesdirs.m4: New file.
71784         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71785         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71786         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71787         it.
71788
71789 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71792         * lib/mkancesdirs.h: New files.
71793         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71794         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71795         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71796         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71797         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71798         callers changed.  Revamp internals significantly, by not
71799         attempting to create directories that are temporarily more
71800         permissive than the final results.  Do not attempt to use
71801         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71802         This removes some race conditions, fixes some bugs, and simplifies
71803         things.  Use new dirchownmod function to do owner and mode changes.
71804         * lib/mkdir-p.h: Likewise.
71805         * lib/modechange.c (octal_to_mode): New function.
71806         (struct mode_change): New member mentioned.
71807         (make_node_op_equals): New arg mentioned.  All callers changed.
71808         (mode_compile): Keep track of which mode bits the user has explicitly
71809         mentioned.
71810         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71811         New arg PMODE_BITS, to keep track of which mode bits the user
71812         mentioned; it treats S_ISUID and S_ISGID speciall.
71813         All callers changed.
71814         * lib/modechange.h: Likewise.
71815
71816 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71817
71818         * MODULES.html.sh: Add mkancestors.
71819         * modules/mkancesdirs: New module.
71820         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71821         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71822         The chdir-safer and afs files are now orphans; I'll remove them
71823         unless someone speaks up.
71824         Add lib/dirchownmod.c, lib/dirchownmod.h.
71825         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71826         Add lchown, mkancesdirs.
71827         (Maintainer): Add self.
71828
71829 2006-07-15  Karl Berry  <karl@gnu.org>
71830
71831         * gnulib-tool: help message wording/arrangement.
71832
71833 2006-07-14  Simon Josefsson  <jas@extundo.com>
71834
71835         * doc/gnulib.texi (Libtool and Windows): New section.
71836
71837 2006-07-12  Simon Josefsson  <jas@extundo.com>
71838
71839         * modules/gendocs (License): Fix license, approved by Karl.
71840
71841 2006-07-12  Eric Blake  <ebb9@byu.net>
71842
71843         * MODULES.html.sh: Add gendocs.
71844
71845 2006-07-11  Eric Blake  <ebb9@byu.net>
71846
71847         * modules/fdl: New module, to install doc/fdl.texi.
71848         * MODULES.html.sh: Add new section for documentation modules.
71849         * gnulib-tool: Avoid space-tab.
71850         (--doc-base): New option, to manage files from doc.
71851
71852 2006-07-11  Eric Blake  <ebb9@byu.net>
71853
71854         * m4/absolute-header.m4: Fix comments to match recent change.
71855
71856 2006-07-11  Eric Blake  <ebb9@byu.net>
71857
71858         * gnulib-tool: List --doc-base before --tests-base.
71859
71860 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71861
71862         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71863
71864 2006-07-11  Bruno Haible  <bruno@clisp.org>
71865
71866         * README: Mention where to put documentation.
71867
71868 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71869
71870         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71871
71872 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71875         to stdint.m4.
71876
71877 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71880         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71881         "no/such/file/stdint.h" when there is no such file, so that
71882         the resulting C code can be parsed by dodgy compilers.
71883         Problems reported by Bob Proulx.
71884
71885 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71886
71887         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71888         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71889         macros into the GNU _D_EXACT_NAMLEN.
71890         * lib/savedir.c:  Likewise.
71891         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71892
71893 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71894         and Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71897         * m4/savedir.m4:
71898         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71899         macros into the GNU _D_EXACT_NAMLEN.
71900
71901 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71904         around the absolute name, to work around a problem with the HP-UX
71905         11.23 native C compiler, reported by Bob Proulx.
71906
71907 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * doc/maintain.texi, make-stds.texi: Sync from
71910         <http://savannah.gnu.org/projects/gnustandards>.
71911
71912 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71915
71916 2006-07-09  Jim Meyering  <jim@meyering.net>
71917
71918         * m4/glob.m4: Remove a doubled word in a comment.
71919
71920 2006-07-09  Jim Meyering  <jim@meyering.net>
71921
71922         * lib/argp-pv.c: Remove a doubled word in a comment.
71923         * lib/check-version.c (check_version): Likewise.
71924         * lib/javacomp.c (compile_java_class): Likewise.
71925
71926 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71929         for the benefit of people using Autoconf 2.60.  If you want to
71930         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71931         (or m4/onceonly.m4, if pre-2.57) manually.
71932
71933 2006-07-08  Jim Meyering  <jim@meyering.net>
71934
71935         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71936         comment.
71937         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71938         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71939         comment.
71940
71941 2006-07-08  Jim Meyering  <jim@meyering.net>
71942
71943         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71944
71945 2006-07-07  Simon Josefsson  <jas@extundo.com>
71946
71947         * tests/test-crc.c: Change expected crc value, the test vector
71948         were probably computed using the old broken crc.c?
71949
71950 2006-07-06  Simon Josefsson  <jas@extundo.com>
71951
71952         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71953         now the canonical place for the M4 file).
71954
71955         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71956         from the sys_socket dependency now.
71957
71958         * modules/inet_pton (Files): Ditto.
71959
71960         * modules/inet_ntop (Files): Ditto.
71961
71962 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71963
71964         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71965         not gl_PREREQ_GETUSERSHELL.
71966
71967 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71968
71969         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71970         with only one argument, for Autoconf 2.60.
71971         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71972         expand to nothing, so add a shell command to avoid syntax error.
71973         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71974
71975 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71976
71977         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71978
71979 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71982         no longer needed.  Check for isblank decl.
71983         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71984         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71985         of existence.
71986
71987 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * lib/getloadavg.c: Use __VMS, not VMS.
71990         * lib/getopt.c: Likewise.
71991         * lib/getpagesize.h: Likewise.
71992         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71993         and probably does not work.
71994
71995 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * lib/.cppi-disable: Add wcwidth.
71998         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71999         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72000         (ISGRAPH): Remove.  All uses changed to isgraph.
72001         (FOLD) [!defined _LIBC]: Remove special case.
72002         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72003         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72004         HAVE_ISBLANK.
72005         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72006         case.
72007
72008 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72009
72010         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72011         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72012         brackets.  Other minor changes to suppress some compiler
72013         warnings.
72014
72015 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72016         and Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72019         of invoking obsolescent AC_HEADER_DIRENT macro.
72020         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72021         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72022         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72024         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72025         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72026         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72027         * m4/readdir.m4: Remove; no longer needed.
72028
72029 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72030         and Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72033         Don't worry about this obsolete case any more.
72034         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72035         directories.
72036         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72037         worry about this obsolete case any more.
72038         * lib/fts.c: Likewise.
72039         * lib/getcwd.c: Likewise.
72040         * lib/glob.h: Likewise.
72041         * lib/savedir.c: Likewise.
72042
72043 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72046         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72047         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72048         needed.
72049         All uses removed.
72050         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72051         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72052         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72053         needed.
72054         * m4/getdate.m4 (gl_GETDATE): Likewise.
72055         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72056         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72057         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72058         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72059         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72061         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72062         needed.
72063
72064 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * lib/memcasecmp.c: Include <limits.h>.
72067         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72068         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72069         Don't assume isdigit succeeds only on '0' through '9'.
72070
72071 2006-07-05  Eric Blake  <ebb9@byu.net>
72072
72073         * modules/getaddrinfo (Depends-on): Add snprintf.
72074
72075 2006-07-05  Eric Blake  <ebb9@byu.net>
72076
72077         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72078         to avoid 'header present but could not be compiled' on cygwin.
72079
72080 2006-07-05  Eric Blake  <ebb9@byu.net>
72081
72082         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72083         missing from netdb.h.
72084         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72085
72086 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72087
72088         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72089         no longer needed.
72090         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72091         * m4/getdate.m4 (gl_GETDATE): Likewise.
72092         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72093         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72094         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72095         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72096         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72097
72098 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72099
72100         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72101         All uses of is_space replaced by isspace.
72102         * lib/exit.h: Don't talk about STDC_HEADERS.
72103         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72104         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72105         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72106         replaced by isprint etc.
72107         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72108         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72109         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72110         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72111         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72112         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72113
72114 2006-07-05  Bruno Haible  <bruno@clisp.org>
72115
72116         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72117         the function exists, before testing against AIX.
72118         Reported by Martin Lambers <marlam@marlam.de>.
72119
72120 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72123         From Mark D. Baushke.
72124
72125 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72128         to the absolute name, not just one, to bypass Sun C 5.8's
72129         "warning: #include of /usr/include/... may be non-portable".
72130
72131 2006-07-04  Eric Blake  <ebb9@byu.net>
72132
72133         * modules/dirname-tests: New test module.
72134         * tests/test-dirname.c: New file, replacing dirname.c
72135         TEST_DIRNAME section that was recently deleted.
72136
72137 2006-07-04  Bruno Haible  <bruno@clisp.org>
72138
72139         Assume ANSI C header files and <ctype.h> functions.
72140         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72141         (mbsnwidth): Use isprint, iscntrl instead.
72142
72143 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72144
72145         Merge from coreutils.
72146         * MODULES.html.sh: Add xstrtold.
72147         * modules/xstrtold: New file.
72148         * modules/cycle-check (Files): Add lib/same-inode.h.
72149         * modules/dirname (Files): Add m4/double-slash-root.m4.
72150         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72151         * modules/mkdir-p (Files): Add lib/same-inode.h.
72152         * modules/same (Files): Add lib/same-inode.h.
72153
72154 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72157         This is to keep the terminology clean; POSIX talks about
72158         "absolute pathnames", not "full pathnames", but the GNU
72159         Coding Standards say to use "path" for something else;
72160         so use "absolute" to keep both sides happy.
72161         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72162         Set gl_absolute_header, not gl_full_header_path.
72163         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72164         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72165         All uses changed.
72166
72167         Merge from coreutils.
72168
72169         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72170
72171         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72172         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72173         want to require the building of c-strtod.o.
72174         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72175         needs -lm directly.
72176         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72177
72178         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72181         --as-needed option if available.  Problem reported by Albert Chin in
72182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72183         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72184         cc merely issues a bunch of annoying warnings for --as-needed
72185         (this problem was reported by Bob Proulx).  Also, try linking with
72186         -lm to detect a bug in binutils 2.16 (this problem was reported
72187         by Ralf Wildenhues).
72188
72189         2006-06-18  Jim Meyering  <jim@meyering.net>
72190
72191         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72192         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72193         macro.
72194         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72195         also check for glibc-2.4's abort-inducing bug.
72196
72197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72198         Low-probability clean-up should be to use rmdir to get rid of
72199         the just-created directory, not unlink.
72200
72201         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72202         configure fail, and request a bug report to inform us about it.
72203         Add a comment that, barring reports to the contrary, in 2007 we'll
72204         assume ftruncate is universally available.
72205
72206         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72209
72210         2006-03-12  Jim Meyering  <jim@meyering.net>
72211
72212         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72213         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72214         * m4/same.m4 (gl_SAME): Likewise.
72215         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72216
72217         2006-03-11  Eric Blake  <ebb9@byu.net>
72218
72219         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72220         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72221         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72222         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72223
72224 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72225
72226         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72227         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72228         reported by Mark D. Baushke, one in
72229         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72230
72231         Merge from coreutils.
72232
72233         * lib/.cppi-disable: Add stdint_.h.
72234         * lib/.cvsignore: Add stdint.h.
72235
72236         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72237
72238         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72239         both double and long double versions.
72240         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72241         * lib/xstrtold.c: New file.
72242         * lib/xstrtod.h (xstrtold): New decl.
72243
72244         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         * lib/filemode.c (setst): Remove.
72247         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72248         (arguably) clearer, and the generated code is a bit smaller on my
72249         Debian GNU/Linux stable x86 host.
72250
72251         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72254         Assume that filemode.h includes sys/types.h and sys/stat.h.
72255         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72256         (ftypelet): Reorder to put common cases first, for efficiency.
72257         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72258         to do 'M'.
72259         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72260         of 10, for compatibility with FreeBSD.  All callers changed.
72261         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72262         types that can't be deduced solely from st_mode.  First arg is now a
72263         const pointer.
72264         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72265         (strmode): Renamed from mode_string.
72266         (filemodestring): New decl.
72267         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72268         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72269         needed.
72270         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72271
72272         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72275         fsusage.h now does that.  Include fsusage.h first, to test interface.
72276         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72277         at most one method (the old code could have generated decls that
72278         didn't conform to C89, not that this was ever exercised).
72279         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72280
72281         2006-03-19  Jim Meyering  <jim@meyering.net>
72282
72283         Work even in a chroot where d_ino values for entries in "/"
72284         don't match the stat.st_ino values for the same names.
72285         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72286         number, iterate through all entries again, using lstat instead.
72287         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72288         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72289
72290         * lib/getcwd.c (__getcwd): Clarify a comment.
72291         Use memcpy in place of a call to strcpy.
72292
72293         2006-03-12  Jim Meyering  <jim@meyering.net>
72294
72295         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72296         matches that of the current directory (which we're about to chdir ".."
72297         out of), then save the dev-ino of the parent, instead.
72298
72299         * lib/same-inode.h (SAME_INODE): New file/macro.
72300         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72301         Include "same-inode.h", instead.
72302         * lib/same.c: Likewise.
72303         * lib/cycle-check.h: Include "same-inode.h".
72304         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72305         * lib/cycle-check.c (SAME_INODE): Remove definition.
72306         * lib/root-dev-ino.h: Include "same-inode.h".
72307
72308         2006-03-11  Eric Blake  <ebb9@byu.net>
72309
72310         * lib/same.c (same_name): s/base_name/last_component/
72311         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72312         * lib/filenamecat.c (file_name_concat): Likewise.
72313
72314         2006-03-11  Eric Blake  <ebb9@byu.net>,
72315                     Paul Eggert  <eggert@cs.ucla.edu>
72316
72317         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72318         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72319         drive prefix.
72320         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72321         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72322         (last_component): New method.
72323         * lib/dirname.c (dir_len): Determine when drive letters need a
72324         subsequent slash.  Preserve // when it is special.
72325         (dir_name): Don't append dot when drive letter is absolute.
72326         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72327         * lib/basename.c (base_name): New semantics - malloc the result.
72328         Preserve // when it is special.  Preserve relative files that look
72329         like drive letters.
72330         (base_len): Preserve // when it is special.
72331         (last_component): New method, similar to old base_name semantics.
72332         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72333         base_name.  Strip redundant slashes from ///.
72334
72335 2006-07-03  Jim Meyering  <jim@meyering.net>
72336
72337         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72338         macro is used before the first cycle_check call.
72339
72340 2006-07-03  Eric Blake  <ebb9@byu.net>
72341
72342         * modules/dirname (Depends-on): Add xstrndup.
72343
72344 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72347         test cases, so that config.log is a bit easier to follow.
72348
72349 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72352         both are 64 bits, since this seems to be the tradition, and this
72353         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72354         we ever run into a host that prefers long long to long in this
72355         case, we'll need another configure-time test.  Problem reported by
72356         Jim Meyering.
72357
72358 2006-07-02  Eric Blake  <ebb9@byu.net>
72359
72360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72361
72362 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * modules/inttypes (Depends-on): No longer depends on stdint.
72365         * modules/stdint (Description): Say more about assumptions.
72366         Say that the fast types might differ.  Say macros are used.
72367         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72368         (Makefile.am): Revise list of substituted symbols to match
72369         new stdint.m4.
72370         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72371         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72372         * tests/test-stdint.c (verify_same_types)
72373         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72374         the code conforms to C99/C89.
72375         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72376         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72377
72378 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72379
72380         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72381         but fix a bug, by requiring at least 64 bits.
72382         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72383         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72384         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72385         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72386
72387         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72388         changes.  Make 2.59 a prerequisite.  Check and substitute for
72389         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72390         inttypes.h.  Do not use special include files; just use the
72391         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72392         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72393         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72394         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72395         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72396         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72397         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72398         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72399         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72400         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72401         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72402         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72403         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72404         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72405         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72406         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72407         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72408         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72409         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72410         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72411         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72412         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72413         not check for things that C99 does not require, e.g., int8_t.  If
72414         a test isn't needed unless <stdint.h> isn't working, and is
72415         unlikely to be needed for any other reason, then don't do it
72416         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72417         size_t, since we assume C89 freestanding at least.  Do not check
72418         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72419         the right thing even if the types are not defined.  Instead use:
72420         (gl_STDINT_TYPE_PROPERTIES): New macro.
72421         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72422         testing whether <sys/types.h> clashes, as Autoconf does this for
72423         us now.  All uses removed.
72424         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72425         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72426         (gl_CHECK_TYPE_SAME):
72427         Remove; no longer needed.
72428         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72429         exists, since we'll return 0 anyway in that case.
72430         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72431
72432 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72435         possible collision with system files.
72436         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72437         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72438         WCHAR_MIN and WCHAR_MAX in this case.
72439         (<stddef.h>): Do not include; no longer needed.
72440         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72441         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72442         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72443         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72444         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72445         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72446         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72447         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72448         !defined(__c99))]: Include in this case too, since it's harmless
72449         now.
72450         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72451         dangerous to do so.
72452         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72453         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72454         (_STDINT_MIN, _STDINT_MAX): New macros.
72455         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72456         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72457         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72458         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72459         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72460         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72461         macros, not typedefs; this simplifies things quite a bit.
72462         Use long int for all types narrower than int64_t.
72463         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72464         Define in terms of long long int or int64_t or long int,
72465         not int64_t or int32_t.  This saves some compile-time testing.
72466         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72467         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72468         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72469         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72470         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72471         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72472         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72473         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72474         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72475         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72476         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72477         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72478         undef any previous version and define our own version, for
72479         simplicity and consistency with the new macros for types.
72480         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72481         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72482         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72483         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72484         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72485         @WINT_T_SUFFIX@ to keep things simple here.
72486         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72487         Simplify by assuming typical 8/16/32/64 host, since we're
72488         already doing that elsewhere anyway.
72489         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72490         and assume long long int is 64 bits if available.  This
72491         speeds up 'configure'.
72492
72493 2006-07-01  Eric Blake  <ebb9@byu.net>
72494
72495         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72496         Reported by Andreas Buening.
72497
72498 2006-07-01  Eric Blake  <ebb9@byu.net>
72499
72500         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72501
72502 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72503
72504         * lib/getaddrinfo.c: fixed typo
72505
72506 2006-06-29  Jim Meyering  <jim@meyering.net>
72507
72508         * modules/strftime (Maintainer): Add my name, since with the
72509         FPRINTFTIME changes strftime.c has forked from glibc.
72510
72511 2006-06-29  Eric Blake  <ebb9@byu.net>
72512
72513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72514
72515 2006-06-29  Eric Blake  <ebb9@byu.net>
72516
72517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72518
72519 2006-06-29  Eric Blake  <ebb9@byu.net>
72520
72521         * lib/stat_.h: New file.
72522
72523 2006-06-29  Eric Blake  <ebb9@byu.net>
72524
72525         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72526         unused static function.
72527
72528 2006-06-29  Eric Blake  <ebb9@byu.net>
72529
72530         * doc/functions.texi (Function Portability): Document missing lstat
72531         on mingw.
72532
72533 2006-06-29  Eric Blake  <ebb9@byu.net>
72534
72535         * MODULES.html.sh: Add sys_stat.
72536         * modules/sys_stat: New module.
72537         * modules/mkstemp (Depends-on): Add sys_stat.
72538
72539 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72540
72541         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72542
72543 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72544
72545         * m4/c-bs-a.m4: Removed.
72546
72547 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72548
72549         * lib/strftime.c: Assume strftime() exists.
72550
72551 2006-06-29  Derek Price  <derek@ximbiot.com>
72552
72553         * modules/c-bs-a: Removed - \a is C89.
72554         * MODULES.html.sh: Remove c-bs-a.
72555
72556 2006-06-29  Bruno Haible  <bruno@clisp.org>
72557
72558         * modules/wcwidth (License): Change to LGPL.
72559
72560 2006-06-28  Simon Josefsson  <jas@extundo.com>
72561
72562         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72563         on _WIN32.
72564
72565         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72566         getnameinfo.
72567
72568 2006-06-28  Simon Josefsson  <jas@extundo.com>
72569
72570         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72571
72572 2006-06-28  Simon Josefsson  <jas@extundo.com>
72573
72574         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72575         functions there.  It will succeed on Windows XP, but on Windows
72576         2000 and (presumably) earlier, it will fail, and use the internal
72577         re-implementation.
72578         (use_win32_p): New function.
72579         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72580         Support AI_NUMERICSERV to disable getservbyname.
72581         (getnameinfo): New function, only supports
72582         NI_NUMERICHOST|NI_NUMERICSERV for now.
72583
72584         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72585         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72586         getnameinfo.
72587
72588 2006-06-28  Eric Blake  <ebb9@byu.net>
72589
72590         * modules/wcwidth: New file.
72591         * modules/mbchar (Depends-on): Add wcwidth.
72592         * modules/mbswidth (Depends-on): Add wcwidth.
72593         * MODULES.html.sh: Add wcwidth.
72594
72595 2006-06-28  Eric Blake  <ebb9@byu.net>
72596
72597         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72599
72600 2006-06-28  Eric Blake  <ebb9@byu.net>
72601
72602         * lib/xvasprintf.h: Fix comments.
72603
72604 2006-06-28  Eric Blake  <ebb9@byu.net>
72605
72606         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72607         * lib/mbswidth.c (wcwidth): Move from here...
72608         * lib/wcwidth.h: ...to this new file.
72609
72610 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72611
72612         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72613
72614         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72615         it's obsolete.
72616         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72617
72618 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72619
72620         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72621         Autoconf 2.60 says this stuff was obsolete.
72622
72623 2006-06-28  Bruno Haible  <bruno@clisp.org>
72624
72625         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72626
72627 2006-06-28  Bruno Haible  <bruno@clisp.org>
72628
72629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72630         gt_TYPE_WCHAR_T.
72631
72632 2006-06-28  Bruno Haible  <bruno@clisp.org>
72633
72634         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72635         declaration for wcwidth.
72636         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72637
72638 2006-06-28  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72641         (mkdir): Define using _mkdir.
72642
72643 2006-06-28  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/getaddrinfo.h: Fix POSIX URL.
72646         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72647         _WIN32.
72648         (use_win32_p): Make static.
72649         (getaddrinfo): Reject service name if it is empty or does not consist
72650         solely of decimal digits, or if its value is > 65535.
72651         (getnameinfo): Remove useless casts.
72652
72653 2006-06-27  Simon Josefsson  <jas@extundo.com>
72654
72655         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72656         Eggert and Martin Lambers.
72657
72658 2006-06-27  Simon Josefsson  <jas@extundo.com>
72659
72660         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72661         Eggert and Martin Lambers.
72662
72663 2006-06-27  Bruno Haible  <bruno@clisp.org>
72664
72665         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72666         result to 0, not to empty.
72667         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72668
72669 2006-06-27  Bruno Haible  <bruno@clisp.org>
72670
72671         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72672
72673 2006-06-26  Simon Josefsson  <jas@extundo.com>
72674
72675         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72676         present.
72677
72678 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72681         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72683
72684 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72685
72686         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72687
72688 2006-06-26  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72691
72692 2006-06-26  Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72695
72696 2006-06-26  Bruno Haible  <bruno@clisp.org>
72697
72698         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72699         SGI C compiler in pre-C99 mode.
72700         Suggested by Mark D. Baushke and Larry Jones.
72701
72702 2006-06-26  Bruno Haible  <bruno@clisp.org>
72703
72704         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72705         WCHAR_MAX.
72706         Reported by Mark D. Baushke and Larry Jones.
72707
72708 2006-06-26  Bruno Haible  <bruno@clisp.org>
72709
72710         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72711         in pre-C99 mode.
72712         Suggested by Mark D. Baushke and Larry Jones.
72713
72714 2006-06-23  Simon Josefsson  <jas@extundo.com>
72715             Bruno Haible  <bruno@clisp.org>
72716
72717         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72718         Emit mostlyclean-local rule.
72719         (func_emit_tests_Makefile_am): Likewise.
72720         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72721
72722 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72723
72724         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72725
72726 2006-06-23  Bruno Haible  <bruno@clisp.org>
72727
72728         * tests/test-stdint.c: Update to match ISO C 99 Technical
72729         Corrigendum 1.
72730
72731 2006-06-23  Bruno Haible  <bruno@clisp.org>
72732
72733         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72734
72735 2006-06-23  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/stdint_.h: Treat IRIX like OpenBSD.
72738
72739 2006-06-23  Bruno Haible  <bruno@clisp.org>
72740
72741         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72742         ISO C 99 Technical Corrigendum 1.
72743
72744 2006-06-22  Simon Josefsson  <jas@extundo.com>
72745
72746         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72747         MinGW.
72748
72749 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72750
72751         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72752         needed.  Some compiler complained about some of them.  Problem reported
72753         by Larry Jones in
72754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72755
72756 2006-06-21  Simon Josefsson  <jas@extundo.com>
72757
72758         * tests/test-getaddrinfo.c: New file.
72759
72760         * modules/getaddrinfo-tests: New file.
72761
72762         * MODULES.html.sh: Add inet_pton.
72763
72764         * modules/inet_pton: New file.
72765
72766 2006-06-21  Simon Josefsson  <jas@extundo.com>
72767
72768         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72769         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72770         of using the (limited) gnulib implementation on Windows XP.
72771
72772         * m4/inet_pton.m4: New file.
72773
72774 2006-06-21  Simon Josefsson  <jas@extundo.com>
72775
72776         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72777         variable.
72778
72779         * lib/socket_.h: Don't define WINVER.
72780
72781         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72782         slightly modified to work in gnulib.
72783
72784 2006-06-21  Simon Josefsson  <jas@extundo.com>
72785
72786         * doc/gnulib.texi (Windows sockets): Add.
72787
72788 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * lib/read-file.c (fread_file): Start with buffer allocation of
72791         0 bytes rather than 1 byte; this simplifies the code.
72792         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72793         code to free buffer and save/restore errno.
72794         (internal_read_file): Remove unused local.
72795
72796 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72797
72798         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72799         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72800         Problem reported by Denis Excoffier in
72801         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72802
72803 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72804
72805         * modules/sys_socket, modules/socklen: Include sys/types since
72806         FreeBSD 4.x's sys/socket.h needs it.
72807
72808 2006-06-19  Simon Josefsson  <jas@extundo.com>
72809
72810         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72811
72812 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72815
72816 2006-06-19  Bruno Haible  <bruno@clisp.org>
72817
72818         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72819         and FULL_PATH_INTTYPES_H in angle brackets.
72820         Reported by Mark D. Baushke <mdb@gnu.org>.
72821
72822 2006-06-17  Eric Blake  <ebb9@byu.net>
72823
72824         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72825         errno.
72826
72827 2006-06-17  Bruno Haible  <bruno@clisp.org>
72828
72829         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72830         <sys/inttypes.h>.
72831
72832 2006-06-17  Bruno Haible  <bruno@clisp.org>
72833
72834         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72835         whether errno is declared. Assume <errno.h> declares errno.
72836
72837 2006-06-17  Bruno Haible  <bruno@clisp.org>
72838
72839         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72840
72841 2006-06-17  Bruno Haible  <bruno@clisp.org>
72842
72843         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72844         problem on Solaris 2.5.1.
72845
72846 2006-06-16  Eric Blake  <ebb9@byu.net>
72847
72848         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72849         * lib/unicodeio.c [!defined errno]: Likewise.
72850         * lib/strtol.c [!defined errno]: Likewise.
72851         * lib/strtod.c [!defined errno]: Likewise.
72852
72853 2006-06-15  Eric Blake  <ebb9@byu.net>
72854
72855         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72856
72857 2006-06-15  Eric Blake  <ebb9@byu.net>
72858
72859         * config/srclist.txt (ssize_t.m4): Lose sync.
72860
72861 2006-06-15  Bruno Haible  <bruno@clisp.org>
72862
72863         * modules/stdint (Files): Include m4/full-header-path.m4,
72864         m4/size_max.m4, m4/wchar_t.m4.
72865         (Makefile.am): Many more substitutions.
72866         * modules/stdint-tests: New file.
72867         * tests/test-stdint.c: New file.
72868
72869 2006-06-15  Bruno Haible  <bruno@clisp.org>
72870
72871         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72872         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72873         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72874         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72875         gl_CHECK_TYPE_SAME): New macros.
72876
72877 2006-06-15  Bruno Haible  <bruno@clisp.org>
72878
72879         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72880
72881 2006-06-15  Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/stdint_.h: Rewritten to be fully auto-configured.
72884         Fixes bug on HP-UX/IA64.
72885
72886 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * lib/getdate.y (__attribute__): Don't define if already defined.
72889         Problem reported by Larry Jones.
72890         * lib/utimens.c (__attribute__): Likewise.
72891
72892 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72895         reported by Andreas Schwab.
72896
72897 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72898             Bruno Haible  <bruno@clisp.org>
72899
72900         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72901         check for the declaration of strnlen and a run test that exposes the
72902         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72903         rpl_strndup.
72904
72905 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72906             Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72909
72910 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72911
72912         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72913         compile test, for Tru64 4.0D.
72914
72915 2006-05-28  Karl Berry  <karl@gnu.org>
72916
72917         * config/srclist.txt (printf-args.c): lose sync.
72918
72919 2006-05-26  Martin Lambers  <marlam@marlam.de>
72920
72921         * lib/getpass.c: Updates the test for the native W32 API, and adds
72922         missing includes, thus fixing compilation warnings.
72923
72924 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72925
72926         * lib/exclude.c (exclude_fnmatch): New function.
72927         (excluded_file_name): Call exclude_fnmatch.
72928         * lib/exclude.h (excluded_file_name): New prototype
72929
72930 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72931
72932         * lib/tempname.c (small_open, large_open): New macros.
72933         (__open, __open64) [!_LIBC]: Remove.
72934         (__gen_tempname): Use small_open and large_open instead of __open
72935         and __open64.  This fixes a portability bug on HP-UX 11.11i
72936         reported by Simon Wing-Tang in
72937         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72938
72939 2006-05-24  Bruno Haible  <bruno@clisp.org>
72940
72941         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72942         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72943         Reported by Thorsten Maerz <torte@netztorte.de> via
72944         Aaron Stone <aaron@serendipity.cx>.
72945
72946 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72947
72948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72949         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72950         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72951         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72952         not really conditional on the cache.
72953         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72954
72955 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72958         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72959         (my_usleep): Don't mishandle maximum value.
72960
72961 2006-05-19  Jim Meyering  <jim@meyering.net>
72962
72963         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72964
72965 2006-05-17  Bruno Haible  <bruno@clisp.org>
72966
72967         Cygwin portability.
72968         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72969
72970 2006-05-17  Bruno Haible  <bruno@clisp.org>
72971
72972         * lib/stdint_.h: Fix recognition of Cygwin.
72973
72974 2006-05-15  Bruno Haible  <bruno@clisp.org>
72975
72976         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72977         on libtool patch by Ralf Wildenhues.
72978
72979 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72982         test for C99 conformance; (bool) 0.5 is an integer constant
72983         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72984         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72985
72986 2006-05-11  Simon Josefsson  <jas@extundo.com>
72987
72988         * m4/xvasprintf.m4: Fix obvious typo.
72989
72990 2006-05-11  Jim Meyering  <jim@meyering.net>
72991
72992         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72993         James Lemley.
72994
72995 2006-05-10  Simon Josefsson  <jas@extundo.com>
72996
72997         * lib/md4.c: Typo fix, update copyright years.
72998         (K1, K2): Don't use L because it turn computations into 64-bit on
72999         64-bit platforms.
73000
73001 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73004         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73005         unwanted sign propagation, e.g., on hosts with 64-bit int.
73006         There still are some problems with reeelly weird theoretical hosts
73007         (e.g., 33-bit int) but it's not worth worrying about now.
73008         * lib/sha1.c (rol): Likewise.
73009         (K1, K2, K3, K4): Remove unnecessary L suffix.
73010
73011 2006-05-10  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/des.c: Cast to avoid warnings.
73014
73015 2006-05-09  Bruno Haible  <bruno@clisp.org>
73016
73017         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73018         (Depends-on): Depend also on xsize, stdarg.
73019         (configure.ac): Add gl_XVASPRINTF.
73020
73021 2006-05-09  Bruno Haible  <bruno@clisp.org>
73022
73023         * m4/xvasprintf.m4: New file.
73024
73025 2006-05-09  Bruno Haible  <bruno@clisp.org>
73026
73027         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73028         (EOVERFLOW): Define fallback value.
73029         (xstrcat): New function.
73030         (xvasprintf): Recognize the special case of a string concatenation.
73031
73032 2006-05-08  Eric Blake  <ebb9@byu.net>
73033
73034         * gnulib-tool (func_version): Base copyright year on CVS date.
73035         (func_emit_copyright_notice): New function.
73036         (func_emit_lib_Makefile_am): Use it.
73037         (func_emit_tests_Makefile_am): Likewise.
73038         (func_import): Likewise.
73039
73040 2006-05-08  Bruno Haible  <bruno@clisp.org>
73041
73042         * modules/stdarg: New file.
73043         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73044
73045 2006-05-08  Bruno Haible  <bruno@clisp.org>
73046
73047         * m4/stdarg.m4: New file, from GNU gettext.
73048
73049 2006-05-08  Bruno Haible  <bruno@clisp.org>
73050
73051         * config/srclist.txt (build-aux/config.rpath): different from latest
73052         release.
73053
73054 2006-05-08  Bruno Haible  <bruno@clisp.org>
73055
73056         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73057
73058 2006-05-05  Jim Meyering  <jim@meyering.net>
73059
73060         * m4/warning.m4: New file, derived from bison's file by the same name.
73061
73062 2006-05-03  Bruno Haible  <bruno@clisp.org>
73063
73064         * lib/stdint_.h: Shorter URL.
73065         * lib/inttypes.h: Likewise.
73066
73067 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73068
73069         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73070
73071 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * lib/verify.h: Document the internals better.  Most of this change
73074         was written by Bruno Haible.
73075
73076 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         * doc/verify.texi: New file, partly based on a proposal by
73079         Bruno Haible.
73080
73081 2006-05-02  Bruno Haible  <bruno@clisp.org>
73082
73083         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73084         test from here...
73085         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73086
73087 2006-04-29  Bruno Haible  <bruno@clisp.org>
73088
73089         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73090         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73091
73092 2006-04-29  Bruno Haible  <bruno@clisp.org>
73093
73094         * gnulib-tool: Make --update option actually work.
73095
73096 2006-04-29  Bruno Haible  <bruno@clisp.org>
73097
73098         * doc/gcd.texi: New file.
73099         * doc/gnulib.texi: Include it.
73100
73101 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73102
73103         * lib/getdate.y (get_date): When adding relative date, start with the
73104         initial time, not with the result of the first mktime call.
73105
73106 2006-04-25  Bruno Haible  <bruno@clisp.org>
73107
73108         * gnulib-tool (func_import): Output the include directives in three
73109         blocks, sorted separately.
73110         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73111
73112 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73113
73114         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73115         to define main with arguments, for C++.  Reported by Eric Blake.
73116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73117         Prefer 'int main ()' to 'int main (void)', for C++.
73118         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73119         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73120         for 'main', for C99 and C++.
73121
73122 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73125         Don't assume that exit status -1 is valid.
73126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73127         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73128         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73129         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73130         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73131         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73132         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73133         functions can be used without declaring them, or that you can
73134         exit with status -1.
73135         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73136
73137 2006-04-24  Karl Berry  <karl@gnu.org>
73138
73139         * config/srclist.txt (longdouble.m4): sync lost.
73140
73141 2006-04-24  Eric Blake  <ebb9@byu.net>
73142
73143         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73144
73145 2006-04-24  Bruno Haible  <bruno@clisp.org>
73146
73147         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73148         poll() implementation in AIX.
73149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73150
73151 2006-04-24  Bruno Haible  <bruno@clisp.org>
73152
73153         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73154         assigned exactly once.
73155
73156 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73157             Bruno Haible  <bruno@clisp.org>
73158
73159         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73160         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73161         for AM_CPPFLAGS.
73162
73163 2006-04-23  Bruno Haible  <bruno@clisp.org>
73164
73165         * modules/copy-file: Depend on unistd.
73166         * modules/execute: Likewise.
73167         * modules/fatal-signal: Likewise.
73168         * modules/findprog: Likewise.
73169         * modules/mkdtemp : Likewise.
73170         * modules/pipe: Likewise.
73171         * modules/wait-process: Likewise.
73172
73173 2006-04-23  Bruno Haible  <bruno@clisp.org>
73174
73175         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73176         condition was already detected.
73177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73178
73179 2006-04-23  Bruno Haible  <bruno@clisp.org>
73180
73181         * lib/copy-file.c: Include <unistd.h> unconditionally.
73182         * lib/execute.c: Likewise.
73183         * lib/fatal-signal.c: Likewise.
73184         * lib/findprog.c: Likewise.
73185         * lib/mkdtemp.c: Likewise.
73186         * lib/pipe.h: Likewise.
73187         * lib/pipe.c: Likewise.
73188         * lib/wait-process.h: Likewise.
73189
73190 2006-04-23  Bruno Haible  <bruno@clisp.org>
73191
73192         * gnulib-tool (func_usage): Fix --import description. Document
73193         --update.
73194         (func_import): Create temporary file in a temporary directory, if
73195         --dry-run is specified. Silence errors from 'grep' when there are no
73196         m4 files in $m4dir.
73197         (func_create_testdir): Silence errors from 'grep' when there are no
73198         m4 files in $m4dir.
73199         Reported by Karl Berry <karl@freefriends.org>.
73200
73201 2006-04-20  Bruno Haible  <bruno@clisp.org>
73202
73203         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73204         one argument, so that the code will be portable to Autoconf 2.60.
73205         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73206         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73207         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73208
73209 2006-04-19  Derek Price  <derek@ximbiot.com>
73210             Eric Blake  <ebb9@byu.net>
73211
73212         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73213         rather than "/full/path.h".  Update comment to match.  Shorten &
73214         generalize m4_translit call via AS_TR_CPP.
73215
73216 2006-04-19  Derek Price  <derek@ximbiot.com>
73217             Eric Blake  <ebb9@byu.net>
73218
73219         * lib/inttypes.h: Correct grammar in comment.
73220
73221 2006-04-18  Derek Price  <derek@ximbiot.com>
73222             Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         * modules/inttypes: New file.
73225         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73226
73227 2006-04-18  Derek Price  <derek@ximbiot.com>
73228             Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73231         New files.
73232
73233 2006-04-18  Derek Price  <derek@ximbiot.com>
73234             Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         * lib/inttypes.h: New file.
73237         * lib/strtoimax.c: Assume <inttypes.h>.
73238
73239 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73242         isn't mounted.  Problem reported by Kir Kolyshkin.
73243
73244 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73247         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73248         Derek R. Price.
73249         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73250         implementation.
73251
73252 2006-04-12  Eric Blake  <ebb9@byu.net>
73253
73254         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73255         is now done automatically by the corresponding Autoconf macro.
73256
73257 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73258
73259         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73260         time_r.h.
73261
73262 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73263
73264         Merge regex changes from libc, removing some of our
73265         POSIX-conformance changes that were rejected and redoing them in a
73266         less-intrusive way.
73267
73268         * lib/regcomp.c (re_compile_internal, init_dfa):
73269         Length arg is now size_t, not Idx.  All uses changed.
73270         (peek_token): Forward decl now says internal_function.
73271         (__re_error_msgid, __re_error_msgid_idx):
73272         Now static rather than extern with attribute_hidden.
73273         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73274         For some reason libc prefers K&R style defns for external functions.
73275         (regerror) [!defined _LIBC]: Likewise.
73276         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73277         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73278         (build_range_exp, build_collating_symbol):
73279         Use K&R-style defn.
73280         (re_compile_fastmap): Use '\0' to memset, not 0.
73281         (utf8_sb_map): Make the calculations more obvious.
73282         (init_dfa, parse_bracket_exp, build_charclass_op):
73283         Call calloc and cast result, as glibc does.
73284         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73285         (build_range_exp, build_collating_symbol):
73286         Now internal functions.
73287
73288         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73289
73290         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73291         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73292         Don't depend on VMS; depend on __VMS instead, for POSIX
73293         namespace cleanness.
73294         (regoff_t): Define to ssize_t, not long int.
73295
73296         Remove the REG_ macros named below.  Instead, make the old names
73297         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73298         __USE_GNU_REGEX.
73299         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73300         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73301         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73302         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73303         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73304         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73305         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73306         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73307         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73308         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73309         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73310         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73311         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73312         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73313         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73314         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73315         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73316         (REG_NREGS):
73317         Remove.  All uses replaced by the old RE_* names.
73318         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73319         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73320         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73321         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73322         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73323         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73324         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73325         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73326         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73327         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73328         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73329         Don't bother having these macros be independent of each others'
73330         values, since they no longer exist in the POSIX name space.
73331
73332         Rename the following member names back to their old names,
73333         unless !__USE_GNU_REGEX.  All uses changed back.
73334         (buffer): Renamed from re_buffer.
73335         (allocated): Renamed from re_allocated.
73336         (used): Renamed from re_used.
73337         (syntax): Renamed from re_syntax.
73338         (fastmap): Renamed from re_fastmap.
73339         (translate): Renamed from re_translate.
73340         (can_be_null): Renamed from re_can_be_null.
73341         (regs_allocated): Renamed from re_regs_allocated.
73342         (fastmap_accurate): Renamed from re_fastmap_accurate.
73343         (no_sub): Renamed from re_no_sub.
73344         (not_bol): Renamed from re_not_bol.
73345         (not_eol): Renamed from re_not_eol.
73346         (newline_anchor): Renamed from re_newline_anchor.
73347         (num_regs): Renamed from rm_num_regs.
73348         (start): Renamed from rm_start.
73349         (end): Renamed from rm_end.
73350
73351         (free_state): Move up a bit.
73352
73353         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73354         #define to be empty.
73355         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73356         when that is what is intended.
73357         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73358         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73359         (MAX): New macro.
73360         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73361         All uses changed back to re_malloc, etc.  It's now the caller's
73362         responsibility to check for overflow; all callers changed.
73363         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73364         (re_x2nrealloc): Remove.
73365         (free_state): Remove decl.
73366
73367         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73368         (re_set_registers, re_exec):
73369         Use K&R-style defn.
73370
73371         2006-01-31  Roland McGrath  <roland@redhat.com>
73372
73373         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73374         Reported by Mike Frysinger <vapier@gentoo.org>.
73375
73376         2006-01-15  Andreas Jaeger  <aj@suse.de>
73377
73378         [BZ #1950]
73379         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73380         build_wcs_upper_buffer change.
73381         (build_wcs_upper_buffer): Change return type.
73382
73383         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73384
73385         * lib/regex_internal.h: Include <stdint.h> if available.
73386
73387         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73388
73389         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73390
73391         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73392
73393         * lib/regcomp.c: Adjust for changed secondary hash function.
73394
73395         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73396
73397         * lib/regex.h: Pretty printing.
73398         Clean up namespace a bit.
73399
73400         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73401
73402         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73403         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73404
73405         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73406                     Ulrich Drepper  <drepper@redhat.com>
73407
73408         [BZ #1302]
73409         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73410         changed.
73411         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73412
73413         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73414
73415         [BZ #281]
73416         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73417         * lib/regcomp.c: Remove unnecessary uses of
73418         unsigned RE_TRANSLATE_TYPE.
73419         * lib/regex_internal.h: Likewise.
73420         * lib/regex_internal.c: Likewise.
73421         * lib/regexec.c: Likewise.
73422         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73423
73424         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73425
73426         * lib/regexec.c (find_recover_state): Remove unnecessary
73427         initialization.
73428         (transit_state_bkref): Make DFA a const pointer.
73429         (get_subexp): Likewise.
73430         (check_arrival): Likewise.
73431         (update_cur_sifted_state): Likewise.
73432         (re_search_internal): Likewise.
73433         (prune_impossible_nodes): Likewise.
73434         (acquire_init_state_context): Likewise.
73435         (proceed_next_node): Likewise.
73436         (set_regs): Likewise.
73437         (free_fail_stack_return): Likewise.
73438         (check_arrival_expand_ecl): Mark DFA parameter as const.
73439         (check_arrival_expand_ecl_sub): Likewise.
73440         (check_subexp_limits): Likewise.
73441         (sub_epsilon_src_nodes):  Likewise.
73442         (add_epsilon_src_nodes):  Likewise.
73443         (merge_state_array): Likewise.
73444         (update_regs): Likewise.
73445         (build_trtable): Likewise.
73446         (sift_states_backward): Mark MCTX parameter as const.
73447         (build_sifted_states): Likewise.
73448         (update_cur_sifted_state): Likewise.
73449         (sift_states_mkref): Likewise.
73450         (check_arrival_expand_ecl): Mark eclosure as const.
73451         (check_dst_limits_calc_pos_1): Likewise.
73452         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73453         pointer.
73454
73455         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73456
73457         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73458         (transit_state_sb): Likewise.
73459         (transit_state_mb): Likewise.
73460         (sift_states_iter_mb): Likewise.
73461         (check_arrival_add_next_nodes): Likewise.
73462         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73463         [_LIBC] (re_search_2_stub): Use mempcpy.
73464
73465         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73466         mbrtowc for very simple UTF-8 case.
73467
73468         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73469         a pointer-to-const.
73470         (re_acquire_state_context): Likewise.
73471         * lib/regex_internal.h: Adjust prototypes.
73472
73473         * lib/regex.c: Prevent using C++ compilers.
73474
73475         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73476         (re_acquire_state_context): Likewise.
73477
73478 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * modules/regex (Depends-on): Add ssize_t.
73481
73482 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73483
73484         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73485         translation table.
73486
73487 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73488
73489         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73490
73491 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73492             Bruno Haible  <bruno@clisp.org>
73493
73494         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73495         <sys/types.h> and <inttypes.h>.
73496
73497 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73498
73499         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73500         `__error_t_defined', so argp.h will not typedef the former.
73501
73502 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73505         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73506         glibc names.  Even if glibc is changed to conform to POSIX, the
73507         traditional names will be available anyway, since regex depends on
73508         the extensions module.  Also, fix a longstanding typo in the
73509         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73510         reported by Emanuele Giaquinta.  Also, change sense of cached
73511         variable, so that the message makes sense.
73512
73513 2006-03-24  Simon Josefsson  <jas@extundo.com>
73514
73515         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73516         including some doc fixes.
73517         (base64_encode_alloc): Fix +1 bug on allocation failures.
73518
73519 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73520
73521         * lib/base64.c (base64_encode): Do not read past end of array with
73522         unsanitized input on systems with CHAR_BIT > 8.
73523
73524 2006-03-24  Eric Blake  <ebb9@byu.net>
73525
73526         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73527
73528 2006-03-22  Karl Berry  <karl@gnu.org>
73529
73530         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73531         * config/srclistvars.sh (COREUTILS): new var.
73532
73533 2006-03-17  Jim Meyering  <jim@meyering.net>
73534
73535         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73536         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73537
73538 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73539
73540         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73541         no longer needs it.  Instead, check that regoff_t is as least
73542         as wide as ptrdiff_t.
73543
73544         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73545         so that our regex.h stays compatible with the installed regex.
73546         This is helpful for installers who configure --without-included-regex.
73547         Problem reported by Emanuele Giaquinta.
73548
73549 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73550
73551         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73552         Typedef to long int, not to off_, as POSIX will likely change
73553         in that direction.
73554
73555 2006-03-15  Eric Blake  <ebb9@byu.net>
73556
73557         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73558
73559 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73560
73561         * lib/argp-help.c (validate_uparams): Fix typo
73562         * lib/argp-parse.c (argp_default_options): Consistently begin help
73563         messages with a lowercase letter.
73564
73565 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73568         overrun buffers and shouldn't be used (much as gets shouldn't be
73569         used).
73570         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73571
73572 2006-03-08  Simon Josefsson  <jas@extundo.com>
73573
73574         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73575         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73576
73577 2006-03-08  Simon Josefsson  <jas@extundo.com>
73578
73579         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73580         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73581
73582 2006-03-08  Simon Josefsson  <jas@extundo.com>
73583
73584         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73585         signal that configure disabled the device.
73586
73587 2006-03-08  Simon Josefsson  <jas@extundo.com>
73588
73589         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73590         languages.
73591
73592 2006-03-07  Simon Josefsson  <jas@extundo.com>
73593
73594         * modules/getopt (Depends-on): Add unistd.
73595
73596         * modules/unistd: New file.
73597
73598 2006-03-07  Simon Josefsson  <jas@extundo.com>
73599
73600         * modules/gc-random: New file.
73601
73602 2006-03-07  Simon Josefsson  <jas@extundo.com>
73603
73604         * m4/unistd_h.m4: New file.
73605
73606 2006-03-07  Simon Josefsson  <jas@extundo.com>
73607
73608         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73609         test to be side-effect free by storing the result in the cache
73610         variable gl_cv_lib_readline, and moving the assignment of
73611         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73612         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73613
73614 2006-03-07  Simon Josefsson  <jas@extundo.com>
73615
73616         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73617         error on missing devices (the functions will return an error).
73618
73619         * m4/gc.m4: Move random stuff to gc-random.m4
73620
73621 2006-03-07  Simon Josefsson  <jas@extundo.com>
73622
73623         * lib/unistd_.h: New file.
73624
73625 2006-03-07  Simon Josefsson  <jas@extundo.com>
73626
73627         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73628
73629 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73630
73631         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73632         Problem reported by Juan Manuel Guerrero.
73633
73634 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73635
73636         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73637         the unistd module.
73638         * lib/getlogin_r.c: Likewise.
73639         * lib/getlogin_r.h: Likewise.
73640         * lib/glob.c: Likewise.
73641         * lib/pagealign_alloc.c: Likewise.
73642         * lib/unistd_.h: Remove; no longer needed.
73643
73644 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73647         Add unistd.
73648         * modules/c-stack (Depends-on): Add unistd.
73649         * modules/getlogin_r: Likewise.
73650         * modules/glob: Likewise.
73651         * modules/pagealign_alloc: Likewise.
73652         * modules/unistd (Files): Remove lib/unistd_.h.
73653         (EXTRA_DIST): Remove.
73654         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73655         need unistd_.h.
73656         (MOSTLYCLEANFILES): Remove unistd.h-t.
73657
73658 2006-03-03  Simon Josefsson  <jas@extundo.com>
73659
73660         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73661
73662 2006-03-03  Simon Josefsson  <jas@extundo.com>
73663
73664         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73665         libidn and bison.
73666
73667 2006-03-03  Simon Josefsson  <jas@extundo.com>
73668
73669         * build-aux/maint.mk: Add indent target.
73670
73671 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73672
73673         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73674         our replacement poll.h in any case, to avoid a differing
73675         declaration from a system header.  Seen on AIX.
73676
73677 2006-03-01  Simon Josefsson  <jas@extundo.com>
73678
73679         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73680         <kasal@ucw.cz>.
73681
73682 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73683
73684         * modules/gettime (Depends-on): Add extensions module.
73685         * modules/nanosleep (Depends-on): Likewise.
73686         * modules/settime (Depends-on): Likewise.
73687
73688 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73691         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73692         pedantically.
73693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73694         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73695
73696         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73697         not "==".  Reported by Ralf Wildenhues.
73698
73699 2006-03-01  Karl Berry  <karl@gnu.org>
73700
73701         * doc/Copyright/request-*: new files, synced from gnuorg.
73702
73703 2006-03-01  Karl Berry  <karl@gnu.org>
73704
73705         * config/srclist.txt (Copyright/*): new entries.
73706
73707 2006-02-28  Simon Josefsson  <jas@extundo.com>
73708
73709         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73710
73711 2006-02-27  Simon Josefsson  <jas@extundo.com>
73712
73713         * lib/base64.h: Indent #define's.  From Jim Meyering
73714         <jim@meyering.net>.
73715
73716 2006-02-27  Jim Meyering  <jim@meyering.net>
73717
73718         Revert the change of 2006-02-24, so these files can continue
73719         to be sync'd from gettext.
73720         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73721         of `config.h'.
73722
73723 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73724
73725         * modules/intprops: New file.
73726         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73727         Add intprops.
73728         * modules/getloadavg (Files): Remove lib/intprops.h.
73729         (Depends-on): Add intprops.
73730         * modules/human: Likewise.
73731         * modules/inttostr: Likewise.
73732         * modules/openat: Likewise.
73733         * modules/sig2str: Likewise.
73734         * modules/userspec: Likewise.
73735         * modules/utimecmp: Likewise.
73736         * modules/xnanosleep: Likewise.
73737         * modules/xstrtol: Likewise.
73738
73739 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73740
73741         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73742         * modules/lock-tests (TESTS): Use $(EXEEXT).
73743         * modules/tls-tests: Likewise.
73744         * modules/argp-tests: Likewise.
73745         (check_PROGRAMS): New var, replacing...
73746         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73747
73748 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73749
73750         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73751         `config.h'.
73752
73753 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73754
73755         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73756
73757 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73758
73759         Sync from coreutils.
73760         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73761         gl_CHDIR_SAFER.
73762
73763 2006-02-22  Jim Meyering  <jim@meyering.net>
73764
73765         Sync from coreutils.
73766         * m4/chdir-safer.m4: New file.
73767
73768 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73771         AT_FDCWD exceeds INT_MAX.
73772         * lib/openat.h (AT_FDCWD): Likewise.
73773
73774 2006-02-17  Eric Blake  <address@hidden>
73775
73776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73777
73778 2006-02-16  Simon Josefsson  <jas@extundo.com>
73779
73780         * modules/getaddrinfo (Depends-on): Add sys_socket.
73781
73782 2006-02-15  Simon Josefsson  <jas@extundo.com>
73783
73784         * build-aux/maint.mk: Add dsyntax-check rule.
73785
73786 2006-02-15  Eric Blake  <ebb9@byu.net>
73787
73788         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73789         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73790         'present but cannot compile' warnings on cygwin.
73791         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73792         use ws2tcpip.h if sys/socket.h works.
73793         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73794         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73795
73796 2006-02-14  Simon Josefsson  <jas@extundo.com>
73797
73798         * modules/maintainer-makefile (Files): Rename.
73799
73800         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73801         and (the local) Makefile.cfg to maint-cfg.mk.
73802
73803         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73804         to the latter.
73805
73806         * modules/maintainer-makefile: New module.
73807
73808         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73809         severaly stripped to make it possible to build it up from scratch
73810         with reliable tests.
73811
73812         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73813         fixes to permit overriding the default actions when configure and
73814         makefile are not available.
73815
73816 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73817
73818         Sync from coreutils.
73819         * modules/lstat (Depends-on): Don't depend on xalloc.
73820         (License): Change from GPL to LGPL, since this is now simply a
73821         replacement for a libc function.
73822
73823 2006-02-14  Jim Meyering  <jim@meyering.net>
73824
73825         Sync from coreutils.
73826
73827         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73828         failure on deficient systems, and simplify gnulib lgpl dependencies.
73829         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73830         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73831
73832         * lib/xalloc-die.c: Remove unused definition of N_.
73833
73834 2006-02-14  Jim Meyering  <jim@meyering.net>
73835
73836         Sync from coreutils.
73837         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73838         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73839         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73840         double-quote uses of that variable, to accommodate the rare case in
73841         which getmntent is available in none of the libraries checked.  This
73842         happens at least on FreeBSD 5.0.
73843
73844 2006-02-13  Simon Josefsson  <jas@extundo.com>
73845
73846         * gnulib-tool (Usage): Fix --import, from
73847         karl@freefriends.org (Karl Berry).
73848
73849 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73850
73851         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73852
73853 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73854
73855         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73856         "autoupdate" on 2005-12-12.
73857
73858 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * modules/closeout (Depends-on): Remove atexit.
73861
73862 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73865         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73866
73867 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73870         __EXTENSIONS__ if this causes compilation to fail.  Problem
73871         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73872         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73873
73874 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73875
73876         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73877         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73878         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73879         All uses changed.
73880
73881 2006-01-26  Simon Josefsson  <jas@extundo.com>
73882
73883         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73884         prototype is visible on mingw32.
73885
73886         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73887         for mingw32.
73888
73889         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73890         mingw32).
73891
73892 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73895         attempt to open for write; this always fails, at least on POSIX
73896         hosts.  This reinstates the 2006-01-09 change, which was
73897         inadvertently removed.
73898
73899 2006-01-26  Bruno Haible  <bruno@clisp.org>
73900
73901         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73902         Reported by Paul Eggert.
73903
73904 2006-01-26  Bruno Haible  <bruno@clisp.org>
73905             Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * lib/stdbool_.h (_Bool)
73908         [(! (defined __cplusplus || defined __BEOS__)
73909           && !defined __GNUC__
73910           && !(defined __HP_cc || defined __xlc__
73911                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73912                || defined __sgi))]:
73913         #define to signed char in these cases too; this simplifies
73914         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73915         etc., separately) and makes it more conservative.
73916
73917 2006-01-25  Simon Josefsson  <jas@extundo.com>
73918
73919         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73920         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73921         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73922
73923 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73924
73925         * lib/argp-namefrob.h: Bugfix. Remove stray #
73926
73927 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73930         so that we test the test.
73931         Check for yet another HP-UX cc bug involving *bool |= bool.
73932
73933 2006-01-25  Karl Berry  <karl@gnu.org>
73934
73935         * config/srclist.txt (vasnprintf.c): sync lost.
73936
73937 2006-01-25  Jim Meyering  <jim@meyering.net>
73938
73939         Sync from the stable (b5) branch of coreutils:
73940
73941         * lib/fts.c (fts_children): Don't let close() clobber errno from
73942         failed fchdir().
73943
73944         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73945         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73946         a dangling symlink.  That can also happen at least for ELOOP.
73947         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73948         FYI, this bug predates the inclusion of fts.c in coreutils.
73949
73950         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73951         in their own block, so pre-c99 compilers don't object.
73952
73953         Avoid the double-free (first in fts_read, second in fts_close) that
73954         would occur when an `active' directory is made inaccessible (e.g.,
73955         via chmod a-x) during a traversal.
73956         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73957         before returning.  Reproduce this failure by
73958         mkdir -p a/b; cd a; chmod a-x . b
73959         Reported by Stavros Passas.
73960
73961 2006-01-25  Jim Meyering  <jim@meyering.net>
73962
73963         * lib/fileblocks.c: Remove more useless parentheses.
73964         * lib/readutmp.h: Likewise.
73965
73966 2006-01-25  Bruno Haible  <bruno@clisp.org>
73967
73968         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73969         warnings.
73970         Reported by Paul Eggert.
73971
73972 2006-01-25  Bruno Haible  <bruno@clisp.org>
73973
73974         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73975         rid of a trap command. For Solaris sh.
73976         Reported by Mark D. Baushke <mdb@gnu.org>.
73977
73978 2006-01-24  Simon Josefsson  <jas@extundo.com>
73979
73980         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73981         Bruno.
73982
73983 2006-01-24  Karl Berry  <karl@gnu.org>
73984
73985         * config/srclist.txt (argp-namefrob.h): sync lost.
73986
73987 2006-01-24  Jim Meyering  <jim@meyering.net>
73988
73989         * modules/openat (Files): Add lib/intprops.h.
73990         From Mark D. Baushke.
73991
73992 2006-01-24  Jim Meyering  <jim@meyering.net>
73993
73994         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73995         Reported by Mark D. Baushke.
73996
73997 2006-01-24  Jim Meyering  <jim@meyering.net>
73998
73999         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74000
74001 2006-01-24  Bruno Haible  <bruno@clisp.org>
74002
74003         * modules/strnlen (Maintainer): Change from glibc to all.
74004
74005 2006-01-24  Bruno Haible  <bruno@clisp.org>
74006
74007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74008         Patch by Paul Eggert.
74009
74010 2006-01-24  Bruno Haible  <bruno@clisp.org>
74011
74012         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74013         already has it.
74014         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74015         2005-11-26.
74016
74017         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74018         'signed char' to avoid problems with the built-in _Bool type.
74019         Reported by Paul Eggert on 2005-11-26.
74020
74021 2006-01-24  Bruno Haible  <bruno@clisp.org>
74022
74023         * gnulib-tool (func_import): Avoid constructing complicated sed
74024         expressions inside backquote.
74025         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74026
74027 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74028
74029         These changes imported from libc.
74030         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74031         test and two separate function calls.
74032         * lib/strndup.c (__strndup): Add libc_hidden_def.
74033
74034 2006-01-23  Simon Josefsson  <jas@extundo.com>
74035
74036         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74037         Remove the test_*_SOURCES variable: automake infers it by default.
74038         * modules/tls-tests: Likewise.
74039
74040 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         Work around porting bugs reported by Dieter in
74043         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74044         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74045         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74046         Include "getopt.h" first, to check interface.
74047         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74048         !HAVE_DECL_GETENV.
74049         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74050         (__strndup): Revert to K&R-style function dfns, the glibc style.
74051         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74052         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74053         Include strnlen.h first, to get prototype properly.
74054         (strnlen): Renamed from __strnlen.
74055         Remove weak alias.
74056
74057 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74060
74061 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * config/srclist.txt: Adjust to reflect glibc reorganization.
74064         This affects only comments.
74065
74066 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74067
74068          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74069          Reported by Bruce Korb <bkorb@gnu.org>.
74070
74071 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74074         to pacify gcc -Wswitch-default.
74075
74076 2006-01-22  Bruno Haible  <bruno@clisp.org>
74077
74078         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74079         temporary buffer for sprintf, take into account the precision also
74080         for 'd', 'i', 'u', 'o', 'x', 'X'.
74081
74082 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74083
74084         * modules/argp-tests: New module
74085         * tests/test-argp.c: New file
74086         * tests/test-argp-2.sh: New file
74087
74088 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74089
74090         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74091         (__argp_base_name): Removed
74092         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74093         typo.
74094         (__argp_base_name): Provide macro definition or extern declaration
74095         depending on the configuration
74096
74097 2006-01-20  Simon Josefsson  <jas@extundo.com>
74098
74099         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74100
74101 2006-01-20  Simon Josefsson  <jas@extundo.com>
74102
74103         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74104
74105 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74108         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74109         Suggested by Bruno Haible.
74110
74111 2006-01-20  Karl Berry  <karl@gnu.org>
74112
74113         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74114         until changes propagate, I guess.
74115
74116 2006-01-19  Simon Josefsson  <jas@extundo.com>
74117
74118         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74119
74120 2006-01-19  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74123
74124 2006-01-19  Simon Josefsson  <jas@extundo.com>
74125
74126         * gnulib-tool: Set check_PROGRAMS.
74127
74128         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74129         modules/des-tests, modules/gc-arcfour-tests,
74130         modules/gc-arctwo-tests, modules/gc-des-tests,
74131         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74132         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74133         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74134         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74135         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74136         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74137         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74138         test_*_SOURCES.
74139
74140 2006-01-18  Simon Josefsson  <jas@extundo.com>
74141
74142         * modules/socklen (Depends-on): Depend on sys_socket.
74143
74144 2006-01-18  Simon Josefsson  <jas@extundo.com>
74145
74146         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74147         modules/des-tests, modules/gc-arcfour-tests,
74148         modules/gc-arctwo-tests, modules/gc-des-tests,
74149         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74150         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74151         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74152         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74153         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74154         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74155         $(EXEEXT) to automake TESTS variable, for mingw32.
74156
74157 2006-01-17  Simon Josefsson  <jas@extundo.com>
74158
74159         * modules/socklen (Include): Need sys/socket.h.
74160
74161 2006-01-17  Bruno Haible  <bruno@clisp.org>
74162
74163         * modules/ssize_t (Include): Add <sys/types.h>.
74164
74165 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74168         it's not portable and it doesn't work with cross-compiles.
74169         Problem reported by Bruno Haible.  Fix missing-$ typo in
74170         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74171         -zignore from being used with Sun's C compiler.
74172
74173 2006-01-12  Simon Josefsson  <jas@extundo.com>
74174
74175         * lib/base64.c: Fix warning, reported by Bruno Haible
74176         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74177
74178 2006-01-12  Bruno Haible  <bruno@clisp.org>
74179
74180         * modules/ldd: New file.
74181         * build-aux/ldd.sh.in: New file.
74182         * MODULES.html.sh (Support for building libraries and executables): Add
74183         ldd.
74184
74185 2006-01-12  Bruno Haible  <bruno@clisp.org>
74186
74187         * m4/ldd.m4: New file.
74188
74189 2006-01-12  Bruno Haible  <bruno@clisp.org>
74190
74191         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74192         endless loop while replacing $auxdir with build-aux.
74193
74194 2006-01-11  Simon Josefsson  <jas@extundo.com>
74195
74196         * lib/stdint_.h (SIZE_MAX): Add missing (.
74197
74198 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74199
74200         Sync from coreutils.
74201         * lib/md5.c: Fix commentary typos.
74202         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74203         * lib/md5.h (__attribute__): Remove; unused.
74204         * lib/sha1.c: Fix commentary to match md5 better.
74205         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74206         so that we don't need to worry about alignment.  All uses changed.
74207         This merges the 2005-10-28 md5 change into sha1.
74208
74209 2006-01-11  Jim Meyering  <jim@meyering.net>
74210
74211         Sync from coreutils.
74212         * lib/md5.c (OP): Fix spacing.
74213
74214 2006-01-11  Bruno Haible  <bruno@clisp.org>
74215
74216         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74217         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74218         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74219
74220 2006-01-11  Bruno Haible  <bruno@clisp.org>
74221
74222         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74223         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74224         the "early" section as well.
74225
74226 2006-01-11  Bruno Haible  <bruno@clisp.org>
74227
74228         Avoid "ar: no archive members specified" error on MacOS X.
74229         * gnulib-tool (func_modules_add_dummy): New function.
74230         (func_import, func_create_testdir): Invoke it.
74231
74232 2006-01-11  Bruno Haible  <bruno@clisp.org>
74233
74234         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74235         with $auxdir in AC_CONFIG_FILES statements.
74236
74237 2006-01-11  Bruno Haible  <bruno@clisp.org>
74238
74239         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74240         Initialize also noinst_HEADERS to empty.
74241
74242 2006-01-11  Bruno Haible  <bruno@clisp.org>
74243
74244         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74245         variables.
74246         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74247         autoreconf.
74248
74249 2006-01-11  Bruno Haible  <bruno@clisp.org>
74250
74251         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74252         overridable by the user.
74253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74254
74255 2006-01-10  Simon Josefsson  <jas@extundo.com>
74256
74257         * modules/sys_socket: New file.
74258
74259 2006-01-10  Simon Josefsson  <jas@extundo.com>
74260
74261         * m4/sys_socket_h.m4: New file.
74262
74263 2006-01-10  Simon Josefsson  <jas@extundo.com>
74264
74265         * lib/socket_.h: New file.
74266
74267 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74268
74269         * modules/readutmp (Maintainer): Add myself.
74270
74271 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74274         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74275         People who are still concerned with buggy memcmp implementations
74276         can invoke gl_FUNC_MEMCMP themselves.
74277
74278 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         * lib/regex_internal.h (BITSET_WORD_BITS):
74281         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74282         preprocessor mishandles large unsigned values as if they were signed.
74283         Problem reported by Claudio Fontana in
74284         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74285
74286 2006-01-10  Jim Meyering  <jim@meyering.net>
74287
74288         Avoid the double-free (first in fts_read, second in fts_close) that
74289         would occur when an `active' directory is made inaccessible (e.g.,
74290         via chmod a-x) during a traversal.
74291         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74292         before returning.  Reproduce this failure by
74293         mkdir -p a/b; cd a; chmod a-x . b
74294         Reported by Stavros Passas.
74295
74296         Sync from coreutils.
74297         * lib/sha1.c: Tweak grammar in a comment.
74298
74299 2006-01-10  Jim Meyering  <jim@meyering.net>
74300
74301         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74302         Patch by Joerg Sonnenberger.
74303
74304 2006-01-10  Bruno Haible  <bruno@clisp.org>
74305
74306         * modules/readutmp: Depend on module free.
74307         * modules/strtok_r: Depend on module restrict.
74308
74309 2006-01-10  Bruno Haible  <bruno@clisp.org>
74310
74311         * modules/gettext (configure.ac): Add an invocation of
74312         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74313
74314 2006-01-10  Bruno Haible  <bruno@clisp.org>
74315
74316         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74317         Reported by Werner Lemberg <wl@gnu.org>.
74318
74319 2006-01-10  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/localcharset.c: Update from GNU gettext.
74322
74323 2006-01-10  Bruno Haible  <bruno@clisp.org>
74324
74325         * lib/argp.h (__const): Remove macro. Use const instead.
74326         * lib/argp-fmtstream.h (__const): Likewise.
74327         * lib/glob_.h (__const): Remove macro.
74328         * lib/glob-libc.h: Use const instead of __const.
74329
74330 2006-01-10  Bruno Haible  <bruno@clisp.org>
74331
74332         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74333         variable.
74334         Needed to avoid an automake error regarding the 'gettext' module.
74335
74336 2006-01-09  Simon Josefsson  <jas@extundo.com>
74337
74338         * modules/inet_ntop (Depends-on): Add restrict.
74339
74340 2006-01-09  Simon Josefsson  <jas@extundo.com>
74341
74342         * modules/gc-rijndael-tests (License): Put under LGPL.
74343
74344         * modules/gc-des-tests (License): Likewise.
74345
74346         * modules/gc-arcfour-tests (License): Likewise.
74347
74348         * modules/gc-arctwo-tests (License): Likewise.
74349
74350         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74351
74352         * modules/gc-hmac-sha1-tests (Files): Likewise.
74353
74354         * modules/gc-hmac-md5-tests (License): Likewise.
74355
74356         * modules/gc-sha1-tests (License): Likewise.
74357
74358         * modules/gc-md5-tests (License): Likewise.
74359
74360         * modules/gc-md4-tests (License): Likewise.
74361
74362         * modules/gc-md2-tests (License): Likewise.
74363
74364         * modules/gc-tests (License): Likewise.
74365
74366         * modules/des-tests (License): Likewise.
74367
74368         * modules/md4-tests (License): Likewise.
74369
74370         * modules/md2-tests (License): Likewise.
74371
74372 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         Sync from coreutils:
74375
74376         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74377         * modules/lib-ignore: New file.
74378         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74379         chdir-safer.m4, lchmod.m4.
74380         * modules/openat: Add mkdirat.c, openat-priv.h.
74381
74382 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         Sync from coreutils.
74385         * m4/lib-ignore.m4: New file.
74386         * m4/lchmod.m4: New file.
74387
74388 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         Sync from coreutils.
74391         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74392         for write access: POSIX says that must fail.
74393         * lib/fts.c (diropen): Likewise.
74394         * lib/save-cwd.c (save_cwd): Likewise.
74395         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74396         well, for minor improvements on hosts that lack O_DIRECTORY.
74397         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74398         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74399         Fall back on chown if open failed with EACCES.
74400
74401         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74402         Report an error at compile-time if only a 1-second nominal clock
74403         resolution is found.
74404
74405         * lib/lchmod.h: New file.
74406         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74407         (make_dir_parents): Use lchown rather than chown, and
74408         lchmod rather than chmod.
74409
74410         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74411         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74412         "proc" reported by n0dalus.
74413
74414         * lib/mountlist.c: Include <limits.h>.
74415         (dev_from_mount_options)
74416         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74417         New function.  It no longer assumes "dev=" has the System V meaning
74418         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74419         (read_file_system_list)
74420         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74421         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74422         dev= in that case.
74423
74424         * lib/posixtm.h (PDS_PRE_2000): New macro.
74425         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74426         allow_century.  All usages changed.  Reject dates outside the range
74427         1969-1999 if PDS_PRE_2000 is used.
74428
74429 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         Sync from coreutils.
74432         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74433         (Time of day items): Mention the possibility of leap seconds.
74434         Problem reported by Dr. David Alan Gilbert.
74435
74436 2006-01-09  Jim Meyering  <jim@meyering.net>
74437
74438         Sync from coreutils.
74439
74440         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74441
74442         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74443
74444         * lib/modechange.c (mode_compile): Reject an invalid mode string
74445         that starts with an octal digit.  From Andreas Gruenbacher.
74446
74447         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74448         and dup to open_safer and dup_safer, respectively.
74449         (openat_permissive): Fix typo in comment.
74450
74451         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74452         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74453         (_): Remove; no longer needed.
74454         (openat): Renamed from rpl_openat; no need for rpl_openat
74455         since openat.h renames openat for us.
74456         Replace most of the body with a call to openat_permissive,
74457         to avoid duplicate code.
74458         Port to (probably hypothetical) environments were mode_t is
74459         wider than int.
74460         (openat_permissive): Require mode arg, so that we can check
74461         types better.  Put it just after flags.  Change cwd failure
74462         indicator from pointer-to-bool to pointer-to-errno-value.
74463         All callers changed.
74464         Invoke openat_save_fail and/or openat_restore_fail if
74465         cwd_errno is null, so that openat can call us.
74466         (openat_permissive, fdopendir, fstatat, unlinkat):
74467         Simplify errno handling to avoid some duplicate code,
74468         as it's OK to set errno on success.
74469         * lib/openat.h: Revamp code so that function macros depend on
74470         __OPENAT_PREFIX only, not also on AT_FDCWD.
74471         (openat_ro): Remove.  Caller changed to use openat_permissive.
74472         (openat_permissive): Now a macro, if not a function.
74473         (openat_restore_fail, openat_save_fail): Now always functions,
74474         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74475
74476         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74477         and openat.c.
74478         * lib/mkdirat.c: Include openat-priv.h.
74479         Remove definitions of macros defined therein.
74480         * lib/openat.c: Likewise.
74481
74482         * lib/mkdirat.c (mkdirat): New file and function.
74483         * lib/openat.h (mkdirat): Declare.
74484
74485         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74486
74487         * lib/openat.h (openat_permissive): Declare.
74488         (openat_ro): Define.
74489
74490         * lib/openat.c (EXPECTED_ERRNO): New macro.
74491         (openat_permissive): New function -- used in remove.c rewrite.
74492         (all functions): Set errno just before returning, only if there
74493         was an actual failure.
74494         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74495
74496         Emulate openat-family functions using Linux's procfs, if possible.
74497         Idea and some code based on Ulrich Drepper's glibc changes.
74498
74499         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74500         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74501         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74502         before falling back on save_cwd and restore_cwd.
74503         (fdopendir, fstatat, unlinkat): Likewise.
74504
74505         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74506         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74507
74508         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74509         as second argument to va_arg.  Otherwise, some versions of gcc
74510         warn that `if this code is reached, the program will abort'.
74511
74512 2006-01-09  Jim Meyering  <jim@meyering.net>
74513
74514         Sync from coreutils.
74515         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74516         Require openat-priv.h.
74517
74518 2006-01-09  Bruno Haible  <bruno@clisp.org>
74519
74520         * modules/strnlen (Include): Use strnlen.h.
74521
74522 2006-01-09  Bruno Haible  <bruno@clisp.org>
74523
74524         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74525
74526 2006-01-09  Bruno Haible  <bruno@clisp.org>
74527
74528         * lib/sysexit_.h (EX_OK): New macro.
74529         Suggested by Martin Lambers <marlam@marlam.de>.
74530
74531 2006-01-09  Bruno Haible  <bruno@clisp.org>
74532
74533         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74534         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74535
74536 2006-01-09  Bruno Haible  <bruno@clisp.org>
74537
74538         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74539         numbers.
74540
74541 2006-01-09  Bruno Haible  <bruno@clisp.org>
74542
74543         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74544         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74545         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74546         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74547
74548 2006-01-09  Bruno Haible  <bruno@clisp.org>
74549
74550         * build-aux/javacomp.sh.in: New file, moved from lib/.
74551         * modules/javacomp-script (Files): Update.
74552         (configure.ac): Add AC_CONFIG_FILES invocation.
74553         (EXTRA_DIST): Remove variable.
74554
74555         * build-aux/javaexec.sh.in: New file, moved from lib/.
74556         * modules/javaexec (Files): Update.
74557         (configure.ac): Add AC_CONFIG_FILES invocation.
74558         (EXTRA_DIST): Remove javaexec.sh.in.
74559
74560         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74561         * modules/csharpcomp-script (Files): Update.
74562         (configure.ac): Add AC_CONFIG_FILES invocation.
74563         (EXTRA_DIST): Remove variable.
74564
74565         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74566         * modules/csharpexec (Files): Update.
74567         (configure.ac): Add AC_CONFIG_FILES invocation.
74568         (EXTRA_DIST): Remove csharpexec.sh.in.
74569
74570 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74571
74572         Sync from coreutils.
74573
74574         Add POSIX ACL support
74575         * lib/acl.h (copy_acl, set_acl): Add declarations.
74576         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74577         systems other than Linux.
74578         (chmod_or_fchmod): New function: use fchmod when possible,
74579         and chmod otherwise.
74580         (file_has_acl): Add a POSIX ACL implementation, with a
74581         Linux-specific subcase.
74582         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74583         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74584         acls are unsupported.
74585         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74586         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74587         are unsupported.
74588
74589 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74590
74591         Sync from coreutils.
74592         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74593
74594 2006-01-07  Bruno Haible  <bruno@clisp.org>
74595
74596         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74597         gl_EARLY.
74598
74599 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74600
74601         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74602         Problem reported for Mingw by Mark Junker.
74603
74604 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         * README: Gnulib normally doesn't generate a tarball.
74607
74608 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74611         long int, not int, for nanosecond counts, so that people who are
74612         used to POSIX struct timespec won't be surprised.  Reported by Jim
74613         Meyering.
74614
74615 2005-12-28  Bruno Haible  <bruno@clisp.org>
74616
74617         * build-aux/config.rpath: Update from GNU gettext.
74618
74619 2005-12-16  Jim Meyering  <jim@meyering.net>
74620
74621         * modules/fprintftime: New module.
74622         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74623
74624 2005-12-16  Jim Meyering  <jim@meyering.net>
74625
74626         * m4/fprintftime.m4: New file.
74627
74628 2005-12-16  Jim Meyering  <jim@meyering.net>
74629
74630         * lib/fprintftime.c, lib/fprintftime.h: New files.
74631
74632 2005-12-15  Simon Josefsson  <jas@extundo.com>
74633
74634         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74635         new m4/socklen.m4.
74636
74637 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74638
74639         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74640         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74641
74642 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74643
74644         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74645         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74646         struct uparams is valid. Fall back to the default values if it is
74647         not.
74648
74649 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74650
74651         * modules/argp (Files): Add argp-pin.c
74652         (Depends-on): dirname
74653         (lib_SOURCES): Add argp-pin.c
74654
74655 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74656
74657         * m4/argp.m4:  Check if program_invocation_name and
74658         program_invocation_short_name are declared and define appropriate
74659         macros if they are not.
74660
74661 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74662
74663         * lib/argp-help.c (__argp_base_name): New function
74664         (__argp_short_program_name): Rewrite using __argp_base_name
74665         * lib/argp-namefrob.h: Define program_invocation_name and
74666         program_invocation_short_name if requested
74667         (__argp_base_name): Add prototype
74668         * lib/argp-parse.c (argp_def): Use gettext wrappers
74669         (argp_default_parser): Use __argp_base_name
74670         * lib/argp-pin.c: New file. Defines program_invocation_name and
74671         program_invocation_short_name on systems that lack them.
74672
74673 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74676         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74677         porting problem reported by Georg Schwarz in
74678         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74679
74680 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74683         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74684         porting problem reported by Georg Schwarz in
74685         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74686
74687 2005-12-05  Bruno Haible  <bruno@clisp.org>
74688
74689         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74690         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74691         Reported by Mark Junker <mjscod@gmx.de>.
74692
74693 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74696         Use implementation from Albert Chin, with some
74697         comments/corrections by Stepan Kasal and myself.
74698
74699 2005-12-02  Bruno Haible  <bruno@clisp.org>
74700
74701         * gnulib-tool (func_import): Accept GPLed build tool modules when
74702         --lgpl is given.
74703         * modules/csharpcomp-script: New file.
74704         * modules/csharpcomp: Depend on it.
74705         * modules/javacomp-script: New file.
74706         * modules/javacomp: Depend on it.
74707         Suggested by Simon Josefsson.
74708
74709 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74712         statement, to work around an HP-UX 10.20 compiler bug reported by
74713         Peter O'Gorman.
74714
74715 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * modules/savedir (Depends-on): Add openat.
74718
74719 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74722         (uintmax_t) [defined uintmax_t]: Do not declare.
74723         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74724         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74725         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74726         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74727         sake of portability to weird hosts that C allows (though we don't
74728         know of any practical examples).
74729
74730         * lib/savedir.h (fdsavedir): New decl.
74731         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74732         contains most of the former guts of savedir.
74733         (savedir): Use savedirstream.
74734         Include "openat.h".
74735
74736 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         * modules/obstack (Files): Add m4/ulonglong.m4.
74739         Problem reported by Davide Angelocola.
74740
74741 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74742
74743         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74744         coreutils no longer futzes with rounding modes.
74745
74746 2005-11-14  Jim Meyering  <jim@meyering.net>
74747
74748         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74749         replacement of mkstemp.
74750
74751 2005-11-10  Simon Josefsson  <jas@extundo.com>
74752
74753         * lib/readline.c: Remove EOL.
74754
74755 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * modules/gethrxtime (Depends-on): Add gettime.
74758
74759 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74762         or gettimeofday; no longer needed.
74763
74764 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74767         time business.
74768         (gethrxtime) [! (HAVE_NANOUPTIME
74769         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74770         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74771         our own approximation.
74772
74773 2005-11-08  Eric Blake  <ebb9@byu.net>
74774
74775         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74776
74777 2005-11-08  Eric Blake  <ebb9@byu.net>
74778
74779         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74780
74781 2005-11-04  Bruno Haible  <bruno@clisp.org>
74782
74783         * gnulib-tool: Implement --update mode.
74784
74785 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         Fix porting problem reported by Theodoros V. Kalamatianos.
74788         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74789         Don't assume that futimes failing means we must fail.
74790
74791 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74794         variables to suggest the intended function of the PATH_MAX check.
74795
74796 2005-10-30  Kean Johnston  <jkj@sco.com>
74797
74798         Trivial changes to support SCO systems.
74799         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74800         as PATH_MAX.
74801         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74802         where __ptr is null when no I/O is pending.
74803
74804 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74805
74806         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74807         leave errno alone.  Problem reported by Dmitry V. Levin.
74808
74809 2005-10-28  Simon Josefsson  <jas@extundo.com>
74810
74811         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74812         Test more.
74813
74814         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74815
74816         * modules/md2, modules/md2-tests: New files.
74817
74818 2005-10-28  Simon Josefsson  <jas@extundo.com>
74819
74820         * m4/inet_ntop.m4: More tests.
74821
74822         * m4/gc-md2.m4, md2.m4: New file.
74823
74824 2005-10-28  Simon Josefsson  <jas@extundo.com>
74825
74826         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74827         "restrict" keywords, as per POSIX.  Protect the function
74828         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74829         Don't use K&R prototypes.  Check the sprintf return values.
74830         Re-define EAFNOSUPPORT if not present.  Indent.
74831
74832         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74833         suggested by Bruno Haible <bruno@clisp.org>.
74834
74835         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74836
74837         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74838
74839         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74840         libgcrypt).
74841
74842         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74843
74844         * lib/md2.h, lib/md2.c: New files.
74845
74846 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74849         errno alone.  Problem reported by Frederic Jolliton.
74850
74851 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74852
74853         * modules/verify (License): Change from GPL to LGPL.  This is a
74854         tiny module and there are apparently near-equivalents that are
74855         under the BSD license.
74856
74857 2005-10-24  Simon Josefsson  <jas@extundo.com>
74858
74859         * modules/sha1: Relicense to LGPL.
74860
74861 2005-10-24  Simon Josefsson  <jas@extundo.com>
74862
74863         * lib/md4.h: Shrink buffer size, now that we changed the type.
74864
74865 2005-10-23  Simon Josefsson  <jas@extundo.com>
74866
74867         * gnulib-tool (func_import): Fix --tests-base.
74868
74869 2005-10-22  Simon Josefsson  <jas@extundo.com>
74870
74871         * modules/arcfour (Depends-on): Need stdint.
74872
74873 2005-10-22  Simon Josefsson  <jas@extundo.com>
74874
74875         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74876         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74877
74878 2005-10-22  Simon Josefsson  <jas@extundo.com>
74879
74880         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74881         suggested by Bruno Haible <bruno@clisp.org>.
74882
74883 2005-10-22  Simon Josefsson  <jas@extundo.com>
74884
74885         * lib/crc.h: Include stddef.h, for size_t.
74886
74887 2005-10-22  Simon Josefsson  <jas@extundo.com>
74888
74889         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74890         arcfour_context struct (simplify test vector testing in GNU
74891         Shishi).
74892
74893 2005-10-21  Simon Josefsson  <jas@extundo.com>
74894
74895         * modules/des, modules/des-tests: New files.
74896
74897         * modules/gc-des, modules/gc-des-tests: New files.
74898
74899         * tests/test-des.c, tests/test-gc-des.c: New file.
74900
74901 2005-10-21  Simon Josefsson  <jas@extundo.com>
74902
74903         * modules/arctwo, modules/arctwo-tests: New files.
74904
74905         * tests/test-arctwo.c: New file.
74906
74907         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74908
74909         * tests/test-gc-arctwo.c: New file.
74910
74911 2005-10-21  Simon Josefsson  <jas@extundo.com>
74912
74913         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74914         Bruno Haible <bruno@clisp.org>.
74915
74916         * m4/gc-des.m4: New file.
74917
74918 2005-10-21  Simon Josefsson  <jas@extundo.com>
74919
74920         * m4/arctwo.m4: New file.
74921
74922         * m4/gc-arctwo.m4: New file.
74923
74924 2005-10-21  Simon Josefsson  <jas@extundo.com>
74925
74926         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74927         block.
74928
74929 2005-10-21  Simon Josefsson  <jas@extundo.com>
74930
74931         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74932         <bruno@clisp.org>.
74933
74934         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74935
74936         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74937         Bruno Haible <bruno@clisp.org>.
74938
74939         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74940         <bruno@clisp.org>.
74941
74942 2005-10-21  Simon Josefsson  <jas@extundo.com>
74943
74944         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74945
74946 2005-10-21  Simon Josefsson  <jas@extundo.com>
74947
74948         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74949
74950 2005-10-21  Simon Josefsson  <jas@extundo.com>
74951
74952         * lib/des.h, lib/des.c: New files.
74953
74954         * lib/gc-gnulib.c: Support DES.c
74955
74956 2005-10-21  Simon Josefsson  <jas@extundo.com>
74957
74958         * lib/arctwo.h, lib/arctwo.c: New files.
74959
74960         * lib/gc-gnulib.c: Support ARCTWO.
74961
74962 2005-10-21  Simon Josefsson  <jas@extundo.com>
74963
74964         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74965         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74966
74967 2005-10-21  Simon Josefsson  <jas@extundo.com>
74968
74969         * gnulib-tool (func_import, func_create_testdir): Define automake
74970         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74971         Makefile.am snippet),
74972         suggested by Bruno Haible <bruno@clisp.org>.
74973
74974         * modules/gc (Makefile.am): Use it.
74975
74976 2005-10-21  Bruno Haible  <bruno@clisp.org>
74977
74978         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74979         patch.
74980
74981 2005-10-19  Simon Josefsson  <jas@extundo.com>
74982
74983         * tests/test-gc-rijndael.c: New file.
74984
74985         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74986
74987 2005-10-19  Simon Josefsson  <jas@extundo.com>
74988
74989         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74990         interface too.
74991
74992 2005-10-19  Simon Josefsson  <jas@extundo.com>
74993
74994         * tests/test-gc-arcfour.c: New file.
74995
74996         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74997
74998 2005-10-19  Simon Josefsson  <jas@extundo.com>
74999
75000         * modules/gc-md4, modules/gc-md4-tests: New file.
75001
75002         * tests/test-gc-md4.c: New file.
75003
75004 2005-10-19  Simon Josefsson  <jas@extundo.com>
75005
75006         * m4/gc-md4.m4: New file.
75007
75008 2005-10-19  Simon Josefsson  <jas@extundo.com>
75009
75010         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75011         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75012         <kasal@ucw.cz>.
75013
75014 2005-10-19  Simon Josefsson  <jas@extundo.com>
75015
75016         * m4/gc-arcfour.m4: New file.
75017
75018         * m4/gc-rijndael.m4: New file.
75019
75020 2005-10-19  Simon Josefsson  <jas@extundo.com>
75021
75022         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75023
75024 2005-10-19  Simon Josefsson  <jas@extundo.com>
75025
75026         * lib/gc-gnulib.c: Support ARCFOUR.
75027
75028 2005-10-19  Simon Josefsson  <jas@extundo.com>
75029
75030         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75031         support.
75032
75033         * lib/gc.h: Add ECB enum type.
75034
75035         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75036
75037 2005-10-18  Simon Josefsson  <jas@extundo.com>
75038
75039         * tests/test-md5.c: New file.
75040
75041         * modules/md5-tests: New file.
75042
75043 2005-10-18  Simon Josefsson  <jas@extundo.com>
75044
75045         * tests/test-md4.c: New file.
75046
75047         * modules/md4, modules/md4-tests: New files.
75048
75049 2005-10-18  Simon Josefsson  <jas@extundo.com>
75050
75051         * m4/md4.m4: New file.
75052
75053 2005-10-18  Simon Josefsson  <jas@extundo.com>
75054
75055         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75056
75057 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75058
75059         * gnulib-tool (func_create_testdir): Omit the second check whether
75060         BUILT_SOURCES in nonempty.
75061
75062 2005-10-17  Simon Josefsson  <jas@extundo.com>
75063
75064         * tests/test-rijndael.c: New file.
75065
75066 2005-10-17  Simon Josefsson  <jas@extundo.com>
75067
75068         * modules/sha1: Depend on stdint instead of md5.
75069
75070         * modules/md5: Depend on stdint, remove uint32_t.
75071
75072 2005-10-17  Simon Josefsson  <jas@extundo.com>
75073
75074         * modules/gc-sha1-tests: New file.
75075
75076         * tests/test-gc-sha1.c: New file.
75077
75078 2005-10-17  Simon Josefsson  <jas@extundo.com>
75079
75080         * m4/md5.m4: Remove call to uint32_t.m4.
75081
75082 2005-10-17  Simon Josefsson  <jas@extundo.com>
75083
75084         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75085
75086         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75087         md5.h.
75088
75089         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75090
75091         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75092
75093 2005-10-17  Simon Josefsson  <jas@extundo.com>
75094
75095         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75096
75097 2005-10-17  Simon Josefsson  <jas@extundo.com>
75098
75099         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75100
75101 2005-10-17  Simon Josefsson  <jas@extundo.com>
75102
75103         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75104
75105         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75106
75107 2005-10-17  Bruno Haible  <bruno@clisp.org>
75108
75109         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75110         that it can also be used in a test.
75111
75112 2005-10-16  Bruno Haible  <bruno@clisp.org>
75113
75114         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75115         TESTS_ENVIRONMENT, so that individual tests can augment it.
75116
75117         * gnulib-tool (func_create_testdir): Use an intermediate target for
75118         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75119         macros, like $(ALLOCA_H), which cannot be passed through the command
75120         line.
75121
75122 2005-10-15  Simon Josefsson  <jas@extundo.com>
75123
75124         * modules/rijndael-tests: New file.
75125
75126         * modules/rijndael: New file.
75127
75128 2005-10-15  Simon Josefsson  <jas@extundo.com>
75129
75130         * m4/rijndael.m4: New file.
75131
75132 2005-10-15  Simon Josefsson  <jas@extundo.com>
75133
75134         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75135
75136         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75137
75138 2005-10-14  Simon Josefsson  <jas@extundo.com>
75139
75140         * tests/test-arcfour.c: New file.
75141
75142         * modules/arcfour, modules/arcfour-tests: New files.
75143
75144 2005-10-14  Simon Josefsson  <jas@extundo.com>
75145
75146         * m4/arcfour.m4: New file.
75147
75148 2005-10-14  Simon Josefsson  <jas@extundo.com>
75149
75150         * lib/arcfour.h, lib/arcfour.c: New files.
75151
75152 2005-10-14  Roland McGrath  <roland@redhat.com>
75153
75154         Import from libc.  [BZ #1331]
75155         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75156         macro argument.
75157         Reported by Matej Vela <vela@debian.org>.
75158
75159 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75162         include <wchar.h>; no longer needed.
75163
75164 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75165
75166         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75167
75168 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75169         and  Ulrich Drepper  <drepper@redhat.com>
75170
75171         Import from libc.
75172         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75173         instead of inline stream orientation test and two separate
75174         function calls.  Pay no attention to USE_IN_LIBIO.
75175
75176 2005-10-13  Simon Josefsson  <jas@extundo.com>
75177
75178         * modules/gc-hmac-md5-tests: New file.
75179
75180         * tests/test-gc-hmac-sha1.c: New file.
75181
75182         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75183
75184         * modules/gc-hmac-md5-tests: New file.
75185
75186         * tests/test-gc-md5.c: New file.
75187
75188         * modules/gc-md5-tests: New file.
75189
75190 2005-10-13  Simon Josefsson  <jas@extundo.com>
75191
75192         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75193         Move memory allocation outside of loop.
75194
75195 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75196
75197         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75198         intermediate directory is in a read-only file system.  Problem
75199         reported by Eric Blake.
75200
75201 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75202
75203         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75204
75205 2005-10-12  Simon Josefsson  <jas@extundo.com>
75206
75207         * tests/test-hmac-sha1.c: New file.
75208
75209         * modules/hmac-sha1-tests: New file.
75210
75211         * modules/hmac-sha1: New file.
75212
75213 2005-10-12  Simon Josefsson  <jas@extundo.com>
75214
75215         * modules/gc-sha1: New file.
75216
75217 2005-10-12  Simon Josefsson  <jas@extundo.com>
75218
75219         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75220
75221         * tests/test-gc-pbkdf2-sha1.c: New file.
75222
75223 2005-10-12  Simon Josefsson  <jas@extundo.com>
75224
75225         * modules/gc-md5, modules/gc-hmac-md5: New files.
75226
75227         * modules/gc (Files): Remove md5, memxor and hmac files.
75228
75229 2005-10-12  Simon Josefsson  <jas@extundo.com>
75230
75231         * m4/gc-pbkdf2-sha1.m4: New file.
75232
75233         * m4/gc-hmac-sha1.m4: New file.
75234
75235         * m4/gc-sha1: New file.
75236
75237         * m4/hmac-sha1.m4: New file.
75238
75239 2005-10-12  Simon Josefsson  <jas@extundo.com>
75240
75241         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75242
75243         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75244
75245 2005-10-12  Simon Josefsson  <jas@extundo.com>
75246
75247         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75248         suggested by Bruno Haible <bruno@clisp.org>.
75249
75250 2005-10-12  Simon Josefsson  <jas@extundo.com>
75251
75252         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75253
75254 2005-10-12  Simon Josefsson  <jas@extundo.com>
75255
75256         * lib/gc-pbkdf2-sha1.c: New file.
75257
75258         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75259
75260 2005-10-12  Simon Josefsson  <jas@extundo.com>
75261
75262         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75263
75264         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75265
75266 2005-10-12  Simon Josefsson  <jas@extundo.com>
75267
75268         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75269         GC_USE_HMAC_MD5, respectively.
75270
75271         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75272         (gc_md5): Fix typo.
75273
75274         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75275
75276         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75277
75278         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75279
75280 2005-10-12  Bruno Haible  <bruno@clisp.org>
75281
75282         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75283         Reported by Stepan Kasal <kasal@ucw.cz>.
75284
75285 2005-10-11  Simon Josefsson  <jas@extundo.com>
75286
75287         * tests/test-crc.c: New file.
75288
75289         * modules/crc, modules/crc-tests: New files.
75290
75291 2005-10-11  Simon Josefsson  <jas@extundo.com>
75292
75293         * m4/crc.m4: New file.
75294
75295 2005-10-11  Simon Josefsson  <jas@extundo.com>
75296
75297         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75298
75299         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75300
75301         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75302
75303 2005-10-11  Simon Josefsson  <jas@extundo.com>
75304
75305         * lib/crc.h, lib/crc.c: New files.
75306
75307         * lib/gc.h (gc_hash_buffer): Add doc.
75308
75309 2005-10-11  Bruno Haible  <bruno@clisp.org>
75310
75311         * modules/c-strcasestr: New file.
75312         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75313
75314 2005-10-11  Bruno Haible  <bruno@clisp.org>
75315
75316         * modules/c-strcase: New file.
75317         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75318
75319 2005-10-11  Bruno Haible  <bruno@clisp.org>
75320
75321         * lib/strcasecmp.c: Include limits.h.
75322         (strcasecmp): Avoid integer overflow on exotic platforms.
75323         * lib/strncasecmp.c: Include limits.h.
75324         (strncasecmp): Avoid integer overflow on exotic platforms.
75325         Reported by Paul Eggert.
75326
75327 2005-10-11  Bruno Haible  <bruno@clisp.org>
75328
75329         * lib/c-strcasestr.h: New file, from GNU gettext.
75330         * lib/c-strcasestr.c: New file, from GNU gettext.
75331
75332 2005-10-11  Bruno Haible  <bruno@clisp.org>
75333
75334         * lib/c-strcase.h: New file, from GNU gettext.
75335         * lib/c-strcasecmp.c: New file, from GNU gettext.
75336         * lib/c-strncasecmp.c: New file, from GNU gettext.
75337
75338 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * modules/mempcpy (License): GPL -> LGPL.
75341         * modules/strchrnul (License): Likewise.
75342         * modules/sysexits (License): Likewise.
75343
75344 2005-10-08  Simon Josefsson  <jas@extundo.com>
75345
75346         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75347
75348 2005-10-07  Simon Josefsson  <jas@extundo.com>
75349
75350         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75351
75352 2005-10-06  Simon Josefsson  <jas@extundo.com>
75353
75354         * tests/test-hmac-md5.c: New file.
75355
75356         * modules/hmac-md5-tests: New file.
75357
75358         * modules/hmac-md5: New file.
75359
75360 2005-10-06  Simon Josefsson  <jas@extundo.com>
75361
75362         * m4/hmac-md5.m4: New file.
75363
75364         * m4/memxor.m4: Require gl_C_RESTRICT.
75365
75366 2005-10-06  Simon Josefsson  <jas@extundo.com>
75367
75368         * lib/memxor.c (memxor): Avoid casts and warnings.
75369
75370 2005-10-06  Simon Josefsson  <jas@extundo.com>
75371
75372         * lib/hmac-md5.c: New file.
75373
75374         * lib/hmac.h: New file.
75375
75376 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75379         promotes to int, not unsigned int, to catch the AIX 5.3
75380         compiler bug.
75381
75382 2005-10-05  Simon Josefsson  <jas@extundo.com>
75383
75384         * modules/memxor: New file.
75385
75386         * modules/iconv (Files): Move config.rpath to havelib, it is used
75387         there.
75388
75389         * modules/havelib (Files): Add config.rpath.
75390
75391 2005-10-05  Simon Josefsson  <jas@extundo.com>
75392
75393         * m4/memxor.m4: New file.
75394
75395 2005-10-05  Simon Josefsson  <jas@extundo.com>
75396
75397         * lib/memxor.c (memxor): Fix compiler error.
75398
75399         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75400         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75401
75402         * lib/memxor.h, lib/memxor.c: New files.
75403
75404         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75405         we assume all systems have it, suggested by Jim Meyering
75406         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75407         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75408         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75409         same reasons.
75410
75411 2005-10-05  Simon Josefsson  <jas@extundo.com>
75412
75413         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75414
75415 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75416
75417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75418         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75419         needed, since the source code now assumes these .h files.
75420
75421 2005-10-05  Derek Price  <derek@ximbiot.com>
75422
75423         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75424
75425 2005-10-05  Bruno Haible  <bruno@clisp.org>
75426
75427         * modules/stdint (License): Change to LGPL.
75428
75429 2005-10-04  Simon Josefsson  <jas@extundo.com>
75430
75431         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75432         D. Baushke" <mdb@gnu.org>.
75433
75434 2005-10-04  Bruno Haible  <bruno@clisp.org>
75435
75436         * lib/verify.h (verify_true): Provide alternative definition for C++.
75437
75438 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75439
75440         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75441         (SSIZE_MAX): New macro, if not already defined.
75442         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75443         than 2 GiB.
75444
75445 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         Sync from coreutils.
75448         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75449         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75450         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75451         ULLONG_MAX doesn't work with 2.7.2.1.
75452
75453 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75456         From Ben Pfaff.
75457
75458         * modules/exclude (Depends-on): Depend on verify.
75459         * modules/strtoimax (Depends-on): Likewise.
75460         * modules/utimecmp (Depends-on): Likewise.
75461
75462 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * lib/exclude.c: Include verify.h.
75465         (verify): Remove.  All callers changed to use verify.h's version.
75466         * lib/strtoimax.c: Likewise.
75467         * lib/utimecmp.c: Likewis.e
75468
75469         Sync from coreutils.
75470         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75471         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75472         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75473         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75474         bother returning ENOSYS if settimeofday or stime fails; just let
75475         them return whatever errno they want to return.
75476         * lib/utimens.c: Include unistd.h, for dup2.
75477         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75478         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75479
75480 2005-10-02  Jim Meyering  <jim@meyering.net>
75481
75482         Sync from coreutils.
75483         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75484         from glibc-2.2.5 that fails for read-only files.
75485
75486 2005-10-02  Jim Meyering  <jim@meyering.net>
75487
75488         Sync from coreutils.
75489         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75490         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75491         `#if HAVE_CONFIG_H'.
75492         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75493         Remove AT_FDCWD test.
75494         Do not consume the fd unless successful.
75495         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75496         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75497         block, so that we don't even try to compile it if settimeofday is
75498         available.  This works around a compilation failure on OSF1 V5.1,
75499         due to stime requiring a `long int*' while tv_sec is `int'.
75500
75501 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75502
75503         Sync from coreutils.
75504         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75505         against `yes', rather than just testing for nonempty.
75506
75507 2005-10-01  Simon Josefsson  <jas@extundo.com>
75508
75509         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75510         and Darwin.
75511
75512         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75513         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75514         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75515         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75516         Check if struct addrinfo is declared.
75517
75518 2005-10-01  Simon Josefsson  <jas@extundo.com>
75519
75520         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75521         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75522         AI_* and EAI_* definitions.  Protect function declarations.
75523
75524 2005-10-01  Jim Meyering  <jim@meyering.net>
75525
75526         Sync from coreutils.
75527
75528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75529         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75530         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75531         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75532         in the inet and nsl libraries.  Required on Solaris 5.7.
75533
75534 2005-10-01  Jim Meyering  <jim@meyering.net>
75535
75536         Sync from coreutils.
75537         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75538         in the inet and nsl libraries.  Required on Solaris 5.7.
75539
75540 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75541
75542         * lib/getdelim.c (getdelim): Remove unused variables.
75543
75544 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75545
75546         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75547         so that the code works even with ancient cpp.  Portability problem
75548         with GCC 2.7.2.1 reported by Thomas M.Ott.
75549
75550 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75551
75552         * modules/regex (Depends-on): Add strcase.
75553
75554         * modules/gethostname (Licence): Change from GPL to LGPL, since
75555         gethostname.c is a trivial implementation of a standard library
75556         function.
75557         * modules/poll (License): Change from GPL to LGPL, since it's
75558         derived from LGPL code.
75559
75560 2005-09-27  Jim Meyering  <jim@meyering.net>
75561
75562         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75563         HAVE_CONFIG_H.
75564
75565         * lib/intprops.h (signed_type_or_expr__): Define.
75566         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75567         for unsigned types.
75568
75569 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         * lib/verify.h (verify_expr): Remove, replacing with:
75572         (verify_true): New macro that returns true instead of void.
75573         (verify_type__): Remove.
75574         (verify): Use verify_true rather than verify_type__.
75575
75576 2005-09-26  Bruno Haible  <bruno@clisp.org>
75577
75578         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75579         is necessary.
75580         (lib_SOURCES): Remove mbchar.c.
75581         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75582         (Files): Add m4/mbrtowc.m4.
75583         * modules/mbiter: Likewise.
75584         * modules/mbuiter: Likewise.
75585
75586 2005-09-26  Bruno Haible  <bruno@clisp.org>
75587
75588         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75589         compile mbchar.c if they are not both present.
75590         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75591         * m4/mbiter.m4 (gl_MBITER): Likewise.
75592         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75593         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75594         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75595
75596 2005-09-25  Jim Meyering  <jim@meyering.net>
75597
75598         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75599         also uses socklen_t.
75600
75601 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75602
75603         * lib/utimens.c (ENOSYS): Define if not already defined.
75604         (futimens): Support having a null PATH if the file descriptor
75605         is nonnegative.
75606
75607         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75608         Remove.
75609         (__attribute): Define to empty unless GCC 3.1 or later.
75610         This works around a core dump on OpenBSD 3.4, which has GCC
75611         2.95.3, which dumps core when given __attribute__(()).  It also
75612         simplifies other tests, since we really don't want to bother with
75613         worrying about which ancient version of GCC supported what.
75614         Original problem reported by Yoann Vandoorselaere, with part of
75615         the fix suggested by Derek Price.
75616
75617 2005-09-24  Jim Meyering  <jim@meyering.net>
75618
75619         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75620         so we can once again use a positive bitfield width of 1 -- now we
75621         don't have to explain why we were using a bitfield width of 2.
75622
75623 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75626         and similarly for the other external symbols.  Problem reported
75627         by James Gallager.
75628
75629         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75630         bug reported by Jim Meyering.
75631
75632         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75633         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75634         not needed, since socklen is a prerequisite module.
75635
75636 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75639         Problem reported by Eric Blake.
75640         (getaddrinfo): Initialize se so that it's not garbage.
75641         Redo internal storage allocation so that it doesn't make unportable
75642         assumptions about alignment.
75643         Fix a memory leak.
75644
75645         * lib/utimens.c (futimens): Use futimesat if available.
75646         Prefer it to futimes since it doesn't have the futimes bug.
75647
75648         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75649         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75650         Instead, declare a function that returns a pointer to an array,
75651         and use verify_type__ to declare the size of the array.
75652         Problem and germ of a solution reported by Bruno Haible.
75653         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75654         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75655
75656 2005-09-23  Jim Meyering  <jim@meyering.net>
75657
75658         Sync from coreutils.
75659         Correct build failure (socklen_t not defined) on at least
75660         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75661         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75662
75663 2005-09-23  Jim Meyering  <jim@meyering.net>
75664
75665         * modules/getaddrinfo (Depends-on): Add socklen.
75666
75667 2005-09-23  Bruno Haible  <bruno@clisp.org>
75668
75669         * tests/test-verify.c: New file.
75670
75671 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         Sync from coreutils.
75674
75675         * modules/argmatch (Depends-on): Add verify.
75676         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75677         unistd-safer.
75678         * modules/save-cwd (Depends-on): Likewise.
75679
75680         * modules/openat (Files): Add lib/openat-die.c.
75681         (Depends-on): Remove error, exitfail.
75682         Add dirname.
75683
75684         * modules/verify: New file.
75685         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75686         with "verify" module.
75687
75688 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         Sync from coreutils.
75691
75692         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75693         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75694         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75695         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75696         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75697         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75698         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75699         Don't bother checking for string.h, stdlib.h, unistd.h.
75700         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75701         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75702         module's job.
75703         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75704         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75705
75706         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75707         (gl_GETDATE): Use it.
75708
75709         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75710
75711 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75712
75713         Sync from coreutils.
75714
75715         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75716         stat-time.h.
75717         * lib/argmatch.h: Include verify.h
75718         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75719         (ARGMATCH_ASSERT): Remove; unused.
75720         * lib/canonicalize.c: Assume STDC_HEADERS.
75721         * lib/exclude.c: Include "strcase.h".
75722         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75723         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75724         and stdio-safer.h.
75725         (getusershell): Call fopen, not fopen_safer.
75726         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75727         Do not include unistd-safer.h.
75728         (save_cwd): Don't call fd_safer; no longer needed
75729         now that we include fcntl--.h.
75730
75731         * lib/getdate.y (relative_time): New type.
75732         (RELATIVE_TIME_0): New constant.
75733         (parser_control): Use relative_time instead of doing it ourselves.
75734         (%union): Add new relative_time rel member.
75735         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75736         Now typeless.
75737         (relunit, relunit_snumber): Now of type rel.
75738         (zone, rel, relunit, get_date): Adjust to above changes.
75739
75740         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75741         Do not include unistd-safer.h.
75742         (getloadavg): Don't call fd_safer; no longer needed
75743         now that we include fcntl--.h.
75744
75745         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75746         (make_dir_parents): Treat ENOSYS like EEXIST.
75747
75748         Improve quality of diagnostics on restore_cwd failure.
75749         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75750         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75751         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75752         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75753         each time through the loop.  Do not diagnose restore_cwd failure;
75754         that is the caller's job (and perhaps the caller does not care).
75755
75756         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75757         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75758         If the file already exists but is not a directory, don't bother
75759         to try to make its parents.
75760         Close potential file descriptor leak if we can't chdir("/") (!).
75761         Don't always return true if chdir($PWD) fails; return true only
75762         if the requested action was done successfully (except for the
75763         chdir($PWD)).
75764         Don't log final directory unless we actually made it.
75765         Refactor to avoid duplicate code to fix up permissions.
75766         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75767
75768         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75769         to make it a bit faster and (I hope) clearer.
75770         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75771         Fix bug in formats like %2N.
75772
75773         * lib/verify.h: New file.
75774
75775 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75776
75777         Sync from coreutils.
75778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75779
75780 2005-09-22  Jim Meyering  <jim@meyering.net>
75781
75782         Sync from coreutils.
75783
75784         * m4/lstat.m4 (gl_FUNC_LSTAT):
75785         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75786         Remove obsolete comment.
75787         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75788         * m4/xstrtod.m4: Likewise.
75789
75790         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75791
75792 2005-09-22  Jim Meyering  <jim@meyering.net>
75793
75794         Sync from coreutils.
75795
75796         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75797
75798         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75799         the .tm_year member, since otherwise gcc-4.0 would now warn about
75800         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75801
75802         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75803         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75804
75805         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75806         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75807         when run in a time zone for which daylight savings time is in effect
75808         for the starting date.
75809
75810         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75811         stop us from restricting permissions of just-created absolute-named
75812         directories.
75813         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75814         to restore initial working directory.
75815         * lib/mkdir-p.c (make_dir_parents): New parameter:
75816         different_working_dir, to tell caller if/when we change the working
75817         directory and are unable to return to the initial one.
75818         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75819         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75820         `return false'.  This fixes a bug introduced on 2004-07-30.
75821
75822         * lib/openat.c (fdopendir): Be sure to close the supplied
75823         file descriptor before returning.  This makes our replacement
75824         implementation a little closer to Solaris's, where fdopendir
75825         ties the file descriptor to the returned DIR* pointer.
75826         * lib/openat.c (unlinkat): New function.
75827         * lib/openat.h (unlinkat): Add prototype.
75828         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75829         (openat_restore_fail): Rename from openat_restore_die.
75830         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75831
75832         Provide an alternative to exiting immediately upon save_cwd or
75833         restore_cwd failure.  Now, an application can arrange e.g.,
75834         to perform a longjump in that case.
75835         * lib/openat.c: Include dirname.h.
75836         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75837         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75838         and openat_restore_die rather than calling error directly.
75839         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75840
75841         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75842         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75843         define.
75844
75845         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75846         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75847                             int utc, int nanoseconds);
75848         Background:
75849         date should not have to allocate a megabyte of virtual memory to
75850         handle a format argument like +%1048575T.  When implemented with
75851         strftime, it must allocate such a buffer, use strftime to fill it
75852         in, print it, then free it.
75853         With fprintftime, it simply prints everything and exits.
75854         With no need for memory allocation, that's one fewer way to fail.
75855         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75856         optional field width, not before, so we accept %9:z, not %:9z.
75857         (my_strftime): Be sure to use L_('x') for literals.
75858
75859         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75860         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75861         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75862         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75863         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75864         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75865         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75866         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75867         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75868         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75869         * lib/xgethostname.c, lib/xreadlink.c:
75870         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75871
75872         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75873         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75874         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75875         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75876         and don't include <sys/file.h>).
75877
75878 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75879
75880         Sync from coreutils.
75881
75882         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75883         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75884         [!LDAV_DONE]: Avoid unused variable warning.
75885
75886 2005-09-21  Bruno Haible  <bruno@clisp.org>
75887
75888         * lib/unicodeio.h (unicode_to_mb): New declaration.
75889
75890 2005-09-20  Derek Price  <derek@ximbiot.com>
75891
75892         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75893         getaddrinfo.h.
75894
75895 2005-09-20  Bruno Haible  <bruno@clisp.org>
75896
75897         * gnulib-tool: Remove trailing slashes from the values specified for
75898         --source-base, --m4-base, --tests-base, --aux-dir.
75899         Suggested by Simon Josefsson <jas@extundo.com>.
75900
75901 2005-09-20  Bruno Haible  <bruno@clisp.org>
75902
75903         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75904         func_modules_to_filelist, func_import, func_create_testdir): Make all
75905         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75906         change when gnulib-tool is invoked in a different locale.
75907
75908 2005-09-19  Simon Josefsson  <jas@extundo.com>
75909
75910         * m4/socklen.m4: Fix typo.
75911
75912 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75913
75914         Use a consistent style for including <config.h>.
75915         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75916         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75917         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75918         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75919         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75920         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75921         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75922         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75923         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75924         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75925         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75926         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75927         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75928         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75929         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75930         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75931         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75932         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75933         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75934         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75935         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75936         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75937         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75938         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75939         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75940         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75941         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75942         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75943         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75944         lib/xstrtoumax.c, lib/yesno.c:
75945         Standardize inclusion of config.h.
75946         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75947         lib/inttostr.h:  Removed inclusion of config.h from header files.
75948         * lib/inttostr.c:  Adjusted in-tree users.
75949         * lib/timespec.h: Remove superfluous warning to include config.h.
75950         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75951         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75952         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75953         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75954         config.h with HAVE_CONFIG_H.
75955
75956 2005-09-19  Jim Meyering  <jim@meyering.net>
75957
75958         * modules/pathmax (License): Change to LGPL.
75959
75960 2005-09-19  Derek Price  <derek@ximbiot.com>
75961
75962         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75963
75964 2005-09-19  Bruno Haible  <bruno@clisp.org>
75965
75966         * gnulib-tool (import): Provide default for --tests-base.
75967
75968 2005-09-19  Bruno Haible  <bruno@clisp.org>
75969
75970         * doc/quote.texi: New file, extracted from gnulib.texi.
75971         * doc/ctime.texi: New file, extracted from gnulib.texi.
75972         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75973         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75974         * doc/gnulib.texi: Include them.
75975
75976 2005-09-18  Bruno Haible  <bruno@clisp.org>
75977
75978         Portability fix.
75979         * gnulib-tool (func_readlink): New function.
75980         (func_ln_if_changed): Use it.
75981
75982 2005-09-18  Bruno Haible  <bruno@clisp.org>
75983
75984         * gnulib-tool: Support --with-tests also with --import.
75985         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75986         (func_import): Use variables $testsbase and $inctests. Emit a
75987         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75988         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75989         SUBDIRS += $testsdir.
75990         (func_create_testdir): Update.
75991
75992 2005-09-18  Bruno Haible  <bruno@clisp.org>
75993
75994         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75995         instead of $dry_run.
75996         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75997         (func_ln_if_changed): Don't handle dry-run here.
75998         (func_import): In dry-run mode, detect more precisely which actions
75999         would be performed, and don't use "...ing" verbs.
76000
76001 2005-09-18  Bruno Haible  <bruno@clisp.org>
76002
76003         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76004         (func_import): Use join on two temporary files instead of three nested
76005         loops, in order to determine which files are new or old.
76006
76007 2005-09-18  Bruno Haible  <bruno@clisp.org>
76008
76009         * gnulib-tool (func_import): Comment out code that spits out the
76010         new files with --dry-run.
76011
76012 2005-09-18  Bruno Haible  <bruno@clisp.org>
76013
76014         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76015
76016 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         * lib/stat-time.h: New file.
76019         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76020         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76021         in a different way.
76022         (timespec_cmp): New function.
76023         * lib/utimecmp.c: Include stat-time.h.
76024         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76025         members exist, not on the obsolescent ST_MTIM_NSEC.
76026         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76027
76028 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76031
76032 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * MODULES.html.sh (File system functions): Add stat-time.
76035         * modules/stat-time: New file.
76036         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76037         is now done in a different way, by the stat-time module.
76038         * modules/utimecmp (Depends-on): Add stat-time.
76039
76040 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76041
76042         * m4/st_mtim.m4: Remove.  Superseded by...
76043         * m4/stat-time.m4: New file.
76044         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76045         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76046
76047 2005-09-15  Derek Price  <derek@ximbiot.com>
76048
76049         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76050
76051 2005-09-15  Derek Price  <derek@ximbiot.com>
76052
76053         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76054         * lib/regex_internal.c: Ditto, using this...
76055         (__GNUC_PREREQ): ...new macro.
76056         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76057         using...
76058         (__GNUC_PREREQ): ...this new macro.
76059
76060         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76061
76062 2005-09-15  Derek Price  <derek@ximbiot.com>
76063             Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76066         changes, consolidating in...
76067         * lib/regex_internal.h: ...this file.
76068
76069 2005-09-13  Jim Meyering  <jim@meyering.net>
76070
76071         * lib/canon-host.c: Filter through gnu indent and reword comments
76072         slightly.
76073         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76074
76075 2005-09-13  Derek Price  <derek@ximbiot.com>
76076
76077         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76078         failure.
76079         Reported by Jim Meyering  <jim@meyering.net>.
76080
76081 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76082
76083         * lib/base64.c: Typo.
76084         (base64_encode): Put b64str in initialized data section.
76085
76086 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         Merge glibc and coreutils changes into gnulib, plus a few
76089         extra fixes.
76090         * lib/md5.c: Use #error rather than a string.
76091         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76092         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76093         (__attribute__): Define to empty for non recent-GCC.
76094         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76095         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76096         Renamed from their non-__ counterparts, with new macros replacing
76097         them if not _LIBC.  Add __THROW attribute.
76098         (rol): Remove.
76099         (struct md5_ctx): Align buffer if using GCC.
76100         * lib/sha1.h (struct sha1_ctx): Likewise.
76101         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76102         The old name was backwards.
76103         (NOTSWAP): Remove; not used.
76104         (rol): New macro, moved here from md5.h.
76105         (sha1_process_block): Remove a FIXME that doesn't make sense.
76106
76107 2005-09-12  Derek Price  <derek@ximbiot.com>
76108
76109         Return usable errors from canon-host.
76110         * lib/canon-host.h: New file.
76111         * lib/canon-host.c (canon_host): Wrap...
76112         (canon_host_r): ...this new function, which now relies exclusively on
76113         getaddrinfo.
76114         (ch_strerror): New function.
76115         (last_cherror): New global.
76116         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76117         interface.
76118         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76119         void *.
76120         (freeaddrinfo): Free ai->ai_canonname when set.
76121
76122 2005-09-12  Derek Price  <derek@ximbiot.com>
76123
76124         Make canon-host require getaddrinfo.
76125         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76126         AC_LIBSOURCE canon-host.h.  Call...
76127         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76128         gl_GETADDRINFO.
76129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76130
76131 2005-09-12  Derek Price  <derek@ximbiot.com>
76132
76133         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76134         LGPL.
76135         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76136
76137 2005-09-12  Derek Price  <derek@ximbiot.com>
76138
76139         * lib/gai_strerror.c: Include config.h when available.  Include
76140         getaddrinfo.h before other headers to test interface.
76141         Reported by Larry Jones <lawrence.jones@ugs.com>.
76142
76143 2005-09-12  Derek Price  <derek@ximbiot.com>
76144             Paul Eggert  <eggert@cs.ucla.edu>
76145
76146         * modules/glob (Files): Add glob-libc.h.
76147
76148 2005-09-12  Derek Price  <derek@ximbiot.com>
76149             Paul Eggert  <eggert@cs.ucla.edu>
76150
76151         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76152         glob_.h, glob-libc.h.
76153         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76154
76155 2005-09-12  Derek Price  <derek@ximbiot.com>
76156             Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76159         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76160         protecting things that should be done only in gnulib contexts.
76161         * lib/glob_.h: New file, containing only the glob things needed for
76162         gnulib.
76163         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76164         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76165         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76166         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76167         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76168         and to respect the namespace rules better.
76169
76170 2005-09-08  Simon Josefsson  <jas@extundo.com>
76171
76172         * modules/socklen: New file.
76173
76174 2005-09-08  Simon Josefsson  <jas@extundo.com>
76175
76176         * m4/socklen.m4: New file.
76177
76178 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * modules/utimens (Files): Add m4/utimbuf.m4, since
76181         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76182         Reported by Sergey Poznyakoff.
76183
76184 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76187         definitions, since that's the preferred style in glibc.
76188         Fix a minor spacing issue, and update copyright notice to match
76189         glibc's.
76190
76191 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76194
76195 2005-09-06  Simon Josefsson  <jas@extundo.com>
76196
76197         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76198         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76199
76200 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76201
76202         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76203         warning.
76204
76205 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * config/srclist.txt: Add glibc bug 1302.
76208
76209 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76210
76211         Change bitset word type from unsigned int to unsigned long int,
76212         as this has better performance on typical 64-bit hosts.
76213         Port bitset code to hosts with unusual word sizes.
76214         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76215         (build_collating_symbol):
76216         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76217         argument is a bitset.  This is merely a style issue, but it makes
76218         it clearer that an entire array is expected.
76219         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76220         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76221         Port to the case where bitset_word is not the same as unsigned int.
76222         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76223         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76224         Likewise.
76225         * lib/regexec.c (check_dst_limits_calc_pos_1,
76226         check_subexp_matching_top):
76227         (build_trtable, group_nodes_into_DFAstates):
76228         Likewise.
76229         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76230         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76231         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76232         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76233         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76234         * lib/regcomp.c (optimize_subexps, lower_subexp):
76235         Work even if bitset_word has holes in its bitwise representation.
76236         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76237         * lib/regexec.c (check_dst_limits_calc_pos_1,
76238         check_subexp_matching_top):
76239         Likewise.
76240         * lib/regex_internal.c (re_string_reconstruct):
76241         Don't assume UCHAR_MAX == 255.
76242         * lib/regex_internal.h (bitset_set_all): Likewise.
76243         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76244         All uses changed.
76245         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76246         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76247         All uses changed.
76248         (BITSET_WORD_MAX): New macro.
76249         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76250         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76251         (bitset_empty, bitset_copy):
76252         Prefer sizeof (bitset) to multiplying it out ourselves.
76253         (bitset_not_merge): Remove; unused.
76254         (bitset_contain): Return bool, not unsigned int with one bit on.
76255         All callers changed.
76256         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76257         alignment than re_node_set; do this by defining a new internal
76258         type struct dests_alloc and using it to allocate memory.
76259
76260 2005-09-05  Bruno Haible  <bruno@clisp.org>
76261
76262         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76263         links.
76264
76265 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76266
76267         * modules/size_max (Makefile.am): Add size_max.h
76268
76269 2005-09-04  Derek Price  <derek@ximbiot.com>
76270
76271         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76272
76273 2005-09-03  Simon Josefsson  <jas@extundo.com>
76274
76275         * gnulib-tool: Fix typo.
76276
76277 2005-09-03  Simon Josefsson  <jas@extundo.com>
76278
76279         * config/srclist.txt: Add glibc bug 1293.
76280
76281 2005-09-03  Derek Price  <derek@ximbiot.com>
76282
76283         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76284         From Larry Jones <lawrence.jones@ugs.com>.
76285
76286 2005-09-02  Simon Josefsson  <jas@extundo.com>
76287
76288         * modules/socklen: New file.
76289
76290 2005-09-02  Simon Josefsson  <jas@extundo.com>
76291
76292         * modules/havelib: New module.
76293
76294         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76295         Use havelib.
76296
76297 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         Check for arithmetic overflow when calculating sizes, to prevent
76300         some buffer-overflow issues.  These patches are conservative, in the
76301         sense that when I couldn't determine whether an overflow was possible,
76302         I inserted a run-time check.
76303         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76304         macros.
76305         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76306         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76307         (re_xnrealloc, re_x2nrealloc): New inline functions.
76308         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76309         parse_bracket_exp):
76310         (build_equiv_class, build_charclass): Check for arithmetic overflow
76311         in size expression calculations.
76312         * lib/regex_internal.c (re_string_realloc_buffers):
76313         (build_wcs_upper_buffer, re_node_set_add_intersect):
76314         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76315         (re_dfa_add_node, register_state): Likewise.
76316         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76317         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76318         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76319         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76320
76321 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76324         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76325
76326 2005-09-02  Bruno Haible  <bruno@clisp.org>
76327
76328         Support for lib vs. lib64 distinction on biarch platforms.
76329         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76330         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76332
76333 2005-09-02  Bruno Haible  <bruno@clisp.org>
76334
76335         * gnulib-tool (import): In the other first-use case, provide defaults
76336         as well.
76337
76338 2005-09-02  Bruno Haible  <bruno@clisp.org>
76339
76340         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76341         patches not yet found in the latest gettext release.
76342
76343 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76346         to avoid a collision with bits/local_lim.h in glibc.
76347         All uses changed.  Problem reported by Dmitry V. Levin in
76348         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76349
76350         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76351         bugs in int versus size_t comparisons.
76352         (re_string_context_at): Fix bug where the code assumed that
76353         Idx is signed.
76354
76355         Use bool where appropriate.
76356         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76357         All callers changed.
76358         (calc_eclosure_iter): Likewise, for ROOT arg.
76359         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76360         (build_charclass_op): Likewise, for NON_MATCH arg.
76361         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76362         (re_string_construct_common): Likewise, for ICASE arg.
76363         * lib/regexec.c (re_search_2_stub, re_search_stub):
76364         Likewise, for RET_LEN arg.
76365         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76366         (set_regs): Likewise, for FL_BACKTRACK arg.
76367         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76368         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76369         (calc_eclosure_iter, parse_bracket_exp):
76370         Use bool for internal variables that are booleans.
76371         * lib/regexec.c (re_search_internal, check_matching,
76372         proceed_next_node):
76373         (set_regs, build_sifted_states, sift_states_bkref):
76374         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76375         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76376         (find_collation_sequence_value):
76377         Likewise.
76378         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76379         (re_node_set_compare):
76380         Return bool, not int. All callers changed.
76381         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76382         (build_trtable, check_node_accept): Likewise.
76383         * lib/regex_internal.h: Include stdbool.h.
76384
76385         Fix bugs uncovered when converting to bool.
76386         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76387         failure instead of charging ahead blindly.
76388         * lib/regex_internal.c (register_state): Likewise.
76389         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76390         for freeing internal storage.
76391         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76392         bitset pieces used as boolean, to avoid undefined behavior
76393         on hosts that do int overflow checking.
76394
76395 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * config/srclist.txt: Add glibc bugs 1285-1287.
76398
76399 2005-09-01  Jim Meyering  <jim@meyering.net>
76400
76401         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76402         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76403         Require gl_STAT_MACROS, too.
76404
76405 2005-09-01  Bruno Haible  <bruno@clisp.org>
76406
76407         * gnulib-tool (import): In the first-use case, provide defaults.
76408
76409 2005-09-01  Bruno Haible  <bruno@clisp.org>
76410
76411         * gnulib-tool (func_import): Remove the .tmp files.
76412
76413 2005-09-01  Bruno Haible  <bruno@clisp.org>
76414
76415         * gnulib-tool (func_import): Fix handling of symbolic links.
76416
76417 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76420         old glibc regex code mishandles strings longer than 2**31 bytes.
76421         This patch fixes this when the regex code is used in gnulib
76422         (i.e., outside glibc).
76423
76424         This patch should not affect the use of the regex code inside
76425         glibc.  No doubt this problem also needs to be handled for glibc
76426         as well, but the result will be an incompatible change to the
76427         glibc ABI, and the old ABI will have to be supported too.  That
76428         can be the the subject for another patch.
76429
76430         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76431         governing whether the rest of this patch is active.  By default,
76432         the macro is disabled and the patch has no effect.
76433         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76434         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76435         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76436         (re_match_2, re_set_registers): Use the new types.
76437         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76438         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76439         New macros.
76440         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76441         (re_string_context_at, bin_tree_t, re_dfastate_t):
76442         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76443         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76444         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76445         (re_string_char_size_at, re_string_wchar_at):
76446         (re_string_elem_size_at):
76447         Use the new types and macros to port to 64-bit hosts.
76448         Use unsigned types for internal values, so that the code
76449         mostly works even for arrays larger than SSIZE_MAX.
76450         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76451         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76452         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76453         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76454         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76455         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76456         (calc_inveclosure, parse_dup_op, build_range_exp):
76457         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76458         (fetch_number, create_token_tree, mark_opt_subexp):
76459         Likewise.
76460         * lib/regex_internal.c (re_string_construct_common,
76461         create_ci_newstate):
76462         (create_cd_newstate, re_string_allocate, re_string_construct):
76463         (re_string_realloc_buffers, build_wcs_upper_buffer):
76464         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76465         (re_string_reconstruct, re_string_peek_byte_case):
76466         (re_string_fetch_byte_case, re_string_context_at):
76467         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76468         (re_node_set_init_copy, re_node_set_add_intersect):
76469         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76470         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76471         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76472         (re_acquire_state, re_acquire_state_context, register_state):
76473         Likewise.
76474         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76475         search_cur_bkref_entry):
76476         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76477         (re_search_internal, re_search_2_stub, re_search_stub)
76478         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76479         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76480         (update_cur_sifted_state, check_dst_limits):
76481         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76482         (check_subexp_limits, sift_states_bkref, merge_state_array):
76483         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76484         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76485         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76486         (expand_bkref_cache, check_node_accept_bytes):
76487         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76488         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76489         (acquire_init_state_context, check_halt_node_context):
76490         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76491         (sift_states_backward, clean_state_log_if_needed):
76492         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76493         (find_recover_state, transit_state_sb, transit_state_mb):
76494         (transit_state_bkref, build_trtable, match_ctx_clean):
76495         Likewise.
76496         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76497         to work around an assumption that REG_MISSING is negative.
76498
76499         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76500         (seek_collating_symbol_entry) [defined _LIBC]:
76501         (lookup_collation_sequence_value) [defined _LIBC]:
76502         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76503         Use prototypes rather than old-style function definitions.
76504         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76505         (transit_state_sb) [0]:
76506         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76507
76508         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76509         rm_eo.
76510
76511         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76512         (optimize_subexps, lower_subexp):
76513         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76514         since the signed shift might overflow.  Use 1u<<31 instead.
76515         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76516         Likewise.
76517         * lib/regexec.c (check_dst_limits_calc_pos_1,
76518         check_subexp_matching_top): Likewise.
76519
76520         * lib/regcomp.c (optimize_subexps, lower_subexp):
76521         Use CHAR_BIT rather than 8, for clarity.
76522         * lib/regexec.c (check_dst_limits_calc_pos_1):
76523         (check_subexp_matching_top): Likewise.
76524         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76525         have to worry about portability issues when shifting it left.
76526         Remove no-longer-needed test for table_size > 0.
76527         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76528         in a word, as the resulting behavior is undefined.
76529         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76530         in one case, a <= should have been an <, and in another case the
76531         whole test was missing.
76532         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76533         the standard name CHAR_BIT.
76534         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76535         this is not true on one's complement and signed-magnitude hosts.
76536
76537         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76538         next_last_offset.
76539         (struct re_dfa_t): Remove unused member states_alloc.
76540         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76541
76542 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76545         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76546         and large-file glibc and in 32-bit large-file Solaris.
76547
76548 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76551         lengths fit in regoff_t; this isn't true if regoff_t is the same
76552         width as size_t.
76553         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76554         (= START + RANGE) instead of RANGE.  This avoids overflow
76555         problems when regoff_t is the same width as size_t.
76556         All callers changed.
76557         (re_search_2_stub): Check for overflow when adding the
76558         sizes of the two strings.
76559         (re_search_stub): Check for overflow when adding START
76560         to RANGE; if it occurs, substitute the extreme value.
76561
76562 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76563
76564         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76565
76566 2005-08-31  Jim Meyering  <jim@meyering.net>
76567
76568         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76569         a pointer-to-const.
76570         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76571         (register_state): Likewise.
76572         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76573         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76574         (group_nodes_into_DFAstates): Likewise.
76575
76576 2005-08-31  Jim Meyering  <jim@meyering.net>
76577
76578         * check-module: Add a FIXME comment.
76579
76580 2005-08-31  Eric Blake  <ebb9@byu.net>
76581
76582         * modules/unistd-safer (Files): Add unistd--.h.
76583         * modules/stdio-safer (Files): Add stdio--.h.
76584
76585 2005-08-31  Derek Price  <derek@ximbiot.com>
76586
76587         * lib/getdelim.c (getdelim): Return EOF on EOF.
76588         Reported by Larry Jones <lawrence.jones@ugs.com>.
76589
76590 2005-08-31  Bruno Haible  <bruno@clisp.org>
76591
76592         Avoid unnecessary diffs in the generated lib/Makefile.am.
76593         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76594         the generated files.
76595         (func_import): Don't set cmd.
76596
76597 2005-08-31  Bruno Haible  <bruno@clisp.org>
76598
76599         * lib/strstr.c: Include <stddef.h>, for NULL.
76600         * lib/strcasestr.c: Likewise.
76601         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76602
76603 2005-08-31  Bruno Haible  <bruno@clisp.org>
76604
76605         * gnulib-tool: New option --macro-prefix.
76606         (func_import): Use macro_prefix.
76607         (import): Handle option --macro-prefix.
76608
76609 2005-08-31  Bruno Haible  <bruno@clisp.org>
76610
76611         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76612         Also use new variables cached_lgpl, cached_libtool.
76613
76614 2005-08-31  Bruno Haible  <bruno@clisp.org>
76615
76616         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76617         always instantiating them.
76618
76619 2005-08-31  Bruno Haible  <bruno@clisp.org>
76620
76621         * gnulib-tool (func_import): Read the previous cached settings
76622         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76623         earlier added by gnulib but are now dropped. Warn when a gnulib file
76624         overwrites a non-gnulib file.
76625
76626 2005-08-31  Bruno Haible  <bruno@clisp.org>
76627
76628         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76629         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76630         projects that don't keep autogenerated files in CVS. Put into
76631         actioncmd only the specified modules, not the transitive closure.
76632
76633 2005-08-31  Bruno Haible  <bruno@clisp.org>
76634
76635         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76636         Create directories that shall be filled.
76637         (import): Don't look for gl_* macros in configure.ac. Recurse across
76638         all directories containing a gnulib-cache.m4 files, if meaningful.
76639
76640 2005-08-31  Bruno Haible  <bruno@clisp.org>
76641
76642         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76643         (import): Set seen_libtool when we see gl_LIBTOOL.
76644
76645 2005-08-31  Bruno Haible  <bruno@clisp.org>
76646
76647         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76648         declaration macro definitions from generated gnulib.m4.
76649
76650 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76651
76652         * lib/iconvme.h: Add prototype for iconv_alloc.
76653
76654 2005-08-29  Simon Josefsson  <jas@extundo.com>
76655
76656         * lib/iconvme.c: Fix errno.
76657
76658 2005-08-29  Bruno Haible  <bruno@clisp.org>
76659
76660         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76661         that it works when the directory contains spaces.
76662
76663 2005-08-29  Bruno Haible  <bruno@clisp.org>
76664
76665         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76666
76667 2005-08-29  Bruno Haible  <bruno@clisp.org>
76668
76669         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76670         Emit more advice.
76671
76672 2005-08-29  Bruno Haible  <bruno@clisp.org>
76673         and Stepan Kasal  <kasal@ucw.cz>
76674
76675         * check-module: If more parameters are given, check each of them
76676         separately; add more exceptions, as noted by Jim Meyering.
76677         (check_module): New procedure.
76678         (%exempt_header): Now contains all exceptions.
76679
76680 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76681
76682         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76683
76684 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76685
76686         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76687
76688 2005-08-28  Bruno Haible  <bruno@clisp.org>
76689
76690         * m4/gnulib-tool.m4: New file.
76691
76692 2005-08-27  Jim Meyering  <jim@meyering.net>
76693
76694         * modules/unistd-safer (Files): Add pipe-safer.c.
76695         * modules/fcntl-safer (Files): Add creat-safer.c.
76696
76697 2005-08-27  Jim Meyering  <jim@meyering.net>
76698
76699         * m4/stdlib-safer.m4: New file.  From coreutils.
76700         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76701         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76702         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76703         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76704         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76705
76706 2005-08-27  Jim Meyering  <jim@meyering.net>
76707
76708         * lib/fopen-safer.c: Merge minor changes from coreutils.
76709         * lib/dup-safer.c: Likewise.
76710         * lib/fd-safer.c: Likewise.
76711
76712         Merge from coreutils.
76713         * lib/stdio--.h: New file.
76714         * lib/stdlib--.h: New file.
76715         * lib/mkstemp-safer.c: New file.
76716
76717         GNU tar needs these.
76718         * lib/pipe-safer.c: New file.
76719         * lib/creat-safer.c: New file.
76720         * lib/fcntl--.h (creat): Define to creat_safer.
76721         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76722         * lib/unistd--.h (pipe): Define to pipe_safer.
76723         * lib/unistd-safer.h: Declare pipe_safer.
76724
76725 2005-08-26  Simon Josefsson  <jas@extundo.com>
76726
76727         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76728         Haible <bruno@clisp.org>.
76729
76730 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * lib/regex_internal.h: Remove all references to
76733         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76734         or better.
76735         (bitset_not, bitset_merge, bitset_not_merge):
76736         (bitset_mask, re_string_allocate, re_string_construct):
76737         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76738         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76739         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76740         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76741         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76742         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76743         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76744         (re_acquire_state_context):
76745         Remove unnecessary forward decls.
76746         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76747         Put __attribute at function definition,
76748         now that the function decl has been removed.
76749         * lib/regex_internal.c (re_string_peek_byte_case):
76750         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76751         Likewise.
76752
76753 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76754
76755         * m4/regex.m4: Add AC_PREREQ(2.50).
76756         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76757
76758 2005-08-25  Simon Josefsson  <jas@extundo.com>
76759
76760         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76761         __fsetlocking.
76762
76763 2005-08-25  Simon Josefsson  <jas@extundo.com>
76764
76765         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76766         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76767         GLIBC specific code.
76768
76769 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76770
76771         Make regex safe for g++.  This fixes one real bug (an "err"
76772         that should have been "*err").  g++ problem reported by
76773         Sam Steingold.
76774         * lib/regex_internal.h (re_calloc): New macro, consistent with
76775         re_malloc etc.  All callers of calloc changed to use re_calloc.
76776         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76777         not int.  All callers changed.
76778         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76779         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76780         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76781         (find_recover_state): Change "err" to "*err"; this fixes what
76782         appears to be a real bug.
76783         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76784         versus int.
76785
76786 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76787
76788         * modules/regex (Depends-on): Add malloc, since the code
76789         assumes that !malloc(0) means failure.
76790
76791 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76794
76795         alloca modernization/simplification for regex.
76796         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76797         needs to be at the start of the file, and can be moved into
76798         regex_internal.h and simplified.
76799         * lib/regex_internal.h: Include <alloca.h>.
76800         (__libc_use_alloca) [!defined _LIBC]: New macro.
76801         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76802         now works outside glibc.
76803
76804 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * config/srclist.txt: Add glibc bugs 1241, 1245.
76807
76808 2005-08-25  Jim Meyering  <jim@meyering.net>
76809
76810         * lib/open-safer.c: Include <config.h>.
76811         Otherwise, we'd lose LARGEFILE support in any file using
76812         e.g. "fcntl--.h"
76813
76814 2005-08-25  Bruno Haible  <bruno@clisp.org>
76815
76816         * m4/minmax.m4: Require autoconf 2.52.
76817         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76818         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76819         alternatives of translit over the alphabet.
76820         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76821
76822 2005-08-24  Simon Josefsson  <jas@extundo.com>
76823
76824         * tests/test-getpass.c: New file.
76825
76826 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76829         for GNU regex features.
76830
76831 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76834         * lib/regex.h (regerror): Likewise.
76835
76836         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76837         requires this.  (The code never needed it.)
76838
76839         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76840         All uses of recently-renamed identifiers changed to use the new,
76841         POSIX-compliant names.  The code will build and run just fine
76842         without these changes, but it's better to eat our own dog food
76843         and use the standard-conforming names.
76844
76845         * lib/regex.h: Fix a multitude of POSIX name space violations.
76846         These changes have an effect only for programs that define
76847         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76848         do not change anything for programs compiled in the normal way.
76849         Also, there is no effect on the ABI.
76850
76851         (_REGEX_SOURCE): New macro.
76852         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76853         defined and _GNU_SOURCE is not; this fixes a name space violation.
76854
76855         Rename the following macros to obey POSIX requirements.
76856         The old names are still visible as macros if _REGEX_SOURCE is defined.
76857         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76858         RE_BACKSLASH_ESCAPE_IN_LISTS.
76859         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76860         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76861         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76862         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76863         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76864         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76865         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76866         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76867         (REG_INTERVALS): renamed from RE_INTERVALS.
76868         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76869         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76870         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76871         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76872         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76873         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76874         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76875         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76876         RE_UNMATCHED_RIGHT_PAREN_ORD.
76877         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76878         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76879         (REG_DEBUG): renamed from RE_DEBUG.
76880         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76881         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76882         unusual, since we can't clash with the POSIX REG_ICASE.
76883         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76884         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76885         (REG_NO_SUB): renamed from RE_NO_SUB.
76886         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76887         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76888         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76889         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76890         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76891         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76892         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76893         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76894         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76895         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76896         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76897         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76898         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76899         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76900         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76901         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76902         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76903         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76904         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76905         (REG_FIXED): Renamed from REGS_FIXED.
76906         (REG_NREGS): Renamed from RE_NREGS.
76907
76908         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76909         of other REG_* macros, since POSIX says the user is allowed to
76910         #undef these macros selectively.
76911
76912         (reg_errcode_t): Update comment stating what other tables need
76913         to be consistent.
76914
76915         Rename the following enum values to obey POSIX requirements.
76916         The old names are still visible as macros.
76917         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76918         is not defined, since GNU is supposed to be a superset of POSIX as
76919         much as possible, and since we want reg_errcode_t to be a signed
76920         type for implementation consistency.
76921         (_REG_NOERROR): Renamed from REG_NOERROR.
76922         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76923         (_REG_BADPAT): Renamed from REG_BADPAT.
76924         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76925         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76926         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76927         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76928         (_REG_EBRACK): Renamed from REG_EBRACK.
76929         (_REG_EPAREN): Renamed from REG_EPAREN.
76930         (_REG_EBRACE): Renamed from REG_EBRACE.
76931         (_REG_BADBR): Renamed from REG_BADBR.
76932         (_REG_ERANGE): Renamed from REG_ERANGE.
76933         (_REG_ESPACE): Renamed from REG_ESPACE.
76934         (_REG_BADRPT): Renamed from REG_BADRPT.
76935         (_REG_EEND): Renamed from REG_EEND.
76936         (_REG_ESIZE): Renamed from REG_ESIZE.
76937         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76938         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76939         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76940         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76941         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76942
76943         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76944         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76945         changed.  But support the old name if the new one is not defined
76946         and if _REGEX_SOURCE.
76947
76948         Change the following member names in struct re_pattern_buffer.
76949         The old names are still supported if !_REGEX_SOURCE.
76950         The new names are always supported, regardless of _REGEX_SOURCE.
76951         (re_buffer): Renamed from buffer.
76952         (re_allocated): Renamed from allocated.
76953         (re_used): Renamed from used.
76954         (re_syntax): Renamed from syntax.
76955         (re_fastmap): Renamed from fastmap.
76956         (re_translate): Renamed from translate.
76957         (re_can_be_null): Renamed from can_be_null.
76958         (re_regs_allocated): Renamed from regs_allocated.
76959         (re_fastmap_accurate): Renamed from fastmap_accurate.
76960         (re_no_sub): Renamed from no_sub.
76961         (re_not_bol): Renamed from not_bol.
76962         (re_not_eol): Renamed from not_eol.
76963         (re_newline_anchor): Renamed from newline_anchor.
76964
76965         Change the following member names in struct re_registers.
76966         The old names are still supported if !_REGEX_SOURCE.
76967         The new names are always supported, regardless of _REGEX_SOURCE.
76968         (rm_num_regs): Renamed from num_regs.
76969         (rm_start): Renamed from start.
76970         (rm_end): Renamed from end.
76971
76972         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76973         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76974         Prepend __ to parameter names.
76975
76976         Undo yesterday's changes.
76977
76978 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76981         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76982         lib/regex.c.
76983
76984 2005-08-24  Jim Meyering  <jim@meyering.net>
76985
76986         Sync from coreutils.
76987         * m4/fcntl-safer.m4: New file.
76988
76989         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76990         and object files for this module.
76991
76992 2005-08-24  Jim Meyering  <jim@meyering.net>
76993
76994         Sync from coreutils.
76995         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76996
76997 2005-08-24  Jim Meyering  <jim@meyering.net>
76998
76999         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77000         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77001
77002 2005-08-24  Jim Meyering  <jim@meyering.net>
77003
77004         * modules/fcntl-safer: New module.
77005         * modules/fts (Depends-on): Add fcntl-safer.
77006         * MODULES.html.sh (File descriptor based Input/Output):
77007         Add fcntl-safer.
77008
77009 2005-08-24  Bruno Haible  <bruno@clisp.org>
77010
77011         Support for unit test modules.
77012         * modules/README: Mention tests modules.
77013         * modules/TEMPLATE-TESTS: New file.
77014         * gnulib-tool: New options --extract-tests-module, --with-tests and
77015         --tests-base (unused for the moment).
77016         (testsbase, inctests): New variables.
77017         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77018         (func_verify_module): Exclude TEMPLATE-TESTS.
77019         (func_verify_nontests_module, func_verify_tests_module): New functions.
77020         (func_get_dependencies): Add implicit dependency for tests modules.
77021         (func_get_tests_module): New function.
77022         (func_modules_transitive_closure): When --with-tests was specified,
77023         include the unit tests as well, unless explicitly avoided.
77024         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77025         (func_emit_tests_Makefile_am): New function.
77026         (func_create_testdir): When --with-tests was specified, emit a
77027         tests/ directory.
77028         * MODULES.html.sh (Future developments): Update.
77029
77030 2005-08-24  Bruno Haible  <bruno@clisp.org>
77031
77032         * modules/tls-tests: New file.
77033         * tests/test-tls.c: New file, from GNU gettext.
77034
77035 2005-08-24  Bruno Haible  <bruno@clisp.org>
77036
77037         * modules/lock-tests: New file.
77038         * tests/test-lock.c: New file, from GNU gettext.
77039
77040 2005-08-24  Bruno Haible  <bruno@clisp.org>
77041
77042         * lib/lock.h: Add multiple inclusion guard.
77043         * lib/tls.h: Add multiple inclusion guard.
77044
77045 2005-08-24  Bruno Haible  <bruno@clisp.org>
77046
77047         * gnulib-tool: Add support for the --aux-dir option to
77048         --create-testdir, --create-megatestdir, --test, --megatest.
77049         (func_create_testdir, func_create_megatestdir): Optionally emit a
77050         AC_CONFIG_AUX_DIR directive.
77051         (create-testdir, create-megatestdir, test, megatest): Provide a
77052         default value for $auxdir.
77053
77054 2005-08-24  Bruno Haible  <bruno@clisp.org>
77055
77056         * gnulib-tool (import): Use compound statement instead of subshell
77057         where possible.
77058
77059 2005-08-24  Bruno Haible  <bruno@clisp.org>
77060
77061         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77062
77063 2005-08-24  Bruno Haible  <bruno@clisp.org>
77064
77065         * gnulib-tool (func_version): Update.
77066
77067 2005-08-24  Bruno Haible  <bruno@clisp.org>
77068
77069         * gnulib-tool (func_import, func_create_testdir,
77070         func_create_megatestdir): Quote all autoconf macro arguments.
77071
77072 2005-08-24  Bruno Haible  <bruno@clisp.org>
77073
77074         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77075         option --force, because --force causes the aclocal.m4 of each
77076         subdirectory to be newer than the corresponding config.h.in.
77077
77078 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77079
77080         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77081         All contents moved to gl_REGEX.
77082         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77083         assume that it does.
77084
77085 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77086
77087         * lib/regex.h (REG_NOSYS)
77088         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77089         Define, since POSIX requires it as of 2001.
77090         (_REG_ENOSYS)
77091         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77092         New private symbol, used to keep the enum signed in all cases.
77093         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77094         Youngman in
77095         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77096
77097         * lib/regex_internal.c (re_string_skip_chars, register_state):
77098         (calc_state_hash):
77099         Remove forward decls; no longer needed now that we use prototypes.
77100         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77101         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77102         (clean_state_log_if_needed): Likewise.
77103
77104 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         * config/srclist.txt: Add glibc bugs 1231-1233.
77107
77108 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         Fix problems reported by Sam Steingold in
77111         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77112         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77113         assumed that reg_errcode_t is a signed type, which is not
77114         necessarily true if _XOPEN_SOURCE is not defined.
77115         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77116         since some compilers warn about it otherwise.
77117
77118 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77119
77120         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77121         (init_word_char, create_initial_state, duplicate_node_closure):
77122         (fetch_token, peek_token_bracket, build_range_exp):
77123         (build_collating_symbol): Remove forward decls; no longer needed
77124         now that we use prototypes.
77125
77126         * lib/regcomp.c:
77127         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77128         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77129         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77130         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77131         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77132         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77133         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77134         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77135         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77136         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77137         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77138         (build_charclass, build_charclass_op, fetch_number, create_tree):
77139         (create_token_tree, mark_opt_subexp, duplicate_tree):
77140         Use prototypes rather than old-style definitions.
77141
77142         * lib/regex_internal.c:
77143         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77144         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77145         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77146         (re_string_reconstruct, re_string_peek_byte_case):
77147         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77148         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77149         (re_node_set_init_copy, re_node_set_add_intersect):
77150         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77151         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77152         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77153         (re_acquire_state, re_acquire_state_context, register_state):
77154         (create_ci_newstate, create_cd_newstate, free_state):
77155         Likewise.
77156         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77157         re_search_2):
77158         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77159         (re_search_internal, prune_impossible_nodes):
77160         (acquire_init_state_context, check_matching, static):
77161         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77162         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77163         (update_regs, sift_states_backward, build_sifted_states):
77164         (clean_state_log_if_needed, merge_state_array):
77165         (update_cur_sifted_state, add_epsilon_src_nodes):
77166         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77167         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77168         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77169         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77170         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77171         (check_arrival, check_arrival_add_next_nodes):
77172         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77173         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77174         (check_node_accept_bytes, check_node_accept, extend_buffers):
77175         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77176         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77177         (sift_ctx_init):
77178         Likewise.
77179
77180         * lib/regex_internal.h:
77181         (re_string_allocate, re_string_construct, re_string_reconstruct):
77182         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77183         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77184         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77185         (re_string_context_at, re_string_peek_byte_case):
77186         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77187         is defined, since we now use prototypes always.
77188
77189         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77190         C89 or better.  All uses removed.
77191
77192 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77193
77194         * config/srclist.txt: Add glibc bugs 1220-1227.
77195
77196 2005-08-20  Jim Meyering  <jim@meyering.net>
77197
77198         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77199         of unused local, dfa.
77200
77201 2005-08-20  Bruno Haible  <bruno@clisp.org>
77202
77203         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77204
77205 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77208         (re_node_set_insert_last, re_dfa_add_node):
77209         Rename local variables to avoid GCC shadowing warnings.
77210
77211 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77212
77213         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77214         [defined lint]: Suppress bogus uninitialized-variable warnings.
77215
77216         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77217         and let the caller return REG_ESPACE if out of space.  This
77218         removes an uninitialied-variable warning with GCC 4.0.1, and also
77219         avoids taking the address of a local variable.  All callers
77220         changed.
77221
77222 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77225         $LIBCSRC/posix/regexec.c.
77226         Add glibc bug 1217 for regcomp.c.
77227
77228 2005-08-19  Jim Meyering  <jim@meyering.net>
77229
77230         * lib/regexec.c (proceed_next_node): Redo local variables to
77231         avoid GCC shadowing warnings.
77232
77233 2005-08-18  Bruno Haible  <bruno@clisp.org>
77234
77235         * lib/strstr.c (strstr): Fix return value in multibyte case.
77236         * lib/strcasestr.c (strcasestr): Likewise.
77237
77238 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77241
77242 2005-08-17  Jim Meyering  <jim@meyering.net>
77243
77244         Make the %s format (seconds since the epoch) work for a negative
77245         number and when used with a zero-padded field width, e.g. %015s.
77246
77247         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77248         label so that it precedes the code to set `digits'.  Otherwise,
77249         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77250         print `00-22'.  Now, it prints `-0022', as it should.
77251
77252 2005-08-17  Bruno Haible  <bruno@clisp.org>
77253
77254         * modules/strstr (Files): Add m4/mbrtowc.m4.
77255         (Depends-on): Add mbuiter.
77256
77257 2005-08-17  Bruno Haible  <bruno@clisp.org>
77258
77259         * modules/strcasestr: New file.
77260         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77261         strcasestr.
77262
77263 2005-08-17  Bruno Haible  <bruno@clisp.org>
77264
77265         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77266
77267 2005-08-17  Bruno Haible  <bruno@clisp.org>
77268
77269         * modules/mbuiter: New file.
77270         * MODULES.html.sh (Extended multibyte and wide character utilities):
77271         Add mbuiter.
77272
77273 2005-08-17  Bruno Haible  <bruno@clisp.org>
77274
77275         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77276         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77277
77278 2005-08-17  Bruno Haible  <bruno@clisp.org>
77279
77280         * m4/strcasestr.m4: New file.
77281
77282 2005-08-17  Bruno Haible  <bruno@clisp.org>
77283
77284         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77285         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77286
77287 2005-08-17  Bruno Haible  <bruno@clisp.org>
77288
77289         * lib/strcasestr.h: New file.
77290         * lib/strcasestr.c: New file.
77291
77292 2005-08-17  Bruno Haible  <bruno@clisp.org>
77293
77294         * lib/strcasecmp.c: Use mbuiter.h.
77295
77296 2005-08-17  Bruno Haible  <bruno@clisp.org>
77297
77298         * lib/mbuiter.h: New file.
77299
77300 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77301
77302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77303         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77304         and gl_GETOPT are both invoked via different paths (as happens
77305         with GNU tar CVS because it uses both argp and getopt), the former
77306         wins.
77307
77308 2005-08-16  Bruno Haible  <bruno@clisp.org>
77309
77310         * modules/tls: New file.
77311         * MODULES.html.sh (Multithreading): Add tls.
77312
77313 2005-08-16  Bruno Haible  <bruno@clisp.org>
77314
77315         * modules/strnlen1: New file.
77316         * MODULES.html.sh (String handling): Add strnlen1.
77317
77318 2005-08-16  Bruno Haible  <bruno@clisp.org>
77319
77320         * modules/strcase (Files): Add m4/mbrtowc.m4.
77321         (Depends-on): Add strnlen1, mbchar.
77322
77323 2005-08-16  Bruno Haible  <bruno@clisp.org>
77324
77325         * modules/mbiter: New file.
77326         * MODULES.html.sh (Extended multibyte and wide character utilities):
77327         Add mbiter.
77328
77329 2005-08-16  Bruno Haible  <bruno@clisp.org>
77330
77331         * modules/mbfile: New file.
77332         * MODULES.html.sh (Extended multibyte and wide character utilities):
77333         Add mbfile.
77334
77335 2005-08-16  Bruno Haible  <bruno@clisp.org>
77336
77337         * modules/mbchar: New file.
77338         * MODULES.html.sh (Extended multibyte and wide character utilities):
77339         New section.
77340
77341 2005-08-16  Bruno Haible  <bruno@clisp.org>
77342
77343         * m4/tls.m4: New file, from GNU gettext.
77344
77345 2005-08-16  Bruno Haible  <bruno@clisp.org>
77346
77347         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77348         always.
77349         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77350
77351 2005-08-16  Bruno Haible  <bruno@clisp.org>
77352
77353         * m4/mbiter.m4: New file.
77354
77355 2005-08-16  Bruno Haible  <bruno@clisp.org>
77356
77357         * m4/mbfile.m4: New file.
77358
77359 2005-08-16  Bruno Haible  <bruno@clisp.org>
77360
77361         * m4/mbchar.m4: New file.
77362
77363 2005-08-16  Bruno Haible  <bruno@clisp.org>
77364
77365         * lib/tls.h: New file, from GNU gettext.
77366         * lib/tls.c: New file, from GNU gettext.
77367
77368 2005-08-16  Bruno Haible  <bruno@clisp.org>
77369
77370         * lib/strnlen1.h: New file.
77371         * lib/strnlen1.c: New file.
77372
77373 2005-08-16  Bruno Haible  <bruno@clisp.org>
77374
77375         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77376         (mbi_init): Update.
77377         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77378         NUL byte, not after it.
77379
77380 2005-08-16  Bruno Haible  <bruno@clisp.org>
77381
77382         * lib/strcase.h (strcasecmp): Add note in comments.
77383         * lib/strncasecmp.c: Use code from strcasecmp.c.
77384         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77385         (strcasecmp): Work correctly in multibyte locales.
77386
77387 2005-08-16  Bruno Haible  <bruno@clisp.org>
77388
77389         * lib/mbiter.h: New file.
77390
77391 2005-08-16  Bruno Haible  <bruno@clisp.org>
77392
77393         * lib/mbfile.h: New file.
77394
77395 2005-08-16  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/mbchar.h: New file.
77398         * lib/mbchar.c: New file.
77399
77400 2005-08-16  Bruno Haible  <bruno@clisp.org>
77401
77402         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77403         the valid ones. Makes the comparison operations transitive:
77404         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77405         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77406
77407 2005-08-15  Simon Josefsson  <jas@extundo.com>
77408
77409         * modules/ssize_t (License): Change to 'unlimited'.
77410
77411         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77412
77413 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77416         Add comments for each pending glibc patch.
77417
77418 2005-08-15  Bruno Haible  <bruno@clisp.org>
77419
77420         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77421         __cplusplus is defined.
77422
77423 2005-08-14  Jim Meyering  <jim@meyering.net>
77424
77425         Sync from coreutils.
77426
77427         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77428         Use the hash-table-based cycle-detection code not just when
77429         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77430         Reported by James Youngman in
77431         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77432         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77433         FTS_TIGHT_CYCLE_CHECK.
77434         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77435         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77436         once again.
77437         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77438         * lib/fts.c (fd_safer): Remove decl.
77439         Include fcntl--.h rather than unistd-safer.h
77440         (fts_safe_changedir): Don't call fd_safer; no longer needed
77441         now that we include fcntl--.h.
77442
77443 2005-08-12  Simon Josefsson  <jas@extundo.com>
77444
77445         * modules/getndelim2: Use ssize_t module.
77446         * modules/getnline: Likewise.
77447         * modules/safe-read: Likewise.
77448         * modules/xreadlink: Likewise.
77449
77450         * modules/ssize_t: New file.
77451
77452 2005-08-12  Simon Josefsson  <jas@extundo.com>
77453
77454         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77455
77456 2005-08-12  Simon Josefsson  <jas@extundo.com>
77457
77458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77459         ssize_t.
77460
77461 2005-08-12  Simon Josefsson  <jas@extundo.com>
77462
77463         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77464         readline, getdelim and check_version.
77465         (Support for systems lacking ISO C 99: Sizes of integer types):
77466         Add size_max.
77467
77468 2005-08-12  Bruno Haible  <bruno@clisp.org>
77469
77470         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77471
77472 2005-08-11  Simon Josefsson  <jas@extundo.com>
77473
77474         * modules/readline: New file.
77475
77476         * modules/strnlen (Files): Add strnlen.h.
77477
77478 2005-08-11  Simon Josefsson  <jas@extundo.com>
77479
77480         * m4/readline.m4: New file.
77481
77482 2005-08-11  Simon Josefsson  <jas@extundo.com>
77483
77484         * lib/readline.h, readline.c: New file.
77485
77486 2005-08-11  Simon Josefsson  <jas@extundo.com>
77487
77488         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77489         gl_AVOID.
77490
77491 2005-08-11  Bruno Haible  <bruno@clisp.org>
77492
77493         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77494
77495 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77496
77497         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77498
77499 2005-08-10  Simon Josefsson  <jas@extundo.com>
77500
77501         * tests/test-iconvme.c: New file.
77502
77503 2005-08-10  Simon Josefsson  <jas@extundo.com>
77504
77505         * m4/strnlen.m4: New file.
77506
77507         * m4/strndup.m4: Don't check for strnlen declaration, done in
77508         strnlen.m4.
77509
77510 2005-08-10  Simon Josefsson  <jas@extundo.com>
77511
77512         * lib/strndup.c: Use strnlen.h.
77513
77514         * lib/strnlen.h: New file.
77515
77516 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77517
77518         * README: Typos.
77519
77520 2005-08-02  Simon Josefsson  <jas@extundo.com>
77521
77522         * modules/readline: New file.
77523
77524 2005-08-02  Simon Josefsson  <jas@extundo.com>
77525
77526         * modules/getdelim: New file.
77527
77528         * modules/getline: Rewrite, don't use getndelim2.
77529
77530 2005-08-02  Simon Josefsson  <jas@extundo.com>
77531
77532         * m4/getline.m4: Separate out getdelim stuff into separate module.
77533
77534         * m4/getdelim.m4: New file.
77535
77536 2005-08-02  Simon Josefsson  <jas@extundo.com>
77537
77538         * lib/getline.h, getline.c: Rewrite.
77539
77540         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77541
77542 2005-07-31  Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/lock.h (gl_lock_initializer): New macro.
77545         (gl_lock_define_initialized): Use it.
77546         (gl_rwlock_initializer): New macro.
77547         (gl_rwlock_define_initialized): Use it.
77548         (gl_recursive_lock_initializer): New macro.
77549         (gl_recursive_lock_define_initialized): Use it.
77550
77551 2005-07-30  Karl Berry  <karl@gnu.org>
77552
77553         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77554         Report from Ben Pfaff, regarding getopt.
77555
77556 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77559         normal way.
77560         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77561         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77562         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77563         (gl_GETOPT): Use the new macros.  Most of the implementation
77564         is moved to the new macros.  This is for programs like Emacs
77565         that don't want all the functionality of gl_GETOPT.
77566
77567 2005-07-26  Bruno Haible  <bruno@clisp.org>
77568
77569         * m4/lock.m4: Update from GNU gettext.
77570
77571 2005-07-26  Bruno Haible  <bruno@clisp.org>
77572
77573         * lib/lock.h: Update from GNU gettext.
77574         * lib/lock.c: Update from GNU gettext.
77575
77576 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77579         obsolescent AC_TRY_RUN.  Include the default includes files, for
77580         'exit'.
77581
77582 2005-07-24  Bruno Haible  <bruno@clisp.org>
77583
77584         * modules/visibility: New file.
77585         * MODULES.html.sh (Misc): Add visibility.
77586
77587 2005-07-24  Bruno Haible  <bruno@clisp.org>
77588
77589         * m4/visibility.m4: New file.
77590
77591 2005-07-24  Bruno Haible  <bruno@clisp.org>
77592
77593         * doc/visibility.texi: New file.
77594
77595 2005-07-22  Bruno Haible  <bruno@clisp.org>
77596
77597         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77598         $(ALLOCA_H), redundant through BUILT_SOURCES.
77599         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77600         redundant through BUILT_SOURCES.
77601         * modules/byteswap (Makefile.am): Remove explicit dependency on
77602         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77603         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77604         $(FNMATCH_H), redundant through BUILT_SOURCES.
77605         * modules/getopt (Makefile.am): Remove explicit dependency on
77606         $(GETOPT_H), redundant through BUILT_SOURCES.
77607         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77608         redundant through BUILT_SOURCES.
77609         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77610         redundant through BUILT_SOURCES.
77611         * modules/stdbool (Makefile.am): Remove explicit dependency on
77612         $(STDBOOL_H), redundant through BUILT_SOURCES.
77613         * modules/stdint (Makefile.am): Remove explicit dependency on
77614         $(STDINT_H), redundant through BUILT_SOURCES.
77615         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77616         Remove explicit dependency on $(SYSEXITS_H).
77617         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77618
77619 2005-07-18  Simon Josefsson  <jas@extundo.com>
77620
77621         * lib/check-version.c (check_version): Accept identical versions too.
77622
77623 2005-07-18  Bruno Haible  <bruno@clisp.org>
77624
77625         * modules/lock: New file.
77626         * MODULES.html.sh (Multithreading): New section.
77627
77628 2005-07-18  Bruno Haible  <bruno@clisp.org>
77629
77630         * m4/lock.m4: New file, from GNU gettext.
77631
77632 2005-07-18  Bruno Haible  <bruno@clisp.org>
77633
77634         * lib/lock.h: New file, from GNU gettext.
77635         * lib/lock.c: New file, from GNU gettext.
77636
77637 2005-07-18  Bruno Haible  <bruno@clisp.org>
77638
77639         * lib/lock.h (gl_once_t): New type.
77640         (gl_once_define, gl_once): New macros.
77641         * lib/lock.c (fresh_once): New variable.
77642         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77643         functions.
77644
77645 2005-07-16  Simon Josefsson  <jas@extundo.com>
77646
77647         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77648         workaround, suggested by Bruno.
77649
77650 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * modules/xalloc (Depends-on): Add xalloc-die.
77653         * modules/xvasprintf (Depends-on): Add xalloc-die.
77654
77655 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77658         with a minor change.
77659
77660 2005-07-15  Bruno Haible  <bruno@clisp.org>
77661
77662         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77663         When using lib/poll.c, define poll as rpl_poll.
77664
77665 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77666
77667         * modules/argp (Depends-on): Remove unlocked-io.
77668
77669 2005-07-14  Derek Price  <derek@ximbiot.com>
77670
77671         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77672         for glob symlink bug.
77673
77674 2005-07-14  Bruno Haible  <bruno@clisp.org>
77675
77676         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77677         Instead, test for *_unlocked function declarations directly.
77678
77679 2005-07-11  Simon Josefsson  <jas@extundo.com>
77680
77681         * modules/size_max: New file.
77682
77683         * modules/xsize: Depend on size_max module for size_max.m4.
77684
77685 2005-07-11  Simon Josefsson  <jas@extundo.com>
77686
77687         * lib/size_max.h: New file.
77688
77689 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77692         copyright symbol and the year.
77693         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77694         (version_etc_va): Use parameterized copyright notice.
77695         Reword to conform to the current GNU coding standards.
77696
77697 2005-07-11  Karl Berry  <karl@gnu.org>
77698
77699         * doc/gnulib.texi (Quoting): new node.
77700         (Initial import): more info, from Patrice.
77701
77702 2005-07-11  Bruno Haible  <bruno@clisp.org>
77703
77704         * gnulib-tool (func_usage): Document option --avoid.
77705         (Command line options): Handle --avoid.
77706         (func_acceptable): New function.
77707         (func_modules_transitive_closure): Use it.
77708
77709 2005-07-11  Bruno Haible  <bruno@clisp.org>
77710
77711         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77712         Reported by Jim Meyering.
77713
77714 2005-07-10  Bruno Haible  <bruno@clisp.org>
77715
77716         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77717         Needed when size_t is smaller than 'unsigned int'.
77718         Reported by Paul Eggert.
77719
77720 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77721
77722         * modules/argp (Depends-on): Add unlocked-io
77723
77724 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77725
77726         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77727         block of defines.
77728
77729 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77732         fix now.
77733
77734 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77735         and Paul Eggert  <eggert@cs.ucla.edu>
77736
77737         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77738         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77739
77740 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * modules/regex (Files): Add lib/regex_internal.c,
77743         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77744         (Depends-on): Add extensions.
77745         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77746
77747 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77750         pathconf.
77751         * m4/same.m4 (gl_SAME): Likewise.
77752         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77753
77754         * m4/regex.m4: Adjust to new libc regex implementation.
77755         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77756         all the .c and .h parts of (the new) regex.
77757         Quote the m4 stuff better.
77758         Check for RE_ICASE bug of old gnulib.
77759         Check for REG_STARTEND of recent libc.
77760         Rename local variables from jm_* to gl_*.
77761         Quote operand of "test -f".
77762         Say "recent enough" version of libc, not "version 2".
77763         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77764         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77765         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77766         Remove check for btowc, isascii.
77767         Require AM_LANGINFO_CODESET.
77768
77769 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * lib/regex.c, regex.h: Sync from libc.
77772         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77773         * lib/regexec.c:
77774         New files, synced from libc, except that regex_internal.h
77775         currently has a small porting fix.
77776
77777 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77780         regex_internal.c, regexec.c.
77781         Add regex_internal.h too, but as a comment, since the libc version
77782         is currently broken in gnulib mode.
77783
77784 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         Support programs like Emacs that use gnulib but not gettext.
77787         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77788         * modules/gettext-h: New file.
77789         * modules/gettext (Files): Remove lib/gettext.h.
77790         (Depends-on): Add gettext-h.
77791         (Makefile.am): Remove lib_SOURCES.
77792         * modules/argmatch, modules/c-stack, modules/closeout:
77793         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77794         * modules/execute, modules/file-type, modules/getaddrinfo:
77795         * modules/getopt, modules/human, modules/javacomp:
77796         * modules/javaexec, modules/mkdir-p, modules/obstack:
77797         * modules/openat, modules/pagealign_alloc, modules/pipe:
77798         * modules/quotearg, modules/regex, modules/rpmatch:
77799         * modules/unicodeio, modules/userspec, modules/version-etc:
77800         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77801         * modules/xsetenv:
77802         Depend on gettext-h, not gettext.
77803
77804 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * gnulib-tool (func_import): Add support for 'public domain' license.
77807         * modules/alloca, modules/atexit, modules/memmove:
77808         Now public domain, not GPL.
77809         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77810         * modules/realloc, modules/strerror, modules/strtod:
77811         Now LGPL, not GPL.
77812
77813 2005-07-05  Bruno Haible  <bruno@clisp.org>
77814
77815         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77816         autoconf CVS. Needed for mingw.
77817
77818 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         Remove the dependency of the strftime module on the tzset module.
77821         * modules/strftime (Depends-on): Remove dependency on tzset.
77822
77823 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         Remove the dependency of the strftime module on the tzset module.
77826         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77827         gl_FUNC_TZSET_CLOBBER.
77828
77829 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         Remove the dependency of the strftime module on the tzset module.
77832         * lib/strftime.c (my_strftime)
77833         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77834         Copy the input structure, to work around some of the bug with
77835         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77836         Solaris releases, you should also use the tzset module, but we won't
77837         require it as a dependency any more since we don't want LGPLed code
77838         to depend on GPLed code.
77839
77840 2005-07-02  Jim Meyering  <jim@meyering.net>
77841
77842         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77843         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77844         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77845         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77846
77847 2005-07-02  Jim Meyering  <jim@meyering.net>
77848
77849         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77850
77851 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77854         declares only 'struct timespec;' (!).
77855
77856 2005-07-01  Jim Meyering  <jim@meyering.net>
77857
77858         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77859         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77860         * lib/save-cwd.c, tempname.c:
77861         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77862         and don't include <sys/file.h>).
77863
77864 2005-06-29  Jim Meyering  <jim@meyering.net>
77865
77866         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77867         type name.  Use the variable name instead.
77868         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77869         Likewise.
77870
77871 2005-06-28  Simon Josefsson  <jas@extundo.com>
77872
77873         * modules/check-version (Files): Add check-version.m4.
77874
77875 2005-06-28  Simon Josefsson  <jas@extundo.com>
77876
77877         * m4/check-version.m4: New file, suggested by Jim Meyering
77878         <jim@meyering.net>.
77879
77880 2005-06-28  Simon Josefsson  <jas@extundo.com>
77881
77882         * lib/check-version.h, lib/check-version.c: New files.
77883
77884 2005-06-28  Simon Josefsson  <jas@extundo.com>
77885
77886         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77887         collision with global variable.  Better indentation.  Don't
77888         increment buffer pointer beyond buffer end.  Based on comments
77889         from Paul Eggert <eggert@cs.ucla.edu>.
77890
77891         * lib/base64.h: Indent.
77892
77893 2005-06-28  Simon Josefsson  <jas@extundo.com>
77894
77895         * doc/gnulib.texi (Library version handling): New section.
77896
77897 2005-06-28  Jim Meyering  <jim@meyering.net>
77898
77899         * check-module (find_included_lib_files): Hard-code another
77900         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77901         but modules/fts-lgpl (correctly) does not list those files.
77902
77903         * modules/canonicalize (Files): Add lib/pathmax.h.
77904
77905 2005-06-25  Simon Josefsson  <jas@extundo.com>
77906
77907         * modules/check-version: New file.
77908
77909 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77912         initializer of struct addrinfo, as an indication that we don't
77913         care how many members the structure has.
77914
77915 2005-06-24  Derek Price  <derek@ximbiot.com>
77916         and Bruno Haible  <bruno@clisp.org>
77917
77918         Remove stat module & update lstat.
77919         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77920         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77921         * m4/stat.m4: Remove this file.
77922
77923 2005-06-24  Derek Price  <derek@ximbiot.com>
77924         and Bruno Haible  <bruno@clisp.org>
77925
77926         Remove stat module & update lstat.
77927         * lib/stat.c: Remove this file...
77928         (slash_aware_lstat): ...moving this content and its support...
77929         * lib/lstat.c (rpl_lstat): ...into here.
77930         * lib/lstat.h: New file.
77931
77932 2005-06-24  Derek Price  <derek@ximbiot.com>
77933         and Bruno Haible  <bruno@clisp.org>
77934
77935         Remove stat module & update lstat.
77936         * config/srclist.txt (libc sources): Remove stat.
77937
77938 2005-06-24  Derek Price  <derek@ximbiot.com>
77939         and Bruno Haible  <bruno@clisp.org>
77940
77941         Remove stat module & update lstat.
77942         * MODULES.html.sh (stat): Remove.
77943         * MODULES.html: Regenerated.
77944         * modules/lstat (Description): Correct function name.
77945         (Files): Add "lstat.h".
77946         (Depends-on): Remove stat, add xalloc, stat-macros.
77947         * modules/stat: Remove this file.
77948         (Include): Add "lstat.h", remove <sys/stat.h>.
77949
77950 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77953         (ranged_convert): Don't save conversion in a temporary struct.
77954         This causes a warning with GCC 4.0.0, and anyway in the typical
77955         case it's not worth the extra 100 bytes or so of code.
77956         (ranged_convert, __mktime_internal): When calling a function via a
77957         pointer P, use P () rather than (*P) (), as we now assume C89 or
77958         better.
77959
77960 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77963         "who -r" failed to give output.  Problem reported by Tim Waugh.
77964
77965         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77966         (xcalloc): Use it to avoid needless tests.
77967         Problem reported by Jim Meyering.
77968
77969 2005-06-20  Derek Price  <derek@ximbiot.com>
77970
77971         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77972         unnecessary for Autoconfs > 2.59c.
77973
77974 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77975
77976         * lib/argp.h (__option_is_short): Check upper limit of
77977         __key. Isprint() requires its argument to have the value
77978         of an unsigned char or EOF.
77979
77980 2005-06-16  Jim Meyering  <jim@meyering.net>
77981
77982         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77983         when either N or S is zero.
77984
77985 2005-06-16  Derek Price  <derek@ximbiot.com>
77986
77987         * m4/bison.m4: Declare YACC & YFLAGS precious.
77988
77989 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77990
77991         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77992         multibyte string or pattern, fall back on unibyte matching.
77993         Problem reported by James Youngman.
77994
77995 2005-06-08  Bruno Haible  <bruno@clisp.org>
77996
77997         * modules/csharpcomp: New file.
77998         * MODULES.html.sh (C#): Add csharpcomp.
77999
78000 2005-06-08  Bruno Haible  <bruno@clisp.org>
78001
78002         * m4/csharpcomp.m4: New file, from GNU gettext.
78003
78004 2005-06-08  Bruno Haible  <bruno@clisp.org>
78005
78006         * lib/csharpcomp.h: New file, from GNU gettext.
78007         * lib/csharpcomp.c: New file, from GNU gettext.
78008         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78009
78010 2005-06-08  Bruno Haible  <bruno@clisp.org>
78011
78012         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78013         warning on mingw.
78014
78015 2005-06-07  Derek Price  <derek@ximbiot.com>
78016
78017         Sync from CVS.
78018         * lib/glob_.h: Indent nested #ifdef.
78019
78020 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         Sync from coreutils.
78023         Use "file name" when talking about file names, instead of "filename"
78024         or "path", as per the GNU coding standards.
78025         * lib/mkdir-p.c: Renamed from makepath.c.
78026         (make_dir_parents): Renamed from make_path.  All callers changed.
78027         * lib/mkdir-p.h: Likewise.  All includers changed.
78028         * lib/filenamecat.c: Renamed from path-concat.c.
78029         (file_name_concat): Renamed from path_concat.  All callers changed.
78030         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78031         * lib/filenamecat.h: Likewise.  All includers changed.
78032         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78033         in comments or local variable names.
78034         * lib/basename.c: Likewise.
78035         * lib/canonicalize.c, canonicalize.h: Likewise.
78036         * lib/dirname.c, dirname.h: Likewise.
78037         * lib/euidaccess.c: Likewise.
78038         * lib/exclude.c: Likewise
78039         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78040         * lib/fsusage.c, fsuage.h: Likewise.
78041         * lib/fts.c, fts_.h: Likewise.
78042         * lib/getcwd.c: Likewise.
78043         * lib/getloadavg.c: Likewise.
78044         * lib/mkstemp.c: Likewise.
78045         * lib/mountlist.c, mountlist.h: Likewise.
78046         * lib/openat.c, openat.h: Likewise.
78047         * lib/readlink-stub.c: Likewise.
78048         * lib/readutmp.c, readutmp.h: Likewise.
78049         * lib/rename.c: Likewise.
78050         * lib/rmdir.c: Likewise.
78051         * lib/same.c: Likewise.
78052         * lib/savedir.c: Likewise.
78053         * lib/stripslash.c: Likewise.
78054         * lib/tempname.c: Likewise.
78055         * lib/xreadlink.c: Likewise.
78056         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78057         All uses changed.
78058         * lib/exclude.h: Likewise.
78059
78060         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78061         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78062         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78063         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78064         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78065         files have been getting away with it for years (MORE/BSD 4.3
78066         is extinct now).
78067         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78068         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78069
78070         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78071         Define to 256, not 255, as per modern POSIX.
78072
78073 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         Sync from coreutils.
78076         Use "file name" when talking about file names, instead of "filename"
78077         or "path", as per the GNU coding standards.
78078         * MODULES.html.sh: mkdir-p renamed from makepath.
78079         filenamecat renamed from path-concat.
78080         * modules/filenamecat: Renamed from modules/path-concat.
78081         (Files): filenamecat.h and filenamecat.c renamed from
78082         path-concat.h and path-concat.c.
78083         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78084         (Include): filenamecat.h, not path-concat.h.
78085         * modules/mkdir-p: Renamed from modules/makepath.
78086         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78087         makepath.c.
78088         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78089         (Include): mkdir-p.h, not makepath.h.
78090
78091 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78092
78093         Sync from coreutils.
78094         * m4/mkdir-p.m4: Renamed from makepath.m4.
78095         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78096         Rename files from makepath.c to mkdir-p.c, and from
78097         makepath.h to mkdir-p.h.
78098         * m4/filenamecat.m4: Renamed from path-concat.m4.
78099         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78100         Rename files from path-concat.c to filenamecat.c,
78101         and from path-concat.h to filenamecat.h.
78102         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78103         "file name" in local variables or comments.
78104         * m4/rename.m4: Likewise.
78105
78106 2005-06-01  Bruno Haible  <bruno@clisp.org>
78107
78108         * modules/csharpexec: New file.
78109         * MODULES.html.sh (C#): New section.
78110
78111 2005-06-01  Bruno Haible  <bruno@clisp.org>
78112
78113         * m4/csharp.m4: New file, from GNU gettext.
78114         * m4/csharpexec.m4: New file, from GNU gettext.
78115
78116 2005-06-01  Bruno Haible  <bruno@clisp.org>
78117
78118         * lib/csharpexec.h: New file, from GNU gettext.
78119         * lib/csharpexec.c: New file, from GNU gettext.
78120         * lib/csharpexec.sh.in: New file, from GNU gettext.
78121
78122 2005-05-31  Derek Price  <derek@ximbiot.com>
78123             Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         Sync from cvs.
78126         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78127
78128 2005-05-31  Derek Price  <derek@ximbiot.com>
78129             Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         Sync from cvs.
78132         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78133
78134 2005-05-29  Derek Price  <derek@ximbiot.com>
78135
78136         * config/srclist.txt (glob_.h, glob.c): Add these files.
78137
78138 2005-05-29  Derek Price  <derek@ximbiot.com>
78139
78140         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78141         * modules/glob: New file.
78142         * modules/getlogin_r: Add link to POSIX spec in description.
78143
78144 2005-05-29  Derek Price  <derek@ximbiot.com>
78145             Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * m4/glob.m4: New file.
78148
78149 2005-05-29  Derek Price  <derek@ximbiot.com>
78150             Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         * lib/glob_.h, lib/glob.c: New files.
78153
78154 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78157         * modules/fts-lgpl (Depends-on): Remove gettext.
78158
78159 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78162         and don't require gt_INTTYPES_PRI.
78163
78164 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78165
78166         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78167
78168         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78169         the configuration hassle isn't worth it.
78170         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78171         (LONGEST_MODIFIER, PRIuMAX): Remove.
78172
78173 2005-05-27  Bruno Haible  <bruno@clisp.org>
78174
78175         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78176
78177 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78180         _POSIX_PTHREAD_SEMANTICS for Solaris.
78181
78182 2005-05-25  Derek Price  <derek@ximbiot.com>
78183
78184         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78185
78186 2005-05-25  Derek Price  <derek@ximbiot.com>
78187             Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78190         * lib/getlogin_r.c, getlogin_r.h: New files.
78191
78192 2005-05-25  Bruno Haible  <bruno@clisp.org>
78193             Derek Price  <derek@ximbiot.com>
78194
78195         * lib/getlogin_r.h: Simplify API documentation.
78196
78197 2005-05-23  Derek Price  <derek@ximbiot.com>
78198
78199         * modules/minmax (Files): Add m4/minmax.m4.
78200         (configure.ac): Add gl_MINMAX.
78201
78202 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78205         so that unistd-safer.h (GPL'ed code) need not be included.
78206
78207 2005-05-22  Bruno Haible  <bruno@clisp.org>
78208
78209         * m4/minmax.m4: New file.
78210         Based on a patch by Derek Price <derek@ximbiot.com>.
78211
78212 2005-05-22  Bruno Haible  <bruno@clisp.org>
78213
78214         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78215         (INT64_MIN): Fix definition.
78216         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78217
78218         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78219         NEED_SIGNED_INT_TYPES.
78220
78221         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78222         HAVE_SYSTEM_INTTYPES.
78223
78224 2005-05-22  Bruno Haible  <bruno@clisp.org>
78225
78226         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78227         Also include <sys/param.h> if it defines MIN, MAX.
78228         Based on a patch by Derek Price <derek@ximbiot.com>.
78229
78230 2005-05-21  Jim Meyering  <jim@meyering.net>
78231
78232         * modules/fts (Files): Add m4/inttypes-pri.m4.
78233         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78234
78235 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         New fts module.
78238         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78239         (setup_dir, free_dir): New functions.
78240         (enter_dir, leave_dir): Define trivial
78241         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78242         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78243         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78244         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78245         Move to fts-cycle.c.
78246         (fts_open): Use setup_dir.
78247         (fts_close): Use free_dir.
78248         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78249         This adds a label and some gotos, but the alternatives were messier.
78250         Check for memory allocation failure when entering a dir.
78251         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78252         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78253         (FTS): New member fts_cycle, that is a union that contains the
78254         old active_dir_ht and cycle_state.  All uses changed to mention
78255         fts_cycle.ht and fts_cycle.state.
78256         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78257         fts.c, with the following changes:
78258         (setup_dir, free_dir): New functions.
78259         (enter_dir): Now returns bool.  Return true if successful, false
78260         if memory exhausted.  All callers changed.
78261         Do not bother partly cleaning up on
78262         memory allocation failure; that is free_dir's job.
78263         However, free ad if hash_insert fails, to avoid memory leak.
78264         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78265         fts->fts_options to see which union member to use.
78266
78267 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78270         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78271
78272 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78275
78276 2005-05-20  Jim Meyering  <jim@meyering.net>
78277
78278         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78279         Now a macro, to pacify GCC.
78280
78281 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78282
78283         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78284         of -1.
78285
78286 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78287
78288         * lib/chown.c (rpl_chown): Return -1 on failure.
78289
78290 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78293         Don't check for stddef.h.
78294         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78295         don't use its results.
78296         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78297         since we include them unconditionally.  Don't require
78298         AM_STDBOOL_H, since stdbool is a prerequisite.
78299         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78300         since we assume C89 or better.
78301         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78302         as we don't use their results.
78303         Don't check for fchdir, memmove, memset, strrchr, as we use
78304         them unconditionally.
78305         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78306         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78307
78308 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78311         Include <stddef.h> unconditionally, since we assume C89 now.
78312         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78313         * lib/fts.c: Include fts_.h first, to check interface.
78314         Do not include intprops.h; no longer needed.
78315         Include cycle-check.h and hash.h, since fts_.h no longer does.
78316         Remove unnecessary casts of closedir to void.
78317         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78318         decide whether to decrement nlinks.
78319         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78320         (FTS): Use struct hash_table * instead of Hash_table, so that
78321         we no longer need to include hash.h here.
78322
78323 2005-05-18  Jim Meyering  <jim@meyering.net>
78324
78325         * modules/dirfd (License): Change to LGPL.  Most of the code
78326         is already in the public domain.
78327
78328 2005-05-18  Jim Meyering  <jim@meyering.net>
78329
78330         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78331         Reported by Yoann Vandoorselaere.
78332
78333 2005-05-17  Jim Meyering  <jim@meyering.net>
78334
78335         * m4/fts.m4: New file, from coreutils.
78336
78337 2005-05-17  Jim Meyering  <jim@meyering.net>
78338
78339         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78340
78341 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         Sync from coreutils.
78344         * m4/unlinkdir.m4: New file.
78345
78346 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         Sync from coreutils.
78349         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78350         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78351         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78352         White space changes only.
78353         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78354         special.
78355         * lib/yesno.c: Include getline.h, not ctype.h.
78356         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78357         Use getline to remove arbitrary restriction on response length.
78358
78359 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         * config/srclist-update: Spell out "Street" in FSF postal
78362         mail address; this is the style the FSF seems to prefer.
78363
78364         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78365         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78366         this updates FSF postal mail address.
78367
78368         Sync from coreutils.
78369         * modules/unlinkdir: New file.
78370         * modules/yesno (Depends-on): Add getline.
78371         * MODULES.html.sh (File system functions): Add unlinkdir.
78372
78373 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78374
78375         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78376         lib/strsep.h:
78377         Change the initial comment to refer to GPL, not LGPL.
78378         gnulib-tool will change it to LGPL as needed.
78379
78380         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78381         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78382         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78383         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78384         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78385         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78386         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78387         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78388         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78389         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78390         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78391         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78392         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78393         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78394         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78395         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78396         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78397         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78398         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78399         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78400         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78401         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78402         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78403         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78404         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78405         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78406         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78407         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78408         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78409         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78410         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78411         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78412         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78413         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78414         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78415         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78416         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78417         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78418         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78419         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78420         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78421         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78422         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78423         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78424         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78425         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78426         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78427         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78428         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78429         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78430         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78431         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78432         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78433         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78434         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78435         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78436         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78437         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78438         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78439         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78440         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78441         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78442         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78443         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78444         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78445         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78446         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78447         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78448         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78449         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78450         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78451         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78452         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78453         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78454         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78455         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78456         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78457         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78458         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78459         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78460         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78461         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78462         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78463         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78464         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78465         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78466         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78467         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78468         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78469         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78470         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78471         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78472         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78473         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78474         lib/yesno.c, lib/yesno.h:
78475         Update FSF postal mail address.
78476
78477 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78480         tests/test-memmem.c, tests/test-stpncpy.c:
78481         Update FSF postal mail address.
78482
78483 2005-05-13  Bruno Haible  <bruno@clisp.org>
78484
78485         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78486         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78487         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78488         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78489         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78490         Add support for 64-bit integers in the MSVC compiler.
78491
78492 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78493
78494         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78495
78496 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78497
78498         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78499
78500 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * doc/getdate.texi (General date syntax): Don't say that date
78503         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78504         Problem reported by Nic Ferrier.
78505
78506 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78507
78508         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78509         specified in ai_socktype. Fix invalid ai_protocol
78510         check. ai_protocol is usually set to 0 or depending on
78511         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78512         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78513         ai_socktype / ai_protocol in the returned addrinfo structure.
78514
78515 2005-05-10  Simon Josefsson  <jas@extundo.com>
78516
78517         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78518         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78519
78520 2005-05-10  Karl Berry  <karl@gnu.org>
78521
78522         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78523         (from http://www.gnu.org/licenses).
78524         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78525         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78526         fdl.texi suffices.
78527
78528 2005-05-10  Karl Berry  <karl@gnu.org>
78529
78530         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78531         (COPYING.DOC): remove.
78532
78533         * config/srclist-update: new FSF address.
78534
78535 2005-05-10  Derek Price  <derek@ximbiot.com>
78536
78537         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78538         possible.
78539
78540 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78541             Bruno Haible  <bruno@clisp.org>
78542
78543         * modules/inet_ntop: New file.
78544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78545         inet_ntop.
78546
78547 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78548             Bruno Haible  <bruno@clisp.org>
78549
78550         * m4/inet_ntop.m4: New file.
78551
78552 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78553             Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/inet_ntop.h: New file.
78556         * lib/inet_ntop.c: New file, from glibc with modifications.
78557
78558 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * modules/time_r (License): Change to LGPL.
78561         * modules/extensions (License): Change to LGPL.  Actually,
78562         the license is more permissive than that, but currently gnulib-tool
78563         doesn't know how to handle more-permissive licenses.
78564
78565         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78566         Problem reported by Dave Love.
78567
78568 2005-05-08  Jim Meyering  <jim@meyering.net>
78569
78570         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78571         blank.
78572
78573 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * modules/argmatch (Depends-on): Add stdbool.
78576         * modules/backupfile (Depends-on): Likewise.
78577         * modules/chdir-long (Depends-on): Likewise.
78578         * modules/closeout (Depends-on): Likewise.
78579         * modules/cycle-check (Depends-on): Likewise.
78580         * modules/dirname (Depends-on): Likewise.
78581         * modules/fnmatch (Depends-on): Likewise.
78582         * modules/fsusage (Depends-on): Likewise.
78583         * modules/fwriteerror (Depends-on): Likewise.
78584         * modules/getcwd (Depends-on): Likewise.
78585         * modules/getloadavg (Depends-on): Likewise.
78586         * modules/hard-locale (Depends-on): Likewise.
78587         * modules/makepath (Depends-on): Likewise.
78588         * modules/mountlist (Depends-on): Likewise.
78589         * modules/nanosleep (Depends-on): Likewise.
78590         * modules/posixtm (Depends-on): Likewise.
78591         * modules/quotearg (Depends-on): Likewise.
78592         * modules/readtokens (Depends-on): Likewise.
78593         * modules/readtokens0 (Depends-on): Likewise.
78594         * modules/readutmp (Depends-on): Likewise.
78595         * modules/save-cwd (Depends-on): Likewise.
78596         * modules/strftime (Depends-on): Likewise.
78597         * modules/userspec (Depends-on): Likewise.
78598         * modules/utimecmp (Depends-on): Likewise.
78599         * modules/xgetcwd (Depends-on): Likewise.
78600         * modules/xnanosleep (Depends-on): Likewise.
78601         * modules/xstrtod (Depends-on): Likewise.
78602         * modules/yesno (Depends-on): Likewise.
78603
78604 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78607         needless checks.
78608
78609 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         Merge from coreutils.  Among other things,
78612         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78613         * lib/fd-safer.c: New file.
78614         * lib/fcntl-safer.h, open-safer.c: Remove.
78615         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78616         * lib/dup-safer.c: Include unistd-safer.h first.
78617         Don't include errno.h.
78618         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78619         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78620         * lib/file-type.c: Rely on file-type.h change.
78621         * lib/getloadavg.c: Include unistd-safer.h.
78622         (getloadavg): Use safer open.
78623         * lib/getusershell.c: Include "stdio-safer.h".
78624         (getusershell): Use safer fopen.
78625         * lib/long-options.c (long_options): Use NULL rather than 0.
78626         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78627         'free'.
78628         * lib/modechange.c: Likewise.
78629         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78630         (MODE_DONE): New constant.
78631         (struct mode_change): Remove 'next' member.
78632         (make_node_op_equals): New function; like the old one of the
78633         same name, except it allocates an array.
78634         (mode_compile, mode_create_from_ref): Use it.
78635         (mode_compile): Allocate result as an array, not a linked list.
78636         Parse octal string ourself, so that we catch mistakes like "+0".
78637         (mode_adjust): Arg is an array, not a linked list.
78638         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78639         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78640         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78641         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78642         Remove.  This is now stat-macros.h's job.
78643         (talloc): Remove.  All callers replaced by xalloc, so that
78644         our invokers don't have to worry about reporting memory failures.
78645         (make_node_op_equals): Remove.
78646         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78647         New constants.
78648         (struct mode_change): Moved here from modechange.h.
78649         (mode_append_entry): Remove.
78650         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78651         apps to have incorrect behavior.  Use simpler algorithm for head
78652         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78653         Detect more invalid usages rather than having somewhat-random behavior.
78654         Don't insert an "a=" action, as that leads to incorrect behavior.
78655         (mode_compile, mode_create_from_ref): Return NULL on error instead
78656         of an enum, since now there's only one way to have an error.  All
78657         callers changed.
78658         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78659         at the correct time.  Simplify calculation of "+u" and its ilk.
78660         Don't mishandle "+X".
78661         (mode_free): Remove "register" and localize decls.
78662         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78663         (struct mode_change): Move to modechange.c; callers don't
78664         need to see this stuff.
78665         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78666         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78667         (mode_change, mode_adjust): Reflect the new signatures noted above.
78668         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78669         that might redefine system include files.
78670         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78671         (my_usleep): Use NULL rather than (void *) 0.
78672         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78673         Use siginterrupt to specify that system calls should be interrupted.
78674         (rpl_nanosleep): Move initialization of suspended closer to call of
78675         my_usleep.
78676         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78677         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78678         (desirable_utmp_entry): New function.
78679         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78680         using x2nrealloc, to simplify logic.
78681         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78682         size calculation.  Do not assume utmp file is a regular file.
78683         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78684         (READ_UTMP_CHECK_PIDS): New constant.
78685         * lib/save-cwd.c: Include unistd-safer.h.
78686         (save_cwd): Use fd_safer.
78687         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78688         [!_LIBC] Include "stat-macros.h" instead.
78689         * lib/unistd-safer.h (fd_safer): New decl.
78690
78691 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * modules/getloadavg (Depends-on): Add unistd-safer.
78694         * modules/getusershell (Depends-on): Add stdio-safer.
78695         * modules/lstat (Depends-on): Remove xalloc.
78696         * modules/mkstemp (Depends-on): Add stat-macros.
78697         * modules/modechange (Depends-on): Remove xstrtol.
78698         Add stat-macros, xalloc.
78699         * modules/save-cwd (Depends-on): Add unistd-safer.
78700         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78701         * modules/unistd-safer (Files): Add lib/fd-safer.c
78702         (Makefile.am): Remove lib_SOURCES.
78703
78704         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78705         Remove fcntl-safer; unistd-safer supersedes it.
78706
78707 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78710         AC_HEADER_STAT.
78711         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78712         (gl_PREREQ_CHOWN): Remove.
78713         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78714         it.  Don't require AC_HEADER_STAT.
78715         (gl_PREREQ_LSTAT): Remove.
78716         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78717         Don't require AC_HEADER_STAT.
78718         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78719         (gl_PREREQ_RMDIR): Remove.
78720         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78721         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78722         the stat-macros module a prerequisite.
78723         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78724         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78725         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78726         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78727         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78728         variable names.
78729         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78730         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78731         variable prefixes.
78732         * m4/fcntl-safer.m4: Remove.
78733         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78734         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78735         Invoke gl_PREREQ_FD_SAFER.
78736         (gl_PREREQ_FD_SAFER): New macro.
78737         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78738         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78739         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78740         Remove duplicate call to AC_LIBOBJ(readutmp).
78741         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78742
78743         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78744         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78745
78746 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         * MODULES.html.sh (Misc): Add byteswap.
78749
78750 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78751
78752         * modules/getcwd (Depends-on): Add extensions.
78753         * modules/openat (Depends-on): Likewise.
78754
78755 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78756
78757         * modules/byteswap: New file.
78758
78759 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78760
78761         * m4/byteswap.m4: New file.
78762
78763 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78764
78765         * lib/byteswap_.h: New file.
78766
78767 2005-04-25  Karl Berry  <karl@gnu.org>
78768
78769         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78770
78771 2005-04-25  Albert Chin  <china@thewrittenword.com>
78772
78773         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78774         Toolkit C bug.
78775
78776 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78777
78778         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78779         (func_ln_if_changed): Remove forcibly for no error message
78780         in case file does not exist.
78781
78782 2005-04-19  Simon Josefsson  <jas@extundo.com>
78783
78784         * gnulib-tool (Options): Make --symlink mean --symbolic.
78785
78786 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78787
78788         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78789
78790 2005-04-16  Simon Josefsson  <jas@extundo.com>
78791
78792         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78793
78794 2005-04-15  Simon Josefsson  <jas@extundo.com>
78795
78796         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78797
78798 2005-04-15  Simon Josefsson  <jas@extundo.com>
78799
78800         * gnulib-tool: Rename --symlink to --symbolic.
78801
78802 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78803
78804         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78805         symbolic links to files instead of copying/moving.  Add --aux-dir,
78806         specifying directory relative --dir where auxiliary build tools
78807         are placed.
78808
78809 2005-04-14  Bruno Haible  <bruno@clisp.org>
78810
78811         * modules/allocsa (License): Change to LGPL.
78812         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78813
78814 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78817         that "UTC +1 second" continues to work.  Problem reported
78818         by Dmitry V. Levin.
78819         (relunit_snumber): New rule.
78820         (relunit): Use it.
78821
78822 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78823
78824         * lib/getdate.y (universal_time_zone_table): New constant.
78825         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78826         universal_time_zone_table.
78827         (lookup_zone): Prefer universal_time_zone_table to
78828         local_time_zone_table, so that "GMT" time stamps are allowed in
78829         London during the summer.  Problem reported by Ian Abbott.
78830
78831 2005-04-12  Jim Meyering  <jim@meyering.net>
78832
78833         * lib/human.c (humblock): Set *options even when returning due to
78834         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78835         warning from gcc-4.
78836
78837 2005-04-09  Jim Meyering  <jim@meyering.net>
78838
78839         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78840         -Wuninitialized: initialize tm0.tm_year.
78841
78842 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78845         count, since there's no maximum.  All uses changed.
78846         Add member dsts_seen.
78847         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78848         not being INT_MAX.
78849         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78850         Use pc_rels_seen to decide whther a date is absolute.
78851
78852         * lib/getdate.y (number): Don't overwrite year.
78853         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78854         check.
78855
78856 2005-04-02  Simon Josefsson  <jas@extundo.com>
78857
78858         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78859         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78860
78861 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78862
78863         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78864         where no absolute path name can be longer than PATH_MAX.
78865
78866 2005-03-27  Jim Meyering  <jim@meyering.net>
78867
78868         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78869
78870 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78873         "one's complement" -> "ones' complement" in comment, as per Knuth.
78874         "value of type" -> "type or expression" in comment.
78875         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78876
78877 2005-03-26  Jim Meyering  <jim@meyering.net>
78878
78879         Comment nits.
78880         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78881         Correct typos: s/or/of/.
78882
78883 2005-03-26  Jim Meyering  <jim@meyering.net>
78884
78885         * modules/check-include-files: Move to ../ and rename to...
78886         * check-module: ...this.
78887
78888 2005-03-25  Jim Meyering  <jim@meyering.net>
78889
78890         * modules/xvasprintf (Files): Add xalloc.h.
78891
78892 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * modules/gettext (Files): config/config.rpath ->
78895         build-aux/config.rpath
78896         * modules/iconv (Files): Likewise.
78897         Problem reported by Oskar Liljeblad.
78898
78899 2005-03-23  Jim Meyering  <jim@meyering.net>
78900
78901         * modules/check-include-files: New script to check for
78902         missing dependencies, multiple includes, etc.
78903
78904         * modules/c-strtold (Depends-on): Add xalloc.
78905         * modules/c-strtod (Depends-on): Add xalloc.
78906         * modules/hash (Depends-on): Add xalloc.
78907         (Files): Remove lib/xalloc.h.
78908
78909         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78910         * modules/userspec (Files): Add lib/inttostr.h.
78911
78912 2005-03-23  Jim Meyering  <jim@meyering.net>
78913
78914         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78915
78916 2005-03-22  Jim Meyering  <jim@meyering.net>
78917
78918         * modules/stat-macros: New module.
78919         * modules/canonicalize, modules/euidaccess, modules/file-type,
78920         * modules/filemode, modules/lchown, modules/makepath,
78921         * modules/rmdir, modules/stat: Depend on new stat-macros module
78922         rather than listing lib/stat-macros.h manually.
78923         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78924
78925 2005-03-22  Jim Meyering  <jim@meyering.net>
78926
78927         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78928
78929 2005-03-22  Bruno Haible  <bruno@clisp.org>
78930
78931         * config/srclist.txt: Replace target directory 'config' with
78932         'build-aux'.
78933         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78934         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78935         ../build-aux/.
78936
78937 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * modules/chdir-long (Depends-on): Add mempcpy.
78940
78941         * modules/acl, modules/backupfile, modules/c-strtod,
78942         modules/c-strtold, modules/canon-host, modules/canonicalize,
78943         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78944         modules/exclude, modules/exitfail, modules/file-type,
78945         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78946         modules/getdate, modules/getline, modules/getpagesize,
78947         modules/getpass, modules/getugroups, modules/group-member,
78948         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78949         modules/inttostr, modules/long-options, modules/makepath,
78950         modules/md5, modules/memcasecmp, modules/memcoll,
78951         modules/modechange, modules/mountlist, modules/path-concat,
78952         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78953         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78954         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78955         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78956         modules/strftime, modules/strndup, modules/strverscmp,
78957         modules/timespec, modules/unlocked-io, modules/userspec,
78958         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78959         modules/yesno:
78960         Remove lib_SOURCES line from Makefile.am section, as this is now
78961         done automatically by the corresponding Autoconf macro.
78962
78963 2005-03-21  Jim Meyering  <jim@meyering.net>
78964
78965         Changes imported from coreutils.
78966
78967         * lib/cycle-check.c: Don't include xalloc.h.
78968
78969         * lib/path-concat.c: Don't include assert.h.
78970         (path_concat): Remove assertion that would have triggered
78971         for ABASE starting with more than one slash.
78972         Reported by Andreas Schwab.
78973
78974         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78975         properly when ABASE is an absolute file name.
78976         Correct the description of this function.
78977         Include <assert.h>.
78978         Add an assertion and a test driver.
78979         This fixes a bug introduced on 2004-07-02.
78980         Andreas Schwab reported the resulting failure of cp --parents:
78981         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78982
78983 2005-03-21  Jim Meyering  <jim@meyering.net>
78984
78985         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78986         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78987
78988 2005-03-21  Jim Meyering  <jim@meyering.net>
78989         and  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78992         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78993         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78994         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78995         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78996         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78997         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78998         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78999         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79000         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79001         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79002         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79003         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79004         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79005         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79006         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79007         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79008         for these modules.
79009
79010 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79011
79012         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79013         (which shouldn't happen), generate nothing instead of returning 0
79014         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79015
79016 2005-03-16  Bruno Haible  <bruno@clisp.org>
79017
79018         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79019         HAVE_LONGLONG_64BIT.
79020
79021 2005-03-16  Bruno Haible  <bruno@clisp.org>
79022
79023         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79024         HAVE_LONGLONG_64BIT.
79025
79026 2005-03-16  Bruno Haible  <bruno@clisp.org>
79027
79028         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79029         HAVE_LONGLONG_64BIT.
79030
79031 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79034         reliably distinguish strftime failure from empty output on POSIX
79035         hosts.
79036
79037 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79040         (iconv_string): Don't guess a size-zero buffer, as that might cause
79041         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79042         result would be 'too large', where 'too large' is (heuristically)
79043         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79044         overflow concerns.  This will prevent some unwanted malloc failures
79045         when the inputs are very large.
79046
79047 2005-03-15  Karl Berry  <karl@gnu.org>
79048
79049         * config/srclist.txt (config.rpath): from gettext.
79050         * config/config.rpath: update.
79051
79052 2005-03-15  Bruno Haible  <bruno@clisp.org>
79053
79054         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79055         to 'negate'.
79056
79057         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79058         variable.
79059
79060         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79061         results.
79062
79063 2005-03-14  Simon Josefsson  <jas@extundo.com>
79064
79065         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79066         <fx@gnu.org>.
79067
79068 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79069
79070         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79071         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79072         intprops.h.
79073         * lib/strtol.c: Likewise.
79074
79075 2005-03-14  Jim Meyering  <jim@meyering.net>
79076
79077         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79078         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79079         to be nonzero so that we (and caller) can detect the difference
79080         between a valid zero-length expansion and an error return, even
79081         when the underlying strftime fails before writing anything into
79082         that location.
79083
79084 2005-03-14  Bruno Haible  <bruno@clisp.org>
79085
79086         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79087         Update from GNU gettext 0.14.3.
79088
79089 2005-03-10  Jim Meyering  <jim@meyering.net>
79090
79091         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79092
79093 2005-03-10  Jim Meyering  <jim@meyering.net>
79094
79095         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79096         so that this module works on systems without fchdir.
79097
79098 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         Factor int-properties macros into a single file, except for
79101         glibc-related files.
79102         * lib/intprops.h: New file.
79103         * lib/getloadavg.c: Include it instead of limits.h.
79104         (INT_STRLEN_BOUND): Remove.
79105         * lib/human.c: Include intprops.h.
79106         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79107         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79108         302/1000.
79109         * lib/inttostr.h: Include intprops.h instead of limits.h.
79110         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79111         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79112         for consistency with intprops.h.
79113         (time_t_is_integer, twos_complement_arithmetic): Use them.
79114         * lib/sig2str.h: Include <signal.h>, intprops.h.
79115         (INT_STRLEN_BOUND): Remove.
79116         * lib/strftime.c (TYPE_SIGNED): Remove.
79117         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79118         * lib/strtol.c: Adjust comments to match intprops.h.
79119         * lib/userspec.c: Include intprops.h.
79120         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79121         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79122         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79123         instead of rolling our own expressions.
79124         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79125
79126         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79127         instead of int.
79128         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79129         the right thing even if adding 1900 would overflow.  Similarly
79130         for tm_mon + 1 and tm_yday + 1.
79131         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79132         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79133         (DO_SIGNED_NUMBER): New macro.
79134         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79135
79136 2005-03-07  Bruno Haible  <bruno@clisp.org>
79137
79138         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79139
79140 2005-03-07  Bruno Haible  <bruno@clisp.org>
79141
79142         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79143
79144 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79145
79146         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79147         (func_import): Only replace files via --import when they have actually
79148         changed.
79149
79150 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79151
79152         * m4/mmap-anon.m4: New file.
79153         * m4/pagealign_alloc.m4: New file.
79154
79155 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79156             Bruno Haible  <bruno@clisp.org>
79157
79158         * modules/pagealign_alloc: New file.
79159         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79160
79161 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79162             Bruno Haible  <bruno@clisp.org>
79163
79164         * lib/pagealign_alloc.h: New file.
79165         * lib/pagealign_alloc.c: New file.
79166
79167 2005-03-03  Bruno Haible  <bruno@clisp.org>
79168
79169         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79170         Use an all-permissive copyright notice, recommended by RMS.
79171
79172 2005-03-02  Bruno Haible  <bruno@clisp.org>
79173
79174         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79175         of AIX, the replacement has to be done only after <string.h> is
79176         included, therefore not in config.h. stpncpy.h does the replacement,
79177         and stpncpy.c uses it.
79178
79179 2005-03-02  Bruno Haible  <bruno@clisp.org>
79180
79181         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79182         stpncpy.c uses it.
79183
79184 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79185
79186         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79187         The workaround isn't strictly needed for POSIX conformance, and
79188         it's too much of a pain to configure and maintain.  We'll ask
79189         people to fix their kernels instead.
79190         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79191         (NANOSLEEP_BUG_WORKAROUND): Remove.
79192         (xnanosleep): Remove the workaround.
79193
79194 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79197         Reported by Derek Price.
79198         (Include): Add "timespec.h".
79199
79200         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79201
79202 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79205         to detect nanosleep bug.
79206
79207 2005-03-01  Bruno Haible  <bruno@clisp.org>
79208
79209         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79210
79211 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79212
79213         * modules/gethrxtime: New file.
79214         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79215         (Depends-on): Add gethrxtime.
79216         (configure.ac): Add gl_XNANOSLEEP.
79217         (Makefile.am): Remove lib_SOURCES line.
79218
79219 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79222         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79223
79224 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79225
79226         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79227         * lib/timespec.h (gettime): Return void, since it always
79228         succeeds now.  All uses changed.
79229         * lib/gettime.c (gettime): Likewise.
79230         [HAVE_NANOTIME]: Prefer nanotime.
79231         Assume gettimeofday succeeds, as POSIX requires.
79232         Assime time () succeeds, since other code already does.
79233         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79234         (timespec_subtract): Remove.
79235         (NANOSLEEP_BUG_WORKAROUND): New constant.
79236         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79237         things considerably.  Use it only on GNU/Linux hosts, since the
79238         workaround shouldn't be needed elsewhere.
79239
79240 2005-02-24  Bruno Haible  <bruno@clisp.org>
79241
79242         * modules/gettext (Files): Add m4/glibc2.m4.
79243
79244 2005-02-24  Bruno Haible  <bruno@clisp.org>
79245
79246         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79247         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79248         * m4/progtest.m4:
79249         Update from GNU gettext 0.14.2.
79250         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79251
79252 2005-02-24  Bruno Haible  <bruno@clisp.org>
79253
79254         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79255         * lib/config.charset: Update from GNU gettext 0.14.2.
79256
79257 2005-02-24  Bruno Haible  <bruno@clisp.org>
79258
79259         * lib/gettext.h: Update from GNU gettext 0.14.2.
79260
79261 2005-02-23  Simon Josefsson  <jas@extundo.com>
79262
79263         * m4/iconvme.m4: New file.
79264
79265 2005-02-23  Jim Meyering  <jim@meyering.net>
79266
79267         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79268         change.
79269         Thanks to Bruno Haible for catching it.
79270
79271 2005-02-22  Simon Josefsson  <jas@extundo.com>
79272
79273         * modules/iconvme: New file.
79274
79275         * MODULES.html.sh: Add iconvme.
79276
79277 2005-02-22  Simon Josefsson  <jas@extundo.com>
79278
79279         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79280
79281 2005-02-22  Simon Josefsson  <jas@extundo.com>
79282
79283         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79284
79285 2005-02-22  Jim Meyering  <jim@meyering.net>
79286
79287         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79288         s/ifndef/ifdef/.
79289
79290 2005-02-20  Neil Conway  <neilc@samurai.com>
79291
79292         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79293         returned by OSX/Darwin if the specified buffer is not large
79294         enough for the hostname.
79295
79296 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79297
79298         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79299         pass it to _help, otherwise the latter coredumps trying to
79300         dereference state.root_argp.
79301
79302 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79303
79304         * modules/chdir-long (Depends-on): Add memrchr.
79305         * modules/memrchr (Files): Add lib/memrchr.h.
79306         (Include): "memrchr.h".
79307
79308 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79311
79312 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79313
79314         * lib/memrchr.h: New file.
79315         * lib/chdir-long.c: Include it.
79316         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79317         Don't bother including stddef.h.
79318
79319 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79320
79321         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79322         inclusion.
79323         Include <sys/types.h>, for dev_t.
79324         (ME_DUMMY, ME_REMOTE): Move from here....
79325         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79326         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79327         Dmitry V. Levin.
79328         Include mountlist.h first, to test the interface.
79329
79330 2005-01-29  Bruno Haible  <bruno@clisp.org>
79331
79332         * lib/progname.c (program_name): Initialize.
79333         Needed when linking statically on MacOS X.
79334
79335 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         Sync from coreutils.
79338         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79339         (Depends-on): Add c-strtod.
79340         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79341
79342 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         Sync from coreutils.
79345         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79346
79347         Remove files that are specific to coreutils.
79348         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79349
79350 2005-01-28  Bruno Haible  <bruno@clisp.org>
79351
79352         * modules/javacomp: New file.
79353         * MODULES.html.sh (Java): Add javacomp.
79354
79355 2005-01-28  Bruno Haible  <bruno@clisp.org>
79356
79357         * m4/javacomp.m4: New file, from GNU gettext.
79358
79359 2005-01-28  Bruno Haible  <bruno@clisp.org>
79360
79361         * lib/javacomp.sh.in: New file, from GNU gettext.
79362         * lib/javacomp.h: New file, from GNU gettext.
79363         * lib/javacomp.c: New file, from GNU gettext.
79364
79365 2005-01-26  Simon Josefsson  <jas@extundo.com>
79366
79367         * lib/gai_strerror.c: Use GPL in header.
79368
79369 2005-01-26  Bruno Haible  <bruno@clisp.org>
79370
79371         * modules/javaexec: New file.
79372         * MODULES.html.sh (Java): Add javaexec.
79373
79374 2005-01-26  Bruno Haible  <bruno@clisp.org>
79375
79376         * m4/javaexec.m4: New file, from GNU gettext.
79377
79378 2005-01-26  Bruno Haible  <bruno@clisp.org>
79379
79380         * lib/javaexec.sh.in: New file, from GNU gettext.
79381         * lib/javaexec.h: New file, from GNU gettext.
79382         * lib/javaexec.c: New file, from GNU gettext.
79383
79384 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79385
79386         * modules/lchown (Depends-on): Remove lchown.h
79387
79388 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79389
79390         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79391         must be defined if the header file was not found, in order
79392         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79393
79394 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79395
79396         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79397         initializers for struct pentry_state.
79398         (__argp_error): Check return value of __asprintf
79399         (__argp_failure): Translate error message
79400
79401         * lib/argp-parse.c: Removed braces around the expansion of N_()
79402
79403 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79406         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79407         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79408         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79409         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79410         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79411         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79412         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79413         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79414         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79415         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79416         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79417         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79418         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79419         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79420         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79421         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79422         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79423         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79424         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79425         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79426         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79427         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79428         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79429         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79430         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79431         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79432         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79433         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79434         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79435         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79436         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79437         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79438         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79439         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79440         Use an all-permissive copyright notice, recommended by RMS.
79441
79442 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79443
79444         * modules/chdir-long (Depends-on): Remove mempcpy.
79445
79446 2005-01-21  Jim Meyering  <jim@meyering.net>
79447
79448         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79449         same value as for Solaris 9.
79450
79451         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79452         component length.  This included changing the parameter to be
79453         of type `char *' rather than `char const *'.
79454         * lib/chdir-long.h (chdir_long): Update prototype.
79455
79456         * lib/openat.c (fdopendir, fstatat): New functions.
79457         * lib/openat.h: Include headers required for use of DIR and struct
79458         stat.
79459         [AT_SYMLINK_NOFOLLOW]: Define.
79460         (fdopendir, fstatat): Add prototypes.
79461
79462 2005-01-21  Bruno Haible  <bruno@clisp.org>
79463
79464         * modules/classpath: New file.
79465         * MODULES.html.sh (Java): Add classpath.
79466
79467 2005-01-21  Bruno Haible  <bruno@clisp.org>
79468
79469         * lib/classpath.h: New file, from GNU gettext.
79470         * lib/classpath.c: New file, from GNU gettext.
79471
79472 2005-01-20  Simon Josefsson  <jas@extundo.com>
79473
79474         * modules/version-etc-fsf: New file.
79475
79476 2005-01-20  Simon Josefsson  <jas@extundo.com>
79477
79478         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79479         * lib/version-etc.c: Remove version_etc_copyright.
79480         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79481         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79482
79483 2005-01-20  Simon Josefsson  <jas@extundo.com>
79484
79485         * lib/base64.h (isbase64): Add.
79486
79487         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79488         using a unsigned prototype, don't inline.
79489         (base64_decode): Use it.
79490
79491 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79494         it.
79495
79496 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         * lib/save-cwd.c (save_cwd): Remove code to support the case
79499         where fchdir is missing or flaky.
79500
79501 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79504
79505 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79508         AC_LIBSOURCES now does this.
79509         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79510         with new ullong_max module.
79511
79512 2005-01-19  Bruno Haible  <bruno@clisp.org>
79513
79514         * modules/sh-quote: New file.
79515         * MODULES.html.sh (Executing programs): Add sh-quote.
79516
79517 2005-01-19  Bruno Haible  <bruno@clisp.org>
79518
79519         * lib/sh-quote.h: New file, from GNU gettext.
79520         * lib/sh-quote.c: New file, from GNU gettext.
79521
79522 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         Merge from coreutils.
79525         * m4/ullong_max.m4: New file.
79526         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79527         (gl_MACROS): Assume localeconv exists.
79528
79529 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         Merge changes from coreutils, as described below in several
79532         changelogs dated today.
79533
79534         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79535         (O_DIRECTORY): Remove; not needed here, since "." must be
79536         a directory.  All uses removed.
79537         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79538         universal on Suns, and we also need to test for IRIX.
79539         Revamp code to use 'if' rather than '#if'.
79540         Avoid unnecessary comparison of cwd->desc to 0.
79541
79542         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79543         for known valid error numbers rather than observed invalid ones.
79544
79545 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * modules/ullong_max: New file.
79548
79549         * modules/chdir-long, modules/openat: New files.
79550         * modules/save-cwd (Depends-on): Depend on chdir-long.
79551         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79552
79553 2005-01-18  Jim Meyering  <jim@meyering.net>
79554
79555         Merge from coreutils.
79556         * m4/chdir-long.m4, m4/openat.m4: New files.
79557         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79558         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79559         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79560         is sane and DOES follow symlinks.  Besides, testing 20 different
79561         systems found no broken chown implementations.
79562         Prompted by a change in rsync's copy of this macro.
79563         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79564
79565         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79566
79567         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79568         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79569         NULL-means-set-to-current-time semantics.
79570         Remove temporary file immediately, rather than waiting
79571         for configure's at-exit trap code to do it.
79572
79573 2005-01-18  Jim Meyering  <jim@meyering.net>
79574
79575         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79576
79577         * lib/utimens.c (futimens): Account for the fact that futimes
79578         can also fail with errno == ENOSYS or errno == ENOENT.
79579         Patch from Dmitry V. Levin.
79580
79581         Change the name of the robust chdir function from chdir to chdir_long.
79582         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79583         (restore_cwd): Use chdir_long, not chdir.
79584         * lib/chdir-long.c: Renamed from chdir.c.
79585         * lib/chdir-long.h: Renamed from chdir.h.
79586         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79587         Hurd.
79588
79589 2005-01-18  Bruno Haible  <bruno@clisp.org>
79590
79591         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79592         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79593         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79594         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79595         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79596         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79597         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79598         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79599         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79600         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79601         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79602         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79603         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79604         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79605         Use an all-permissive copyright notice, recommended by RMS.
79606
79607 2005-01-18  Bob Proulx  <bob@proulx.com>
79608
79609         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79610         simplify offsetof() macro construct to avoid compile failure with
79611         native HP-UX 11.0 ANSI C compiler.
79612
79613 2005-01-17  Bruno Haible  <bruno@clisp.org>
79614
79615         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79616         redundant because stpncpy.m4 takes care of it.
79617
79618 2005-01-17  Bruno Haible  <bruno@clisp.org>
79619
79620         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79621
79622 2005-01-17  Bruno Haible  <bruno@clisp.org>
79623
79624         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79625         used.
79626
79627 2005-01-17  Bruno Haible  <bruno@clisp.org>
79628
79629         * lib/fwriteerror.h (fwriteerror): Change specification to include
79630         fclose.
79631         * lib/fwriteerror.c: Include <stdbool.h>.
79632         (fwriteerror): At the end, close the file stream. Record whether
79633         stdout was already closed.
79634
79635 2005-01-17  Bruno Haible  <bruno@clisp.org>
79636
79637         * lib/execute.c (environ): Declare if needed.
79638         * lib/pipe.c (environ): Likewise.
79639         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79640
79641 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79642
79643         * modules/argp: Depend on vsnprintf
79644
79645 2005-01-10  Jim Meyering  <jim@meyering.net>
79646
79647         * modules/closeout (Depends-on): Add atexit.
79648
79649 2005-01-06  Bruno Haible  <bruno@clisp.org>
79650
79651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79652
79653 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79656         definitions to be after all include files, to avoid collisions.
79657         Problem reported by Bob Proulx.
79658
79659 2005-01-04  Jim Meyering  <jim@meyering.net>
79660
79661         Changes imported from coreutils.
79662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79663         as the mkstemp template, use a temporary directory and an
79664         8.3-friendly template to avoid trouble on systems like DJGPP.
79665         Reported by Juan M. Guerrero via Stepan Kasal.
79666         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79667         close. Remove the temporary directory right away, rather than waiting
79668         for configure's at-exit trap code to do it.
79669         Suggestion from Stepan Kasal.
79670
79671 2005-01-01  Simon Josefsson  <jas@extundo.com>
79672
79673         * gnulib-tool: Print #include directives when --import'ing.
79674
79675 2004-12-28  Simon Josefsson  <jas@extundo.com>
79676
79677         * tests/test-base64.c: Include required header files.  Remove
79678         unused variables.
79679
79680 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79681
79682         * modules/error (Depends-on): Remove gettext.
79683
79684 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79685
79686         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79687         not needed.  This removes a dependency on the gettext module.
79688         [defined _LIBC]: Do not include <libintl.h>; not needed.
79689
79690 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79693         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79694
79695 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79698         HAVE_DECL_STRTOLD.
79699
79700 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         * modules/getdate (Depends-on): Remove alloca-opt.
79703
79704 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79707
79708 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79709
79710         * lib/argp-parse.c: Include <stddef.h>.
79711         (alignof, alignto): New macros.
79712         (parser_init): Don't assume that void * is aligned sufficiently
79713         for struct option.
79714
79715         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79716         need to extend the stack.
79717         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79718         large.
79719
79720 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79721
79722         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79723
79724 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79727         (2004-10-24) change.  Apparently this was a false alarm.
79728
79729         * modules/getdate: Depend on alloca-opt, not alloca.
79730
79731 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79734         Remove now-obsolete comment about AIX.
79735         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79736         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79737         (YYMAXDEPTH): New macro.
79738
79739 2004-12-18  Simon Josefsson  <jas@extundo.com>
79740
79741         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79742
79743 2004-12-18  Bruno Haible  <bruno@clisp.org>
79744
79745         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79746
79747 2004-12-18  Bruno Haible  <bruno@clisp.org>
79748
79749         * lib/fatal-signal.c (fatal_signals): Make non-const.
79750         (init_fatal_signals): New function.
79751         (uninstall_handlers, install_handlers): Ignore signals that were set to
79752         SIG_IGN.
79753         (at_fatal_signal): Call init_fatal_signals.
79754         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79755         SIG_IGN.
79756         Reported by Paul Eggert.
79757
79758 2004-12-18  Bruno Haible  <bruno@clisp.org>
79759
79760         * doc/alloca.texi: New file.
79761         * doc/alloca-opt.texi: New file.
79762
79763 2004-12-17  Jim Meyering  <jim@meyering.net>
79764
79765         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79766         Otherwise, install-sh could exit with improper exit status when
79767         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79768
79769 2004-12-16  Simon Josefsson  <jas@extundo.com>
79770
79771         * tests/test-base64.c: Add license.
79772
79773 2004-12-15  Stepan Kasal  <address@hidden>
79774
79775         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79776
79777 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79778
79779         * modules/getcwd (Files): Add m4/d-ino.m4.
79780         Suggested by Mark D. Baushke.
79781
79782 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * lib/getdate.y (textint): New member "negative".
79785         (time_zone_hhmm): New function.
79786         Expect 14 shift-reduce conflicts, not 13.
79787         (o_colon_minutes): New rule.
79788         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79789         (yylex): Set the "negative" member of signed numbers.
79790
79791 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * doc/getdate.texi (Time of day items, Time zone items):
79794         Describe new formats +00:00, UTC+00:00.
79795
79796 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79799         spurious "-l"s.  Problem reported by Stepan Kasal.
79800
79801 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79804         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79805
79806 2004-12-04  Simon Josefsson  <jas@extundo.com>
79807
79808         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79809         Vandoorselaere <yoann@prelude-ids.org>.
79810
79811 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         Changes imported from coreutils.
79814         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79815         exist.
79816         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79817
79818 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79819
79820         Changes imported from coreutils.
79821         * lib/hard-locale.c: Assume <locale.h> exists.
79822         Include "strdup.h".
79823         (GLIBC_VERSION): New macro.
79824         (hard_locale): Assume setlocale exists.
79825         Rewrite to avoid #ifdef.
79826         Use strdup rather than malloc + strcpy.
79827         * lib/human.c: Assume <locale.h> exists.
79828         (human_readable): Assume localeconv exists.
79829
79830 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         * modules/hard-locale (Depends-on): Add strdup.
79833
79834 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79835
79836         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79837         convert T2, not T.  (Imported from libc.)
79838
79839 2004-11-30  Simon Josefsson  <jas@extundo.com>
79840
79841         * modules/restrict (License): Change to LGPL.
79842
79843 2004-11-30  Simon Josefsson  <jas@extundo.com>
79844
79845         * m4/restrict.m4: Add copyright and copying conditions.
79846
79847 2004-11-30  Simon Josefsson  <jas@extundo.com>
79848
79849         * m4/base64.m4: New file.
79850
79851 2004-11-30  Simon Josefsson  <jas@extundo.com>
79852
79853         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79854         base64.
79855
79856         * tests/test-base64.c: New file.
79857
79858         * modules/base64: New file.
79859
79860 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79863         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79864
79865         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79866
79867 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79870         (__getcwd.c): Don't restore errno; glibc doesn't.
79871         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79872         first, falling back to our code only if its results look suspicious.
79873         Ensure that the resulting buffer is only as large as necessary.
79874
79875         * lib/readutmp.c: Include readutmp.h first.
79876         Include <errno.h>, since readutmp.h no longer does that.
79877         * lib/readutmp.h: Don't include <errno.h>,
79878         <sys/param.h>, <time.h>; not needed to establish interface.
79879         (errno): Remove decl.
79880         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79881         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79882         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79883
79884 2004-11-28  Simon Josefsson  <jas@extundo.com>
79885
79886         * lib/base64.h, base64.c: New file.
79887
79888 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79891
79892 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79895         (Depends-on): Remove pathmax, same.  Add mempcpy.
79896         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79897         (Makefile.am): Append getcwd.h to lib_SOURCES.
79898         (Include): Add getcwd.h.
79899         (Maintainer): Change from Jim Meyering to "all, glibc",
79900         since getdate now uses intended-for-glibc code.
79901         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79902         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79903
79904 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79907         HP's ANSI C compiler.
79908         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79909         Declaring int functions causes warnings on some modern systems and
79910         shouldn't be needed to compile on ancient ones.
79911         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79912         defined.
79913
79914         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79915         with the following changes.
79916         (__set_errno): Parenthesize properly.
79917         Include <stdbool.h>.
79918         (MIN, MAX, MATCHING_INO): New macros.
79919         (__getcwd): Define with prototype, not K&R form.
79920         Use heuristics to allocate default buffer on stack if possible.
79921         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79922         behavior, and to avoid the PATH_MAX limit when computing
79923         ../../../../...
79924         Use MATCHING_INO to compare inode number to file.
79925         Check for arithmetic overflow in size calculations.
79926         Fix bug in reallocation of dot array that caused getcwd to fail
79927         on directories nested deeper than 75.
79928         Be more careful about saving errno on error.
79929         Do not use realloc; use only free+malloc, as this is a bit
79930         more flexible and avoids a needless copy operation.
79931         Do not inspect st_dev and st_ino for symbolic links; POSIX
79932         doesn't specify the latter.
79933         Check for closedir errors.
79934         Avoid needless casts.
79935         Use "#ifdef weak_alias" around weak_alias, to be like other
79936         glibc code.
79937         The following changes to getcwd.c have effect only when used in
79938         gnulib; they have no effect inside glibc proper.
79939         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79940         as alloca isn't used.
79941         (alloca, __alloca): Likewise.
79942         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79943         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79944         unconditionally, as gnulib assumes C89 or better.
79945         Do not include <sys/param.h>.
79946         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79947         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79948         better.
79949         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79950         Include <dirent.h> in a way that is compatible with modern Autoconf.
79951         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79952         New macros, if not already defined.
79953         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79954         Use "_LIBC", not "defined _LIBC", for consistency.
79955         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79956         a mempcpy module.
79957         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79958         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79959         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79960         credit only to Jim Meyering and adjust the copyright dates.
79961         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79962         <stdlib.h>, <unistd.h>, "pathmax.h".
79963         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79964         (INITIAL_BUFFER_SIZE): Remove.
79965         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79966
79967 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79970         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79971         Use the _ONCE methods, for efficiency.
79972         Check for fcntl.h.  In test program, include <errno.h>
79973         and <fcntl.h> if available.  Remove old K&R cruft from
79974         test program.  Check for common errors in GNU/Linux,
79975         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79976         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79977         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79978         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79979         name accordingly.
79980         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79981         accommodate new getcwd.c.
79982         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79983         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79984         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79985         that's all we need now.
79986
79987 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79988
79989         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79990         argp-parse.c depends on getopt internals, that means we should
79991         always use our getopt, to be on the safe side.
79992         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79993         order not to spoil the result of an eventual previous invocation
79994         of gl_GETOPT_SUBSTITUTE.
79995
79996 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79997
79998         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79999         redefinition warnings. To avoid them, include the defines
80000         in `#if !defined __need_getopt ... #endif'. The only place
80001         where __getopt_argv_const is used is in definitions
80002         of getopt_long and getopt_long_only below, which are as well
80003         protected by `#ifndef __need_getopt'.
80004         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80005         __need_getopt after including <stdio.h> and <unistd.h> These
80006         headers might have defined it.
80007
80008 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80011
80012 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80013
80014         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80015         (futimens): New function, which uses futimes if available.
80016         (futimens, utimens): Support timespec==NULL, with same semantics
80017         as utime and utimens.
80018         * lib/utimens.h (futimens): New decl.
80019
80020 2004-11-23  Jim Meyering  <jim@meyering.net>
80021
80022         * lib/getopt_.h: Remove trailing blanks.
80023
80024 2004-11-23  Jim Meyering  <jim@meyering.net>
80025
80026         * lib/__fpending.c: Add comment.
80027
80028 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80029
80030         * modules/canonicalize (Depends-on): Add xreadlink.
80031         Problem reported by James Youngman.
80032
80033 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80036         New macros.
80037         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80038         optopt): Use them instead of invoking ## directly; otherwise, the
80039         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80040
80041 2004-11-19  Bruno Haible  <bruno@clisp.org>
80042
80043         * lib/strtok_r.c: Move comments from here...
80044         * lib/strtok_r.h: ... to here.
80045
80046 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80049         implementations that mishandle size_t overflow.
80050
80051 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80054         might fail.  Problem reported by Yoann Vandoorselaere.
80055         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80056         implementations that mishandle size_t overflow.
80057
80058 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         * modules/canon-host (Depends-on): Add strdup.
80061
80062 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80063
80064         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80065
80066 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * lib/canon-host.c: Include "strdup.h".
80069         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80070         Use strdup instead of malloc/strcpy to duplicate strings.
80071
80072         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80073         (human_space_before_unit): New constant.
80074         * lib/human.c (human_readable): Support it.
80075
80076         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80077         (xgetcwd): Set errno correctly when failing.
80078         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80079         the failure is actually due to a PATH_MAX problem.
80080
80081         Further getopt changes to make it more likely that glibc will
80082         buy the changes back.
80083         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80084         (getopt): Use it, so to preserve glibc semantic
80085         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80086         when compiling for libc.
80087         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80088         (getopt_long, getopt_long_only): Use it.
80089
80090         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80091         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80092         (getopt): Argv is now char * const *, as per standard.
80093         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80094         not char *__getopt_argv_const *.
80095         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80096         _getopt_long_only_r): Likewise.
80097         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80098         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80099         _getopt_long_r, _getopt_long_only_r): Likewise.
80100         * lib/getopt_.h (__getopt_argv_const): Remove.
80101         (getopt): Argv is now char * const *, as per standard.
80102
80103         * lib/getdate.y (tORDINAL): New token.
80104         (day, relunit): Allow it for relative times.
80105         (relative_time_table): Use tORDINAL for ordinals.
80106
80107 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80110         Document that "second" isn't allowed as an ordinal number.
80111
80112 2004-11-16  Jim Meyering  <jim@meyering.net>
80113
80114         * modules/closeout (Depends-on): Add fpending.
80115
80116 2004-11-15  Jim Meyering  <jim@meyering.net>
80117
80118         * lib/closeout.c: Include "__fpending.h" once again.
80119         Include <stdbool.h>.
80120         (close_stdout): Don't fail just because stdout was closed initially,
80121         since some programs don't write to stdout in the normal course of
80122         operation (other than --version and --help), and we don't want this
80123         function to make e.g. `touch file >&-' fail.
80124         But do fail if it was closed and someone has tried to write to it.
80125         E.g., `printf foo >&-' must fail.
80126
80127 2004-11-13  Jim Meyering  <jim@meyering.net>
80128
80129         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80130
80131 2004-11-12  Simon Josefsson  <jas@extundo.com>
80132
80133         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80134         small doc fix is still pending.
80135
80136 2004-11-11  Simon Josefsson  <jas@extundo.com>
80137
80138         * modules/strtok_r: New file.
80139
80140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80141         strtok_r.
80142
80143 2004-11-11  Simon Josefsson  <jas@extundo.com>
80144
80145         * m4/strtok_r.m4: New file.
80146
80147         * m4/getopt.m4: Replace opterr.
80148
80149 2004-11-11  Simon Josefsson  <jas@extundo.com>
80150
80151         * lib/strtok_r.h, strtok_r.c: New file.
80152
80153 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80154
80155         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80156         of replacing opterr, getopt, etc.  This should handle the
80157         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80158
80159 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80160
80161         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80162         we can stop lying to compilers about the constness of argv when we
80163         are compiled outside glibc.
80164         (getopt, getopt_long, getopt_long_only): Use it.
80165         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80166         _getopt_internal, getopt): Likewise.
80167         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80168         _getopt_long_only_r): Likewise.
80169         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80170         _getopt_long_r, _getopt_long_only_r): Likewise.
80171
80172         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80173         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80174         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80175         the other external symbols.
80176         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80177         declaration, since the above renaming now works around collisions.
80178
80179 2004-11-11  Jim Meyering  <jim@meyering.net>
80180
80181         * lib/linebreak.c: Remove trailing blanks.
80182         * lib/alloca_.h: Likewise.
80183         * lib/acosl.c: Likewise.
80184         * lib/euidaccess.c: Likewise.
80185         * lib/allocsa.h: Likewise.
80186
80187 2004-11-10  Simon Josefsson  <jas@extundo.com>
80188
80189         * m4/getaddrinfo.m4: New file.
80190
80191 2004-11-10  Simon Josefsson  <jas@extundo.com>
80192
80193         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80194
80195 2004-11-10  Simon Josefsson  <jas@extundo.com>
80196
80197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80198         getaddrinfo.
80199
80200         * modules/getaddrinfo: New file.
80201
80202 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80205
80206 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         * lib/mktime.c (SHR): New macro, which is a portable
80209         substitute for >> that should work even on Crays.
80210         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80211         Problem reported by Mark D. Baushke in
80212         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80213         * lib/getdate.y (SHR): Likewise.
80214         (tm_diff): Use it.
80215         * lib/strftime.c (SHR): Likewise.
80216         (tm_diff): Use it.
80217         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80218         quote_these_too, so that right shifts are well defined.  All uses
80219         changed.
80220
80221 2004-11-10  Jim Meyering  <jim@meyering.net>
80222
80223         Ensure that no close failure goes unreported.
80224         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80225         return early when it seems there's nothing to flush.
80226         Don't include __fpending.h.
80227
80228 2004-11-10  Jim Meyering  <jim@meyering.net>
80229
80230         * modules/closeout (Depends-on): Remove fpending.
80231
80232 2004-11-10  Jim Meyering  <jim@meyering.net>
80233
80234         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80235
80236 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80239         gl_FUNC_STRFTIME.
80240         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80241         and AC_REQUIRE when possible, to avoid duplicate checks.
80242         Check for <wchar.h>.
80243
80244 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80245
80246         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80247
80248 2004-11-09  Bruno Haible  <bruno@clisp.org>
80249
80250         * m4/sockpfaf.m4: New file.
80251
80252 2004-11-05  Bruno Haible  <bruno@clisp.org>
80253
80254         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80255         Reported by Mark D. Baushke <mdb@cvshome.org>.
80256
80257 2004-11-04  Bruno Haible  <bruno@clisp.org>
80258
80259         2004-09-11  Bruno Haible  <bruno@clisp.org>
80260                 * allocsa.valgrind: New file.
80261         2004-02-06  Bruno Haible  <bruno@clisp.org>
80262                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80263                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80264                 Reported by Christopher Seip <chris.seip@hp.com>.
80265
80266 2004-11-04  Bruno Haible  <bruno@clisp.org>
80267
80268         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80269         (Makefile.am): Distribute it.
80270
80271 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80272
80273         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80274         with errno == ERANGE if the buffer is too small.
80275         Problem reported by Mark D. Baushke.
80276
80277 2004-11-03  Albert Chin  <china@thewrittenword.com>
80278             Paul Eggert  <eggert@cs.ucla.edu>
80279
80280         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80281         equivalent, substitute $ac_type for equivalent type rather than
80282         blindly using uint32_t *always* which won't work if uint32_t is not
80283         available.  Define _UINT32_T to work around typedef of uint32_t if
80284         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80285         2.5.1.
80286
80287 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80288
80289         * m4/jm-macros.m4: Sync from coreutils.
80290         (gl_MACROS): Check for mbrlen, for pathchk.
80291         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80292
80293 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         * lib/xreadlink.c (MAXSIZE): New macro.
80296         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80297         size does not exceed MAXSIZE.  Avoid cast.
80298         As suggested by Mark D. Baushke in
80299         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80300         if readlink fails with buffer size just under MAXSIZE, try again
80301         with MAXSIZE.
80302
80303 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80304
80305         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80306
80307 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80308         and  Paul Eggert  <eggert@cs.ucla.edu>
80309
80310         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80311         (get_date): Overparenthesize to avoid GCC warning.
80312
80313 2004-11-02  Bruno Haible  <bruno@clisp.org>
80314
80315         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80316         returns void.
80317
80318 2004-11-02  Bruno Haible  <bruno@clisp.org>
80319
80320         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80321         function returns void.
80322
80323 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80324
80325         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80326         fflush_unlocked, flockfile, funlockfile, funlockfile,
80327         fputs_unlocked, putc_unlocked.
80328
80329 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80332         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80333         already declared.
80334
80335 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80336
80337         * modules/getdate (Files): Add doc/getdate.texi.
80338         (Depends-on): Add setenv, xalloc.
80339
80340 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80341
80342         * lib/getdate.y: Add support for TZ="foo" within a date string.
80343         Fix some bugs near time_t boundaries.  Reject dates with
80344         out-of-range components, e.g., "Sept 31".
80345         Include <stdlib.h>, "setenv.h", "xalloc.h".
80346         (ISDIGIT_LOCALE): Remove; unused.
80347         Note that the TZ and time functions used here are not reentrant.
80348         (mktime_ok, get_tz): New functions.
80349         (TZBUFSIZE): New constant.
80350         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80351         This requires that we sometimes generate our own TZ="XXX..." setting.
80352
80353 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80354
80355         * doc/getdate.texi: New file, from coreutils with modifications for
80356         the new TZ parsing.
80357
80358 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80359
80360         * lib/mktime.c (not_equal_tm): Remove redundant check.
80361
80362 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80363
80364         * modules/regex (lib_SOURCES): Add regex.c.
80365         Reported by James Youngman in
80366         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80367
80368 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80369
80370         * lib/getdate.y: Use Bison 1.875 features, and some minor
80371         code cleanups.  This change does not affect semantics.
80372         Don't include <stdlib.h>; no longer needed.
80373         Don't include unlocked-io.h; only the "#if TEST" code uses
80374         stdio, and performance isn't crucial there.
80375         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80376         Bison 1.875 features as described below.
80377         All uses of "PC." replaced by "pc->".
80378         (YYSTYPE): Add a forward declaration.
80379         (yylex, yyerror): Use full prototypes in forward decls.
80380         Use "%pure-parser" rather than obsolescent "%pure_parser".
80381         Use %parse-param and %lex-param instead of obsolescent
80382         YYPARSE_PARAM and YYLEX_PARAM.
80383         (meridian_table, month_and_day_table, time_units_table,
80384         relative_time_table, time_zone_table, military_table,
80385         lookup_zone, lookup_word, get_date):
80386         Use NULL instead of 0 where appropriate.
80387         (to_hour): Avoid abort (), to avoid a dependency on
80388         stdlib.h.
80389         (yyerror, yylex): Now accepts parser_control * arg.
80390         (main) [TEST]: Use '\0' rather than 0 for char.
80391
80392 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80393
80394         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80395
80396 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80399         It's now the caller's responsibility to handle the case where
80400         !HAVE_GETPAGESIZE && !defined getpagesize.
80401
80402         * lib/mktime.c (leapyear): Arg is long int, not int.
80403
80404 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80407
80408 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80409
80410         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80411         missing.  Problem reported by James Youngman.
80412
80413 2004-10-16  Simon Josefsson  <jas@extundo.com>
80414
80415         * gnulib-tool: Fix comments.  Fix parse problem.
80416         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80417
80418 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80419
80420         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80421         implementation of getopt_long.  Problem reported by Alexander Taler in:
80422         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80423
80424 2004-10-15  Bruno Haible  <bruno@clisp.org>
80425
80426         * gnulib-tool: Untabify. Initialize supplied_libname.
80427         (func_usage): More homogenous output.
80428         (func_modules_transitive_closure, func_modules_to_filelist,
80429         func_emit_lib_Makefile_am): New functions.
80430         (func_import): New function, extracted from big case statement. Use
80431         func_get_license, func_modules_transitive_closure,
80432         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80433         opt_lgpl. Don't use test -a, as it's not portable.
80434         (func_create_testdir): Use func_modules_transitive_closure,
80435         func_modules_to_filelist, func_emit_lib_Makefile_am.
80436
80437 2004-10-15  Bruno Haible  <bruno@clisp.org>
80438
80439         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80440
80441 2004-10-15  Bruno Haible  <bruno@clisp.org>
80442
80443         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80444         the portions belonging to each module.
80445         Suggested by Derek Robert Price <derek@ximbiot.com>.
80446
80447 2004-10-12  Simon Josefsson  <jas@extundo.com>
80448
80449         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80450         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80451         to real functions.
80452
80453 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80454
80455         * modules/vsnprintf: New file.
80456
80457 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80458
80459         * m4/vsnprintf.m4: New file.
80460
80461 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80462
80463         * lib/vsnprintf.h: New file.
80464         * lib/vsnprintf.c: New file.
80465
80466 2004-10-11  Bruno Haible  <bruno@clisp.org>
80467
80468         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80469         vsnprintf.
80470
80471 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80474
80475 2004-10-07  Bruno Haible  <bruno@clisp.org>
80476
80477         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80478         fits into the provided buffer.
80479
80480 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80481
80482         * lib/diacrit.c, diacrit.h: Add GPL notice.
80483
80484         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80485         notice.
80486         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80487         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80488         This avoids a potential constant-folding bug.
80489
80490 2004-10-05  Bruno Haible  <bruno@clisp.org>
80491
80492         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80493         for the declaration of strsep.
80494
80495 2004-10-05  Bruno Haible  <bruno@clisp.org>
80496
80497         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80498
80499 2004-10-04  Simon Josefsson  <jas@extundo.com>
80500
80501         * modules/memmem: New file.
80502         * tests/test-memmem.c: New file.
80503         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80504
80505 2004-10-04  Simon Josefsson  <jas@extundo.com>
80506
80507         * m4/memmem.m4: New file.
80508
80509 2004-10-04  Simon Josefsson  <jas@extundo.com>
80510
80511         * lib/memmem.h: New file.
80512         * lib/memmem.c: New file, taken from glibc.
80513
80514 2004-10-04  Simon Josefsson  <jas@extundo.com>
80515
80516         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80517         '#ifdef USE_UNLOCKED_IO'.
80518
80519 2004-10-04  Simon Josefsson  <jas@extundo.com>
80520
80521         * config/srclist.txt: Add memmem from glibc.
80522
80523 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80526
80527         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80528         modules/exclude, modules/getdate, modules/getline,
80529         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80530         modules/getusershell, modules/linebuffer, modules/md5,
80531         modules/mountlist, modules/posixtm, modules/readtokens,
80532         modules/readutmp, modules/regex, modules/sha1,
80533         modules/version-etc, modules/yesno:
80534         Remove dependency on unlocked-io.
80535
80536 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80539
80540         * m4/unlocked-io.m4: Add copyright notice.
80541         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80542
80543 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80544
80545         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80546         * lib/xmalloc.c (xmemdup): Likewise.
80547         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80548         XFREE): Remove these long-obsolescent macros.
80549         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80550         * lib/xstrdup.c: Remove.
80551
80552         * lib/regex.c (re_comp): Cast gettext return value to char *,
80553         Problem reported by Martin Neitzel via Mark D. Baushke.
80554
80555 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80556
80557         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80558         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80559         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80560         regex.c, sha1.c, version-etc.c, yesno.c:
80561         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80562         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80563         the includer's responsibility.
80564
80565         Sync from coreutils.
80566
80567         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80568         points to the start of a string, as the C Standard says the
80569         resulting behavior is undefined.
80570
80571         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80572         simple -> simple_backups, numbered_existing ->
80573         numbered_existing_backups, numbered -> numbered_backups
80574         to avoid shadowing problems.  All uses changed.
80575         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80576         * lib/backupfile.c (check_extension, numbered_backup):
80577         Rename locals to avoid shadowing 'basename'.
80578         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80579         once.
80580
80581         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80582         * lib/.cvsignore: Add getopt.h.
80583
80584 2004-10-04  Bruno Haible  <bruno@clisp.org>
80585
80586         * modules/README: New file.
80587         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80588         not a module.
80589
80590 2004-10-02  Jim Meyering  <jim@meyering.net>
80591
80592         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80593
80594 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80595
80596         * modules/strsep: New file.
80597
80598 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80599
80600         * m4/strsep.m4: New file.
80601
80602 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80603
80604         * lib/strsep.h: New file.
80605         * lib/strsep.c: New file.
80606
80607 2004-10-01  Simon Josefsson  <jas@extundo.com>
80608
80609         * lib/snprintf.c (snprintf): Handle size==0.
80610
80611 2004-10-01  Simon Josefsson  <jas@extundo.com>
80612             Bruno Haible  <bruno@clisp.org>
80613
80614         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80615         (snprintf): Declare 'args'.
80616
80617 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * lib/snprintf.c: Remove comments as to why each header is needed.
80620
80621 2004-10-01  Bruno Haible  <bruno@clisp.org>
80622
80623         * MODULES.html.sh: Add strsep.
80624
80625 2004-09-30  Simon Josefsson  <jas@extundo.com>
80626
80627         * modules/snprintf: New file.
80628
80629 2004-09-30  Simon Josefsson  <jas@extundo.com>
80630
80631         * m4/snprintf.m4: New file.
80632
80633 2004-09-30  Simon Josefsson  <jas@extundo.com>
80634
80635         * lib/snprintf.h, lib/snprintf.c: New files.
80636
80637 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80638
80639         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80640         (hol_entry_help): Never translate an empty string.
80641         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80642         * lib/argp.h (OPTION_NO_TRANS): New option.
80643
80644 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * modules/argp (Maintainer): Replace Simon Josefsson
80647         by Sergey Poznyakoff.
80648
80649 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80650
80651         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80652         changes merged back into glibc.
80653
80654 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80657
80658 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80659
80660         * lib/xvasprintf.c: Include xalloc.h.
80661         (xvasprintf): Use xalloc_die, not xmalloc_die.
80662
80663 2004-09-29  Bruno Haible  <bruno@clisp.org>
80664
80665         * modules/alloca-opt: New file, derived from modules/alloca.
80666         * modules/allocsa: Depend on alloca-opt instead of alloca.
80667         * modules/setenv: Likewise.
80668         * modules/vasnprintf: Likewise.
80669         * MODULES.html.sh: Add alloca-opt.
80670
80671 2004-09-28  Simon Josefsson  <jas@extundo.com>
80672
80673         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80674         LGPL, and to replace license template from GPL to LGPL.
80675
80676 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * modules/dummy: Change license to LGPL.
80679
80680 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80683
80684 2004-09-24  Simon Josefsson  <jas@extundo.com>
80685
80686         * modules/minmax (License): Change from GPL to LGPL.
80687
80688 2004-09-23  Simon Josefsson  <jas@extundo.com>
80689
80690         * gnulib-tool (--import): Typo.
80691
80692 2004-09-23  Simon Josefsson  <jas@extundo.com>
80693
80694         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80695
80696 2004-09-22  Bruno Haible  <bruno@clisp.org>
80697
80698         * modules/*: Add 'License' field.
80699         * gnulib-tool: Accept --extract-license option.
80700         (func_get_license): New function.
80701
80702 2004-09-21  Bruno Haible  <bruno@clisp.org>
80703
80704         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80705         Reported by Simon Josefsson.
80706
80707 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80710         gl_AC_TYPE_LONG_LONG.
80711
80712 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80715
80716 2004-09-18  Simon Josefsson  <jas@extundo.com>
80717         and  Paul Eggert  <eggert@cs.ucla.edu>
80718
80719         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80720         calls with autoreconf.  Define GL_LIB.
80721
80722 2004-09-14  Karl Berry  <karl@gnu.org>
80723
80724         * config/srclist.txt: unsync setenv.c, sigh.
80725
80726 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80727
80728         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80729         Problem reported by Bruno Haible in:
80730         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80731
80732 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * config/srclist.txt: Comment out argp-pvh.c.
80735
80736 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80737
80738         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80739         in case some system header has #define'd it.  Problem reported by
80740         Soeren D. Schulze in
80741         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80742
80743 2004-09-09  Karl Berry  <karl@gnu.org>
80744
80745         * regex.[ch]: delete from the root.  These were supposed to be
80746                 synced with emacs cvs, but this has not happened for about
80747                 a year, and anyway nothing else uses emacs regex.[ch].
80748                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80749                 lib/regex[.ch] is untouched.
80750
80751 2004-09-09  Bruno Haible  <bruno@clisp.org>
80752
80753         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80754
80755 2004-09-09  Bruno Haible  <bruno@clisp.org>
80756
80757         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80758         modifications.
80759         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80760
80761 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80762
80763         * modules/xvasprintf: New file.
80764         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80765
80766 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80767
80768         * lib/xvasprintf.h: New file.
80769         * lib/xvasprintf.c: New file.
80770         * lib/xasprintf.c: New file.
80771
80772 2004-09-08  Bruno Haible  <bruno@clisp.org>
80773
80774         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80775
80776 2004-09-08  Bruno Haible  <bruno@clisp.org>
80777
80778         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80779         length is > INT_MAX.
80780         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80781         more.
80782
80783 2004-09-08  Bruno Haible  <bruno@clisp.org>
80784
80785         * lib/stdint_.h: New file, taken from GNU clisp.
80786
80787 2004-09-08  Bruno Haible  <bruno@clisp.org>
80788             Oskar Liljeblad  <oskar@osk.mine.nu>
80789
80790         * modules/stdint: New file.
80791         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80792
80793 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80794
80795         Import from coreutils.
80796         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80797         strings on unbounded length.  alloca's performance benefits aren't
80798         that important here.
80799         (V_STRDUP): Remove.
80800         (parse_with_separator): New function, with most of the internals
80801         of the old parse_user_spec.  Allow user to omit both user and group,
80802         for compatibility with FreeBSD.
80803         Clone only the user name, not the entire spec.
80804         Do not set *uid, *gid unless entirely successful.
80805         Avoid memory leak in some failing cases.
80806         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80807         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80808         (parse_user_spec): Rewrite to use parse_with_separator.
80809
80810 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         * modules/userspec: Don't depend on alloca.
80813
80814 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80815
80816         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80817
80818 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80821         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80822         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80823
80824 2004-08-16  Simon Josefsson  <jas@extundo.com>
80825
80826         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80827         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80828         Add --dry-run for --import.
80829         Let user provided command line parameters override configure.ac
80830         settings.
80831
80832 2004-08-12  Simon Josefsson  <jas@extundo.com>
80833
80834         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80835         as discussed with Paul Eggert in threads rooted at
80836         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80837         and
80838         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80839         Before, the test was empty, and relied on ELIDE_CODE in source
80840         code.)
80841         (gl_PREREQ_GETOPT): New macro.
80842         (gl_GETOPT): Use them.
80843
80844 2004-08-12  Simon Josefsson  <jas@extundo.com>
80845
80846         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80847         * lib/getopt_.h: Renamed from getopt.h.
80848
80849 2004-08-12  Simon Josefsson  <jas@extundo.com>
80850
80851         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80852         Change default library name from libfoo to libgnu.
80853         Now, if you have a configure.ac that says:
80854                 gl_SOURCE_BASE(gl)
80855                 gl_M4_BASE(gl/m4)
80856                 gl_MODULES(error getopt etcetera)
80857                 gl_INIT
80858         you can import all you need by running:
80859                 ../gnulib/gnulib-tool --import
80860
80861         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80862         (Makefile.am): Rewrite, use logic from argz.
80863         (Include): Use <getopt.h> instead of "getopt.h".
80864
80865 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * modules/argp (Files): Add m4/unlocked-io.m4.
80868         (Depends-on): Add extensions.
80869
80870 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80871
80872         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80873         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80874         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80875         Check for program_invocation_name, program_invocation_short_name,
80876         flockfile, funlockfile, features.h, _getopt_long_only_r.
80877
80878 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80879
80880         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80881         its complicated substitute.
80882         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80883         and program_invocation_name.
80884         (__argp_basename) [!_LIBC]: Remove; the only use was
80885         replaced by its body.
80886         (__argp_short_program_name): Change condition from
80887         !defined __argp_short_program_name to
80888         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80889         to match argp-namefrob.h.
80890         (__argp_failure): Don't assume strerror_r returns char *.
80891         * lib/argp-parse.c (N_): Define unconditionally.
80892         (argp_default_options): Fill out initializers with 0 to avoid
80893         gcc warnings.
80894
80895 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80898         getopt1.c.
80899
80900 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80901
80902         Merge from coreutils.
80903
80904         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80905
80906         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80907         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80908
80909 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80910
80911         Merge from coreutils.
80912
80913         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80914         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80915         for Reliant Unix 5.43.
80916
80917         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80918         (union fooround): Use uintmax_t, not long int.
80919         The rest is a merge from libc:
80920         [defined _LIBC]: Include <shlib-compat.h>.
80921         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80922
80923         * lib/settime.c (settime): Recode to avoid warning with
80924         Sun Forte C 6U2.
80925
80926         * lib/strverscmp.c: Convert to UTF-8.
80927
80928 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80929
80930         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80931         m4/uintmax_t.m4.
80932
80933 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80934
80935         * modules/xalloc-die: New file.
80936         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80937
80938         * modules/md5 (Files): Add m4/uint32_t.m4.
80939         * modules/sha1: Renamed from modules/sha.
80940         (Files):
80941         Rename lib/sha.h to lib/sha1.h.
80942         Rename lib/sha.c to lib/sha1.c.
80943         Rename m4/sha.m4 to m4/sha1.m4.
80944         (lib_SOURCES): Likewise.
80945         (configure.ac): Rename gl_SHA to gl_SHA1.
80946         (Include): sha.h -> sha1.h.
80947
80948 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80949
80950         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80951         * m4/sha1.m4: Renamed from sha.m4.
80952         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80953
80954 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * lib/obstack.h (obstack_empty_p):
80957         Don't assume that chunk->contents is suitably aligned.
80958         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80959         Likewise. Problem reported by Benno in
80960         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80961
80962         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80963         readable.  This could be improved further but it'd take some work.
80964
80965 2004-08-08  Simon Josefsson  <jas@extundo.com>
80966
80967         * modules/xgethostname (Depends-on): Remove exit and error (not
80968         used).
80969
80970         * modules/getpass-gnu: Add getpass.h.
80971         (Depends-on): Add stdbool.
80972         * modules/getpass: Add getpass.h.
80973
80974 2004-08-08  Simon Josefsson  <jas@extundo.com>
80975
80976         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80977         Check getpass declaration.
80978
80979 2004-08-08  Simon Josefsson  <jas@extundo.com>
80980
80981         * lib/xgethostname.c: Don't include error.h (not used).
80982
80983         * lib/getpass.h: Add.
80984         * lib/getpass.c: Include getpass.h first.
80985
80986 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80987
80988         * lib/xalloc-die.c: New file.
80989         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80990         All uses removed.
80991         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80992         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80993         xalloc-die.c.
80994         (_, N_, xalloc_die): Move to xalloc-die.c.
80995         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80996         so that we needn't mess with xalloc_msg_memory_exhausted.
80997
80998         * lib/sha1.h: Renamed from sha.h.
80999         (SHA1_H): Renamed from _SHA_H.
81000         (sha1_ctx): Renamed from sha_ctx.
81001         (sha1_init_ctx): Renamed from sha_init_ctx.
81002         (sha1_process_block): Renamed from sha_process_block.
81003         (sha1_process_bytes): Renamed from sha_process_bytes.
81004         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81005         (sha1_read_ctx): Renamed from sha_read_ctx.
81006         (sha1_stream): Renamed from sha_stream.
81007         (sha1_buffer): Renamed from sha_buffer.
81008         * lib/sha1.c: Likewise; renamed from sha.c.
81009         Do not include <sys/types.h>.
81010         Include <stddef.h> rather than <stdlib.h>.
81011
81012 2004-08-08  Bruno Haible  <bruno@clisp.org>
81013
81014         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81015         FILESYSTEM_PREFIX_LEN.
81016         * lib/progreloc.c: Likewise.
81017         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81018
81019 2004-08-06  Simon Josefsson  <jas@extundo.com>
81020
81021         * modules/progname (Depends-on): Don't depend on stdbool.
81022
81023 2004-08-06  Simon Josefsson  <jas@extundo.com>
81024
81025         * modules/getsubopt: New file.
81026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81027         getsubopt.
81028
81029 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         More merge from coreutils.
81032
81033         * m4/utimens.m4, m4/utimecmp.m4: New files.
81034         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81035         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81036         prereq.m4, sha.m4: Import changes from coreutils.
81037
81038 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         More merge from coreutils.
81041         * modules/raise, modules/readtokens0, modules/utimens:
81042         * modules/utimecmp, module/xnanosleep: New files.
81043         * modules/strftime: Add lib/strftime.h.
81044         Change include from <time.h> to "strftime.h".
81045         * modules/yesno: Add lib/yesno.h.
81046         * modules/backupfile: Remove lib/addext.c.
81047         * modules/euidaccess: Add stat-macros.h.
81048         * modules/canonicalize, modules/euidaccess,
81049         modules/filemode, modules/lchown, modules/makepath,
81050         modules/rmdir, modules/stat: Likewise.
81051
81052 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81053
81054         Merge from tar.
81055         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81056         SIZE_MAX is a valid preprocessor constant.
81057         (__argp_basename): Change from "#ifndef _LIBC"
81058         to "#ifndef __argp_short_program_name", so that
81059         we don't compile these functions for tar.
81060
81061         More merges from coreutils.
81062         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81063         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81064         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81065         * lib/addext.c: Remove; no longer needed.
81066         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81067         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81068         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81069         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81070         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81071         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81072         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81073         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81074         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81075         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81076         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81077         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81078         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81079         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81080         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81081         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81082         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81083         Import changes from coreutils.
81084
81085 2004-08-05  Simon Josefsson  <jas@extundo.com>
81086
81087         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81088
81089 2004-08-05  Simon Josefsson  <jas@extundo.com>
81090
81091         * m4/getsubopt.m4: New file.
81092
81093 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81094
81095         Merge from coreutils.
81096
81097         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81098         * m4/getcwd-path-max.m4: New files.
81099
81100         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81101         FILESYSTEM_PREFIX_LEN ->
81102         FILE_SYSTEM_PREFIX_LEN.
81103         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81104         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81105         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81106         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81107
81108         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81109         prerequisite modules now handle the DOS stuff.
81110         Don't check for unistd.h.
81111
81112 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         Merge from coreutils.
81115
81116         * lib/.gdb-history: Remove; this doesn't belong here.
81117
81118         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81119         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81120         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81121         * lib/getcwd.c: New files.
81122
81123         * lib/dirname.h: Include <stdbool.h>.
81124         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81125         for consistency with POSIX terminology.  All uses changed.
81126         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81127         (strip_trailing_slashes): Use bool for booleans.
81128         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81129
81130         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81131         sometimes returns a positive errno value even when it succeeds.
81132         (print_errno_message) [!LIBC]: Fall back on strerror if
81133         __strerror_r fails.
81134
81135         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81136         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81137         (longest_relative_suffix): New function.
81138         (path_concat): Use it.  Assume first argument is not NULL.
81139         Port to DOS.  Omit redundant separators.
81140         Report an error instead of returning NULL.
81141         Use mempcpy instead of memcpy.
81142         (xpath_concat): Remove: not declared or used.
81143
81144         * lib/same.h: Include <stdbool.h>
81145         (same_name): Return bool, not int.
81146         * lib/same.c (same_name): Likewise.
81147         (errno): Don't declare; we assume C89 or better now.
81148
81149         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81150         if not already defined.
81151
81152         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81153         * lib/dup-safer.c (errno): Likewise.
81154
81155 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81156
81157         Merge from coreutils.
81158         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81159         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81160         * modules/path-concat: Don't depend on strdup.
81161
81162 2004-08-03  Simon Josefsson  <jas@extundo.com>
81163
81164         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81165         * lib/progname.h: Don't include stdbool.h.
81166
81167 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81168
81169         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81170         * MODULES.html.sh (func_all_modules): Remove fatal.
81171
81172 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81175
81176 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81177
81178         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81179         working.
81180
81181 2004-08-02  Simon Josefsson  <jas@extundo.com>
81182
81183         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81184         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81185         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81186
81187 2004-08-01  Simon Josefsson  <jas@extundo.com>
81188
81189         * lib/xgetdomainname.c: Include stdlib.h, for free().
81190
81191 2004-07-19  Bruno Haible  <bruno@clisp.org>
81192
81193         * MODULES.html.sh (func_all_modules): Add dummy.
81194
81195 2004-07-16  Simon Josefsson  <jas@extundo.com>
81196
81197         * modules/dummy: New file.
81198
81199 2004-07-16  Simon Josefsson  <jas@extundo.com>
81200
81201         * lib/dummy.c: New file.
81202
81203 2004-07-16  Bruno Haible  <bruno@clisp.org>
81204
81205         * lib/backupfile.h: Add extern "C" for C++.
81206         * lib/closeout.h: Likewise.
81207         * lib/copy-file.h: Likewise.
81208         * lib/findprog.h: Likewise.
81209         * lib/full-write.h: Likewise.
81210         * lib/pathname.h: Likewise.
81211         * lib/progname.h: Likewise.
81212         * lib/stpcpy.h: Likewise.
81213         * lib/stpncpy.h: Likewise.
81214         * lib/strcase.h: Likewise.
81215         * lib/strstr.h: Likewise.
81216         * lib/xalloc.h: Likewise.
81217
81218         * lib/mbswidth.h: Add extern "C" for C++.
81219         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81220
81221 2004-07-13  Robert Millan  <robertmh@gnu.org>
81222
81223         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81224
81225 2004-07-09  Simon Josefsson  <jas@extundo.com>
81226
81227         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81228         failed without this.)
81229
81230 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81231
81232         * modules/chown (Files): Add lib/fchown-stub.c, since
81233         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81234
81235 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * lib/fchown-stub.c: New file.
81238
81239 2004-06-24  Jim Meyering  <jim@meyering.net>
81240
81241         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81242
81243 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81244
81245         * modules/argz: Omit "#include".
81246
81247         * MODULES.html.sh (func_all_modules): Add calloc, to match
81248         2004-06-01 addition of calloc module.
81249
81250 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81251
81252         * m4/argz.m4: New file, which is autoupdated from libtool.
81253
81254 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81257         libtool.
81258
81259 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         * config/srclist-update: Don't insist on "USA." before the
81262         close-comment, as libtool omits the period and puts the */ on a
81263         separate line.
81264         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81265         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81266
81267 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81268
81269         * modules/argz: New file.
81270         * MODULES.html.sh (func_all_modules): Add argz.
81271
81272 2004-06-12  Jim Meyering  <jim@meyering.net>
81273         and  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * modules/hash (Files): Add lib/xalloc.h.
81276         * modules/pipe (Depends-on): Add wait-process.
81277         * modules/stat (Depends-on): Add xalloc.
81278         * modules/userspec (Files): Add lib/userspec.h.
81279         * modules/xstrto
81280
81281         Upgrade from gettext-0.13.
81282         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81283         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81284         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81285
81286 2004-06-10  Jim Meyering  <jim@meyering.net>
81287
81288         * lib/calloc.c: New file.
81289
81290 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * lib/getdate.y (yylex): Allow space between sign and number.
81293         Problem reported by Dan Jacobson.
81294
81295 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81296
81297         Merge from coreutils CVS.
81298
81299         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81300         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81301         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81302         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81303         xstrtol.m4: Fix copyright date and/or serial number.
81304
81305         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81306         See if we need an fchown replacement.
81307         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81308         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81309         and use the replacement function if we detect either defect.
81310
81311         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81312         gl_UTIMECMP.
81313
81314 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81315         and  Jim Meyering  <jim@meyering.net>
81316
81317         Merge from coreutils CVS.
81318
81319         * lib/stat-macros.h: New file, with contents from file-type.h
81320         and coreutils' system.h.
81321         * lib/file-type.c: Include "stat-macros.h".
81322         * lib/file-type.h (file_type): Move all macro definitions to new file,
81323         stat-macros.h.
81324
81325         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81326         Wrap old code with this conditional.
81327         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81328         function that does not dereference symlinks.
81329         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81330
81331         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81332         dependency problems.
81333         (xreadlink): Accept new arg SIZE, for efficiency.
81334         All decls and uses changed.
81335         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81336
81337         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81338         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81339
81340         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81341         sysexits.h.
81342
81343 2004-06-01  Jim Meyering  <jim@meyering.net>
81344
81345         * m4/calloc.m4: New file.
81346
81347 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81350         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81351         Also, fix a typo in a diagnostic.
81352
81353 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81354
81355         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81356         or AC_FUNC_REALLOC.
81357
81358 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81361         macros to be defined.
81362         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81363         the allocator returns NULL because the requested size is zero.
81364
81365 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81368         var.  Add comment explaining why libc still defines it.  This
81369         merges the following patch from glibc:
81370         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81371
81372 2004-05-20  Andreas Schwab  <schwab@suse.de>
81373
81374         * m4/free.m4: Replace free if it not known to work, not the other
81375         way round.
81376
81377 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81378
81379         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81380         present in glibc since revision 1.1 of this file.
81381         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81382         obstack_alignment_mask, obstack_alloc, obstack_base,
81383         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81384         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81385         obstack_grow0, obstack_init, obstack_int_grow,
81386         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81387         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81388         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81389         nonexistent functions.
81390
81391 2004-05-18  Karl Berry  <karl@gnu.org>
81392
81393         * config/srclist.txt: break link for vasnprintf.c.
81394
81395 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81396
81397         Port obstack to the AS/400, where pointers are 16 bytes wide and
81398         you cannot cast an integer to a valid pointer.  This patch is
81399         currently waiting to be integrated into glibc; see
81400         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81401
81402         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81403         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81404         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81405         (struct obstack): temp member is now a union of a pointer and
81406         an integer, instead of an integer.  All integer uses changed.
81407         This does not affect the physical layout of struct obstack,
81408         except on hosts (like the AS/400) where the size or alignment of
81409         void * is greater than that of ptrdiff_t.
81410         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81411         __STDC__)]: Store temporary in pointer member of union, not
81412         integer member.
81413         * lib/obstack.c: Include <stddef.h>, for offsetof.
81414         (struct fooalign): Remove; it doesn't need a name.
81415         (union fooround): Change double to long double, and add void *.
81416         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81417         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81418         not a macro.  Hence the values are always int; so remove all
81419         casts-to-int in uses.
81420
81421 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81424         we can get this patch merged into glibc.
81425
81426 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81427             Paul Eggert  <eggert@cs.ucla.edu>
81428
81429         * m4/argp: Depend on alloca.
81430
81431 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81432             Paul Eggert  <eggert@cs.ucla.edu>
81433
81434         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81435         freecoding.
81436
81437 2004-05-17  Bruno Haible  <bruno@clisp.org>
81438
81439         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81440         precision that consists of a '.' followed by an empty digit string.
81441         Patch by Tor Lillqvist <tml@iki.fi>.
81442
81443 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81446         for backward compatibility with older code.  We need our own
81447         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81448         it under some other name, and our alloca.h will define it.
81449
81450 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81451             Derek Price  <derek@ximbiot.com>
81452
81453         * lib/alloca.c: Include <alloca.h>, to get our interface.
81454         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81455         include <alloca.h> first.  Use C89 prototype for alloca; this
81456         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81457         Use #elif for simplicity, since we can assume C89 now.
81458         Don't try to source the system alloca.h since it will not be found
81459         and to prevent recursively including its replacement.
81460         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81461         * lib/regex.c: Likewise.
81462
81463 2004-05-16  Derek Price  <derek@ximbiot.com>
81464             Paul Eggert  <eggert@cs.ucla.edu>
81465
81466         getline cleanup.  This changes the getndelim2 API: both order of
81467         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81468         no delimiter).
81469
81470         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81471         interface does that.
81472         (getline): Always use getdelim, so that we don't have two
81473         copies of this code.
81474         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81475         if available.
81476         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81477         (GETNDELIM2_MAXIMUM): New macro.
81478         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81479         instead of the old practice of delim2==0.  All callers changed.
81480         Return -1 on overflow, instead of returning junk.
81481         Do not set *linesize unless allocation succeeds.
81482         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81483         that we include sys/types.h.
81484         * lib/getnline.h: Likewise.
81485         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81486         (getndelim2): Reorder arguments.
81487         * lib/getnline.c (getnline, getndelim):
81488         Don't discard the NMAX argument.
81489         (getnline): Invoke getndelim, to avoid code duplication.
81490         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81491         of (size_t) -1 by callers of the getnline family.
81492
81493 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81496         Check for gettimeofday.
81497         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81498         Check for settimeofday, stime.
81499
81500 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81501
81502         * lib/nanosleep.c (suspended): Change its type from int to
81503         sig_atomic_t volatile.
81504         (first_call): Make it private to rpl_nanosleep, and have it
81505         be zero initially as that's a bit faster.
81506         (my_usleep): Round up fractional times instead of truncating them,
81507         as this is the usual meaning for 'sleep'.
81508
81509         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81510         doesn't work.
81511         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81512         (ENOSYS): Define if not defined.
81513         (settime): Fall back on stime if it exists and settimeofday fails.
81514         But don't bother with fallbacks if a method fails with errno == EPERM.
81515
81516 2004-05-11  Jim Meyering  <jim@meyering.net>
81517
81518         Prior to this change, the save_cwd caller required read access to the
81519         current directory on most systems (ones with the fchdir function).
81520
81521         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81522         fails, try write-only, and finally, resort to using xgetcwd.
81523
81524 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         * lib/obstack.c, obstack.h: Import changes from libc.
81527
81528 2004-04-28  Bruno Haible  <bruno@clisp.org>
81529
81530         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81531         also implicitly appends .exe to executables.
81532         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81533         accepts Windows pathnames.
81534         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81535         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81536         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81537         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81538         Reported by Derek Robert Price <derek@ximbiot.com>.
81539
81540 2004-04-21  Karl Berry  <karl@gnu.org>
81541
81542         * config/srclist.txt (localcharset.c): break sync.
81543
81544 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81545
81546         * m4/host-os.m4: Add a copyright notice.
81547
81548 2004-04-20  Jim Meyering  <jim@meyering.net>
81549
81550         Change UTILS_ to gl_ in AC_DEFINE'd names.
81551         Change utils_- and jm_-prefixed variables, too.
81552         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81553         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81555
81556         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81557         Don't emit trailing blanks.
81558         Also rename jm_-prefixed variables to have gl_ prefix.
81559
81560         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81561         Also rename jm_-prefixed variables to have gl_ prefix.
81562
81563         * m4/jm-macros.m4: Reflect the renamings.
81564         * m4/prereq.m4: Likewise.
81565
81566 2004-04-20  Jim Meyering  <jim@meyering.net>
81567
81568         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81569         memory.
81570
81571 2004-04-20  Jim Meyering  <jim@meyering.net>
81572             Bruno Haible  <bruno@clisp.org>
81573
81574         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81575         memory when realloc fails.
81576
81577 2004-04-19  Jim Meyering  <jim@meyering.net>
81578
81579         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81580         now that readutmp.c may call `free (0)'.
81581
81582 2004-04-19  Bruno Haible  <bruno@clisp.org>
81583
81584         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81585         * m4/inttypes_h.m4: Likewise.
81586         * m4/stdint_h.m4: Likewise.
81587         * m4/intmax_t.m4: Likewise.
81588         * m4/uintmax_t.m4: Likewise.
81589
81590 2004-04-18  Jim Meyering  <jim@meyering.net>
81591
81592         * m4/prereq.m4: Don't forbid jm_ prefix.
81593
81594         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81595         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81596         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81597         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81598         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81599         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81600         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81601         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81602         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81603         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81604         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81605         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81606         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81607         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81608         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81609         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81610         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81611         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81612         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81613
81614 2004-04-18  Jim Meyering  <jim@meyering.net>
81615
81616         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81617         failure, don't leak memory and do call END_UTMP_ENT.
81618
81619 2004-04-16  Jim Meyering  <jim@meyering.net>
81620
81621         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81622         coreutils' stat program.
81623         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81624
81625 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81626
81627         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81628         C89.
81629         (CHAR_BIT): Remove, since we assume C89.
81630         Include <stdint.h> if available, as per current Autoconf CVS advice.
81631
81632 2004-03-31  Jim Meyering  <jim@meyering.net>
81633
81634         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81635         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81636         * m4/xalloc.m4: Likewise.
81637
81638 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81639
81640         Merge from coreutils.
81641
81642         * m4/inttostr.m4: New file.
81643         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81644         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81645         Require gl_CLOCK_TIME.
81646         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81647
81648 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81649
81650         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81651         not bool, to be more consistent with Unix conventions.
81652         Suggested by Bruno Haible.
81653
81654         Merge from coreutils.
81655
81656         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81657         * lib/umaxtostr.c: New files.
81658
81659         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81660         the usual <time.h> dance.
81661         (get_date): Change signature to support fractional time stamps.
81662         All callers changed.
81663         * lib/getdate.y: Include "getdate.h" first, as we can now
81664         assume C89 and don't need to worry about 'const'.
81665         Similarly, include "unlocked-io.h" near start, not in middle.
81666         Include <limits.h>.
81667         (textint.value): Use long int rather than int.
81668         (textint.digits): Use size_t rather than int.
81669         (BILLION, LOG10_BILLION): New constants.
81670         (parser_control): New member rel_ns.  Members day_ordinal,
81671         time_zone, month, day, hour, minutes, rel_year, rel_month,
81672         rel_day, rel_hour, rel_minutes, rel_seconds
81673         are now long int, not int.  Member seconds is now struct timespec,
81674         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81675         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81676         not int.
81677         (%union.intval): Now long int, not int.
81678         New member timespec.
81679         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81680         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81681         (spec): Now is a timespec or an item list.
81682         (timespec, items): New nonterminals.
81683         (time, rel, relunit, number, get_date):
81684         Add support for fractional seconds.
81685         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81686         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81687         (to_hour): First arg is now long int, not int.
81688         (to_year): Returns long int, not int.
81689         Don't treat year -70 like 70.
81690         (tm_diff): Returns long int, not int.
81691         (lookup_word): Use bool instead of int when appropriate.
81692         (yylex): Use size_t for count, not int.
81693         Detect overflow when parsing large integer constants.
81694         Add support for fractions.
81695         (get_date): Make pointers 'const' if possible.
81696         Use more-portable code to detect integer overflow.
81697         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81698         Don't use ctime; it's not reliable if the year has >4 digits.
81699
81700         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81701         This is for compatibility with BSD.
81702
81703         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81704         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81705         From coreutils' system.h.
81706
81707         * lib/userspec.c: Don't include "posixver.h".
81708         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81709         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81710         compatible extension.  Simplify code by removing a boolean int
81711         that was always nonzero if a string was nonnull.
81712
81713 2004-03-30  Jim Meyering  <jim@meyering.net>
81714
81715         Merge from coreutils.
81716
81717         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81718         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81719         on some systems one must include <grp.h> before it.
81720         Reported by Christian Krackowizer.
81721
81722 2004-03-30  Jim Meyering  <jim@meyering.net>
81723
81724         Merge from coreutils.
81725
81726         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81727
81728         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81729         an empty input stream.
81730
81731         * lib/readtokens.c: Include <stdbool.h>.
81732         (readtoken): Use `size_t' rather than int/long.
81733         All callers adjusted.
81734         Use `bool' rather than `int' where appropriate.
81735         Use memset rather than an explicit loop.
81736         Use x2nrealloc rather than xrealloc.
81737         Allow the use of `\0' as a delimiter.
81738         (readtokens): Likewise.
81739         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81740
81741 2004-03-30  Jim Meyering  <jim@meyering.net>
81742
81743         * m4/realloc.m4: Remove file, since now it does no more than
81744         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81745         the `configure.ac' section of module/realloc.
81746         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81747
81748 2004-03-30  Bruno Haible  <bruno@clisp.org>
81749
81750         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81751         nonnull.
81752
81753 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81754
81755         Merge changes to getloadavg.c from coreutils and Emacs.
81756
81757         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81758         Define to an expression, not to the empty string.
81759         Include cloexec.h and xalloc.h.
81760         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81761         Use set_cloexec_flag rather than rolling our own.
81762         * lib/cloexec.c, lib/cloexec.h: New files.
81763
81764 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81765
81766         * m4/cloexec.m4: New file.
81767
81768 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81769
81770         * lib/getopt.h: Sync with libc CVS.
81771
81772 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81773             Bruno Haible  <bruno@clisp.org>
81774
81775         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81776         mbswidth.
81777
81778 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81779             Bruno Haible  <bruno@clisp.org>
81780
81781         * lib/mbswidth.h: Include <wchar.h> only if
81782         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81783         <wchar.h>.
81784         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81785
81786 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81787
81788         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81789         Sync with libc CVS.
81790         * lib/getopt_int.h: New file, also synced from libc.
81791
81792 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81793
81794         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81795         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81796         Bring back getopt.c, getopt.h, getopt1.c.
81797
81798 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81799
81800         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81801         All uses changed.  Check for sa_sigaction member; this fixes
81802         a bug first reported by Jason Andrade in
81803         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81804
81805 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81806
81807         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81808         '#if' expressions.  Unlike the code it replaces, it does not
81809         depend on (defined _SC_PAGESIZE).  However, it does depend on
81810         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81811         first reported by Jason Andrade in
81812         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81813
81814 2004-02-25  Simon Josefsson  <jas@extundo.com>
81815
81816         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81817
81818 2004-02-25  Simon Josefsson  <jas@extundo.com>
81819
81820         * lib/strdup.h: New file.
81821         * lib/strdup.c: Include it.
81822         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81823         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81824
81825 2004-02-23  Karl Berry  <karl@gnu.org>
81826
81827         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81828         (from fencepost.gnu.org:/gd/gnuorg).
81829
81830 2004-02-23  Karl Berry  <karl@gnu.org>
81831
81832         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81833         * config/srclist.txt: add maintain/standards documents.
81834
81835 2004-02-18  Bruno Haible  <bruno@clisp.org>
81836
81837         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81838         Reported by Derek Robert Price <derek@ximbiot.com>.
81839
81840 2004-02-16  Karl Berry  <karl@gnu.org>
81841
81842         * config/mkinstalldirs, install-sh: update from automake.
81843
81844 2004-02-06  Karl Berry  <karl@gnu.org>
81845
81846         * m4/po.m4: update from gettext 0.14.1.
81847
81848 2004-02-06  Karl Berry  <karl@gnu.org>
81849
81850         * lib/config.charset: update from gettext 0.14.1.
81851
81852 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81853
81854         Add comments and code, prompted by suggestions from Bruno Haible
81855         for sh-quote.
81856         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81857         describing the enum quoting_style values.
81858         * lib/quotearg.c (quotearg_alloc): New function.
81859         (quotearg_buffer_restyled): Treat lone { and } as special.
81860         Treat = as special.  Work around bug with older shells
81861         that "see" a '\' that is really the 2nd byte of a multibyte char.
81862         Quote empty string with shell_quoting_style.
81863
81864 2004-02-03  Bruno Haible  <bruno@clisp.org>
81865
81866         * m4/pipe.m4: New file, from GNU gettext.
81867
81868 2004-02-03  Bruno Haible  <bruno@clisp.org>
81869
81870         * lib/pipe.h: New file, from GNU gettext.
81871         * lib/pipe.c: New file, from GNU gettext.
81872
81873 2004-01-27  Bruno Haible  <bruno@clisp.org>
81874
81875         * m4/execute.m4: New file, from GNU gettext.
81876
81877 2004-01-27  Bruno Haible  <bruno@clisp.org>
81878
81879         * lib/execute.h: New file, from GNU gettext.
81880         * lib/execute.c: New file, from GNU gettext.
81881         * lib/w32spawn.h: New file, from GNU gettext.
81882
81883 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81884
81885         Merge from diffutils.
81886
81887         * lib/file-type.c (file_type): Add typed memory objects.
81888         * lib/file-type.h (S_TYPEISTMO): New macro.
81889
81890         * lib/c-stack.h (c_stack_action): Remove argv argument.
81891         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81892         (die): Don't calculate message unless segv_action returns.
81893         (get_stack_location, min_address_from_argv, max_address_from_argv,
81894         volatile stack_base, volatile_stack_size): Remove.
81895         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81896         that every segmentation violation is a stack overflow.  (Ouch!)
81897         See Debian bug 136249 (still outstanding) for more info about why
81898         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81899
81900 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81901
81902         Exit-status fix from coreutils.
81903
81904         Use exit_failure consistently in place of EXIT_FAILURE,
81905         so that program exit statuses are consistent on failure.
81906
81907         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81908         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81909         * lib/argmatch.h: Comment fix to match the above.
81910         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81911         Now a macro referring to exit_failure, instead of a separate
81912         variable.  Include "exitfail.h" to get it.
81913         * lib/xstrtol.h: Include "exitfail.h".
81914         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81915
81916         * lib/long-options.c (parse_long_options): Use prototype
81917         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81918         for clarity.
81919
81920 2004-01-21  Jim Meyering  <jim@meyering.net>
81921
81922         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81923         so as not to conflict with a different-sized __mktime_internal
81924         function in GNU libc.
81925         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81926         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81927
81928 2004-01-20  Karl Berry  <karl@gnu.org>
81929
81930         * config/config.guess: update from config.
81931
81932         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81933
81934 2004-01-20  Bruno Haible  <bruno@clisp.org>
81935
81936         Safer stack allocation.
81937         * lib/setenv.c: Include allocsa.h.
81938         (alloca): Remove fallback definition.
81939         (freea): Remove macro.
81940         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81941         instead of freea.
81942
81943 2004-01-20  Bruno Haible  <bruno@clisp.org>
81944
81945         * m4/eealloc.m4: New file, from GNU gettext.
81946
81947 2004-01-20  Bruno Haible  <bruno@clisp.org>
81948
81949         * m4/allocsa.m4: New file, from GNU gettext.
81950
81951 2004-01-20  Bruno Haible  <bruno@clisp.org>
81952
81953         * lib/xallocsa.h: New file, from GNU gettext.
81954         * lib/xallocsa.c: New file, from GNU gettext.
81955
81956 2004-01-20  Bruno Haible  <bruno@clisp.org>
81957
81958         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81959
81960 2004-01-20  Bruno Haible  <bruno@clisp.org>
81961
81962         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81963         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81964         specially.
81965
81966 2004-01-20  Bruno Haible  <bruno@clisp.org>
81967
81968         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81969         patch.
81970
81971 2004-01-20  Bruno Haible  <bruno@clisp.org>
81972
81973         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81974
81975 2004-01-20  Bruno Haible  <bruno@clisp.org>
81976
81977         * lib/eealloc.h: New file.
81978
81979 2004-01-20  Bruno Haible  <bruno@clisp.org>
81980
81981         * lib/binary-io.h: Avoid warnings on Cygwin.
81982
81983 2004-01-20  Bruno Haible  <bruno@clisp.org>
81984
81985         * lib/allocsa.h: New file, from GNU gettext.
81986         * lib/allocsa.c: New file, from GNU gettext.
81987
81988 2004-01-18  Karl Berry  <karl@gnu.org>
81989
81990         * doc/gpl.texi, doc/lgpl.texi: new files.
81991
81992 2004-01-18  Karl Berry  <karl@gnu.org>
81993
81994         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81995         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81996
81997 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81998
81999         Merge from coreutils.
82000
82001         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82002         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82003         (gl_DEFAULT_POSIX2_VERSION): Move
82004         the documentation from 'configure' into 'config.hin',
82005         so that 'configure --help' isn't burdened by it and
82006         we don't have to worry about its formatting there.
82007         Reword the documentation so that it's more succinct
82008         and can be run together into a single paragraph.
82009         * m4/same.m4 (gl_SAME): Check for pathconf.
82010
82011 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82012
82013         Merge from coreutils.
82014
82015         * lib/posixver.c: Include posixver.h.
82016
82017         * lib/same.c: Include <stdbool.h>, <limits.h>.
82018         (_POSIX_NAME_MAX): Define if not defined.
82019         (MIN): New macro.
82020         (same_name): If file names are silently truncated, report
82021         that the file names are the same if they are the same after
82022         the silent truncation.
82023
82024         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82025         conversion function.
82026         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82027         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82028         longer needed.
82029
82030 2004-01-15  Jim Meyering  <jim@meyering.net>
82031
82032         Merge from coreutils.
82033
82034         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82035         if no library is required.
82036         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82037         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82038         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82039         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82040         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82041         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82042         value, $ac_cv_search_crypt, if it's "none required".
82043         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82044         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82045         not gl_FUNC_GETLOADAVG.
82046         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82047         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82048
82049 2004-01-15  Jim Meyering  <jim@meyering.net>
82050
82051         Merge from coreutils.
82052
82053         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82054         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82055         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82056
82057         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82058         optional configure-time default.
82059
82060         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82061
82062         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82063
82064 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82065
82066         Merge from coreutils.
82067
82068         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82069         value, $ac_cv_search_nanosleep, if it's "none required".
82070
82071 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82072
82073         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82074         with like-named macro in fnmatch.c.
82075         (EXT): Use an internal constant instead.
82076
82077         Merge fnmatch patches from glibc.
82078         * lib/fnmatch.c (mbsinit): Remove define.
82079         Add libc_hidden_ver (__fnmatch, fnmatch).
82080         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82081         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82082
82083 2004-01-14  Karl Berry  <karl@gnu.org>
82084
82085         * config/install-sh: update from automake.
82086
82087 2004-01-13  Karl Berry  <karl@gnu.org>
82088
82089         * config/install-sh: update from automake.
82090
82091 2004-01-09  Karl Berry  <karl@gnu.org>
82092
82093         * config/install-sh: update from automake.
82094
82095 2004-01-05  Karl Berry  <karl@gnu.org>
82096
82097         * config/config.{sub,guess}: update from config.
82098
82099 2003-12-31  Karl Berry  <karl@gnu.org>
82100
82101         * config/depcomp: update from automake.
82102
82103 2003-12-14  Karl Berry  <karl@gnu.org>
82104
82105         * lib/config.charset: update from gettext-runtime.
82106
82107 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82108
82109         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82110         Bug reported by Alfred M. Szmidt.
82111
82112 2003-12-03  Bruno Haible  <bruno@clisp.org>
82113
82114         * m4/gettext.m4: Upgrade from gettext-0.13.
82115         * m4/po.m4: Upgrade from gettext-0.13.
82116         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82117         * m4/intmax.m4: New file, from gettext-0.13.
82118         * m4/printf-posix.m4: New file, from gettext-0.13.
82119
82120 2003-11-29  Karl Berry  <karl@gnu.org>
82121
82122         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82123
82124 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82125             Bruno Haible  <bruno@clisp.org>
82126
82127         * lib/printf-parse.h: Don't include sys/types.h.
82128         (ARG_NONE): New macro.
82129         (char_directive): Change type of *arg_index fields to size_t.
82130         * lib/printf-parse.c: Don't include sys/types.h.
82131         (SSIZE_MAX): Remove macro.
82132         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82133         Remove unnecessary overflow check.
82134         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82135         fields.
82136
82137 2003-11-25  Bruno Haible  <bruno@clisp.org>
82138
82139         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82140
82141 2003-11-25  Bruno Haible  <bruno@clisp.org>
82142
82143         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82144         gt_TYPE_SSIZE_T.
82145
82146 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82147
82148         * modules/alloca: Remove dependency on xalloc.
82149
82150 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82151
82152         * lib/alloca.c: Remove dependency on xalloc module.
82153         (xalloc_die): Remove.
82154         (memory_full) [!defined emacs]: New macro.
82155         [!defined emacs]: Don't include xalloc.h.
82156         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82157         address arithmetic overflows.  Change datatypes a bit to avoid
82158         unnecessary casts.
82159
82160 2003-11-22  Jim Meyering  <jim@meyering.net>
82161
82162         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82163         s/size/size_t/.
82164
82165 2003-11-21  Karl Berry  <karl@gnu.org>
82166
82167         * config/config.{sub,guess}: update from config.
82168
82169 2003-11-18  Karl Berry  <karl@gnu.org>
82170
82171         * config/config.{sub,guess}: update from config.
82172
82173         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82174
82175 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82176
82177         * README: Mention that S+T cannot overflow if S is the size of
82178         an existing object and T is sufficiently small.
82179
82180 2003-11-17  Jim Meyering  <jim@meyering.net>
82181
82182         On systems without utime and without a utimes function capable of
82183         dealing with a NULL struct utimbuf* argument, this utime replacement
82184         could -- in unusual circumstances -- leak a file descriptor.
82185         * lib/utime.c: Include <unistd.h> and <errno.h>.
82186         (utime_null): Be sure to close `fd' and to preserve errno.
82187         Reported by Geoff Collyer via Arnold Robbins.
82188
82189 2003-11-17  Bruno Haible  <bruno@clisp.org>
82190
82191         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82192         (Depends-on): Add xsize.
82193
82194 2003-11-17  Bruno Haible  <bruno@clisp.org>
82195
82196         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82197
82198 2003-11-17  Bruno Haible  <bruno@clisp.org>
82199
82200         * lib/vasnprintf.c (alloca): Remove fallback definition.
82201         (freea): Remove definition.
82202         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82203         Reported by Paul Eggert.
82204
82205 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82206             Bruno Haible  <bruno@clisp.org>
82207
82208         Protect against address arithmetic overflow.
82209         * lib/printf-args.h: Include stddef.h.
82210         (arguments): Change type of field 'count' to size_t.
82211         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82212         'unsigned int' where appropriate.
82213         * lib/printf-parse.h: Include sys/types.h.
82214         (char_directive): Change type of *arg_index fields to ssize_t.
82215         (char_directives): Change type of fields 'count', max_*_length to
82216         size_t.
82217         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82218         (SSIZE_MAX): Define fallback value.
82219         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82220         instead of 'int' where appropriate. Check a_allocated, d_allocated
82221         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82222         * lib/vasnprintf.c: Include xsize.h.
82223         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82224         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82225         overflow. Avoid wraparound when converting a width or precision from
82226         decimal to binary.
82227
82228 2003-11-16  Bruno Haible  <bruno@clisp.org>
82229
82230         Update from GNU gettext.
82231         * lib/printf-parse.c: Generalize to it can be compiled for wide
82232         strings.
82233         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82234         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82235         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82236         SNPRINTF): New macros.
82237         Don't include <alloca.h> if the file is used inside libintl.
82238         (local_wcslen): New function, for Solaris 2.5.1.
82239         (VASNPRINTF): Use it instead of wcslen.
82240
82241 2003-11-16  Bruno Haible  <bruno@clisp.org>
82242
82243         * lib/xsize.h (xmax): New function.
82244         (xsum, xsum3, xsum4): Declare as "pure" functions.
82245
82246 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82247
82248         * modules/xalloc (Files): Undo latest change, since xalloc.h
82249         no longer needs SIZE_MAX or PTRDIFF_MAX.
82250
82251 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82252
82253         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82254         gl_PTRDIFF_MAX.
82255
82256 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82257
82258         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82259         "return", to pacify some unknown compiler.  Problem reported
82260         by Joerg Schilling.
82261
82262 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82263
82264         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82265         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82266         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82267         heuristic is just as accurate as far as we know, and it removes a
82268         dependency on size_max.m4 and ptrdiff_max.m4.
82269
82270 2003-11-11  Bruno Haible  <bruno@clisp.org>
82271
82272         * modules/xsize (Files): Add m4/size_max.m4.
82273         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82274
82275 2003-11-11  Bruno Haible  <bruno@clisp.org>
82276
82277         * m4/size_max.m4: New file.
82278         * m4/ptrdiff_max.m4: New file.
82279         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82280         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82281         (gl_XALLOC): Invoke it.
82282
82283 2003-11-11  Bruno Haible  <bruno@clisp.org>
82284
82285         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82286         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82287         defined.
82288
82289 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82290
82291         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82292         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82293         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82294         From Bruno Haible.
82295         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82296         not (size_t) -1, since it's defined here.
82297
82298 2003-11-09  Karl Berry  <karl@gnu.org>
82299
82300         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82301
82302 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82303
82304         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82305         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82306         Reject sizes of exactly SIZE_MAX bytes.
82307         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82308         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82309
82310 2003-11-05  Bruno Haible  <bruno@clisp.org>
82311
82312         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82313         SIZE_MAX defined in <limits.h> on Solaris.
82314
82315 2003-11-04  Jim Meyering  <jim@meyering.net>
82316
82317         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82318         variable names, rather than @VAR@.
82319         * modules/poll: Likewise.
82320
82321 2003-11-04  Bruno Haible  <bruno@clisp.org>
82322
82323         * modules/xsize: New file.
82324         * modules/linebreak: Depend on xsize.
82325         * MODULES.html.sh (func_all_modules): Add xsize.
82326
82327 2003-11-04  Bruno Haible  <bruno@clisp.org>
82328
82329         * m4/xsize.m4: New file.
82330
82331 2003-11-04  Bruno Haible  <bruno@clisp.org>
82332
82333         * lib/xsize.h: New file.
82334         * lib/linebreak.c: Include xsize.h.
82335         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82336         argument for overflow.
82337         Suggested by Paul Eggert.
82338
82339 2003-11-03  Karl Berry  <karl@gnu.org>
82340
82341         * config/config.{guess,sub}: update from config.
82342
82343 2003-11-03  Jim Meyering  <jim@meyering.net>
82344
82345         * modules/userspec (lib_SOURCES): Add userspec.h.
82346         (Include): Add "userspec.h".
82347         Improve description.
82348
82349 2003-11-03  Jim Meyering  <jim@meyering.net>
82350
82351         * lib/userspec.c: Include "userspec.h".
82352         * lib/userspec.h: New file.
82353
82354 2003-11-03  Bruno Haible  <bruno@clisp.org>
82355
82356         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82357
82358 2003-11-03  Bruno Haible  <bruno@clisp.org>
82359
82360         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82361         available, to avoid (extremely rare) race condition.
82362         Suggested by Paul Eggert.
82363
82364 2003-11-02  Karl Berry  <karl@gnu.org>
82365
82366         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82367
82368 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82369
82370         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82371         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82372         (read_filesystem_list): Set and use me_type_malloced.
82373         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82374         whatever the type happens to be), for brevity and consistency.
82375         Check for size calculation overflow on Alphas running OSF/1.
82376
82377 2003-10-31  Jim Meyering  <jim@meyering.net>
82378
82379         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82380
82381         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82382
82383 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82384             Bruno Haible  <bruno@clisp.org>
82385
82386         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82387         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82388
82389 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82390
82391         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82392         netbsd*-gnu*.  Suggested by Robert Millan.
82393
82394 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82395
82396         * modules/group-member: Depend on stdbool.
82397
82398 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82399
82400         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82401
82402 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82403
82404         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82405         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82406         after the 'gnu' in these cases.  This fixes some bugs in the
82407         previous change, and is based on suggestions by Robert Millan.
82408
82409 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82410
82411         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82412         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82413         no longer needed.
82414         * lib/quotearg.c (quotearg_n_options): Use it.
82415         * lib/group-member.c: Include <stdbool.h>.
82416         (free_group_info): Arg is now const *; don't free arg.
82417         (get_group_info): Now returns bool and accepts struct group_info *,
82418         rather than returning a malloc'ed struct group_info *.
82419         All uses changed.  Check for overflow in internal size calculation.
82420
82421         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82422         rather than xmalloc/xrealloc.
82423         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82424         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82425         conformance bug: the old code used a pointer after freeing the
82426         storage that it addressed.
82427         * lib/hash.c (hash_initialize): Simplify the code by using
82428         xalloc_oversized rather than doing it by hand.
82429         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82430         the buffer preserved.  Use free and xmalloc instead.
82431         * lib/quotearg.c (quotearg_n_options): Likewise.
82432         Use a simpler test for size overflow.  Don't use xalloc_oversized
82433         because unsigned int might be wider than size_t (!); this suggests
82434         that we should switch from unsigned int to size_t for slot numbers.
82435
82436 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82437
82438         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82439         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82440         NetBSD kernels.  Requested by Richard Stallman.
82441
82442 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82443
82444         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82445         to allocate the returned structure.  Do not allocate a subarray,
82446         as x2nrealloc will do that.
82447         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82448         instead of xnrealloc.
82449         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82450
82451 2003-10-27  Bruno Haible  <bruno@clisp.org>
82452
82453         * lib/stdbool_.h: Better support for BeOS.
82454
82455 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82456
82457         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82458         now uses inline.
82459
82460 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82461
82462         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82463         callers that want to do their own size-overflow checking.  Include
82464         <stdbool.h>, since xalloc_oversized returns bool.
82465         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82466         to use xalloc_oversized.
82467
82468         Add two functions x2realloc, x2nrealloc, for programs that grow
82469         arrays dynamically by doubling their sizes.
82470         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82471         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82472         New functions.
82473
82474         Port to C99 semantics for 'inline' of external functions.
82475         Bug reported by Bruno Haible.
82476         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82477         with the old contents of xnmalloc.
82478         (xnmalloc, xmalloc): Use it.
82479         (xnrealloc_inline): New static inline function,
82480         with the old contents of xnrealloc.
82481         (xnrealloc, xrealloc): Use it.
82482
82483         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82484         that.
82485
82486 2003-10-26  Karl Berry  <karl@gnu.org>
82487
82488         * config/srclist.txt (COPYING.DOC): no longer available from
82489         /gd/gnuorg; don't know where the ultimate source is.
82490
82491 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82492
82493         Fix several address-calculation bugs in the hash modules,
82494         plus some minor code cleanup.
82495
82496         * lib/hash.h: Include <stdbool.h>, for bool.
82497         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82498         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82499         hash_get_n_entries, hash_get_max_bucket_length,
82500         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82501         hash_rehash): Use size_t rather than unsigned.
82502         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82503         hash_get_n_buckets_used, hash_get_n_entries,
82504         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82505         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82506         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82507         Likewise.
82508         (SIZE_MAX): Define if not defined.
82509         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82510         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82511         hash_print):
82512         Use const * when possible.
82513         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82514         (check_tuning): Fix bug: if tuning parameters were very close to
82515         0 or 1, rounding errors could have caused subscript violations.
82516         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82517         (hash_initialize): Add 'fail:' label
82518         to free table and return NULL, and use it to simplify code.
82519         Use calloc rather than clearing the storage ourself.
82520         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82521         buffer size calculations.
82522         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82523         Include <stddef.h>, for size_t.
82524         * lib/hash-pjw.c (hash_pjw): Likewise.
82525         Switch to method described by Bruno Haible.
82526         Include <limits.h>, for CHAR_BIT.
82527         (SIZE_BITS): New macro.
82528
82529 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82530
82531         * m4/getline.m4 (AM_FUNC_GETLINE):
82532         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82533         hosts.  Problem reported by Derek Robert Price in
82534         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82535         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82536         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82537
82538 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82539
82540         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82541         ceiling the allocation at NMAX bytes rather than silently
82542         discarding input bytes before NMAX is reached.  This makes
82543         a difference only if NMAX exceeds SIZE_MAX / 2.
82544
82545         * lib/obstack.c: Merge from glibc.
82546         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82547         Add libc_hidden_def (_obstack_newchunk).
82548         (_obstack_free) [! defined _LIBC]: Remove.
82549         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82550         a clone of the function body.
82551         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82552         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82553
82554         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82555         glibc.
82556         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82557         arg to memcpy.
82558
82559         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82560         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82561         Don't use lvalue casts, as GCC plans to remove support for them
82562         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82563         was also present in the non-GCC version, indicating that this
82564         code had always been buggy and had never been widely used.
82565         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82566         Use the fast variant of each macro, rather than copying the
82567         definiens of the fast variant; that way, we'll be more likely to
82568         catch future bugs in the fast variants.
82569
82570 2003-10-20  Bruno Haible  <bruno@clisp.org>
82571
82572         * modules/wait-process: New file.
82573         * MODULES.html.sh (func_all_modules): Add wait-process.
82574
82575 2003-10-20  Bruno Haible  <bruno@clisp.org>
82576
82577         * m4/wait-process.m4: New file.
82578
82579 2003-10-20  Bruno Haible  <bruno@clisp.org>
82580
82581         * lib/wait-process.h: New file, from GNU gettext.
82582         * lib/wait-process.c: New file, from GNU gettext.
82583
82584 2003-10-19  Jim Meyering  <jim@meyering.net>
82585
82586         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82587         HPUX 10.20.
82588
82589 2003-10-18  Karl Berry  <karl@gnu.org>
82590
82591         * config/config.guess: update from config.
82592
82593 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82594
82595         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82596         (getgroups): First arg is int, not size_t.
82597         Don't let 'free' mangle errno.
82598
82599 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82600
82601         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82602
82603 2003-10-16  Karl Berry  <karl@gnu.org>
82604
82605         * config/config.{guess,sub}: update from config.
82606
82607 2003-10-16  Jim Meyering  <jim@meyering.net>
82608
82609         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82610         memcpy.
82611
82612 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82613
82614         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82615         (SIZE_MAX): Remove.
82616         (new_exclude, add_exclude_file): Initial size no longer needs to
82617         be a power of 2.
82618         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82619         our own address arithmetic overflow checking.
82620
82621         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82622         (fnmatch): Do not alloca more than 2000 wide characters;
82623         instead, use malloc for large buffers.
82624         Check for address arithmetic overflow, and return -1
82625         with errno set to ENOMEM in that case.
82626         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82627         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82628         instead, return -1.  Check for address arithmetic overflow.
82629
82630 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82631
82632         Handle invalid suffixes and overflow independently, so that
82633         callers can treat them independently as needed.  Fix some bugs in
82634         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82635         suffix for a human-readable blocksize.  The major caller-visible
82636         change is the addition of a new
82637         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82638         that both overflow and suffix chars were found.
82639
82640         * lib/human.c (humblock): Don't check separately for invalid suffix
82641         char; that is xstrtoumax's job (now that its bug is fixed).
82642         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82643         INTMAX_MAX]: New macros.
82644         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82645         TYPE_MAXIMUM): New macros.
82646         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82647         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82648         if overflow occurs, as it's what __strtol does and it's more useful
82649         in practice.
82650         (__xstrtol): If __strtol reports some error other than ERANGE,
82651         reflect it to the caller as LONGINT_INVALID.  If it reports
82652         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82653         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82654         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82655         value.
82656         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82657         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82658         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82659         [defined UINTMAX_MAX]: New macros.
82660
82661 2003-10-14  Bruno Haible  <bruno@clisp.org>
82662
82663         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82664
82665 2003-10-14  Bruno Haible  <bruno@clisp.org>
82666
82667         * m4/sig_atomic_t: New file, from GNU gettext.
82668         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82669
82670 2003-10-14  Bruno Haible  <bruno@clisp.org>
82671
82672         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82673         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82674         Also use volatile where needed.
82675
82676 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82677
82678         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82679         Change maintainer from Bruno Haible to 'all'.
82680
82681 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82682
82683         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82684
82685 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82686
82687         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82688         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82689         and define in terms of the other primitives.
82690         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82691         (SIZE_MAX): Define if not already defined.
82692         (array_size_overflow): New function.
82693         (xalloc_die): Abort instead of exiting if 'error' returns.
82694         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82695         (xmalloc, xrealloc): Use them.
82696         (xcalloc): Check for address arithmetic overflow.
82697         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82698         a bit faster than strcpy.
82699
82700 2003-10-10  Simon Josefsson  <jas@extundo.com>
82701
82702         * modules/argp (Depends-on): Add restrict and strcase.
82703
82704 2003-10-10  Simon Josefsson  <jas@extundo.com>
82705
82706         * m4/argp.m4: Add AC_C_INLINE.
82707
82708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82709
82710         Merge getpass from libc, plus a few fixes.
82711
82712         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82713         Include <stdbool.h>.
82714         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82715         __fsetlocking to empty.
82716         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82717         do include <bits/libc-lock.h>.
82718         Do not include <fcntl.h>; not needed.
82719         [_LIBC]: Include <wchar.h>.
82720         (NOTCANCEL_MODE): New macro.
82721         (flockfile, funlockfile) [_LIBC]: New macros.
82722         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82723         [!_LIBC]: New macros.
82724         (call_fclose): New function.
82725         (getpass): Use it.  Save tty stream separately; this simplifies the
82726         code and makes it more reliable if stdin happens to equal stdout.
82727         Invoke __fsetlocking on tty.
82728         Handle thread cancellation if needed.
82729         Namespace cleanup (use __tcgetattr, __getline).
82730         Use bool for Booleans.
82731         [USE_IN_LIBIO]: Handle wide streams.
82732         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82733         stream might go where.
82734
82735         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82736         doesn't have to include <stdio.h> before us.
82737         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82738         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82739         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82740         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82741         if not declared, so that we can use getpass.c code from libc without
82742         rewriting it.
82743         (flockfile, ftrylockfile, funlockfile): New macros.
82744
82745 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82746
82747         * modules/getpass: Depend on stdbool.
82748
82749 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82750
82751         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82752
82753 2003-10-07  Karl Berry  <karl@gnu.org>
82754
82755         * config/config.{guess,sub}: update from config.
82756
82757 2003-10-06  Jim Meyering  <jim@meyering.net>
82758             Bruno Haible  <bruno@clisp.org>
82759
82760         This lets translators provide better translations for the
82761         "Written by ..." part of --version output.
82762         * lib/version-etc.h: Include stdarg.h.
82763         (version_etc_copyright): Declare as readonly.
82764         (version_etc): Make this function variadic with a NULL-terminated list
82765         of author name strings.
82766         (version_etc_va): New declaration.
82767         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82768         (version_etc_copyright): Declare as readonly.
82769         (version_etc_va): New function. Provide a different translatable string
82770         for each possible number of authors < 10. Abbreviate when there are 10
82771         authors or more.
82772         (version_etc): Make this function variadic. Call version_etc_va.
82773         Suggestion from Gary V. Vaughan.
82774
82775         * lib/long-options.h (parse_long_options): Change prototype: the
82776         authors string is moved to the end and becomes variadic.
82777         * lib/long-options.c: Include stdarg.h.
82778         (parse_long_options): Make this function variadic, too.
82779         Call version_etc_va, not version_etc.
82780
82781 2003-10-06  Bruno Haible  <bruno@clisp.org>
82782
82783         * modules/version-etc-2: Remove file.
82784         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82785
82786 2003-10-06  Bruno Haible  <bruno@clisp.org>
82787
82788         * modules/fatal-signal: New file.
82789         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82790
82791 2003-10-06  Bruno Haible  <bruno@clisp.org>
82792
82793         * m4/fatal-signal.m4: New file.
82794         * m4/signalblocking.m4: New file, from GNU gettext.
82795
82796 2003-10-06  Bruno Haible  <bruno@clisp.org>
82797
82798         * lib/version-etc-2.h: Remove file.
82799         * lib/version-etc-2.c: Remove file.
82800
82801 2003-10-06  Bruno Haible  <bruno@clisp.org>
82802
82803         * lib/fatal-signal.h: New file, from GNU gettext.
82804         * lib/fatal-signal.c: New file, from GNU gettext.
82805
82806 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82807
82808         * README: Rework advice for preventing empty .o files.
82809         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82810         not <sys/types.h>.
82811
82812 2003-10-04  Karl Berry  <karl@gnu.org>
82813
82814         * lib/argp*: update from libc.
82815
82816 2003-10-04  Karl Berry  <karl@gnu.org>
82817
82818         * config/config.{guess,sub}: update from config.
82819
82820 2003-10-02  Bruno Haible  <bruno@clisp.org>
82821
82822         * modules/lchown (Include): Add lchown.h.
82823         * modules/time_r (Include): Use "..." syntax.
82824         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82825
82826 2003-10-01  Simon Josefsson  <jas@extundo.com>
82827
82828         * MODULES.html.sh (func_all_modules): Move gethostname from section
82829         'based on' to section 'lacking' POSIX:2001.
82830
82831 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82832
82833         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82834         to output mode on the same stream.
82835
82836 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82837
82838         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82839         Fix arg typo in previous patch.
82840
82841 2003-09-28  Jim Meyering  <jim@meyering.net>
82842
82843         * lib/error.c: Correct cpp indentation.
82844
82845 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82846
82847         * modules/free: New file.
82848
82849 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82850
82851         * m4/free.m4: New file.
82852
82853 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82854
82855         * lib/minmax.h (MIN, MAX)
82856         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82857         Omit the special code that used __typeof__, since we worry that
82858         it could be more trouble than it's worth.  See:
82859         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82860         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82861
82862         * lib/free.c: New file.
82863
82864 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82865
82866         Trivial fixes to Makefile.am parts of module listings.
82867         * modules/strstr: Append strstr.h to lib_SOURCES.
82868         * modules/strcase: Likewise, for strcase.h.
82869
82870 2003-09-27  Karl Berry  <karl@gnu.org>
82871
82872         * config/mkinstalldirs: update from automake.
82873
82874 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82875
82876         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82877         (error_tail): Do not loop, reallocating temporary buffer, since
82878         the output cannot contain more wide characters than the input
82879         contains bytes, the size must be big enough already.  This avoids
82880         one potential size overflow calculation.  Check for size overflow
82881         when calculating temporary buffer size.  Free temporary buffer
82882         when done, if it was allocated with malloc; this plugs a memory
82883         leak.  Remove casts from void * to pointers, that are no longer
82884         needed now that we're assuming C89 or better.
82885
82886         Merge error changes from glibc.
82887
82888         * lib/error.c, error.h: Update copyright notice header to match glibc.
82889         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82890         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82891         Disable cancellation while printing error.
82892         * lib/error.h: Prepend __ to parameter names.
82893
82894 2003-09-26  Jim Meyering  <jim@meyering.net>
82895
82896         * lib/error.c (error_tail): Move some declarations
82897         into inner scope where the local variables are used.
82898
82899 2003-09-26  Bruno Haible  <bruno@clisp.org>
82900
82901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82902         stpncpy().
82903         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82904
82905 2003-09-26  Bruno Haible  <bruno@clisp.org>
82906
82907         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82908         (stpncpy): Define as alias for gnu_stpncpy.
82909         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82910
82911 2003-09-25  Simon Josefsson  <jas@extundo.com>
82912
82913         * lib/xgetdomainname.h: New file.
82914         * lib/xgetdomainname.c: New file.
82915
82916 2003-09-25  Simon Josefsson  <jas@extundo.com>
82917             Bruno Haible  <bruno@clisp.org>
82918
82919         * modules/getdomainname: New file.
82920         * modules/xgetdomainname: New file.
82921         * MODULES.html.sh (func_all_modules): Add getdomainname,
82922         xgetdomainname.
82923
82924 2003-09-25  Simon Josefsson  <jas@extundo.com>
82925             Bruno Haible  <bruno@clisp.org>
82926
82927         * m4/getdomainname.m4: New file.
82928
82929 2003-09-25  Simon Josefsson  <jas@extundo.com>
82930             Bruno Haible  <bruno@clisp.org>
82931
82932         * lib/getdomainname.h: New file.
82933         * lib/getdomainname.c: New file.
82934
82935 2003-09-25  Karl Berry  <karl@gnu.org>
82936
82937         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82938
82939 2003-09-25  Karl Berry  <karl@gnu.org>
82940
82941         * config/install-sh: update from automake.
82942
82943 2003-09-25  Bruno Haible  <bruno@clisp.org>
82944
82945         * modules/version-etc-2: New file, from modules/version-etc with
82946         modifications.
82947         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82948
82949 2003-09-25  Bruno Haible  <bruno@clisp.org>
82950
82951         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82952         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82953
82954 2003-09-24  Simon Josefsson  <jas@extundo.com>
82955
82956         * modules/xgethostname: Add xgethostname.h.
82957
82958 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82959
82960         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82961         the buffer associated with the argument.  Bug reported by
82962         Simon Josefsson.
82963
82964 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82965
82966         * README: Document assumptions that 'int' is at least 32 bits
82967         wide, that integer arithmetic is 2's complement without overflow,
82968         that there are no holes in integer values, that adding sizes of
82969         two nonoverlapping objects can't overflow, and that all-bits-zero
82970         yields scalar zero.  Fix spelling and capitalization typos.
82971
82972 2003-09-19  Karl Berry  <karl@gnu.org>
82973
82974         * lib/argp.h: update from libc.
82975
82976 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82977
82978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82979         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82980         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82981
82982 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82983
82984         * gnulib-tool: Use "test -h", not "test -L", for portability
82985         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82986         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82987         (sed_extract_prog): Issue s commands one-by-one, rather than
82988         using \| in one s command.
82989
82990 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82991
82992         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82993         input error, instead of returning NULL the next time we are called
82994         (and therefore losing track of errno).
82995
82996 2003-09-16  Bruno Haible  <bruno@clisp.org>
82997
82998         * gnulib-tool (func_create_testdir): Warn about duplicated
82999         dependencies.
83000
83001 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83002
83003         * modules/argmatch, modules/fatal, modules/obstack,
83004         modules/xalloc, modules/xgethostname: Sort dependencies by
83005         importance, not alphabetically.
83006
83007 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83008
83009         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83010         fails, so that the caller gets the proper errno.
83011
83012         * lib/readutmp.c (read_utmp): Likewise.
83013         Check for fstat error.  Close stream and free storage
83014         when failing.
83015
83016 2003-09-14  Karl Berry  <karl@gnu.org>
83017
83018         * config/srclist.txt (strdup.c): disable for c89 changes.
83019
83020 2003-09-14  Jim Meyering  <jim@meyering.net>
83021
83022         * lib/getloadavg.c: Correct cpp indentation.
83023         * lib/strdup.c: Likewise.
83024         * lib/vasnprintf.c: Likewise.
83025
83026 2003-09-14  Bruno Haible  <bruno@clisp.org>
83027
83028         * modules/fwriteerror: New file.
83029         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83030
83031 2003-09-14  Bruno Haible  <bruno@clisp.org>
83032
83033         * lib/fwriteerror.h: New file.
83034         * lib/fwriteerror.c: New file.
83035
83036 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83037
83038         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83039         modules/xgethostname, modules/xalloc: Depend on exit.
83040
83041 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83042
83043         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83044
83045         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83046         and AC_MINIX, too, so that their extensions are available.
83047
83048         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83049         This macro has been superseded by gl_BACKUPFILE.
83050
83051         More patches to assume C89 or better.
83052
83053         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83054
83055         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83056         unconditionally.
83057         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83058         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83059         Include <string.h>, <stdlib.h> unconditionally.
83060         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83061         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83062         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83063         headers or for string.h.
83064         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83065         or strtoul.
83066
83067         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83068         headers.
83069         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83070         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83071         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83072         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83073         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83075         memcpy, memset.
83076         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83077         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83078         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83079         strtol.
83080         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83081         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83082         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83083         strtoul.
83084
83085 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83086
83087         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83088         * lib/obstack.c [!defined _LIBC]: Likewise.
83089         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83090         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83091         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83092
83093         More changes to assume C89 or better.
83094
83095         * lib/error.c (error_tail): Assume vprintf.
83096
83097         * lib/argmatch.c (getenv): Remove decl.
83098         * lib/progreloc.c (get_full_program_name): Define via prototype.
83099         * lib/setenv.c (clearenv): Likewise.
83100         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83101         needed.
83102         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83103         (malloc, memcpy): Remove decls.
83104         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83105         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83106         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83107         (memcpy): Remove macro.
83108         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83109         (__P): Remove.  All uses removed.
83110         (PTR): Remove.  All uses changed to void *.
83111         (CHAR_BIT, NULL): Remove.
83112         (spaces, zeros, memset_space, memset_zero)
83113         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83114         Remove.
83115         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83116         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83117         Define with prototype.
83118         Remove now-unnecessary prototype decl.
83119         (extra_args_spec): Assume ANSI C.  All uses changed.
83120         (extra_args_spec_iso): Remove.
83121         (my_strftime, emacs_strftimeu): Define via prototype.
83122         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83123         unconditionally.
83124         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83125         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83126         (strtoul, strtol): Remove decls.
83127         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83128         LONG_MAX): Remove.
83129         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83130         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83131         (LOCALE_PARAM_PROTO): New macro.
83132         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83133         (INTERNAL (strtol), strtol): Define with a prototype.
83134         (PARAMS): Remove.  All uses removed.
83135         * lib/tempname.c: Include <string.h> unconditionally.
83136         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83137         * lib/xgethostname.c (main): Define with a prototype.
83138         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83139         Include <stdlib.h> unconditionally.
83140         (calloc, malloc, realloc, free): Remove decls.
83141         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83142         Include <stdlib.h> unconditionally.  Sort include file names.
83143         (strtod): Remove.
83144         (xstrtod): Define with a prototype.
83145         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83146         (strtol, strtoul): Remove decls.
83147
83148 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83149
83150         More patches to assume C89 or better.
83151         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83152         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83153         string.h, memchr, STDC_HEADERS.
83154
83155 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83156
83157         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83158         Include <stdlib.h>, <string.h> unconditionally.
83159         Remove now-unnecessary cast to char *.
83160         * lib/strnlen.c: Include <string.h> unconditionally.
83161         * lib/yesno.c (yesno): Define with a prototype.
83162
83163 2003-09-11  Bruno Haible  <bruno@clisp.org>
83164
83165         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83166
83167 2003-09-10  Jim Meyering  <jim@meyering.net>
83168
83169         * lib/error.c: Correct indentation of cpp directives.
83170
83171 2003-09-10  Bruno Haible  <bruno@clisp.org>
83172
83173         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83174         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83175         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83176         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83177         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83178         <stdlib.h> and <string.h> checks.
83179         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83180         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83181
83182 2003-09-10  Bruno Haible  <bruno@clisp.org>
83183
83184         * lib/strcspn.c: Include <string.h> unconditionally.
83185         * lib/strpbrk.c: Include <string.h> unconditionally.
83186         * lib/strstr.c: Include <string.h> unconditionally.
83187         * lib/unicodeio.c: Include <string.h> unconditionally.
83188         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83189         * lib/unsetenv.c: Likewise.
83190         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83191         * lib/yesno.c: Include <stdlib.h> unconditionally.
83192         (rpmatch): Add prototype.
83193
83194 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83195
83196         More patches to assume C89 or better.
83197         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83198         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83199         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83200         or for string.h.
83201         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83202         stdlib.h.
83203         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83204         C headers.
83205         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83206         string.h.
83207         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83208         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83209         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83210         or for string.h.
83211         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83212         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83213         C headers.
83214         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83215         memcpy.
83216         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83217         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83218         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83219         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83220         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83221         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83222         string.h, free.
83223         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83224         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83225         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83226         C headers, or for string.h.
83227         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83228         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83229         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83230         headers, memory.h, stdlib.h, string.h, strings.h.
83231         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83232         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83233         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83234         strchr.
83235         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83236         headers, memory.h, string.h.
83237         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83238         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83239         free.
83240         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83241         headers.
83242         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83243         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83244         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83245         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83246         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83247
83248 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83249
83250         More K&R removal.
83251
83252         * lib/acosl.c (main): Use a prototype.
83253         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83254         tanl.c: Likewise.
83255
83256         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83257
83258         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83259         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83260         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83261         with a prototype.
83262         * lib/getopt.c (const): Remove macro.
83263         Include <string.h> unconditionally.
83264         (my_index): Remove; all uses changed to strchr.
83265         (strlen): Remove decl.
83266         (exchange): Remove forward decl; no longer needed.
83267         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83268         Define with prototype.
83269         * lib/getopt1.c (const): Remove macro.
83270         (getopt_long, getopt_long_only, main): Define with prototype.
83271
83272         * lib/getugroups.c: Include <string.h> unconditionally.
83273
83274         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83275         (getusershell, setusershell, endusershell, readname, main):
83276         Define with prototypes.
83277
83278         * lib/group-member.c: Include group-member.h first.
83279         Include <stdlib.h> unconditionally.
83280
83281         * lib/hard-locale.c: Include hard-locale.h first.
83282         Include <stdlib.h>, <string.h> unconditionally.
83283
83284         * lib/hash.c (free, malloc): Remove decls.
83285         Include <stdlib.h> unconditionally.
83286
83287         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83288         (getenv): Do not declare.
83289
83290         * lib/idcache.c: Include <string.h> unconditionally.
83291
83292         * lib/long-options.c: Include long-options.h first, to test interface.
83293         Include <stdlib.h> unconditionally.
83294
83295         * lib/makepath.c: Include makepath.h first, to test interface.
83296         Include <stdlib.h> and <string.h> unconditionally.
83297
83298         * lib/linebuffer.c: Include <stdlib.h>.
83299         (free): Remove decl.
83300
83301         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83302         stddef.h. rpl_malloc returns void *, not char *.
83303         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83304         prototype.
83305
83306         * lib/md5.h: Include <limits.h> unconditionally.
83307         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83308         (__P): Remove; all uses removed.
83309         * lib/md5.c: Include "md5.h" first.
83310         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83311         md5_buffer, md5_process_bytes, md5_process_block):
83312         Define with prototypes.
83313         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83314         * lib/sha.c: Include "sha.h" first.
83315         Include <stdlib.h>, <string.h> unconditionally.
83316
83317         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83318         * lib/memcmp.c (__ptr_t): Likewise.
83319         * lib/memrchr.c (__ptr_t): Likewise.
83320         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83321         Include <string.h> unconditionally.
83322         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83323         * lib/memchr.c: Include <stdlib.h> unconditionally.
83324         * lib/memchr.c (LONG_MAX): Remove.
83325         * lib/memrchr.c (LONG_MAX): Likewise.
83326         * lib/memchr.c (__memchr): Define via a prototype.
83327         * lib/memrchr.c (__memrchr): Likewise.
83328         * lib/memcmp.c (__P): Remove, and remove all uses.
83329         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83330         Remove forward decls; no longer needed.
83331         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83332         Use types required by C89 in prototype.
83333
83334         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83335         * lib/savedir.c: Likewise.
83336         * lib/mkdir.c (free): Remove decl.
83337         * lib/rmdir.c (rmdir): Define with a prototype.
83338         * lib/savedir.c: Include savedir.h first, to test interface.
83339
83340         * lib/mktime.c (STDC_HEADERS): Remove.
83341         Include <stdlib.h>, <string.h> unconditionally.
83342
83343         * lib/modechange.c: Include <stdlib.h> unconditionally.
83344         (malloc): Remove decl.
83345
83346         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83347         (free): Remove decl.
83348
83349         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83350         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83351         (This type really should be intptr_t, but that's a C99ism.)
83352         (_obstack_memcpy): Remove: all uses changed to memcpy.
83353         Include <string.h> unconditionally.
83354         (struct obstack): Assume __STDC__ for types of members
83355         chunkfun, freefun, extra_arg.
83356         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83357         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83358         obstack_begin, obstack_specify_allocation,
83359         obstack_specify_allocation_with_arg, obstack_chunkfun,
83360         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83361         Remove unprototyped decls and the macros that use them.
83362         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83363         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83364         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83365         (defined __STDC__ && __STDC__)]:
83366         Remove nonprototyped code.
83367         Include <stdlib.h> unconditionally.
83368         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83369         _obstack_allocated_p, _obstack_free, obstack_free,
83370         _obstack_memory_used, print_and_abort):
83371         Define using prototypes.
83372         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83373         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83374         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83375         obstack_next_free, obstack_object_size, obstack_room) [0]:
83376         Remove unused, unprototyped code.
83377
83378         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83379
83380         * lib/physmem.c (physmem_total, physmem_available, main): Define
83381         with prototypes.
83382
83383         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83384         (main): Define with a prototype.
83385
83386         * lib/posixver.c (getenv): Remove decl.
83387
83388         * lib/putenv.c (malloc): Returns void *, not char *.
83389         Include <string.h> unconditionally.
83390         (strchr, memcpy, NULL): Do not define.
83391
83392         * lib/readtokens.c: Include readtokens.h first, to test interface.
83393         Include <stdlib.h>, <string.h> unconditionally.
83394         (init_tokenbuffer): Define with a prototype.
83395
83396         * lib/regex.c (PARAMS): Remove.  All uses removed.
83397         All uses of _RE_ARGS removed, too.
83398         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83399         unconditionally.
83400         (bzero): Assume memset exists.
83401         (memcmp, memcpy, NULL): Remove.
83402         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83403         char, or assignments to local vars of type signed char.
83404         (init_syntax_once, PREFIX(extract_number_and_incr),
83405         PREFIX(print_partial_compiled_pattern),
83406         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83407         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83408         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83409         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83410         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83411         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83412         wcs_compile_range, byte_compile_range, truncate_wchar,
83413         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83414         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83415         count_mbs_length, wcs_re_match_2_internal,
83416         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83417         PREFIX(alt_match_null_string_p),
83418         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83419         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83420         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83421         now-unnecessary declaration, if any.
83422         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83423         regcomp, regexec):
83424         Remove now-unnecessary casts among pointer types.
83425         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83426
83427         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83428         (free): Remove decl.
83429
83430         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83431
83432         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83433         (free): Remove decl.
83434
83435         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83436         * lib/xgetcwd.c: Likewise.
83437
83438         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83439         (free): Remove decl.
83440
83441         * lib/strchrnul.c (strchrnul): Define with a prototype.
83442         Fix bug: c_in was not converted to char before searching.
83443
83444         The following changes are not K&R related:
83445
83446         * lib/group-member.h: Include <sys/types.h>, so that this file is
83447         self-contained.
83448         * lib/makepath.h: Likewise.
83449
83450         * lib/getusershell.c (readname, default_index, line_size, readname):
83451         Use size_t, not int, for sizes.
83452         (readname): If the size overflows, report an error instead of
83453         looping forever.
83454
83455 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83456
83457         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83458         libc.
83459
83460 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83461
83462         * README: New section: portability guidelines.
83463
83464 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83465
83466         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83467         C89 spec.
83468
83469 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83470
83471         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83472
83473 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83474
83475         Assume C89 or better; remove K&R cruft.
83476         A few of these changes were first proposed by Derek Robert Price
83477         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83478
83479         * lib/addext.c: Include <string.h> unconditionally.
83480         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83481         Don't declare getenv or malloc.
83482
83483         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83484         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83485         (NULL): Remove.
83486         (find_stack_direction, alloca): Use prototypes.
83487
83488         * lib/atexit.c (atexit): Define using a prototype.
83489
83490         * lib/basename.c, dirname.c, stripslash.c:
83491         Include <string.h> unconditionally.
83492
83493         * lib/bcopy.c: Include <stddef.h>.
83494         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83495
83496         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83497
83498         * lib/error.h (error, error_at_line, error_print_progname)
83499         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83500         * lib/error.c: Include error.h first, to check interface.
83501         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83502         (VA_START): Remove; all uses changeed to va_start.
83503         (exit, strerror): Remove decls.
83504         (error_print_progname): Prototype uncondionally.
83505         Don't include <errno.h>; no longer needed.
83506         (private_strerror): Remove.
83507         (error_tail): Always define.
83508         (error, error_at_line): Assume C89 or better; always use prototypes.
83509         * lib/fatal.c: Include "fatal.h" first, to test interface.
83510         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83511         (VA_START): Remove; all uses changed to va_start.
83512         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83513         this case.
83514         (exit): Remove decl.
83515         (fatal): Prototype unconditionally.  Assume va_start works.
83516         Abort at end, to pacify gcc.
83517
83518         * lib/euidaccess.c (main): Define with a prototype.
83519
83520         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83521
83522         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83523
83524         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83525         prototypes.
83526         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83527         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83528         (getenv): Remove decl.
83529         (fnmatch): Define using a prototype.
83530         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83531         (FCT): Define using a prototype.
83532
83533         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83534
83535         * lib/gethostname.c: Include <stddef.h>.
83536         (gethostname): Define with prototype.  Length is size_t, not int.
83537
83538 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83539
83540         Assume C89 or better; remove K&R cruft.
83541         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83542         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83543         string.h, getenv, malloc.
83544         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83545         headers.
83546         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83547         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83548         do not check for strerror.
83549         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83550         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83551         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83552         do not check for doprnt or vprintf.
83553         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83554         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83555
83556 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83557
83558         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83559         getversion.c should have been removed then, but was accidentally
83560         preserved.
83561
83562         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83563         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83564
83565 2003-09-08  Karl Berry  <karl@gnu.org>
83566
83567         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83568                 config, forget about prep.
83569
83570         * config/depcomp, missing: update from automake.
83571
83572 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83573
83574         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83575         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83576
83577 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83578
83579         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83580         copy_tm_result.  Bug reported by Simon Josefsson in
83581         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83582
83583 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83584
83585         * m4/time_r.m4: New file.
83586         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83588         is. Check for timegm declaration.
83589         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83590         Do not check for gmtime_r.
83591         Replace mktime if __mktime_internal does not exist and if mktime
83592         hasn't been replaced already.
83593
83594 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83595
83596         * lib/time_r.c, lib/time_r.h: New files.
83597
83598         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83599         __localtime_r.
83600         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83601         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83602
83603         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83604         __gmtime_r.
83605         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83606         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83607         Include <time_r.h>.
83608
83609         * lib/timegm.c: Switch to glibc implementation, with the following
83610         changes:
83611         [defined HAVE_CONFIG_H]: Include <config.h>.
83612         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83613         (__mktime_internal) [!defined _LIBC]: New decl.
83614         (__gmtime_r) [!defined _LIBC]: New macro and function.
83615         (timegm): Use a prototype, since gnulib assumes C89.
83616         Do not bother declaring tmp to be const, as it's not really usefu.
83617         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83618         (timegm): Declare only if HAVE_DECL_TIMEGM.
83619
83620 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83621
83622         * MODULES.html.sh (func_all_modules): Add time_r.
83623         * modules/time_r: New file.
83624         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83625         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83626
83627 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83628
83629         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83630         Bug reported by Lute Kamstra in
83631         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83632
83633         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83634         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83635         course with correspondingly smaller numbers for tomorrow and
83636         yesterday.  From Tadayoshi Funaba.  Originally installed into
83637         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83638         coreutils merge?).
83639
83640 2003-08-31  Simon Josefsson  <jas@extundo.com>
83641
83642         * modules/timegm: New file.
83643         * MODULES.html.sh (func_all_modules): Add timegm.
83644
83645 2003-08-31  Simon Josefsson  <jas@extundo.com>
83646
83647         * m4/timegm.m4: New file.
83648
83649 2003-08-31  Simon Josefsson  <jas@extundo.com>
83650
83651         * lib/timegm.h: New file.
83652         * lib/timegm.c: New file.  Based on
83653         wget-1.8.2/src/http.c:mktime_from_utc.
83654
83655 2003-08-31  Karl Berry  <karl@gnu.org>
83656
83657         * lib/argp.h: update from libc.
83658
83659 2003-08-28  Bruno Haible  <bruno@clisp.org>
83660
83661         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83662         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83663         followed by '#define fnmatch fnmatch_posix' gives an error.
83664
83665 2003-08-28  Bruno Haible  <bruno@clisp.org>
83666
83667         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83668         warning on QNX, which defines O_BINARY to 000000.
83669
83670 2003-08-27  Jim Meyering  <jim@meyering.net>
83671
83672         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83673         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83674         would fail after 32.  Reported by Danny Levinson.  Details here:
83675         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83676
83677 2003-08-24  Bruno Haible  <bruno@clisp.org>
83678
83679         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83680         MSVC7 <stdio.h> is included later.
83681
83682 2003-08-22  Simon Josefsson  <jas@extundo.com>
83683
83684         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83685
83686 2003-08-20  Karl Berry  <karl@gnu.org>
83687
83688         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83689
83690 2003-08-20  Bruno Haible  <bruno@clisp.org>
83691
83692         * modules/progname: New file.
83693         * MODULES.html.sh (func_all_modules): Add progname.
83694
83695 2003-08-20  Bruno Haible  <bruno@clisp.org>
83696
83697         * lib/progname.h: New file, from GNU gettext.
83698         * lib/progname.c: New file, from GNU gettext.
83699         * lib/progreloc.c: New file, from GNU gettext.
83700
83701 2003-08-19  Jim Meyering  <jim@meyering.net>
83702
83703         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83704         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83705
83706 2003-08-19  Bruno Haible  <bruno@clisp.org>
83707
83708         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83709         more.
83710
83711 2003-08-19  Bruno Haible  <bruno@clisp.org>
83712
83713         * lib/xstrdup.c: Assume <string.h> exists.
83714
83715 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83716
83717         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83718         in makefile rules.
83719
83720 2003-08-18  Jim Meyering  <jim@meyering.net>
83721
83722         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83723         * m4/lib-ld.m4: Likewise.
83724
83725 2003-08-18  Jim Meyering  <jim@meyering.net>
83726
83727         * lib/setenv.h: Indent nested cpp directive.
83728         * lib/vasnprintf.c: Remove trailing blanks.
83729
83730 2003-08-17  Simon Josefsson  <jas@extundo.com>
83731
83732         * modules/xstrndup: New file.
83733         * MODULES.html.sh (func_all_modules): Add xstrndup.
83734
83735 2003-08-17  Simon Josefsson  <jas@extundo.com>
83736
83737         * modules/argp: Fix autoconf macro name. Add more dependencies.
83738
83739 2003-08-17  Simon Josefsson  <jas@extundo.com>
83740
83741         * m4/xstrndup.m4: New file.
83742
83743 2003-08-17  Simon Josefsson  <jas@extundo.com>
83744
83745         * m4/argp.m4: New file.
83746
83747 2003-08-17  Simon Josefsson  <jas@extundo.com>
83748             Bruno Haible  <bruno@clisp.org>
83749
83750         * lib/xstrndup.h: New file.
83751         * lib/xstrndup.c: New file.
83752
83753 2003-08-17  Bruno Haible  <bruno@clisp.org>
83754
83755         * modules/strndup (Files, Include): Add lib/strndup.h.
83756
83757 2003-08-17  Bruno Haible  <bruno@clisp.org>
83758
83759         * modules/euidaccess (Files): Add lib/euidaccess.h.
83760
83761 2003-08-17  Bruno Haible  <bruno@clisp.org>
83762
83763         * lib/strndup.h: New file.
83764
83765 2003-08-17  Bruno Haible  <bruno@clisp.org>
83766
83767         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83768         like AC_GNU_SOURCE.
83769         * modules/extensions (configure.ac): Comment out the invocation of
83770         gl_USE_SYSTEM_EXTENSIONS.
83771
83772 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83773
83774         Merges from coreutils, etc.
83775         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83776         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83777         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83778         fixing a typo.
83779         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83780         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83781
83782 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83783
83784         Document merge from coreutils.
83785         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83786         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83787         * modules/utime: Add m4/utimes-null.m4.
83788
83789 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83790
83791         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83792         space, undoing this 2003-08-12 change:
83793         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83794
83795 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83796
83797         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83798         strtoul.c from libc, undoing this 2003-08-12 change:
83799         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83800
83801 2003-08-16  Jim Meyering  <jim@meyering.net>
83802
83803         Merges from coreutils.
83804         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83805         prefix.  Adjust cache variables similarly.  Create 500 rather than
83806         just 300 files, to exercise bug on Darwin6.5, too.
83807         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83808         $missing_dir.
83809         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83810         AM_SYS_POSIX_TERMIOS.
83811         Reported by mkc@mathdogs.com.
83812         Also change use of $am_cv_sys_posix_termios
83813         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83814         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83815         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83816         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83817         in /proc/mounts until it finds one with matching device number.  This
83818         is unnecessary when the FILE argument *is* a mount point.  No stat call
83819         is necessary in that case.  So, disable the statvfs-testing code on
83820         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83821         as RedHat bug# 84846.
83822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83823         to 1MB, so as not to render systems with no stack size limit (e.g.,
83824         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83825         Include <unistd.h>.  On some systems,
83826         it is required for the definition of _SC_PAGESIZE.
83827
83828 2003-08-16  Jim Meyering  <jim@meyering.net>
83829
83830         Merge from coreutils.
83831         * lib/xstrtoimax.c: #else #if -> #elif.
83832         * lib/xstrtoumax.c: Likewise.
83833
83834 2003-08-16  Jim Meyering  <jim@meyering.net>
83835
83836         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83837         * m4/utimes.m4: Removed.
83838         * m4/utimes-null.m4: Renamed from utimes.m4.
83839
83840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83841         to 1MB, so as not to render systems with no stack size limit (e.g.,
83842         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83843         Include <unistd.h>.  On some systems,
83844         it is required for the definition of _SC_PAGESIZE.
83845
83846 2003-08-16  Jim Meyering  <jim@meyering.net>
83847         and Paul Eggert  <eggert@cs.ucla.edu>
83848
83849         Merges from coreutils, etc.
83850
83851         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83852         using the latest version from cvs.  This avoids problems with #line
83853         directives using a vendor (Sun) compiler.
83854         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83855         Don't set GETGROUPS_LIB here; now it's
83856         done via getgroups.m4's wrapper function.
83857         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83858         rather than just in sh-util/configure.in, so that the
83859         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83860         same.
83861         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83862         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83863         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83864         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83865         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83866         Remove code that is now done by the newly-required macros.
83867         Append $(EXEEXT) to DF_PROG.
83868         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83869         Do not invoke or require the following here,
83870         since prereq.m4 or some gnulib .m4 now does this for us:
83871         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83872         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83873         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83874         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83875         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83876         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83877         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83878         AC_FUNC_OBSTACK.
83879         Do not replace the following functions, as this is now the job
83880         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83881         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83882         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83883         atexit getpass, strdup, getpagesize.
83884         Replace 'raise'.
83885         Do not check for the following functions, as this is now the job
83886         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83887         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83888         setregid.
83889         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83890         Check for sys/sysctl.h.
83891         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83892         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83893         of checking for ssize_t ourselves.
83894
83895         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83896         Require every macro that gnulib/modules/* suggests for us.
83897         (jm_PREREQ_ADDEXT): New macro.
83898         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83899         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83900
83901         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83902         (gl_PHYSMEM): Use it.
83903         Also check for `table' function.
83904         Check for new headers and functions.
83905         Add check for sys/sysmp.h.
83906         With suggestions from Kaveh Ghazi.
83907         Ignore headers that are present but cannot be compiled.  This
83908         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83909         C 5.4.
83910
83911 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83912
83913         Document merge from coreutils.
83914         * modules/userspec: Depend on posixver.
83915         * modules/strftime: Depend on tzset.
83916
83917 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83918
83919         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83920         rather than tab, after '#' in shell-script copyright notices.
83921         Suggested by Bruno Haible.
83922
83923 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83924
83925         * config/srclist-update: Use three spaces, rather than tab, after '#'
83926         in shell-script copyright notices.  Suggested by Bruno Haible.
83927         Remove unnecessary parenthesization in regular expression.
83928
83929 2003-08-15  Jim Meyering  <jim@meyering.net>
83930
83931         Merge from coreutils.
83932         * lib/xgethostname.c: Include <stdlib.h>.
83933         (xghostname): Don't exit for anything other than memory-related
83934         failure; just return NULL.
83935         * lib/userspec.c: Include "posixver.h".
83936         (parse_user_spec): Accept `.' as a separator only
83937         in pre-POSIX-200112 mode.
83938         * lib/strtoimax.c: Use #elif rather than #else #if.
83939         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83940         Remove function, now that we can rely on a working tzset function.
83941         [!_LIBC]: Ensure that the required autoconf test has been run.
83942         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83943         Use underlying_strftime for %r.
83944         * lib/sha.c: Merge in some clean-up and optimization changes from
83945         glibc.
83946         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83947         Ensure that it is a multiple of 64.
83948         Rearrange loop exit tests so as to avoid performing an
83949         additional fread after encountering an error or EOF.
83950         * lib/realloc.c: Update copyright date.
83951
83952 2003-08-15  Jim Meyering  <jim@meyering.net>
83953         and Paul Eggert  <eggert@twinsun.com>
83954
83955         Merge from coreutils.
83956         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83957         member but strut utmpx does not.  Needed for AIX 4.3.3.
83958         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83959
83960 2003-08-15  Jim Meyering  <jim@meyering.net>
83961         and Paul Eggert  <eggert@cs.ucla.edu>
83962
83963         Merges from coreutils, etc.
83964         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83965         Require gl_FUNC_TZSET_CLOBBER.
83966         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83967         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83968         members.
83969
83970 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83971
83972         Help the merge from coreutils.
83973         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83974         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83975         * m4/tzset.m4: Use it too.
83976
83977 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83978
83979         * modules/tzset: New file.
83980
83981 2003-08-14  Jim Meyering  <jim@meyering.net>
83982
83983         Merges from coreutils.
83984         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83985         variable names, rather than @FNMATCH_H@.
83986         * modules/alloca: Likewise for $(ALLOCA_H).
83987
83988         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83989         the three copies of the literal target, `fnmatch.h'.
83990         * modules/alloca (alloca.h): Likewise.
83991
83992 2003-08-14  Jim Meyering  <jim@meyering.net>
83993
83994         Merge from coreutils.
83995         * m4/tzset.m4: New file.
83996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83997         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83998         otherwise, AIX 5.1 systems would end up using the latter.
83999         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84000         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84001         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84002         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84003
84004 2003-08-14  Jim Meyering  <jim@meyering.net>
84005
84006         Merge from coreutils.
84007         * lib/obstack.h: Whitespace changes.
84008         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84009         and xcalloc return values.
84010         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84011         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84012         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84013         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84014         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84015         error from mntctl.
84016         Use mntctl's return value to drive the entry-processing loop, since
84017         we can't rely on the value of the vmt_length member in the last
84018         entry.  On some systems doing so could result in exhausting
84019         virtual memory.  Based in part on a patch from Mike Jetzer.
84020
84021 2003-08-14  Jim Meyering  <jim@meyering.net>
84022         and Paul Eggert  <eggert@twinsun.com>
84023
84024         Merges from coreutils, plus other fixes.
84025         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84026         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84027         for credits and details.  Thanks to Kaveh Ghazi for helping
84028         to keep these files in sync.
84029         (ARRAY_SIZE): Define it.
84030         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84031         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84032         (memcasecmp): Don't assume size_t fits in unsigned int.
84033         Remove casts and duplicate code.
84034         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84035         (memcpy): Remove definition.
84036         Merge in some clean-up and optimization changes from glibc.
84037         [BLOCKSIZE]: Move definition to top of file.
84038         Ensure that it is a multiple of 64.
84039         Rearrange loop exit tests so as to avoid performing an
84040         additional fread after encountering an error or EOF.
84041         * lib/md5.h (md5_uintptr): Define.
84042         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84043         return to the initial working directory.  Preserve errno
84044         for caller.
84045         * lib/idcache.c: Include "xalloc.h".
84046         (xmalloc, xrealloc): Remove decls.
84047         (getuser): Remove casts no longer required in C89.
84048         * lib/human.c: Include stdio.h, for sprintf.
84049         * lib/group-member.c: Include "xalloc.h".
84050         (xmalloc, xrealloc): Remove decls.
84051         (get_group_info): Remove casts no longer required in C89.
84052         * lib/getusershell.c (readname): Remove casts no longer required in
84053         C89.
84054         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84055         * lib/getline.c: Whitespace fix, from coreutils.
84056
84057 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84058
84059         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84060         Check for isascii.
84061
84062         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84063         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84064         Undo previous (whitespace-only) change.
84065
84066 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84067
84068         * lib/exclude.c: Include <ctype.h>
84069         (IN_CTYPE_DOMAIN): New macro.
84070         (is_space): New fn.
84071         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84072         and empty lines.
84073
84074         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84075         Undo previous (whitespace-only) change.
84076
84077 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84078
84079         * config/srclist-update: Change update back to the old behavior,
84080         leaving whitespace alone.  Use one 'sed' command rather than a
84081         pipeline.
84082         (fixlicense): Now a variable, not a function.
84083         (remove_trailing_blanks): Remove.
84084         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84085         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84086         Undo previous (whitespace-only) change.
84087
84088 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84089
84090         Merge from coreutils.
84091         * modules/euidaccess: Add lib_SOURCES, include for new
84092         file euidaccess.h
84093
84094 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84095
84096         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84097         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84098         Normalize leading white space and remove trailing white space.
84099
84100         Merge from coreutils
84101         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84102
84103         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84104         0.12.1.  These files are now being upgraded automatically by
84105         ../config/srclist-update.
84106
84107 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84108
84109         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84110         Normalize leading white space and remove trailing white space.
84111         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84112         notice, as per ../config/srclist-update.
84113
84114         Merge from coreutils.
84115         * lib/euidaccess.h: New file.
84116         * lib/euidaccess.c: Include it.
84117         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84118         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84119         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84120
84121 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84122
84123         * config/srclist-update: Add copyright notice.
84124         (remove_id_lines, remove_trailing_blanks): New constants.
84125         (fixfile): Use them to normalize spacing a bit in copied files.
84126         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84127         Normalize leading white space and remove trailing white space.
84128
84129         * config/texinfo.tex: Sync with texinfo.
84130
84131         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84132         strtoul.c from libc, to merge coreutils whitespace changes.
84133
84134         * config/srclist.txt: Get the following m4 files from gettext:
84135         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84136         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84137         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84138         wint_t.m4.
84139
84140 2003-08-12  Karl Berry  <karl@gnu.org>
84141
84142         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84143         been made.
84144
84145 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84146
84147         * modules/gnu-source, m4/gnu-source.m4:
84148         Remove; we're assuming Autoconf 2.54 or later now.
84149         Suggested by Bruno Haible.
84150         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84151
84152 2003-08-11  Bruno Haible  <bruno@clisp.org>
84153
84154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84155
84156 2003-08-11  Bruno Haible  <bruno@clisp.org>
84157
84158         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84159         (vasnprintf): Use it instead of wcslen.
84160
84161 2003-08-11  Bruno Haible  <bruno@clisp.org>
84162
84163         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84164         value to ensure that _Bool promotes to int. Use #define for _Bool when
84165         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84166
84167 2003-08-10  Karl Berry  <karl@gnu.org>
84168
84169         * lib/regex.h: update from libc (whitespace fix).
84170
84171 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84172
84173         Merge some files from coreutils.  These changes were
84174         originally made by Jim Meyering.
84175         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84176         many older Unixes require this.
84177         * lib/alloca.c (alloca): Remove cast to argument of free;
84178         no longer needed in C89.
84179         * lib/alloca_.h, regex.h: Fix white space to match
84180         what GNU indent does.
84181
84182 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84183
84184         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84185         apparently Emacs's Unicode mode got confused before my 2003-08-05
84186         checkin.
84187
84188 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84189
84190         * m4/extensions.m4: New file.
84191         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84192         Require gl_USE_SYSTEM_EXTENSIONS.
84193         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84194         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84195
84196 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84197
84198         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84199         * modules/extensions, modules/gnu-source: New files.
84200         * modules/timespec, modules/unlocked-io: Depend on extensions.
84201
84202 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84203
84204         * modules/restrict: New file.
84205         * MODULES.html.sh (func_all_modules): Add restrict.
84206         * modules/regex: Depend on restrict.
84207
84208 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84209
84210         * m4/restrict.m4: New file.
84211         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84212
84213 2003-08-07  Bruno Haible  <bruno@clisp.org>
84214
84215         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84216         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84217
84218 2003-08-07  Bruno Haible  <bruno@clisp.org>
84219
84220         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84221         makes the module 'getndelim2' compatible with the module 'getline'.
84222
84223 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84224
84225         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84226         byte with "\201" to avoid glitches when editing that source file
84227         with multi-gnome-terminal.
84228
84229 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84230
84231         * lib/bumpalloc.h: Remove.
84232
84233 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84234
84235         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84236         * modules/bumpalloc: Remove.
84237
84238 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84239
84240         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84241         GNU coding style.
84242
84243         Merge from coreutils.
84244         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84245         1. From glibc.
84246         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84247         from Karl Berry, implemented by Jim Meyering.
84248         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84249         from Dmitry V. Levin.
84250         Remove anachronistic cast of xrealloc.
84251         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84252         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84253         type. Otherwise, it wouldn't compile with at least /bin/cc on
84254         ymp-cray-unicos9.0.2.X.
84255         Combine two mostly-identical uses of alloca into one.
84256         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84257
84258 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84259
84260         [From Emacs.]
84261
84262         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84263         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84264         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84265         obsolete NLIST_NAME_UNION.
84266         [__GNU__]: Undef BSD and FSCALE.
84267         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84268
84269 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84270
84271         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84272         an enum type, so that it's guaranteed to promote to int.  See:
84273         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84274
84275 2003-08-03  Karl Berry  <karl@gnu.org>
84276
84277         * config/depcomp: update from automake.
84278
84279 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84280
84281         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84282         (strerror): Don't assume that a printable int fits in 14 bytes.
84283
84284 2003-07-31  Bruno Haible  <bruno@clisp.org>
84285
84286         * modules/getpass-gnu: New file.
84287         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84288
84289 2003-07-31  Bruno Haible  <bruno@clisp.org>
84290
84291         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84292
84293 2003-07-24  Karl Berry  <karl@gnu.org>
84294
84295         * config/missing: update from automake.
84296
84297 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84298             Bruno Haible  <bruno@clisp.org>
84299
84300         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84301         * lib/getline.c (getline, getdelim): Likewise.
84302         Remove _GNU_SOURCE define; now it's defined in config.h through
84303         m4/getline.m4.
84304
84305 2003-07-23  Karl Berry  <karl@gnu.org>
84306
84307         * config/config.sub: update from prep.
84308
84309 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84310
84311         * modules/xalloc (Depends-on): Add exitfail.
84312         * modules/xmemcoll: Likewise.
84313
84314 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84315
84316         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84317         over-parenthesization in macros.
84318
84319         Sync with coreutils.
84320
84321         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84322         required by C99.
84323
84324         Use `exit_failure' for xalloc and xmemcoll instead of their own
84325         private exit-failure variables.
84326         * lib/xalloc.h (xalloc_exit_failure): Remove.
84327         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84328         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84329         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84330         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84331         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84332
84333 2003-07-20  Jim Meyering  <jim@meyering.net>
84334
84335         * modules/closeout (Depends-on): Add exitfail.
84336         Suggestion from Bruno Haible.
84337
84338 2003-07-19  Karl Berry  <karl@gnu.org>
84339
84340         * config/config.sub: update from prep.
84341
84342 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84343
84344         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84345         Remove.
84346         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84347         to test that it can stand by itself.  Include "exitfail.h".
84348         Clients should set exit_failure instead.
84349         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84350
84351 2003-07-18  Bruno Haible  <bruno@clisp.org>
84352
84353         * modules/getndelim2: New file.
84354         * modules/getline: Share files with module getndelim2.
84355         * modules/getnline: Depend on getndelim2 instead of sharing files with
84356         it. Add getnline.c to lib_SOURCES.
84357         * MODULES.html.sh (func_all_modules): Add getndelim2.
84358
84359 2003-07-18  Bruno Haible  <bruno@clisp.org>
84360
84361         * m4/getndelim2.m4: New file.
84362         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84363         invoke gl_PREREQ_GETNDELIM2.
84364         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84365         gl_PREREQ_GETNDELIM2.
84366         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84367         gl_GETNDELIM2.
84368
84369 2003-07-18  Bruno Haible  <bruno@clisp.org>
84370
84371         * lib/getndelim2.h: New file.
84372         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84373         getndelim2.h.
84374         (getndelim2): Make non-static. Change return type to ssize_t.
84375         * lib/getline.h: Change argument names.
84376         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84377         * lib/getnline.c: Include getndelim2.h.
84378
84379 2003-07-18  Andreas Schwab  <schwab@suse.de>
84380
84381         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84382
84383 2003-07-17  Karl Berry  <karl@gnu.org>
84384
84385         * config/config.sub: update from prep.
84386
84387 2003-07-17  Bruno Haible  <bruno@clisp.org>
84388
84389         * modules/getnline: New file.
84390         * modules/getline: Add lib/getndelim2.c to source file list.
84391         * MODULES.html.sh (func_all_modules): Add getnline.
84392
84393 2003-07-17  Bruno Haible  <bruno@clisp.org>
84394
84395         * m4/getnline.m4: New file.
84396
84397 2003-07-17  Bruno Haible  <bruno@clisp.org>
84398
84399         * m4/Makefile.am.in: Remove file.
84400         * m4/Makefile.am: Remove file.
84401         * m4/Makefile.in: Remove file.
84402
84403 2003-07-17  Bruno Haible  <bruno@clisp.org>
84404
84405         * lib/getnline.h: New file.
84406         * lib/getnline.c: New file.
84407         * lib/getndelim2.c: New file, extracted from getline.c.
84408         (getndelim2): Renamed from getdelim2, with added nmax argument.
84409         * lib/getline.c: Include getndelim2.c.
84410         (getdelim2): Moved out to getndelim2.c.
84411         (getline, getdelim): Update.
84412
84413 2003-07-17  Bruno Haible  <bruno@clisp.org>
84414
84415         * lib/Makefile.am: Remove file.
84416         * lib/Makefile.in: Remove file.
84417
84418 2003-07-17  Bruno Haible  <bruno@clisp.org>
84419
84420         * configure.in: Remove file.
84421         * Makefile.in: Remove file.
84422
84423 2003-07-17  Bruno Haible  <bruno@clisp.org>
84424
84425         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84426
84427 2003-07-16  Karl Berry  <karl@gnu.org>
84428
84429         * config/srclist-update: was running fixlicense twice, which caused
84430                 texinfo.tex to be nullified for some reason.  Simplify,
84431                 $gplsrc is no longer needed as far as I can see?
84432
84433 2003-07-16  Jim Meyering  <jim@meyering.net>
84434
84435         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84436
84437 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84438
84439         * config/srclist.txt: Get the following files from gettext-runtime/intl
84440         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84441         ref-del.sin.  From Bruno Haible.
84442         * config/srclist-update (fixfile): Change grep pattern again, since the
84443         previous fix didn't work (there was another trailing $).  Use
84444         '[$]' to escape the $s.
84445
84446 2003-07-15  Karl Berry  <karl@gnu.org>
84447
84448         * lib/vasnprintf.c: update from gettext.
84449
84450 2003-07-15  Karl Berry  <karl@gnu.org>
84451
84452         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84453         gets expanded when surrounded by '$'.
84454
84455 2003-07-15  Jim Meyering  <jim@meyering.net>
84456
84457         * modules/save-cwd: Don't depend on error.  From Derek Price.
84458
84459 2003-07-15  Jim Meyering  <jim@meyering.net>
84460
84461         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84462
84463 2003-07-14  Simon Josefsson  <jas@extundo.com>
84464
84465         * modules/mempcpy: New file.
84466         * MODULES.html.sh (func_all_modules): Add mempcpy.
84467
84468 2003-07-14  Simon Josefsson  <jas@extundo.com>
84469
84470         * m4/mempcpy.m4: New file.
84471
84472 2003-07-14  Simon Josefsson  <jas@extundo.com>
84473
84474         * lib/mempcpy.h: New file.
84475         * lib/mempcpy.c: New file.
84476
84477 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84478
84479         * modules/getdate, modules/posixtm: Depend on mktime.
84480
84481 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84482
84483         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84484         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84485         unicodeio.c, unicodeio.h, unlocked-io.h:
84486         Switch from LGPL to GPL.
84487
84488 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84489
84490         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84491         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84492         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84493         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84494         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84495         updated automatically by ../config/srclist-update.  This changes
84496         their license from LPGL to GPL.
84497
84498 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84499
84500         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84501         assumed to refer to the root of the most recent stable gettext version.
84502         * config/srclistvars.sh: Add defaults for eggert.
84503         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84504         Match "This program" as well as "The program".  This is needed
84505         for gettext.
84506
84507 2003-07-14  Jim Meyering  <jim@meyering.net>
84508
84509         Don't emit diagnostics.  Let callers do that.
84510         * lib/save-cwd.c: Don't include "error.h".
84511         (save_cwd): Don't call error.  Ensure that errno is valid
84512         when returning nonzero.
84513
84514         * lib/save-cwd.h (restore_cwd): Update prototype.
84515         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84516         Simplify.  Don't call error upon failure.  Let callers do that.
84517         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84518         when auditing is enabled.  But don't bother updating the #if.
84519
84520 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84521
84522         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84523         it breaks C++ compilation.
84524         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84525
84526 2003-07-10  Simon Josefsson  <jas@extundo.com>
84527
84528         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84529
84530 2003-07-10  Jim Meyering  <jim@meyering.net>
84531
84532         * m4/clock_time.m4: Remove trailing blank.
84533         * m4/intmax_t.m4: Likewise.
84534
84535 2003-07-10  Jim Meyering  <jim@meyering.net>
84536
84537         * lib/vasnprintf.c: Remove trailing blanks.
84538         Make cpp indentation consistent.
84539
84540 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84541
84542         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84543         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84544         Switch from LGPL to GPL.
84545
84546 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84547
84548         * config/srclist.txt: Sort sublists.  Add
84549         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84550         that differ from gnulib for one reason or another; we'd like this list
84551         to be smaller but for now let's document what we have.
84552
84553 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84554
84555         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84556         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84557         and sweeter "eval x=$x".
84558         * config/srclist.txt: Get lib/argp* from glibc.
84559
84560 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84561
84562         * lib/mktime.c: Fix some boundary cases and remove need for floating
84563         point.
84564
84565         Issue a compile-time diagnostic if time_t is floating point, or if
84566         two's complement arithmetic is not in effect, or if arithmetic
84567         right shift does not propagate the sign.  These assumptions were
84568         all in the original code but they weren't checked.
84569
84570         (TIME_T_MIDPOINT, verify): New macros.
84571         (__isleap): Remove; it has integer overflow problems.
84572         (leapyear): New function, without those problems.
84573         (ydhms_tm_diff): Remove; splitting into two parts.
84574         (ydhms_diff): New function, containing the arithmetic part of
84575         the old ydhms_tm_diff function.  Issue a compile-time
84576         diagnostic if we are not using C99 integer division.
84577         Avoid casts when possible.
84578         (guess_time_tm): New function, containing the checking part of
84579         the old ydhms_tm_diff function.  Return the new value, rather than
84580         the difference between it and the old.  Accept a new argument T
84581         so that *T specifies the old value.  Check for overflow in the result.
84582
84583         (__mktime_internal): Use a time_t offset, not a long int offset.
84584         This undoes the 2003-06-04 change, which is no longer needed now
84585         that we have better overflow checking.
84586         (localtime_offset): Likewise.
84587
84588         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84589         and long are 64-bit but int is only 32-bit.
84590         (ydhms_diff): Use long int to store year1 and yday1.
84591         Issue a compile-time diagnostic if long int is not wide enough.
84592
84593         (__mktime_internal): Use long int to store adjusted year and yday.
84594         Use plain C rather than preprocessor commands, if that doesn't
84595         affect efficiency.
84596         Check for overflow (and try to repair) after each probe
84597         rather than checking only at the very end.  This avoids some bugs
84598         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84599         does not equal GMT offset at maximum time).
84600         Use integer to check for overflow rather than floating point; this
84601         is more portable to non-IEEE hosts, and is a tad faster.
84602         When we detect that we are oscillating between two values,
84603         don't check whether tm_isdst has the requested value, since
84604         we already know the answer.  When tm_isdst has the wrong value,
84605         use a different heuristic to find the right one, based on the
84606         extreme values actually observed in practice in tz2003a,
84607         rather than the (overly optimistic) "previous 3 calendar quarters".
84608
84609         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84610         "T const" to accommodate glibc style.
84611         (check_result): Use less-confusing report format.  "long" -> "long int.
84612         (main): Likewise.
84613         Don't loop if the iteration overflows time_t.
84614         Allow a negative step in the iteration.
84615
84616 2003-07-06  Karl Berry  <karl@gnu.org>
84617
84618         * config/depcomp: update from automake.
84619         * config/config.sub: update from prep.
84620
84621 2003-07-03  Karl Berry  <karl@gnu.org>
84622
84623         * config/config.guess: update from prep.
84624
84625 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84626
84627         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84628         xreadlink.c now includes it unconditionally.
84629
84630 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84631
84632         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84633         having it depend on HAVE_SYS_TYPES_H.
84634
84635 2003-07-01  Bruno Haible  <bruno@clisp.org>
84636
84637         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84638         <sys/types.h> should be sufficient.
84639         Reported by Paul Eggert.
84640
84641 2003-06-26  Karl Berry  <karl@gnu.org>
84642
84643         * config/depcomp: update from automake.
84644
84645 2003-06-26  Bruno Haible  <bruno@clisp.org>
84646
84647         * modules/human: Depend on module stdbool.
84648
84649 2003-06-25  Bruno Haible  <bruno@clisp.org>
84650
84651         * modules/readlink: New file.
84652         * modules/xreadlink: Depend on it.
84653         * MODULES.html.sh (func_all_modules): Add readlink.
84654
84655 2003-06-25  Bruno Haible  <bruno@clisp.org>
84656
84657         * m4/readlink.m4: New file.
84658
84659 2003-06-25  Bruno Haible  <bruno@clisp.org>
84660
84661         * lib/readlink.c: New file.
84662
84663 2003-06-22  Karl Berry  <karl@gnu.org>
84664
84665         * config/srclist.txt: update mkinstalldirs from automake.
84666         * config/mkinstalldirs: update.
84667
84668 2003-06-22  Bruno Haible  <bruno@clisp.org>
84669
84670         Portability to mingw32.
84671         * m4/ssize_t.m4: New file, from GNU gettext.
84672         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84673         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84674
84675 2003-06-22  Bruno Haible  <bruno@clisp.org>
84676
84677         * modules/safe-read: Add m4/ssize_t.m4.
84678         * modules/xreadlink: Add m4/ssize_t.m4.
84679
84680 2003-06-20  Bruno Haible  <bruno@clisp.org>
84681
84682         Assume C89, so PARAMS isn't needed.
84683         * lib/unicodeio.h (PARAMS): Remove.
84684         * lib/unicodeio.c: Don't use PARAMS.
84685
84686 2003-06-18  Karl Berry  <karl@gnu.org>
84687
84688         * config/config.{guess,sub}: update from prep.
84689
84690 2003-06-18  Jim Meyering  <jim@meyering.net>
84691
84692         Merge changes from coreutils.
84693         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84694         Remove explicit declarations of xmalloc and realloc.
84695         Include xalloc.h.
84696         (read_utmp): Remove anachronistic cast of xmalloc.
84697
84698 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84699
84700         Assume C89, so PARAMS isn't needed.
84701         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84702         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84703         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84704         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84705         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84706         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84707         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84708         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84709         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84710         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84711         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84712         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84713         no longer needed. Anyway, config.h should always be included before any
84714         other file.
84715
84716 2003-06-11  Simon Josefsson  <jas@extundo.com>
84717
84718         * modules/sysexits: New file.
84719         * MODULES.html.sh (func_all_modules): Add sysexits.
84720
84721 2003-06-11  Simon Josefsson  <jas@extundo.com>
84722
84723         * lib/sysexit_.h: New file.
84724
84725 2003-06-11  Derek Price  <derek@ximbiot.com>
84726
84727         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84728         necessary.
84729
84730 2003-06-11  Bruno Haible  <bruno@clisp.org>
84731
84732         * m4/sysexits.m4: New file.
84733
84734 2003-06-10  Simon Josefsson  <jas@extundo.com>
84735
84736         * lib/argp.h: New file, from glibc.
84737         * lib/argp-ba.c: New file, from glibc.
84738         * lib/argp-eexst.c: New file, from glibc.
84739         * lib/argp-fmtstream.c: New file, from glibc.
84740         * lib/argp-fmtstream.h: New file, from glibc.
84741         * lib/argp-fs-xinl.c: New file, from glibc.
84742         * lib/argp-help.c: New file, from glibc.
84743         * lib/argp-namefrob.h: New file, from glibc.
84744         * lib/argp-parse.c: New file, from glibc.
84745         * lib/argp-pv.c: New file, from glibc.
84746         * lib/argp-pvh.c: New file, from glibc.
84747         * lib/argp-xinl.c: New file, from glibc.
84748
84749 2003-06-10  Simon Josefsson  <jas@extundo.com>
84750
84751         * modules/strchrnul: New file.
84752
84753 2003-06-10  Simon Josefsson  <jas@extundo.com>
84754
84755         * modules/argp: New file.
84756
84757 2003-06-10  Simon Josefsson  <jas@extundo.com>
84758
84759         * m4/strchrnul.m4: New file.
84760
84761 2003-06-10  Simon Josefsson  <jas@extundo.com>
84762
84763         * lib/strchrnul.h: New file.
84764         * lib/strchrnul.c: New file.
84765
84766 2003-06-10  Bruno Haible  <bruno@clisp.org>
84767
84768         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84769
84770 2003-06-07  Karl Berry  <karl@gnu.org>
84771
84772         * config/config.{guess,sub}: update from prep.
84773
84774 2003-06-07  Jim Meyering  <jim@meyering.net>
84775
84776         * modules/strtod: Use $(...) notation, not @...@ for
84777         AC_REPLACE'd variables.
84778         * modules/localcharset: Likewise.
84779
84780 2003-06-07  Jim Meyering  <jim@meyering.net>
84781
84782         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84783         in place of my name in the copyright comment.
84784         Remove definition and uses of __P.
84785
84786         From coreutils.
84787         * lib/stat.c: Don't declare xmalloc explicitly.
84788         Instead, include "xalloc.h".
84789         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84790         xrealloc, and xcalloc return values.
84791         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84792         Improve comment.
84793         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84794
84795 2003-06-07  Bruno Haible  <bruno@clisp.org>
84796
84797         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84798         avoid AC_CONFIG_LINKS.
84799         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84800         fnmatch.h, to avoid AC_CONFIG_LINKS.
84801         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84802
84803 2003-06-07  Bruno Haible  <bruno@clisp.org>
84804
84805         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84806         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84807         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84808         directory.
84809         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84810         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84811         directory.
84812
84813 2003-06-06  Jim Meyering  <jim@meyering.net>
84814
84815         Merge from coreutils.
84816         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84817         Consolidate declarations and initializations of *_base* locals.
84818
84819         Merge from coreutils.
84820         This avoids a core dump on systems without GNU putenv,
84821         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84822         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84823         (unsetenv): New static function, from GNU libc.
84824         (rpl_putenv): Use it.
84825
84826         * lib/modechange.c: Remove trailing blanks.
84827
84828         Merge from coreutils.
84829         * lib/fsusage.c: Remove declaration of statfs.
84830         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84831
84832         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84833
84834 2003-06-06  Jim Meyering  <jim@meyering.net>
84835
84836         * lib/stdbool_.h: Renamed from stdbool.h.in.
84837
84838 2003-06-06  Jim Meyering  <jim@meyering.net>
84839             Bruno Haible  <bruno@clisp.org>
84840
84841         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84842         Adjust Makefile.am snippet not to redirect directly to target.
84843         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84844
84845 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84846
84847         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84848         mismatch, look in future quarters as well as past.  This fixes a
84849         bug when processing fall-backwards gaps immediately after a long
84850         period of daylight-saving time.
84851
84852         * lib/mktime.c: Assume freestanding C89 or better.
84853         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84854         (__P): Remove; not used.
84855         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84856         (mktime, not_equal_tm, print_tm, check_result,
84857         main): Use prototypes.  Use const * where appropriate.
84858         (main): Fix typo in testing code that uncovered by above changes.
84859         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84860
84861 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84862
84863         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84864         locale.h, localeconv.  This merges changes from coreutils.
84865
84866         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84867         It can be removed after the next Autoconf is released.
84868         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84869         needed.
84870
84871 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84872
84873         * lib/mktime.c: Fix Debian bug 177940
84874         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84875         (localtime_offset): Now long int, not time_t, because we want it
84876         to be guaranteed to be signed.  All uses changed.
84877         (__mktime_internal): If overflow would occur when adding offset,
84878         don't add it.
84879
84880         Merge 'human' changes from coreutils.  Rewrite to support
84881         locale-specific notations like thousands separators.
84882         * lib/human.c: Simplify authorship notice.
84883         Include human.h immediately after config.h.
84884         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84885         <limits.h>: Do not include, since human.h does.
84886         (SIZE_MAX, UINTMAX_MAX): New macros.
84887         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84888         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84889         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84890         (power_letter): Renamed from suffixes.
84891         (generate_suffix_backwards): Remove.
84892         (adjust_value): Now takes int style (because of human.h changes)
84893         and long double value (for greater precision on some platforms).
84894         (group_number): New function.
84895         (human_readable): Use it.  Use integer options, not enum.
84896         Put the options before the sizes in the arg list.
84897         Support all the new options.
84898         The old human_readable function has been removed;
84899         use inttostr.h instead.
84900         (human_readable, default_block_size, humblock):
84901         Use uintmax_t, not int, for block sizes.
84902         (human_readable_inexact, block_size_types): Remove.
84903         (block_size_opts): New constant.
84904         (human_options): Renamed from human_block_size, with new signature
84905         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84906         * lib/human.h: Add copyright and authorship notice.
84907         Include <limits.h> and <stdbool.h> unconditionally.
84908         (PARAMS): Remove.  All uses removed.
84909         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84910         (enum human_inexact_style): Remove tag; now a nameless enum.
84911         (human_floor, human_ceiling, human_round_to_even): Now have
84912         values 2, 0, 1 rather than -1, 1, 0.
84913         (human_group_digits, human_suppress_point_zero, human_autoscale,
84914         human_base_1024, human_SI, human_B): New constants.
84915         (human_readable_inexact, human_block_size): Remove.
84916         (human_readable): Size args are now uintmax_t, not int.
84917         (human_options): New decl.
84918
84919         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84920         unnecessary now that we assume C89 or better.  This change
84921         imported from coreutils.
84922
84923         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84924         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84925         in the 2003-05-30 sync from glibc.
84926
84927         .h files should stand alone, but we shouldn't include <sys/types.h>
84928         if we can get away with just <stddef.h>.
84929
84930         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84931         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84932         rather than <sys/types.h>, as we merely need size_t.
84933         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84934         to get size_t.
84935         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84936         Include <stdio.h>, to get FILE.
84937         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84938         memcasecmp.h has included <stddef.h> and all we need is size_t.
84939         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84940         our interface, instead of including <sys/types.h>
84941
84942 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84943
84944         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84945         now, as glibc mktime is buggy on non-glibc systems.
84946
84947 2003-06-03  Karl Berry  <karl@gnu.org>
84948
84949         * config/config.sub: update from prep.
84950
84951 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84952
84953         [from coreutils]
84954         Fix some minor time-related bugs with POSIX time arguments.
84955         Some valid time stamps were being rejected (notably -1, and
84956         time stamps before 1900 on 64-bit hosts).  And some invalid
84957         time stamps were being accepted, e.g. September 31.
84958
84959         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84960         that we can return (time_t) -1 successfully.
84961         * lib/posixtm.c: Likewise.
84962         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84963         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84964         (t): Remove static var.
84965         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84966         of static var.  All uses changed.
84967         (year): Do not reject years before 1900; they can occur with
84968         64-bit time_t.
84969         (posix_time_parse): Do not check for out-of-range components;
84970         that is now the caller's responsibility, since our checks were
84971         only approximations.
84972         (posixtime): Use mktime to check for out-of-range components,
84973         since it knows them exactly.
84974         If mktime returns (time_t) -1, check whether an error actually occurred
84975         by invoking localtime on -1.
84976         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84977         posixtime failures better.
84978         Improve the test data (in comments only).
84979
84980 2003-06-02  Karl Berry  <karl@gnu.org>
84981
84982         * config/mkinstalldirs (version): new variable.
84983         (--version): new option.
84984         (usage): improve message.
84985
84986 2003-05-30  Karl Berry  <karl@gnu.org>
84987
84988         * lib/mktime.c: update from libc.
84989
84990 2003-05-30  Bruno Haible  <bruno@clisp.org>
84991
84992         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84993         * config/config.rpath: Upgrade to gettext-0.12.1.
84994
84995 2003-05-30  Bruno Haible  <bruno@clisp.org>
84996
84997         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84998         * m4/nls.m4: New file, from gettext-0.12.1.
84999         * m4/po.m4: New file, from gettext-0.12.1.
85000         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85001
85002 2003-05-30  Bruno Haible  <bruno@clisp.org>
85003
85004         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85005         * lib/localcharset.h: Likewise.
85006         * lib/localcharset.c: Likewise.
85007
85008 2003-05-29  Karl Berry  <karl@gnu.org>
85009
85010         * config/config.rpath: update from gettext.
85011
85012 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85013
85014         Assume the headers required for C89 freestanding compilers.
85015         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85016         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85017         * m4/human.m4 (gl_HUMAN): Likewise.
85018         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85019         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85020         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85021         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85022         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85023         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85024
85025 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85026
85027         Assume the headers required for C89 freestanding compilers.
85028         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85029         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85030         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85031         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85032         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85033         define, since <limits.h> is guaranteed to do that.
85034         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85035         * lib/exclude.c: Include <stdbool.h> unconditionally.
85036         * lib/tempname.c: Include <stddef.h> unconditionally.
85037         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85038         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85039         <stddef.h> does that.
85040         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85041         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85042         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85043         needed.
85044         * lib/xstrtol.c: Likewise.
85045         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85046         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85047
85048         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85049         warnings on some platforms.
85050
85051         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85052         arbitrarily.
85053
85054 2003-05-26  Jim Meyering  <jim@meyering.net>
85055
85056         Merge in a change from coreutils:
85057         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85058         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85059         that condition, rather than `-1' which is slightly misleading.
85060         Change the name of the cache variable to have the gl_ prefix.
85061         Prompted by a patch from Richard Dawe for DJGPP.
85062
85063 2003-05-24  Karl Berry  <karl@gnu.org>
85064
85065         * config/config.guess: update from prep.
85066
85067 2003-05-22  Karl Berry  <karl@gnu.org>
85068
85069         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85070
85071 2003-05-20  Karl Berry  <karl@gnu.org>
85072
85073         * config/config.guess: update from prep.
85074
85075 2003-05-18  Karl Berry  <karl@gnu.org>
85076
85077         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85078         might actually be set by the user.
85079
85080         * config/depcomp, install-sh, mdate-sh: update from automake.
85081
85082 2003-05-17  Bruno Haible  <bruno@clisp.org>
85083
85084         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85085         invalid expansion for AC_EGREP_CPP.
85086         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85087         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85088         Suggested by Akim Demaille <akim@epita.fr> in
85089         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85090
85091 2003-05-12  Jim Meyering  <jim@meyering.net>
85092
85093         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85094         the space-padded-by-default conversion specifiers, %e, %k, %l.
85095
85096 2003-05-12  Bruno Haible  <bruno@clisp.org>
85097
85098         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85099         the string is longer than 4 KB.
85100
85101 2003-05-11  Karl Berry  <karl@gnu.org>
85102
85103         * config/config.{guess,sub}: update from prep.
85104
85105 2003-05-09  Bruno Haible  <bruno@clisp.org>
85106
85107         * modules/error: Add m4/strerror_r.m4 to file list.
85108
85109 2003-05-03  Bruno Haible  <bruno@clisp.org>
85110
85111         Upgrade to Unicode-4.0.
85112         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85113         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85114         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85115         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85116         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85117         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85118         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85119         Change width of U+E0100..U+E01EF from 1 to 0.
85120
85121 2003-04-25  Jim Meyering  <jim@meyering.net>
85122
85123         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85124         of type size_t, not int.
85125
85126 2003-04-25  Bruno Haible  <bruno@clisp.org>
85127
85128         * lib/copy-file.c: Include <stddef.h>, for size_t.
85129
85130 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85131
85132         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85133         code which expansion is under static control.  Patch imported from
85134         Akim Demaille's patch to Bison; see
85135         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85136
85137 2003-04-14  Bruno Haible  <bruno@clisp.org>
85138
85139         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85140
85141 2003-04-11  Jim Meyering  <jim@meyering.net>
85142
85143         Merge changes from Coreutils.
85144
85145         2003-03-22  Jim Meyering  <jim@meyering.net>
85146
85147         * lib/strftime.c (widen): Cast alloca return value to proper type.
85148
85149         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85150
85151         From GNU libc.
85152         * lib/strftime.c (my_strftime): Handle very large width
85153         specifications for numeric values correctly.  Improve checks for
85154         overflow.
85155
85156         2003-01-19  Jim Meyering  <jim@meyering.net>
85157
85158         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85159         definitions.
85160         (nl_get_alt_digit) [! defined my_strftime]: Define.
85161         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85162         _nl_get_alt_digit and _nl_get_walt_digit.
85163
85164         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85165         libc. These changes have no effect outside of _LIBC.
85166
85167 2003-04-10  Bruno Haible  <bruno@clisp.org>
85168
85169         * modules/findprog: New file.
85170         * MODULES.html.sh (func_all_modules): Add it.
85171
85172 2003-04-10  Bruno Haible  <bruno@clisp.org>
85173
85174         * m4/findprog.m4: New file.
85175         * m4/eaccess.m4: New file.
85176
85177 2003-04-10  Bruno Haible  <bruno@clisp.org>
85178
85179         * lib/findprog.h: New file, from GNU gettext.
85180         * lib/findprog.c: New file, from GNU gettext.
85181
85182 2003-04-05  Jim Meyering  <jim@meyering.net>
85183
85184         Merge changes from Coreutils.
85185
85186         * lib/exclude.h (PARAMS): Remove definition and uses.
85187         * lib/exclude.c: Remove uses of `PARAMS'.
85188
85189         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85190         Add test-cases for DOS filenames. Declare program_name.
85191         (main): Set up program_name.  Patch by Rich Dawe.
85192
85193         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85194         error from mntctl.
85195         Use mntctl's return value to drive the entry-processing loop, since
85196         we can't rely on the value of the vmt_length member in the last
85197         entry.  On some systems doing so could result in exhausting
85198         virtual memory.  Based in part on a patch from Mike Jetzer.
85199
85200 2003-04-04  Bruno Haible  <bruno@clisp.org>
85201
85202         * modules/linebreak: New file.
85203         * MODULES.html.sh (func_all_modules): Add it.
85204
85205 2003-04-04  Bruno Haible  <bruno@clisp.org>
85206
85207         * m4/linebreak.m4: New file.
85208
85209 2003-04-04  Bruno Haible  <bruno@clisp.org>
85210
85211         * lib/linebreak.h: New file, from GNU gettext.
85212         * lib/linebreak.c: New file, from GNU gettext with slight
85213         modifications.
85214         * lib/lbrkprop.h: New file, from GNU gettext.
85215
85216 2003-04-03  Bruno Haible  <bruno@clisp.org>
85217
85218         * modules/utf8-ucs4: New file.
85219         * modules/utf16-ucs4: New file.
85220         * modules/ucs4-utf8: New file.
85221         * modules/ucs4-utf16: New file.
85222         * MODULES.html.sh (func_all_modules): Add them.
85223
85224 2003-04-03  Bruno Haible  <bruno@clisp.org>
85225
85226         * m4/utf-ucs4.m4: New file.
85227         * m4/ucs4-utf.m4: New file.
85228
85229 2003-04-03  Bruno Haible  <bruno@clisp.org>
85230
85231         * lib/utf8-ucs4.h: New file, from GNU gettext.
85232         * lib/utf16-ucs4.h: New file, from GNU gettext.
85233         * lib/ucs4-utf8.h: New file, from GNU gettext.
85234         * lib/ucs4-utf16.h: New file, from GNU gettext.
85235
85236 2003-04-02  Bruno Haible  <bruno@clisp.org>
85237
85238         * modules/binary-io: New file.
85239         * MODULES.html.sh (func_all_modules): Add it.
85240
85241 2003-04-02  Bruno Haible  <bruno@clisp.org>
85242
85243         * lib/binary-io.h: New file, from GNU gettext.
85244
85245 2003-04-01  Bruno Haible  <bruno@clisp.org>
85246
85247         * modules/pathname: New file.
85248         * MODULES.html.sh (func_all_modules): Add it.
85249
85250 2003-04-01  Bruno Haible  <bruno@clisp.org>
85251
85252         * lib/pathname.h: New file, from GNU gettext.
85253         * lib/concatpath.c: New file, from GNU gettext.
85254
85255 2003-03-30  Bruno Haible  <bruno@clisp.org>
85256
85257         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85258
85259 2003-03-30  Bruno Haible  <bruno@clisp.org>
85260
85261         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85262         function chown() doesn't exist.
85263
85264 2003-03-28  Bruno Haible  <bruno@clisp.org>
85265
85266         * modules/copy-file: New file.
85267         * MODULES.html.sh (func_all_modules): Add it.
85268
85269 2003-03-28  Bruno Haible  <bruno@clisp.org>
85270
85271         * m4/copy-file.m4: New file.
85272
85273 2003-03-28  Bruno Haible  <bruno@clisp.org>
85274
85275         * lib/copy-file.h: New file, from GNU gettext.
85276         * lib/copy-file.c: New file, from GNU gettext.
85277
85278 2003-03-18  Jim Meyering  <jim@meyering.net>
85279
85280         * lib/quote.c (quote_n): Fix typo in comment.
85281
85282 2003-03-18  Bruno Haible  <bruno@clisp.org>
85283
85284         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85285         checking.
85286         * m4/onceonly_2_57.m4: Likewise.
85287
85288 2003-03-17  Bruno Haible  <bruno@clisp.org>
85289
85290         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85291         (m4_quote): Remove macro.
85292         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85293
85294 2003-03-14  Jim Meyering  <jim@meyering.net>
85295
85296         Merge changes from Coreutils.
85297         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85298         to be const, in order to avoid warnings.
85299         (obstack_room): Likewise.
85300         (obstack_empty_p): Likewise.
85301
85302 2003-03-14  Bruno Haible  <bruno@clisp.org>
85303
85304         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85305         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85306
85307 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85308
85309         Merge changes from Bison.
85310         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85311         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85312         when compiling Bison 1.875's `bitset bset = obstack_alloc
85313         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85314         * lib/hash.c: Include <stdbool.h> unconditionally.
85315
85316 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85317
85318         * m4/onceonly.m4 (m4_quote): New macro.
85319         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85320         Quote AC_FOREACH variable-expansions properly.
85321
85322 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85323
85324         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85325
85326 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85327
85328         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85329         Reported by Bruce Becker; see:
85330         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85331
85332 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85333             Bruno Haible  <bruno@clisp.org>
85334
85335         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85336         Reported by John Hughes, see
85337         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85338
85339 2003-02-20  Bruno Haible  <bruno@clisp.org>
85340
85341         * MODULES.html.sh (func_all_modules): Add poll.
85342
85343 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85344
85345         * modules/poll: New file.
85346
85347 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85348
85349         * lib/poll_.h: New file.
85350         * lib/poll.c: New file.
85351
85352 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85353
85354         * m4/poll.m4: New file.
85355
85356 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85357
85358         * modules/mathl: New file.
85359
85360 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85361
85362         * lib/mathl.h: New file.
85363         * lib/acosl.c: New file.
85364         * lib/asinl.c: New file.
85365         * lib/atanl.c: New file.
85366         * lib/ceill.c: New file.
85367         * lib/cosl.c: New file.
85368         * lib/expl.c: New file.
85369         * lib/floorl.c: New file.
85370         * lib/frexpl.c: New file.
85371         * lib/ldexpl.c: New file.
85372         * lib/logl.c: New file.
85373         * lib/sincosl.c: New file.
85374         * lib/sinl.c: New file.
85375         * lib/sqrtl.c: New file.
85376         * lib/tanl.c: New file.
85377         * lib/trigl.c: New file.
85378         * lib/trigl.h: New file.
85379
85380 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85381
85382         * m4/mathl.m4: New file.
85383
85384 2003-02-18  Bruno Haible  <bruno@clisp.org>
85385
85386         * MODULES.html.sh (func_all_modules): Add mathl.
85387
85388 2003-02-17  Bruno Haible  <bruno@clisp.org>
85389
85390         * modules/mkdtemp: New module.
85391         * MODULES.html.sh (func_all_modules): Add it.
85392
85393 2003-02-17  Bruno Haible  <bruno@clisp.org>
85394
85395         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85396
85397 2003-02-17  Bruno Haible  <bruno@clisp.org>
85398
85399         * lib/mkdtemp.h: New file, from GNU gettext.
85400         * lib/mkdtemp.c: New file, from GNU gettext.
85401
85402 2003-02-02  Jim Meyering  <jim@meyering.net>
85403
85404         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85405         e.g. glibc-2.2.93.
85406
85407 2003-01-31  Bruno Haible  <bruno@clisp.org>
85408
85409         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85410         'rpl_rename'.
85411         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85412         'rpl_strnlen'.
85413         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85414         'rpl_strtod'.
85415         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85416         'rpl_utime'.
85417
85418 2003-01-31  Bruno Haible  <bruno@clisp.org>
85419
85420         * lib/rename.c: #undef rename before defining rpl_rename.
85421         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85422
85423 2003-01-30  Bruno Haible  <bruno@clisp.org>
85424
85425         * modules/vasnprintf, modules/vasprintf: New modules.
85426         * MODULES.html.sh (func_all_modules): Add them.
85427
85428 2003-01-30  Bruno Haible  <bruno@clisp.org>
85429
85430         * m4/signed.m4: New file, from GNU gettext.
85431         * m4/longdouble.m4: New file, from GNU gettext.
85432         * m4/wchar_t.m4: New file, from GNU gettext.
85433         * m4/wint_t.m4: New file, from GNU gettext.
85434         * m4/vasnprintf.m4: New file.
85435         * m4/vasprintf.m4: New file.
85436
85437 2003-01-30  Bruno Haible  <bruno@clisp.org>
85438
85439         * lib/printf-args.h: New file, from GNU gettext.
85440         * lib/printf-args.c: New file, from GNU gettext.
85441         * lib/printf-parse.h: New file, from GNU gettext.
85442         * lib/printf-parse.c: New file, from GNU gettext.
85443         * lib/vasnprintf.h: New file, from GNU gettext.
85444         * lib/vasnprintf.c: New file, from GNU gettext.
85445         * lib/asnprintf.c: New file, from GNU gettext.
85446         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85447         * lib/vasprintf.c: New file, from GNU gettext.
85448         * lib/asprintf.c: New file, from GNU gettext.
85449
85450 2003-01-29  Bruno Haible  <bruno@clisp.org>
85451
85452         * modules/stpncpy: New module.
85453         * MODULES.html.sh (func_all_modules): Add it.
85454
85455 2003-01-29  Bruno Haible  <bruno@clisp.org>
85456
85457         * m4/stpncpy.m4: New file.
85458
85459 2003-01-29  Bruno Haible  <bruno@clisp.org>
85460
85461         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85462         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85463
85464 2003-01-28  Bruno Haible  <bruno@clisp.org>
85465
85466         * modules/c-ctype: New module.
85467         * MODULES.html.sh (func_all_modules): Add it.
85468
85469 2003-01-28  Bruno Haible  <bruno@clisp.org>
85470
85471         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85472         Paul Eggert.
85473         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85474         Paul Eggert.
85475
85476 2003-01-27  Bruno Haible  <bruno@clisp.org>
85477
85478         * modules/xsetenv: New module.
85479         * MODULES.html.sh (func_all_modules): Add it.
85480
85481 2003-01-27  Bruno Haible  <bruno@clisp.org>
85482
85483         * lib/xsetenv.h: New file, from GNU gettext.
85484         * lib/xsetenv.c: New file, from GNU gettext.
85485
85486 2003-01-23  Jim Meyering  <jim@meyering.net>
85487
85488         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85489         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85490
85491 2003-01-23  Bruno Haible  <bruno@clisp.org>
85492
85493         * modules/minmax: New module.
85494         * MODULES.html.sh (func_all_modules): Add it.
85495
85496 2003-01-23  Bruno Haible  <bruno@clisp.org>
85497
85498         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85499         Eggert.
85500
85501 2003-01-22  Bruno Haible  <bruno@clisp.org>
85502
85503         * modules/exit: New module.
85504         * MODULES.html.sh (func_all_modules): Add it.
85505
85506 2003-01-22  Bruno Haible  <bruno@clisp.org>
85507
85508         * lib/exit.h: New file, from GNU gettext.
85509
85510 2003-01-19  Bruno Haible  <bruno@clisp.org>
85511
85512         * gnulib-tool: Recognize option --extract-maintainer.
85513         (func_get_maintainer): New function.
85514         * modules/*: Add Maintainer entry.
85515
85516 2003-01-16  Jim Meyering  <jim@meyering.net>
85517
85518         * m4/regex.m4: The `regex' struct is both input and output.
85519         Initialize it before each use.  Patch by Tim Waugh.
85520
85521 2003-01-16  Bruno Haible  <bruno@clisp.org>
85522
85523         * MODULES.html.sh: Add a table of contents. Add the module name as
85524         leftmost column. Add hyperlinks.
85525
85526 2003-01-15  Bruno Haible  <bruno@clisp.org>
85527
85528         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85529
85530 2003-01-15  Bruno Haible  <bruno@clisp.org>
85531
85532         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85533         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85534         suffix.
85535
85536 2003-01-15  Bruno Haible  <bruno@clisp.org>
85537
85538         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85539
85540 2003-01-15  Bruno Haible  <bruno@clisp.org>
85541
85542         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85543         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85544
85545 2003-01-14  Jim Meyering  <jim@meyering.net>
85546
85547         * lib/same.c (same_name): Tweak a comment.
85548
85549 2003-01-14  Bruno Haible  <bruno@clisp.org>
85550
85551         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85552         when a string comparison is sufficient.
85553
85554 2003-01-14  Bruno Haible  <bruno@clisp.org>
85555
85556         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85557         'unsigned int'.
85558
85559 2003-01-14  Bruno Haible  <bruno@clisp.org>
85560
85561         * lib/hash-pjw.c: Add comment about low quality of this function.
85562
85563 2003-01-13  Bruno Haible  <bruno@clisp.org>
85564
85565         * modules/stpcpy: Distribute lib/stpcpy.h.
85566         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85567
85568 2003-01-13  Bruno Haible  <bruno@clisp.org>
85569
85570         * modules/*: Add a description.
85571         * modules/strpbrk: Fix Makefile.am snippet.
85572         * modules/strtoimax: Fix dependencies.
85573         * modules/strtoumax: Likewise.
85574
85575 2003-01-13  Bruno Haible  <bruno@clisp.org>
85576
85577         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85578         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85579         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85580
85581 2003-01-13  Bruno Haible  <bruno@clisp.org>
85582
85583         * gnulib-tool (func_create_testdir): Store config/* files in the main
85584         directory.
85585         * config.rpath: Move to ...
85586         * config/config.rpath: ... here.
85587         * modules/gettext: Contains config/config.rpath, not config.rpath.
85588         * modules/iconv: Likewise.
85589
85590 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85591
85592         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85593         to avoid collisions with libcurses and libreadline.
85594
85595         * m4/getstr.m4: Remove.
85596         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85597
85598 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85599
85600         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85601         to avoid collisions with libcurses and libreadline.
85602
85603         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85604         * lib/getstr.h, getstr.c: Remove.
85605         * lib/getline.c: Include "getline.h", to check interface.
85606         Move body of old getstr.c here: this defines MIN_CHUNK and
85607         declares getdelim2, which is renamed from getstr.
85608         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85609
85610         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85611         All uses changed.
85612         * lib/linebuffer.h: Likewise.
85613         (readline): Remove backward-compatibility macro.
85614
85615 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85616
85617         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85618         to avoid collisions with libcurses and libreadline.
85619         * getstr: Remove.
85620         * MODULES.html.sh: Remove getstr.
85621         * modules/getline: Depend on unlocked-io, not getstr.
85622
85623 2003-01-12  Jim Meyering  <jim@meyering.net>
85624
85625         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85626
85627 2003-01-10  Bruno Haible  <bruno@clisp.org>
85628
85629         * modules/alloca: Change Makefile.am requirements. Simplify Include
85630         requirements. Add lib/alloca_.h to file list.
85631
85632 2003-01-10  Bruno Haible  <bruno@clisp.org>
85633
85634         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85635
85636 2003-01-10  Bruno Haible  <bruno@clisp.org>
85637
85638         * lib/alloca_.h: New file.
85639         * lib/getdate.y: Unconditionally include alloca.h.
85640         * lib/makepath.c: Likewise.
85641         * lib/setenv.c: Likewise.
85642         * lib/userspec.c: Likewise.
85643
85644 2003-01-09  Karl Berry  <karl@gnu.org>
85645
85646         * MODULES.html.sh: include `dirname $0` in PATH, to find
85647         gnulib-tool.
85648
85649 2003-01-09  Bruno Haible  <bruno@clisp.org>
85650
85651         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85652         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85653
85654 2003-01-09  Bruno Haible  <bruno@clisp.org>
85655
85656         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85657
85658 2003-01-09  Bruno Haible  <bruno@clisp.org>
85659
85660         * lib/stdbool.h.in: New file.
85661
85662 2003-01-09  Bruno Haible  <bruno@clisp.org>
85663
85664         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85665         * MODULES.html.sh: Likewise.
85666
85667 2003-01-08  Jim Meyering  <jim@meyering.net>
85668
85669         * lib/full-write.c: Undefine and define-away `const' after inclusion
85670         of errno.h, not before.  Suggestion from Bruno Haible.
85671
85672 2003-01-08  Bruno Haible  <bruno@clisp.org>
85673
85674         * modules/full-read: Depend on full-write.
85675
85676 2003-01-08  Bruno Haible  <bruno@clisp.org>
85677
85678         * lib/safe-read.c: Include specification header first, to ensure its
85679         selfcontainedness.
85680         * lib/full-write.c: Likewise.
85681
85682 2003-01-07  Jim Meyering  <jim@meyering.net>
85683
85684         * lib/full-write.c: Rework so that it may serve to define full_read,
85685         too.
85686         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85687
85688 2003-01-07  Bruno Haible  <bruno@clisp.org>
85689
85690         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85691         <inttypes.h>.
85692         * lib/xstrtol.h: Likewise.
85693         * lib/xstrtoimax.c: Likewise.
85694         * lib/xstrtoumax.c: Likewise.
85695         * lib/human.h: Likewise.
85696
85697         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85698         on systems that have <inttypes.h> but not <stdint.h>.
85699
85700 2003-01-07  Bruno Haible  <bruno@clisp.org>
85701
85702         * MODULES.html.sh: Add copyright notice.
85703         (missed_files): Omit CVS directory entries.
85704         (func_module): Make it work with sed-3.02.
85705         * MODULES.txt: Remove file.
85706
85707 2003-01-06  Jim Meyering  <jim@meyering.net>
85708
85709         * lib/version-etc.c: Update year in translatable copyright string.
85710
85711 2003-01-03  Karl Berry  <karl@gnu.org>
85712
85713         * config/config.{guess,sub}: update from prep.
85714
85715 2003-01-02  Karl Berry  <karl@gnu.org>
85716
85717         * doc/COPYING.DOC: belatedly updated to 1.2.
85718
85719 2003-01-01  Karl Berry  <karl@gnu.org>
85720
85721         * gnulib-tool (func_verify_module): report module name $module in
85722         error message, not $1.
85723         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85724         be created, only if it doesn't exist.
85725         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85726
85727 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85728
85729         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85730
85731 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85732
85733         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85734         memcmp if strcoll doesn't work.
85735
85736 2002-12-31  Bruno Haible  <bruno@clisp.org>
85737
85738         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85739         nonempty.
85740
85741 2002-12-31  Bruno Haible  <bruno@clisp.org>
85742
85743         * lib/memcoll.c (STRCOLL): New macro.
85744         (memcoll): Use it.
85745
85746 2002-12-31  Bruno Haible  <bruno@clisp.org>
85747
85748         * lib/localcharset.h: New file.
85749         * lib/localcharset.c: Include it.
85750         * lib/unicodeio.c: Likewise.
85751
85752 2002-12-31  Bruno Haible  <bruno@clisp.org>
85753
85754         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85755         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85756
85757 2002-12-31  Bruno Haible  <bruno@clisp.org>
85758
85759         * lib/getline.h: Include <stddef.h>, for size_t.
85760
85761         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85762         * lib/unicodeio.c: Don't include <stddef.h>.
85763
85764 2002-12-31  Bruno Haible  <bruno@clisp.org>
85765
85766         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85767         HAVE_TM_ZONE.
85768
85769 2002-12-24  Karl Berry  <karl@gnu.org>
85770
85771         * config/config.guess: update from prep.
85772
85773 2002-12-24  Bruno Haible  <bruno@clisp.org>
85774
85775         General infrasructure.
85776         * m4/README: Rewritten.
85777         * m4/onceonly.m4: New file.
85778         * m4/onceonly_2_57.m4: New file.
85779
85780         Module atexit.
85781         * m4/atexit.m4: New file.
85782
85783         Module strtod.
85784         * m4/strtod.m4: New file.
85785
85786         Module strtol.
85787         * m4/strtol.m4: New file.
85788
85789         Module strtoul.
85790         * m4/strtoul.m4: New file.
85791
85792         Module memchr.
85793         * m4/memchr.m4: New file.
85794
85795         Module memcmp.
85796         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85797         (jm_FUNC_MEMCMP): Invoke it.
85798
85799         Module memcpy.
85800         * m4/memcpy.m4: New file.
85801
85802         Module memmove.
85803         * m4/memmove.m4: New file.
85804
85805         Module memset.
85806         * m4/memset.m4: New file.
85807
85808         Module strcspn.
85809         * m4/strcspn.m4: New file.
85810
85811         Module strpbrk.
85812         * m4/strpbrk.m4: New file.
85813
85814         Module strstr.
85815         * m4/strstr.m4: New file.
85816
85817         Module strerror.
85818         * m4/strerror.m4: New file.
85819
85820         Module mktime.
85821         * m4/mktime.m4: Renamed from jm-mktime.m4.
85822         (gl_PREREQ_MKTIME): New macro.
85823         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85824
85825         Module malloc.
85826         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85827         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85828         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85829
85830         Module realloc.
85831         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85832         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85833         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85834
85835         Module strftime.
85836         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85837         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85838         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85839         gl_TM_GMTOFF.
85840         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85841
85842         Module xalloc.
85843         * m4/xalloc.m4: New file.
85844
85845         Module alloca.
85846         * m4/alloca.m4: New file.
85847
85848         Module putenv.
85849         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85850         (jm_FUNC_PUTENV): Invoke it.
85851
85852         Module setenv.
85853         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85854         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85855         when invoked twice.
85856         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85857         gt_FUNC_SETENV.
85858
85859         Module memrchr.
85860         * m4/memrchr.m4: New file.
85861
85862         Module stpcpy.
85863         * m4/stpcpy.m4: New file.
85864
85865         Module strcase.
85866         * m4/strcase.m4: New file.
85867
85868         Module strdup.
85869         * m4/strdup.m4: New file.
85870
85871         Module strnlen.
85872         * m4/strnlen.m4: New file.
85873
85874         Module strndup.
85875         * m4/strndup.m4: New file.
85876
85877         Module xstrtod.
85878         * m4/xstrtod.m4: New file.
85879
85880         Module xstrtol.
85881         * m4/xstrtol.m4: New file.
85882
85883         Module getdate.
85884         * m4/getdate.m4: New file.
85885
85886         Module unlocked-io.
85887         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85888         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85889         * m4/jm-glibc-io.m4n: Remove file.
85890
85891         Module long-options.
85892         * m4/long-options.m4: New file.
85893
85894         Module md5.
85895         * m4/md5.m4: New file.
85896
85897         Module sha.
85898         * m4/sha.m4: New file.
85899
85900         Module getstr.
85901         * m4/getstr.m4: New file.
85902
85903         Module getline.
85904         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85905         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85906         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85907         simply getline. Infoke gl_PREREQ_GETLINE.
85908
85909         Module obstack.
85910         * m4/obstack.m4: New file.
85911
85912         Module hash.
85913         * m4/hash.m4: New file.
85914
85915         Module readtokens.
85916         * m4/readtokens.m4: New file.
85917
85918         Module strverscmp.
85919         * m4/strverscmp.m4: New file.
85920
85921         Module stdbool.
85922         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85923         OSF/1.
85924
85925         Module strtoll.
85926         * m4/strtoll.m4: New file.
85927
85928         Module strtoull.
85929         * m4/strtoull.m4: New file.
85930
85931         Module strtoimax.
85932         * m4/strtoimax.m4: New file.
85933
85934         Module strtoumax.
85935         * m4/strtoumax.m4: New file.
85936
85937         Module xstrtoimax.
85938         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85939         jm_AC_PREREQ_XSTRTOIMAX.
85940         Moved the strtol prerequisites to strtol.m4.
85941         Moved the strtoll prerequisites to strtoll.m4.
85942         Moved the strtoimax prerequisites to strtoimax.m4.
85943
85944         Module xstrtoumax.
85945         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85946         jm_AC_PREREQ_XSTRTOUMAX.
85947         Moved the strtoul prerequisites to strtoul.m4.
85948         Moved the strtoull prerequisites to strtoull.m4.
85949         Moved the strtoumax prerequisites to strtoumax.m4.
85950
85951         Module chown.
85952         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85953         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85954
85955         Module dup2.
85956         * m4/dup2.m4: New file.
85957
85958         Module ftruncate.
85959         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85960         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85961
85962         Module getgroups.
85963         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85964         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85965
85966         Module gettimeofday.
85967         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85968         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85969         gl_PREREQ_GETTIMEOFDAY.
85970
85971         Module mkdir.
85972         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85973         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85974
85975         Module mkstemp.
85976         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85977         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85978         jm_AC_TYPE_UINTMAX_T.
85979         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85980
85981         Module stat.
85982         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85983         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85984
85985         Module lstat.
85986         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85987         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85988
85989         Module timespec.
85990         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85991         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85992         * m4/st_mtim.m4: Indentation.
85993
85994         Module nanosleep.
85995         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85996         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85997         gl_PREREQ_NANOSLEEP.
85998
85999         Module regex.
86000         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86001         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86002         (gl_REGEX): New macro.
86003
86004         Module rename.
86005         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86006         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86007
86008         Module rmdir.
86009         * m4/rmdir.m4: New file.
86010
86011         Module utime.
86012         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86013         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86014         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86015
86016         Module dirname.
86017         * m4/dirname.m4: New file.
86018
86019         Module getopt.
86020         * m4/getopt.m4: New file.
86021
86022         Module unistd-safer.
86023         * m4/unistd-safer.m4: New file.
86024
86025         Module fnmatch.
86026         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86027         declaration.
86028         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86029         (gl_FUNC_FNMATCH_POSIX): New macro.
86030         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86031         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86032         simply fnmatch.
86033
86034         Module exclude.
86035         * m4/exclude.m4: New file.
86036
86037         Module human.
86038         * m4/human.m4: New file.
86039
86040         Module acl.
86041         * m4/acl.m4: Nop.
86042
86043         Module backupfile.
86044         * m4/backupfile.m4: New file.
86045         * m4/d-ino.m4: Indentation.
86046
86047         Module fsusage.
86048         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86049         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86050         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86051
86052         Module dirfd.
86053         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86054         requirements.
86055
86056         Module euidaccess.
86057         * m4/euidaccess.m4: New file.
86058
86059         Module file-type.
86060         * m4/file-type.m4: New file.
86061
86062         Module fileblocks.
86063         * m4/fileblocks.m4: New file.
86064
86065         Module filemode.
86066         * m4/filemode.m4: New file.
86067
86068         Module isdir.
86069         * m4/isdir.m4: New file.
86070
86071         Module lchown.
86072         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86073         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86074
86075         Module makepath.
86076         * m4/makepath.m4: New file.
86077
86078         Module modechange.
86079         * m4/modechange.m4: New file.
86080
86081         Module mountlist.
86082         * m4/mountlist.m4: New file.
86083         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86084         Indentation.
86085
86086         Module path-concat.
86087         * m4/path-concat.m4: New file.
86088
86089         Module pathmax.
86090         * m4/pathmax.m4: New file.
86091
86092         Module same.
86093         * m4/same.m4: New file.
86094
86095         Module save-cwd.
86096         * m4/save-cwd.m4: New file.
86097
86098         Module savedir.
86099         * m4/savedir.m4: New file.
86100
86101         Module xgetcwd.
86102         * m4/xgetcwd.m4: New file.
86103         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86104
86105         Module xreadlink.
86106         * m4/xreadlink.m4: New file.
86107
86108         Module safe-read.
86109         * m4/safe-read.m4: New file.
86110
86111         Module safe-write.
86112         * m4/safe-write.m4: New file.
86113
86114         Module closeout.
86115         * m4/closeout.m4: New file.
86116
86117         Module stdio-safer.
86118         * m4/stdio-safer.m4: New file.
86119
86120         Module getpass.
86121         * m4/getpass.m4: New file.
86122
86123         Module getugroups.
86124         * m4/getugroups.m4: New file.
86125
86126         Module group-member.
86127         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86128         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86129
86130         Module idcache.
86131         * m4/idcache.m4: New file.
86132
86133         Module userspec.
86134         * m4/userspec.m4: New file.
86135
86136         Module gettime.
86137         * m4/clock_time.m4: New file.
86138         * m4/gettime.m4: New file.
86139
86140         Module settime.
86141         * m4/settime.m4: New file.
86142
86143         Module posixtm.
86144         * m4/posixtm.m4: New file.
86145
86146         Module gethostname.
86147         * m4/gethostname.m4: New file.
86148
86149         Module canon-host.
86150         * m4/canon-host.m4: New file.
86151
86152         Module gettext.
86153         * m4/codeset.m4: New file, from gettext-0.11.5.
86154         * m4/gettext.m4: New file, from gettext-0.11.5.
86155         * m4/glibc21.m4: New file, from gettext-0.11.5.
86156         * m4/iconv.m4: New file, from gettext-0.11.5.
86157         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86158         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86159         * m4/inttypes.m4: New file, from gettext-0.11.5.
86160         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86161         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86162         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86163         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86164         * m4/lib-link.m4: New file, from gettext-0.11.5.
86165         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86166         * m4/progtest.m4: New file, from gettext-0.11.5.
86167         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86168         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86169         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86170
86171         Module localcharset.
86172         * m4/localcharset.m4: New file.
86173
86174         Module hard-locale.
86175         * m4/hard-locale.m4: New file.
86176
86177         Module mbswidth.
86178         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86179         onceonly macros.
86180         * m4/mbrtowc.m4: Add comment.
86181
86182         Module memcasecmp.
86183         * m4/memcasecmp.m4: New file.
86184
86185         Module memcoll.
86186         * m4/memcoll.m4: New file.
86187
86188         Module unicodeio.
86189         * m4/unicodeio.m4: New file.
86190
86191         Module rpmatch.
86192         * m4/rpmatch.m4: New file.
86193
86194         Module yesno.
86195         * m4/yesno.m4: New file.
86196
86197         Module exitfail.
86198         * m4/exitfail.m4: New file.
86199
86200         Module c-stack.
86201         * m4/c-stack.m4 (gl_C_STACK): New macro.
86202         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86203
86204         Module error.
86205         * m4/error.m4 (gl_ERROR): New macro.
86206         (jm_PREREQ_ERROR): Use onceonly macros.
86207
86208         Module fatal.
86209         * m4/fatal.m4: New file.
86210
86211         Module getloadavg.
86212         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86213         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86214
86215         Module getpagesize.
86216         * m4/getpagesize.m4: New file.
86217
86218         Module getusershell.
86219         * m4/getusershell.m4: New file.
86220
86221         Module physmem.
86222         * m4/physmem.m4: New file.
86223
86224         Module posixver.
86225         * m4/posixver.m4: New file.
86226
86227         Module quotearg.
86228         * m4/quotearg.m4: New file.
86229
86230         Module quote.
86231         * m4/quote.m4: New file.
86232
86233         Module readutmp.
86234         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86235
86236         Module sig2str.
86237         * m4/sig2str.m4: New file.
86238
86239         Other.
86240         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86241         ulonglong.m4.
86242         * m4/intmax_t.m4: New file.
86243         * m4/d-type.m4: Indentation.
86244         * m4/jm-macros.m4: Update.
86245         * m4/prereq.m4 (jm_PREREQ): Update.
86246         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86247         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86248         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86249         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86250         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86251         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86252         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86253         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86254         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86255         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86256         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86257         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86258         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86259         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86260         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86261         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86262         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86263         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86264         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86265
86266 2002-12-24  Bruno Haible  <bruno@clisp.org>
86267
86268         * MODULES.txt: Update according to m4/ changes.
86269
86270         Module gettext.
86271         * config.rpath: New file, from gettext-0.11.5.
86272
86273         * modules/*: New module descriptions.
86274         * gnulib-tool: New file.
86275         * MODULES.html.sh: New file.
86276
86277 2002-12-21  Karl Berry  <karl@gnu.org>
86278
86279         * doc/fdl.texi: update to version 1.2.
86280
86281 2002-12-19  Karl Berry  <karl@gnu.org>
86282
86283         * config/config.guess: update from prep.
86284
86285 2002-12-18  Bruno Haible  <bruno@clisp.org>
86286
86287         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86288         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86289
86290 2002-12-17  Bruno Haible  <bruno@clisp.org>
86291
86292         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86293         stdlib.h, string.h.
86294
86295 2002-12-17  Bruno Haible  <bruno@clisp.org>
86296
86297         * lib/canon-host.c (strdup): Remove unused declaration.
86298
86299         * lib/fsusage.c: Include full_read.h.
86300         (get_fs_usage): Use full_read instead of safe_read.
86301
86302         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86303
86304 2002-12-12  Karl Berry  <karl@gnu.org>
86305
86306         * config/config.guess: update from prep.
86307
86308 2002-12-11  Bruno Haible  <bruno@clisp.org>
86309
86310         * m4/setenv.m4: New file, from gettext-0.11.5.
86311
86312 2002-12-11  Bruno Haible  <bruno@clisp.org>
86313
86314         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86315         not unsetenv().
86316         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86317         modifications:
86318
86319         2002-12-11  Bruno Haible  <bruno@clisp.org>
86320
86321                 * setenv.c (alloca): Fall back to malloc.
86322                 (freea): New macro.
86323                 (setenv): Use freea() to free memory allocated with alloca().
86324
86325         2002-11-13  Bruno Haible  <bruno@clisp.org>
86326
86327                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86328                 function declarations.
86329                 * unsetenv.c (unsetenv): Likewise.
86330
86331         2002-03-04  Bruno Haible  <bruno@clisp.org>
86332
86333                 Portability to AIX 4.3.3.
86334                 * unsetenv.c: New file, extracted from setenv.c.
86335                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86336
86337         2001-12-20  Bruno Haible  <bruno@clisp.org>
86338
86339                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86340                 use malloc instead. For SunOS 4.
86341
86342         2001-12-11  Bruno Haible  <bruno@clisp.org>
86343
86344                 * setenv.c: Declare alloca.
86345                 (compar_fn_t): New typedef.
86346                 (KNOWN_VALUE, STORE_VALUE): Use it.
86347
86348         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86349         setenv.h.
86350
86351 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86352
86353         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86354         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86355         Choose values that are less likely to collide with system fnmatch
86356         options.
86357         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86358         defined (e.g., a pure POSIX system).
86359         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86360         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86361
86362 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86363
86364         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86365         a pain in practice to deal with generated m4 files.  This change
86366         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86367
86368         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86369         and jm-glibc-io.m4, as they are no longer a special case.
86370         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86371         kludge and the auto-generation stuff.  Check only whether the
86372         functions are declared, not whether they exist, since older hosts
86373         that don't declare the functions can't use the optimization anyway.
86374
86375 2002-12-06  Jim Meyering  <jim@meyering.net>
86376
86377         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86378
86379         Merge in changes from libc's misc/error.c, in preparation
86380         for the merge of gnulib's changes back into libc.
86381
86382         * lib/error.c (_): Define only if not already defined.
86383         Move definition to follow all #include directives.
86384         Include unlocked-io.h only if !_LIBC.
86385         [_LIBC]: Include <libio/libioP.h>.
86386         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86387         (fflush): Tweak definition to use INTUSE.
86388         (putc): Define.
86389
86390 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86391
86392         * lib/alloca.c [defined emacs]: Include "lisp.h".
86393         (xalloc_die) [defined emacs]: New macro.
86394         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86395         [! defined emacs]: Include <xalloc.h>.
86396         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86397         (pointer): Typedef to POINTER_TYPE *.
86398         (malloc): Remove decl; we now always use xmalloc.
86399         (alloca): Use old-style definition, since Emacs needs this.
86400         Check for arithmetic overflow when computing combined size.
86401
86402 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86403
86404         Do not generate unlocked-io.h automatically, since it's easier to
86405         maintain it by hand.
86406
86407         * lib/unlocked-io.h: New file, from GNU diffutils,
86408         but with proper copyright notice and attribution.
86409         * lib/gen-uio: Remove.
86410         * lib/Makefile.am: Add copyright notice.
86411         (libfetish_a_SOURCES): Add unlocked-io.h.
86412         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86413         (DISTCLEANFILES, io_functions): Remove macros.
86414         (EXTRA_DIST): Remove gen_uio.
86415         (unlocked-io.h): Remove rule.
86416
86417 2002-12-04  Jim Meyering  <jim@meyering.net>
86418
86419         Reflect the fact that stat.c and lstat.c are no longer generated.
86420         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86421         (DISTCLEANFILES): Likewise.
86422         (EXTRA_DIST): Likewise.
86423         (all_local): Don't depend on stat.c or lstat.c.
86424         (stat.c, lstat.c): Remove rules.
86425         (EXTRA_DIST): Remove xstat.in.
86426
86427         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86428         * lib/stat.c: New file.  Contents mostly from xstat.in.
86429         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86430         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86431
86432         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86433         too.
86434         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86435
86436 2002-12-03  Jim Meyering  <jim@meyering.net>
86437
86438         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86439         but not semantics, to minimize the differences between these two files.
86440         (safe_read): Change comment to mention SAFE_READ_ERROR.
86441
86442         * lib/safe-read.c (IS_EINTR): Define.
86443         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86444
86445 2002-12-02  Jim Meyering  <jim@meyering.net>
86446
86447         * lib/safe-read.c (EINTR): Define.
86448         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86449         (INT_MAX): Provide fallback.
86450         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86451
86452         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86453
86454 2002-12-02  Bruno Haible  <bruno@clisp.org>
86455
86456         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86457         Define, taken from safe-read.c.
86458         (INT_MAX): Provide fallback.
86459         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86460         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86461
86462         * lib/safe-read.c (EINTR): Remove definition.
86463         (safe_read): Don't use EINTR if it is absent.
86464
86465 2002-12-01  Jim Meyering  <jim@meyering.net>
86466
86467         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86468         zero.
86469         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86470
86471 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86472
86473         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86474         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86475         with `if (! (value < limit)) abort ();', for readability.
86476
86477 2002-11-26  Karl Berry  <karl@gnu.org>
86478
86479         * lib/strdup.c: copy from libc again, with jim's ok.
86480         * lib/.cppi-disable: re-add strdup.c
86481
86482 2002-11-25  Karl Berry  <karl@gnu.org>
86483
86484         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86485         instead of "strtol.c".
86486
86487 2002-11-25  Karl Berry  <karl@gnu.org>
86488
86489         * config/install-sh: update from automake for variable quoting, $0 in
86490         error msgs, etc.
86491
86492         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86493         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86494         entry.
86495
86496 2002-11-25  Jim Meyering  <jim@meyering.net>
86497
86498         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86499
86500 2002-11-24  Karl Berry  <karl@gnu.org>
86501
86502         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86503         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86504
86505 2002-11-24  Jim Meyering  <jim@meyering.net>
86506
86507         Update from coreutils:
86508
86509         * lib/mktime.c: Merge in changes from libc.
86510
86511         Avoid a link-time failure on some Linux systems.
86512         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86513         (otherwise).
86514         (__mon_yday): Declare with the STATIC attribute.
86515         (__mktime_internal): Likewise.
86516         Based on a report from Greg Schafer.
86517
86518 2002-11-23  Jim Meyering  <jim@meyering.net>
86519
86520         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86521         Use `unsigned', not `int', as type of index.
86522
86523         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86524
86525         * lib/fsusage.c: Remove unneeded parentheses around operands of
86526         `defined'.
86527
86528 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86529
86530         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86531         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86532         so that we can be included first.
86533         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86534         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86535         No need to include stddef.h or sys/types.h any more.
86536         Surround local include files with "", not "<>".
86537         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86538         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86539         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86540         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86541         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86542         (ISPRINT): Remove; no longer needed now that we assume C89.
86543
86544         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86545         Preserve errno.
86546
86547         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86548         quotearg_char): Use SIZE_MAX rather than
86549         (size_t) -1 when we are talking about "infinity".
86550
86551         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86552
86553 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86554
86555         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86556         hint that one should use `if (! x) abort ();' rather than `assert
86557         (x);', and anyway it's one less thing to worry about configuring.
86558         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86559         hash_rehash, hash_insert): Use abort rather than assert.
86560
86561 2002-11-22  Bruno Haible  <bruno@clisp.org>
86562
86563         * lib/safe-read.h: Assume C89. Add comments.
86564         (safe_read): Change return type to size_t.
86565         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86566         byte counts > SSIZE_MAX correctly.
86567         * lib/safe-write.h: New file.
86568         * lib/safe-write.c: New file.
86569         * lib/full-read.h: New file.
86570         * lib/full-read.c: New file.
86571         * lib/full-write.h: Assume C89. Add comments.
86572         * lib/full-write.c: Include safe-write.h.
86573         (full_write): Rewritten to use safe_write.
86574         Suggested by Jim Meyering and Paul Eggert.
86575
86576 2002-11-21  Jim Meyering  <jim@meyering.net>
86577
86578         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86579
86580         Merge in changes from the coreutils.
86581
86582         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86583         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86584         <stdint.h>.
86585         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86586         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86587         int.  Work more efficiently if X is the same width as uintmax_t.
86588         Do not compare X to -1, to avoid bogus compiler warning.
86589         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86590         Don't assume that f_frsize and f_bsize are the same type.
86591
86592         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86593         warning on FreeBSD.
86594
86595         * lib/makepath.c (make_path): Restore umask *before* creating the final
86596         component.
86597         (make_path): Minor reformatting.
86598
86599         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86600         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86601         HAVE_MALLOC/HAVE_REALLOC.
86602
86603         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86604         dummy ones.  At least on GNU/Linux systems, `auto' means something
86605         else.
86606         From Michael Stone.
86607
86608 2002-11-21  Bruno Haible  <bruno@clisp.org>
86609
86610         Remove case insensitive option matching.
86611         * lib/argmatch.h (argcasematch): Remove declaration.
86612         (ARGCASEMATCH): Remove macro.
86613         (__xargmatch_internal): Remove case_sensitive argument.
86614         (XARGMATCH): Update.
86615         (XARGCASEMATCH): Remove macro.
86616         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86617         case_sensitive argument.
86618         (argcasematch): Remove function.
86619         (__xargmatch_internal): Remove case_sensitive argument.
86620         (main): Use XARGMATCH instead of XARGCASEMATCH.
86621
86622         * lib/xmalloc.c: Change compile-time error message. Add comment about
86623         required autoconf version.
86624
86625 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86626
86627         Merge argmatch cleanups from Bison.  Assume C89.
86628
86629         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86630         Include stdlib.h, for EXIT_FAILURE.
86631         Always include <string.h>, since we assume C89.
86632         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86633         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86634         Include <stddef.h> instead, since it's all we need for size_t.
86635         (PARAMS): Remove.  All uses removed.
86636         (ARRAY_CARDINALITY): Do not bother to #undef.
86637         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86638         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86639         Remove unnecessary parentheses.
86640         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86641         Insert necessary parentheses.
86642         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86643         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86644
86645 2002-11-19  Bruno Haible  <bruno@clisp.org>
86646
86647         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86648         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86649
86650         * lib/mbswidth.h (PARAMS): Remove macro.
86651         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86652         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86653
86654         * lib/gcd.h (PARAMS): Remove macro.
86655         (gcd): Use ANSI C function declarations.
86656         * lib/gcd.c (gcd): Likewise.
86657
86658 2002-11-15  Bruno Haible  <bruno@clisp.org>
86659
86660         * lib/strcspn.c: Include <stddef.h>.
86661         (strcspn): Use ANSI C function declaration. Change return type to
86662         size_t. Use NULL.
86663         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86664         (strpbrk): Use NULL.
86665         * lib/strpbrk.h (PARAMS): Remove macro.
86666         (strpbrk): Use ANSI C function declaration.
86667         * lib/strstr.c: Don't include <sys/types.h>.
86668         * lib/strstr.h (PARAMS): Remove macro.
86669         (strstr): Use ANSI C function declarations.
86670
86671 2002-11-14  Karl Berry  <karl@gnu.org>
86672
86673         * config/mkinstalldirs: `do' on separate line, instead of
86674         `for var; do'.
86675
86676 2002-11-06  Bruno Haible  <bruno@clisp.org>
86677
86678         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86679         * lib/gcd.c (gcd): Likewise.
86680
86681 2002-11-05  Bruno Haible  <bruno@clisp.org>
86682
86683         * lib/gcd.h: New file, from gettext-0.11.5.
86684         * lib/gcd.c: New file, from gettext-0.11.5.
86685
86686 2002-11-05  Bruno Haible  <bruno@clisp.org>
86687
86688         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86689         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86690         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86691         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86692
86693         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86694         <libintl.h>.
86695         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86696         <libintl.h>.
86697
86698         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86699         * lib/human.c: Include gettext.h instead of <libintl.h>.
86700         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86701         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86702         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86703         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86704         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86705         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86706         (textdomain): Remove definition.
86707         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86708
86709         * lib/long-options.c: Remove include of <libintl.h> and definition of
86710         _.
86711         * lib/same.c: Remove include of <libintl.h> and definition of _.
86712
86713 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86714
86715         * lib/config.charset: A few additions for Solaris.
86716
86717 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86718
86719         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86720         * lib/localcharset.c (locale_charset): Declare as extern "C".
86721
86722 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86723
86724         * lib/config.charset: msdos in uk_UA uses CP1125.
86725
86726 2002-11-04  Bruno Haible  <bruno@clisp.org>
86727
86728         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86729         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86730         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86731         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86732         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86733
86734 2002-11-04  Bruno Haible  <bruno@clisp.org>
86735
86736         * lib/localcharset.c (locale_charset): Don't return an empty string.
86737
86738 2002-11-04  Bruno Haible  <bruno@clisp.org>
86739
86740         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86741         aliases.
86742
86743 2002-11-04  Bruno Haible  <bruno@clisp.org>
86744
86745         * lib/config.charset: Update for newest glibc. Add canonical names
86746         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86747
86748 2002-11-04  Bruno Haible  <bruno@clisp.org>
86749
86750         * lib/config.charset: Add support for NetBSD.
86751
86752 2002-11-04  Bruno Haible  <bruno@clisp.org>
86753
86754         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86755
86756 2002-11-01  Bruno Haible  <bruno@clisp.org>
86757
86758         * configure.in: Add AC_CONFIG_AUX_DIR call.
86759         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86760         test/Makefile.
86761         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86762
86763 2002-09-28  Karl Berry  <karl@gnu.org>
86764
86765         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86766         installed automake until the next release, since changes have been
86767         made.
86768
86769 2002-09-25  Karl Berry  <karl@gnu.org>
86770
86771         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86772         * lib/getopt*: copy from libc/posix.
86773         * lib/gettext.h: copy from gettext.
86774         * lib/.cppi-disable: add strdup.c, gettext.h.
86775
86776 2002-09-25  Karl Berry  <karl@gnu.org>
86777
86778         * config/srclist.txt: enable gettext.h check.
86779         * config/config.{guess,sub}: update from prep.
86780         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86781                 from automake 1.6.3.
86782         See srclist*.
86783
86784 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86785
86786         * regex.c (PATFETCH): Remove the translating fetch.
86787         (PATFETCH_RAW): Rename to PATFETCH.
86788         (set_image_of_range): New fun.
86789         (SET_RANGE_TABLE_WORK_AREA): Use it.
86790         (regex_compile): Don't translate the pattern chars so eagerly.
86791         Only do it when inserting an `exactn' bytecode or when handling
86792         a char-range.
86793         (mutually_exclusive_p): Avoid empty statement.
86794
86795 2002-07-06  Jim Meyering  <meyering@lucent.com>
86796
86797         * m4/README: Don't mention Makefile.am.in.
86798         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86799
86800 2002-07-01  Jim Meyering  <meyering@lucent.com>
86801
86802         * lib/c-stack.c: Include sys/time.h.
86803         From Volker Borchert.
86804
86805 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86806
86807         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86808
86809 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86810
86811         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86812         New macro.  Use it uniformly instead of
86813         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86814         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86815         reported by Vin Shelton.
86816
86817 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86818
86819         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86820         Do not assume SA_SIGINFO behavior.
86821         Bug reported by Jim Meyering on NetBSD 1.5.2.
86822
86823 2002-06-22  Jim Meyering  <meyering@lucent.com>
86824
86825         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86826         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86827
86828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86829         now that configure.ac uses AC_GNU_SOURCE.
86830         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86831         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86832
86833         Update to latest tools.  Suggestions from Paul Eggert.
86834         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86835         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86836         * m4/fnmatch.m4: Likewise.
86837         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86838         to AC_HEADER_STDBOOL
86839
86840 2002-06-22  Jim Meyering  <meyering@lucent.com>
86841
86842         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86843         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86844
86845 2002-06-22  Jim Meyering  <meyering@lucent.com>
86846
86847         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86848
86849         * lib/exitfail.c, exitfail.h: Likewise.
86850         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86851
86852         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86853         of fnmatch.h.
86854         (EXTRA_DIST): Add fnmatch_loop.c.
86855         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86856
86857         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86858         * lib/fnmatch.c: Update from diffutils-2.8.2.
86859         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86860         * lib/fnmatch.h: Remove file.
86861
86862 2002-06-21  Jim Meyering  <meyering@lucent.com>
86863
86864         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86865         * m4/mbrtowc.m4: Likewise.
86866
86867         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86868         * m4/mbswidth.m4: Reflect name change:
86869         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86870         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86871
86872         * m4/lib-link.m4: Update from gettext-0.11.2.
86873         * m4/gettext.m4: Likewise.
86874
86875         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86876         From Alfred M. Szmidt.
86877
86878 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86879
86880         * lib/file-type.h: Report an error if neither S_ISREG nor
86881         S_IFREG is defined, instead of using a test specific to glibc
86882         2.2.  This should be safe, since POSIX requires S_ISREG and
86883         Unix Version 7 had S_IFREG.  We don't need to check for
86884         <sys/types.h> since we don't use any symbols that it defines.
86885
86886 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86887
86888         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86889         $@-t, so that each temporary file name is unique and valid in the first
86890         8 characters, for operation under DOS.
86891
86892 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86893
86894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86895
86896 2002-06-15  Jim Meyering  <meyering@lucent.com>
86897
86898         Work even with DJGPP 2.03, which lacks support for symlinks.
86899         From Richard Dawe.
86900         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86901         is defined.
86902         * lib/lchown.c (S_ISLNK): Likewise.
86903
86904 2002-06-15  Jim Meyering  <meyering@lucent.com>
86905
86906         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86907         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86908         have been included before this file.
86909
86910 2002-06-14  Jim Meyering  <meyering@lucent.com>
86911
86912         * lib/file-type.h: Use the version from diffutils-2.8.2.
86913         * lib/file-type.c: Likewise.
86914
86915 2002-06-07  Jim Meyering  <meyering@lucent.com>
86916
86917         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86918         They're needed at least for NetBSD 1.5.2.
86919         ($statxfs_includes): Include those same headers.
86920         ($statxfs_includes): Include sys/vfs.h if available.
86921         ($statxfs_includes): Likewise for sys/statvfs.h.
86922         Check for the following members in both structs statfs and statvfs:
86923         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86924
86925 2002-06-01  Jim Meyering  <meyering@lucent.com>
86926
86927         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86928         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86929
86930 2002-05-28  Jim Meyering  <meyering@lucent.com>
86931
86932         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86933         Reported by Volker Borchert.
86934
86935 2002-05-27  Jim Meyering  <meyering@lucent.com>
86936
86937         Fix a problem seen only on nonconforming systems whereby ls.c's
86938         use of localtime, and then of gettimeofday would cause trouble:
86939         the localtime call used to initialize rpl_gettimeofday's save
86940         mechanism would clobber ls's current local time information so
86941         that in any long listing the first file would always be listed
86942         with date 1970-01-01.  Analysis by Volker Borchert.
86943
86944         * lib/gettimeofday.c (localtime): Undefine.
86945         (rpl_localtime): New function.
86946
86947 2002-05-27  Jim Meyering  <meyering@lucent.com>
86948
86949         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86950         localtime.
86951
86952         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86953         use the replacement function; it wouldn't resolve at link time.
86954         Reported by Volker Borchert.
86955
86956 2002-05-22  Jim Meyering  <meyering@lucent.com>
86957
86958         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86959         file-type.h.
86960         * lib/file-type.h: New file.
86961         * lib/file-type.c (file_type): New file/function.  Extracted from
86962         diffutils.
86963
86964 2002-04-30  Jim Meyering  <meyering@lucent.com>
86965
86966         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86967
86968 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86969
86970         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86971
86972 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86973
86974         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86975         Do not check for alloca.h (no longer used) or stdbool.h (was never
86976         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86977
86978 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86979
86980         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86981
86982 2002-04-29  Jim Meyering  <meyering@lucent.com>
86983
86984         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86985         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86986         Use AC_FUNC_STRNLEN here instead.
86987
86988         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86989         With autoconf-2.53a, it's part of AC_PROG_CC.
86990
86991 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86992
86993         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86994         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86995
86996 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86997
86998         * lib/sig2str.h, lib/sig2str.c: New files.
86999         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87000
87001 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87002
87003         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87004         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87005         of 127, since 64 is the largest conceivable number for ancient
87006         nonstandard hosts.
87007         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87008
87009 2002-04-28  Jim Meyering  <meyering@lucent.com>
87010
87011         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87012
87013 2002-04-24  Jim Meyering  <meyering@lucent.com>
87014
87015         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87016         (jm_PREREQ): Use it.
87017
87018         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87019         mach/mach.h fcntl.h.
87020         Check for this function: setlocale.
87021
87022 2002-04-24  Jim Meyering  <meyering@lucent.com>
87023
87024         * lib/gettext.h: New file, from Gettext.
87025         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87026         (libfetish_a_SOURCES): Add gettext.h.
87027
87028 2002-04-16  Jim Meyering  <meyering@lucent.com>
87029
87030         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87031         ut_pid, ut_id, ut_exit.
87032
87033 2002-04-16  Jim Meyering  <meyering@lucent.com>
87034
87035         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87036         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87037         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87038
87039 2002-04-12  Jim Meyering  <meyering@lucent.com>
87040
87041         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87042         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87043         existence of the getmntinfo function.  Needed for Darwin 5.3.
87044
87045         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87046         This is necessary at least on Darwin 5.3.
87047
87048         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87049         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87050         strnlen.o in the library, and that makes some versions of ranlib
87051         object.
87052
87053 2002-04-12  Jim Meyering  <meyering@lucent.com>
87054
87055         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87056
87057 2002-04-09  Jim Meyering  <meyering@lucent.com>
87058
87059         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87060         to be more precise.  Rather than saying we're checking whether the
87061         function `works', say what we're testing.
87062         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87063         Reported by Bruno Haible.
87064
87065 2002-03-10  Jim Meyering  <meyering@lucent.com>
87066
87067         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87068         Suggestion from Santiago Vila.
87069
87070 2002-03-08  Jim Meyering  <meyering@lucent.com>
87071
87072         * lib/rename.c: Mention that this wrapper is needed also on
87073         mips-dec-ultrix4.4 systems.
87074
87075 2002-03-02  Jim Meyering  <meyering@lucent.com>
87076
87077         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87078         not HAVE_CLOCK_SETTIME.
87079
87080 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87081
87082         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87083         Check for clock_settime.
87084
87085 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87086
87087         * lib/nanosleep.h: Rename to....
87088         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87089
87090         * lib/gettime.c: New file.
87091         * lib/settime.c: New file.
87092         * lib/stime.c: Remove.
87093
87094         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87095         timespec.h.  Remove nanosleep.h.
87096
87097 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87098
87099         * m4/acl.m4: New file.
87100         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87101         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87102
87103 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87104
87105         * lib/acl.c, lib/acl.h: New files.
87106         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87107
87108 2002-02-24  Jim Meyering  <meyering@lucent.com>
87109
87110         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87111         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87112         cause trouble.  Reported by Nelson Beebe.
87113
87114 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87115
87116         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87117         compilers that don't know that xalloc_die never returns.
87118
87119 2002-02-20  Jim Meyering  <meyering@lucent.com>
87120
87121         * lib/getdate.c: Regenerate using bison-1.33.
87122
87123 2002-02-17  Jim Meyering  <meyering@lucent.com>
87124
87125         * config/config.guess (main): Don't use `head -1'; it's no longer
87126         portable. Use `sed 1q' instead.
87127
87128 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87129
87130         * m4/codeset.m4: Upgrade to gettext-0.11.
87131         * m4/gettext.m4: Upgrade to gettext-0.11.
87132         * m4/glibc21.m4: Upgrade to gettext-0.11.
87133         * m4/iconv.m4: Upgrade to gettext-0.11.
87134         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87135         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87136         * m4/lib-ld.m4: New file, from gettext-0.11.
87137         * m4/lib-link.m4: New file, from gettext-0.11.
87138         * m4/lib-prefix.m4: New file, from gettext-0.11.
87139         * m4/progtest.m4: Upgrade to gettext-0.11.
87140
87141 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87142
87143         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87144         (jm_PREREQ): Use it.
87145
87146 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87147
87148         * lib/posixver.c, lib/posixver.h: New files.
87149         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87150
87151 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87152             Bruno Haible  <bruno@clisp.org>
87153
87154         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87155         (fwrite_success_callback): New declaration.
87156         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87157         print_unicode_char. Call failure callback instead of error.
87158         (fwrite_success_callback): New function.
87159         (exit_failure_callback): New function.
87160         (fallback_failure_callback): New function.
87161         (print_unicode_char): Call unicode_to_mb.
87162
87163 2002-01-26  Jim Meyering  <meyering@lucent.com>
87164
87165         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87166         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87167
87168 2002-01-26  Jim Meyering  <meyering@lucent.com>
87169
87170         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87171
87172 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87173
87174         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87175
87176 2002-01-22  Jim Meyering  <meyering@lucent.com>
87177
87178         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87179         Otherwise, some versions of automake would omit the rule that makes
87180         Makefile from Makefile.in.
87181
87182 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87183
87184         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87185         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87186         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87187         (memcoll): Set errno to zero if there is no error.
87188
87189         * lib/quotearg.c (quotearg_buffer_restyled):
87190         Fix bug with quoting buffers containing NUL when backslashing escapes.
87191         This bug was exposed by the other changes in this patch.
87192         (quotearg_n_options): New arg ARGSIZE.
87193         All callers changed.
87194         (quoting_options_from_style): New function.
87195         (quotearg_n_style): Use it.
87196         (quotearg_n_style_mem): New function.
87197
87198         * lib/quotearg.h (quotearg_n_style_mem): New function.
87199
87200 2002-01-19  Jim Meyering  <meyering@lucent.com>
87201
87202         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87203         Remove useless quotes: DF_PROG="df".
87204         * m4/strnlen.m4: New file.
87205
87206 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87207
87208         * lib/backupfile.c (ISDIGIT): Comment fix.
87209         * lib/getdate.y (ISDIGIT): Likewise.
87210         * lib/posixtm.c (ISDIGIT, year): Likewise.
87211         * lib/strverscmp.c (ISDIGIT): Likewise.
87212         * lib/userspec.c (ISDIGIT): Likewise.
87213
87214 2002-01-16  Jim Meyering  <meyering@lucent.com>
87215
87216         * lib/getdate.y: Add three semicolons, each just before a closing
87217         brace. Bison (as of version 1.31) no longer papers over that mistake.
87218
87219 2002-01-05  Jim Meyering  <meyering@lucent.com>
87220
87221         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87222
87223 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87224
87225         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87226         not silently exit merely because the output buffer happens to
87227         have nothing pending.
87228
87229 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87230
87231         See the big note in ../ChangeLog.
87232         * lib/human.c (suffixes): Prefer K to k for 1024.
87233         (generate_suffix_backwards): New function.
87234         (human_readable_inexact): Use it.
87235         * lib/xstrtol.c (__xstrtol): If there is no number but there
87236         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87237         Accept 'K' as well as 'k'.
87238
87239 2001-12-15  Jim Meyering  <meyering@lucent.com>
87240
87241         * lib/regex.h (__restrict_arr): Update from libc.
87242
87243         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87244         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87245         (STREQ): Define.
87246
87247 2001-12-14  Jim Meyering  <meyering@lucent.com>
87248
87249         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87250         Suggestion from Bruno Haible.
87251
87252 2001-12-10  Jim Meyering  <meyering@lucent.com>
87253
87254         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87255         xrealloc, Instead, include "xalloc.h".
87256         (initbuffer): Don't cast xmalloc return value to char*.
87257         (readline): Reword comment.
87258         Don't cast xrealloc return value to char*
87259         Return NULL, not 0.
87260
87261 2001-12-09  Jim Meyering  <meyering@lucent.com>
87262
87263         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87264         about `signed and unsigned type in conditional expression'.
87265         * lib/posixtm.c (posix_time_parse): Likewise.
87266
87267         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87268
87269         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87270         to avoid a pedantic warning.
87271
87272         * lib/getstr.c: Don't include assert.h.
87273         (getstr): Remove warning-evoking assertions.
87274         Return -1 if offset parameter is out of bounds.
87275         Change the type of a local from int to size_t.
87276
87277         * lib/strftime.c (my_strftime_localtime_r): Include this function
87278         definition in the `#if ! HAVE_TM_GMTOFF' block.
87279
87280         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87281         Include xalloc.h instead.
87282
87283 2001-12-02  Jim Meyering  <meyering@lucent.com>
87284
87285         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87286         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87287         included.
87288
87289         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87290         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87291
87292 2001-11-30  Akim Demaille  <akim@epita.fr>
87293
87294         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87295         before being defined.
87296
87297 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87298
87299         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87300         First arg is int, not unsigned.
87301         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87302         (SIZE_MAX, UINT_MAX): New macros.
87303         (quotearg_n_options): Abort if N is negative.
87304         Avoid overflow check on hosts where size_t is 64 bits and int
87305         is 32 bits, as overflow is impossible there.
87306         Fix off-by-one typo that caused unnecessary reallocation.
87307
87308 2001-11-27  Jim Meyering  <meyering@lucent.com>
87309
87310         * lib/tempname.c: Merge with version from libc.
87311         * lib/regex.c: Likewise.
87312
87313         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87314         systems for which STDC_HEADERS is 0, it was not included, resulting in
87315         a warning about an integer-to-pointer conversion problem with getenv.
87316         Reported by Volker Borchert.
87317
87318 2001-11-26  Jim Meyering  <meyering@lucent.com>
87319
87320         * lib/gtod.h: Remove file.
87321         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87322         * lib/gettimeofday.c: Don't include gtod.h.
87323         (GTOD_init): Remove function.
87324         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87325         Suggestion from Volker Borchert.
87326
87327 2001-11-23  Jim Meyering  <meyering@lucent.com>
87328
87329         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87330         it.
87331         * lib/hash.c (struct hash_table): Define it here instead.
87332
87333 2001-11-22  Jim Meyering  <meyering@lucent.com>
87334
87335         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87336
87337 2001-11-20  Jim Meyering  <meyering@lucent.com>
87338
87339         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87340         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87341
87342 2001-11-19  Jim Meyering  <meyering@lucent.com>
87343
87344         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87345         directory.  Use "conftestXXXXXX" as the template.
87346         Suggestion from Paul Eggert.
87347
87348         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87349         immediately, so the test doesn't mistakenly hit the max-open-files
87350         limit.
87351
87352 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87353
87354         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87355         (TEMPORARIES): New macro.
87356         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87357         removes an artificial limitation (e.g. HP-UX 10.20, where
87358         TMP_MAX is 17576).
87359
87360 2001-11-18  Jim Meyering  <meyering@lucent.com>
87361
87362         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87363
87364 2001-11-18  Jim Meyering  <meyering@lucent.com>
87365
87366         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87367         on SunOS 4.
87368
87369         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87370         files will be created before anything else.
87371
87372 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87373
87374         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87375         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87376
87377 2001-11-17  Jim Meyering  <meyering@lucent.com>
87378
87379         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87380         Prompted by a report from Bob Proulx.
87381
87382         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87383         Instead, require UTILS_FUNC_MKSTEMP.
87384
87385 2001-11-17  Jim Meyering  <meyering@lucent.com>
87386
87387         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87388         Now, that's done as part of AC_FUNC_STRTOD.
87389
87390 2001-11-17  Jim Meyering  <meyering@lucent.com>
87391
87392         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87393         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87394         rather than group writable.  Patch by Juan F. Codagnone.
87395
87396         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87397         xrealloc, Instead, include "xalloc.h".
87398
87399         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87400         Remove explicit declarations of xmalloc, xrealloc,
87401         and xstrdup.  Instead, include "xalloc.h".
87402
87403         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87404         unlocked-io.h.
87405         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87406         Likewise.
87407         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87408
87409         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87410         Reported by Padraig Brady.
87411
87412         * lib/mkstemp.c: #undef mkstemp.
87413         Include config.h.
87414         (rpl_mkstemp): Rename from mkstemp.
87415         Protoize.
87416
87417 2001-11-16  Jim Meyering  <meyering@lucent.com>
87418
87419         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87420         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87421         determine the amount of total physical memory, use pstat_getstatic.
87422         HPUX-11 doesn't define _SC_PHYS_PAGES.
87423         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87424         If sysconf couldn't be used to determine the amount of available
87425         physical memory, use both pstat_getstatic and pstat_getdynamic.
87426         Based on a patch from Bob Proulx.
87427
87428 2001-11-10  Jim Meyering  <meyering@lucent.com>
87429
87430         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87431         (jm_PREREQ): Use it.
87432
87433 2001-11-09  Jim Meyering  <meyering@lucent.com>
87434
87435         * m4/jm-macros.m4: Require autoconf-2.52f.
87436         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87437         Use these AC_-prefixed names, not the AM_-prefixed ones.
87438
87439         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87440
87441 2001-11-05  Jim Meyering  <meyering@lucent.com>
87442
87443         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87444
87445 2001-11-04  Jim Meyering  <meyering@lucent.com>
87446
87447         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87448         $DEFS.
87449
87450 2001-11-03  Jim Meyering  <meyering@lucent.com>
87451
87452         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87453         of AC_DEFUN.
87454
87455         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87456         know the name of the variable in the macro definition.
87457
87458 2001-11-03  Jim Meyering  <meyering@lucent.com>
87459
87460         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87461         in argmatch_to_argument call.
87462
87463         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87464         argument.
87465
87466         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87467         e.g., a fault due to an attempt to free a NULL pointer.
87468
87469 2001-11-01  Jim Meyering  <meyering@lucent.com>
87470
87471         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87472         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87473
87474 2001-11-01  Jim Meyering  <meyering@lucent.com>
87475
87476         * lib/dirfd.c, lib/dirfd.h: New files.
87477         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87478
87479         * lib/hash.c (hash_print) [TESTING]: Clean up.
87480
87481 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87482
87483         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87484         to avoid a warning if -Wall.
87485
87486 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87487
87488         * README: New file
87489         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87490         (per RMS's instructions, this is now the canonical source)
87491         * lgpl/, gpl/: New directories.
87492
87493 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87494
87495         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87496
87497 2001-10-21  Jim Meyering  <meyering@lucent.com>
87498
87499         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87500         this code would end up calling gettext even in packages built
87501         with --disable-nls.
87502         * lib/getopt.c (_): Likewise.
87503         * lib/regex.c (_): Likewise.
87504
87505 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87506
87507         * m4/error.m4 (jm_PREREQ_ERROR):
87508         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87509         AC_FUNC_STRERROR_R does that.
87510         Check for strerror declaration.
87511
87512         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87513         are supposed to have them these days.
87514         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87515         Merge changes from latest Autoconf CVS.
87516         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87517         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87518         POSIX decided to standardize on the int flavor of strerror_r.
87519
87520 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87521
87522         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87523         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87524         Use strerror_r that is only a macro, even if it is not a function.
87525         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87526         (private_strerror): Use prototypes, not old-style function definition.
87527         (print_errno_message): New function.
87528         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87529         char*-flavored one.
87530         (error_tail, error, error_at_line): Use it.
87531
87532 2001-10-11  Jim Meyering  <meyering@lucent.com>
87533
87534         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87535         and quote_n (1, ... to avoid clobbering a buffer.
87536
87537 2001-10-05  Jim Meyering  <meyering@lucent.com>
87538
87539         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87540         hash-pjw.h.
87541         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87542         * lib/hash-pjw.h: New file.
87543
87544 2001-09-30  Jim Meyering  <meyering@lucent.com>
87545
87546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87547         `struct fsstat' has the `f_fstypename' member.
87548         Use that to define FS_TYPE, which is now used to make
87549         the getfsstat link test tighter.
87550
87551 2001-09-30  Jim Meyering  <meyering@lucent.com>
87552
87553         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87554         Include <sys/ucred.h>, for Apple Darwin.
87555         Include sys/mount.h and sys/fs_types.h only if available.
87556         (FS_TYPE): Define.
87557         (read_filesystem_list): Use FS_TYPE.
87558
87559 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87560
87561         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87562         a boolean context.
87563
87564 2001-09-29  Jim Meyering  <meyering@lucent.com>
87565
87566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87567         [one-argument getmntent function]): Include stdio.h before mntent.h.
87568         SunOS 4.1.x needs it for the declaration of `FILE'.
87569         Patch by Volker Borchert.
87570
87571         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87572         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87573         sys/fs_types.h, and make the link-test for getfsstat guard #include
87574         directives with appropriate #if HAVE_*_H tests so that we can
87575         detect getfsstat on Apple Darwin1.3.7 systems.
87576         Reported by Nelson Beebe.
87577         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87578
87579 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87580
87581         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87582         #defines strtoimax.  Also treat the other strto* functions
87583         like strtoimax.
87584
87585         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87586         Check for strtoul and strtoumax,
87587         as those declarations are made even in the signed case.
87588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87589         Likewise, for strtol and strtoimax.
87590
87591 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87592
87593         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87594         #defines strtoimax.  Also treat the other strto* functions
87595         like strtoimax.
87596
87597         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87598         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87599         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87600
87601 2001-09-26  Jim Meyering  <meyering@lucent.com>
87602
87603         Most macros in unlocked-io.h had the wrong number of arguments.
87604         * lib/gen-uio: New script.
87605         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87606         * lib/unlocked-io.hin: Remove file.
87607         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87608         rather than trying to embed it here.
87609         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87610         Reported by Padraig Brady.
87611
87612 2001-09-25  Volker Borchert  <bt@teknon.de>
87613
87614         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87615         `result'.
87616
87617 2001-09-24  Jim Meyering  <meyering@lucent.com>
87618
87619         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87620
87621 2001-09-23  Jim Meyering  <meyering@lucent.com>
87622
87623         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87624         instead of the mere test for existence of mntent.h.  The latter
87625         would get a false-positive on AIX 3.4 systems.
87626         In the outer getmntent if-block, don't die if neither of the getmntent
87627         tests succeeds.  Instead, just fall through and continue with the
87628         remaining tests.
87629
87630 2001-09-23  Jim Meyering  <meyering@lucent.com>
87631
87632         * lib/mountlist.c: Remove useless parentheses in #if directives.
87633         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87634         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87635
87636 2001-09-22  Jim Meyering  <meyering@lucent.com>
87637
87638         * m4/gettext.m4: New file.  From gettext.
87639         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87640         * m4/progtest.m4: Likewise
87641         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87642         * m4/glibc21.m4: Likewise.
87643
87644         * m4/libintl.m4: Remove.  No longer used.
87645
87646 2001-09-22  Jim Meyering  <meyering@lucent.com>
87647
87648         * lib/localcharset.c: Update from latest gettext.
87649         * lib/config.charset: Likewise.
87650
87651 2001-09-20  Jim Meyering  <meyering@lucent.com>
87652
87653         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87654         strtoimax.
87655         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87656         strtoumax.
87657
87658 2001-09-20  Jim Meyering  <meyering@lucent.com>
87659
87660         * lib/xstrtol.c (strtoimax): Guard declaration with
87661         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87662         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87663         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87664         (strtoumax): Likewise, for completeness (it wasn't necessary).
87665
87666 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87667
87668         * lib/strtoimax.c (HAVE_LONG_LONG):
87669         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87670         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87671         to work around bug in IBM C compiler.
87672
87673 2001-09-17  Jim Meyering  <meyering@lucent.com>
87674
87675         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87676         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87677         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87678         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87679         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87680         whenever the right hand side need not be expanded by the shell.
87681
87682 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87683
87684         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87685         library.  It's not correct, as some older glibcs are buggy.
87686         fnmatch wasn't fixed until glibc 2.2.
87687
87688         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87689         special shell magic here.
87690
87691 2001-09-16  Jim Meyering  <meyering@lucent.com>
87692
87693         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87694         * m4/jm-macros.m4: Require it.
87695
87696 2001-09-16  Jim Meyering  <meyering@lucent.com>
87697
87698         * lib/mkdir.c: New file.
87699
87700 2001-09-15  Jim Meyering  <meyering@lucent.com>
87701
87702         * m4/jm-macros.m4: Check for help2man.
87703
87704 2001-09-11  Jim Meyering  <meyering@lucent.com>
87705
87706         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87707         The body, by Paul Eggert, was moved here from configure.in.
87708         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87709
87710 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87711
87712         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87713         (jm_PREREQ): Use it.
87714
87715 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87716
87717         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87718         Use ssize_t, not int, to store result of readlink.
87719         Check for ssize_t overflow as well as size_t overflow,
87720         as POSIX says the result of readlink is implementation-defined
87721         when ssize_t overflows.
87722         Remove unnecessary cast to char*.
87723         Use free+malloc instead of realloc, as the storage doesn't need
87724         to be preserved and it's clearer and can be more efficient that way.
87725         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87726         * lib/xreadlink.h (xreadlink): Update prototype.
87727
87728 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87729
87730         * lib/xgetcwd.c: Revert some of the previous change; intead,
87731         fix the HAVE_GETCWD_NULL code to behave more like the
87732         !HAVE_GETCWD_NULL code used to.
87733
87734         Include "xalloc.h".
87735         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87736         invoke xalloc_die.
87737
87738 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87739
87740         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87741         sys/param.h, as pathmax.h includes them.
87742
87743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87744
87745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87746         (jm_PREREQ_XGETCWD): New macro.
87747
87748         * m4/getcwd.m4: New file.
87749
87750 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87751
87752         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87753         like the HAVE_GETCWD_NULL code.
87754         Include pathmax.h if not HAVE_GETCWD.
87755         Do not include xalloc.h.
87756         (INITIAL_BUFFER_SIZE): New symbol.
87757         Do not use xmalloc / xrealloc, since the caller is responsible for
87758         handling errors.  Preserve errno around `free' during failure.
87759         Do not overrun buffer when using getwd.
87760
87761 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87762
87763         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87764         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87765         getcwd (NULL, 0).
87766
87767 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87768
87769         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87770         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87771         spotted by Jim Meyering.
87772
87773 2001-09-03  Jim Meyering  <meyering@lucent.com>
87774
87775         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87776         failure.
87777
87778 2001-09-02  Jim Meyering  <meyering@lucent.com>
87779
87780         * lib/error.c: Update from GNU libc.
87781
87782 2001-09-01  Jim Meyering  <meyering@lucent.com>
87783
87784         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87785         Used by df.
87786
87787 2001-09-01  Jim Meyering  <meyering@lucent.com>
87788
87789         * lib/xreadlink.c: New file.
87790         * lib/xreadlink.h: New file.
87791         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87792         xreadlink.h.
87793
87794         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87795         doesn't conflict with sparc Solaris 7's definition in
87796         /usr/include/sys/int_types.h.
87797
87798         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87799         files.
87800         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87801         and strncasecmp as r-values.  Unixware didn't have declarations.
87802
87803 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87804
87805         * lib/xstrtol.h: Add copyright notice.
87806         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87807         LONGINT_INVALID_SUFFIX_CHAR.
87808
87809 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87810
87811         * lib/xstrtol.c (strtoimax): New decl.
87812
87813 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87814
87815         * lib/xgetcwd.c: Don't include pathmax.h.
87816         Include stdlib.h and unistd.h if available.
87817         Include xalloc.h.
87818         (xmalloc, xstrdup, free): Remove decls.
87819         (xgetcwd): Don't assume sizes fit in unsigned.
87820         Check for overflow when computing sizes.
87821         Simplify reallocation code.
87822
87823 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87824
87825         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87826         a directory's st_size can have an arbitrary value, so the old
87827         usage could waste an arbitrary amount of memory.  All uses
87828         changed.
87829         * lib/savedir.h: Update prototype.
87830
87831 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87832
87833         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87834
87835         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87836         old strtoimax.c.
87837
87838         Also, make the following further changes to make this file's
87839         configuration more similar to that of strtol.c:
87840         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87841         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87842         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87843         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87844         changed to signed values.
87845
87846         And make the following changes as well:
87847         Fix copyright notice, as 1999 was missing.
87848         (verify): New macro.
87849         (strtoimax): Check sizes at compile-time, not run-time.
87850         Prefer strtol to strtoll if both work.
87851         (main): Remove; it was not that useful and was a pain to maintain.
87852
87853         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87854
87855 2001-08-31  Jim Meyering  <meyering@lucent.com>
87856
87857         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87858         Use an initial, malloc'd, buffer of length 128 rather than
87859         a statically allocated one of length 1024.
87860
87861 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87862
87863         Simplify code, partly by assuming autoconf 2.52 semantics.
87864
87865         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87866
87867         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87868         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87869         All uses removed.
87870         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87871         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87872         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87873         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87874         jm_AC_HEADER_INTTYPES_H.
87875         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87876
87877         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87878
87879         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87880         Quote first arg of AC_DEFUN.
87881         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87882         since they are needed to parse the include file even if we need
87883         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87884         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87885         but with opposite signedness.
87886
87887 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87888
87889         Merge 'exclude' changes from tar 1.13.22.
87890         This fixes one or two unlikely storage allocation overflow bugs,
87891         but doesn't change user-visible behavior otherwise.
87892
87893 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87894
87895         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87896         (jm_PREREQ_EXCLUDE): New macro.
87897
87898 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87899
87900         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87901         tm to be declared.
87902
87903 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87904
87905         * lib/hash.c: Remove '2001' from copyright notice.
87906
87907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87908
87909         * lib/full-write.h: New file.
87910         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87911         * lib/full-write.c: Correct credits, as cccp.c no longer
87912         exists and anyway it was so heavily changed from the old cccp
87913         code as to be unrecognizable.  Include full-write.h.
87914         (full_write): Return size_t, with short writes meaning failure.
87915         All callers changed.  This fixes a bug with large buffers
87916         on 64-bit hosts.
87917         * lib/utime.c: Include full-write.h.
87918
87919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87920
87921         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87922         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87923         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87924         Include if available.
87925         (<xalloc.h>): Include
87926         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87927         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87928         collide with FNM macros.
87929         (struct patopts): New struct.
87930         (struct exclude): Use it, as exclude patterns now come with options.
87931         (new_exclude): Support above changes.
87932         (new_exclude, add_exclude_file):
87933         Initial size must now be a power of two to simplify overflow checking.
87934         (free_exclude, fnmatch_no_wildcards): New function.
87935         (excluded_filename): No longer requires options arg, as the options
87936         are determined by add_exclude.  Now returns bool, not int.
87937         (excluded_filename, add_exclude):
87938         Add support for the fancy new exclusion options.
87939         (add_exclude, add_exclude_file): Now takes int options arg.
87940         Check for arithmetic overflow when computing sizes.
87941         (add_exclude_file): xrealloc might modify errno, so don't
87942         realloc until after errno might be used.
87943
87944         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87945         New macros.
87946         (free_exclude): New decl.
87947         (add_exclude, add_exclude_file): Now takes int options arg.
87948         (excluded_filename): No longer requires options arg, as the options
87949         are determined by add_exclude.  Now returns bool, not int.
87950
87951 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87952
87953         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87954
87955 2001-08-27  Jim Meyering  <meyering@lucent.com>
87956
87957         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87958
87959         * lib/version-etc.c (N_): Remove definition.
87960         Revert most of last change.
87961         Instead, simply don't mark the `Copyright...' string for translation.
87962         Based on advice from Paul Eggert.
87963
87964         * lib/strtoxmax.c: Tweak comment.
87965
87966 2001-08-26  Jim Meyering  <meyering@lucent.com>
87967
87968         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87969
87970         * m4/xstrtoimax.m4: New file.
87971         * m4/xstrtoumax.m4: Add comments explaining why we
87972         AC_REPLACE_FUNCS(strtol).
87973
87974 2001-08-26  Jim Meyering  <meyering@lucent.com>
87975
87976         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87977         of copyright with `%s' so translators don't get an untranslated
87978         message in 2002.
87979         (COPYRIGHT_YEAR): Define.
87980         (version_etc): Use fprintf rather than fputs.
87981         Suggestion from Ulrich Drepper.
87982
87983         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87984
87985         * lib/strtoll.c: New file, from GNU libc.
87986         * lib/xstrtoimax.c: New file.
87987
87988         * lib/xstrtol.h: Add xstrtoimax.
87989         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87990         * lib/strtoimax.c: New file.  Likewise, but first define
87991         STRTOUXMAX_SIGNED.
87992
87993         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87994         ...
87995         * lib/strtoxmax.c: ... then renamed to this.
87996
87997 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87998
87999         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88000         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88001         (jm_AC_TYPE_INTMAX_T): New macro.
88002         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88003
88004         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88005
88006         * m4/longlong.m4: Renamed from ulonglong.m4.
88007         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88008         * m4/uintmax_t.m4: Removed.
88009
88010 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88011
88012         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88013         Port to Solaris 8, where 'sed' requires a space after the 'r'
88014         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88015         Redirect output to $tmp just once.
88016
88017 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88018
88019         * lib/addext.c (<errno.h>): Include.
88020         (errno): Declare if not defined.
88021         (addext): Work correctly when pathconf returns -1 and leaves
88022         errno alone because there is no limit.  Also, work even if
88023         pathconf returns a value greater than SIZE_MAX.
88024
88025 2001-08-12  Jim Meyering  <meyering@lucent.com>
88026
88027         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88028         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88029         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88030         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88031         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88032         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88033         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88034         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88035         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88036         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88037         utime.m4, utimes.m4, xstrtoumax.m4:
88038         Quote the first argument in each use of AC_DEFUN.
88039
88040 2001-08-12  Jim Meyering  <meyering@lucent.com>
88041
88042         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88043         Simply `return getcwd (NULL, 0);'.
88044         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88045         Use 1300 as initial value for length, not PATH_MAX.
88046
88047         * lib/pathmax.h: Clean up cpp syntax.
88048
88049 2001-08-12  Jim Meyering  <meyering@lucent.com>
88050
88051         * lib/gettimeofday.c: New file.
88052         * lib/gtod.h: New file.
88053         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88054
88055 2001-08-05  Jim Meyering  <meyering@lucent.com>
88056
88057         * m4/jm-macros.m4: Require autoconf-2.52.
88058
88059 2001-08-04  Jim Meyering  <meyering@lucent.com>
88060
88061         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88062         stmt, to get in sync with glibc.
88063
88064 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88065
88066         The following changes are from gettext 0.10.39 as maintained by
88067         Bruno Haible.
88068
88069         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88070         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88071         with inverted sense.  All uses changed.
88072
88073         * lib/mbswidth.c: Don't include <limits.h>.
88074         Include <stdlib.h> and <string.h> unconditionally.
88075         (iswcntrl, mbsinit, ISCNTRL): New macros.
88076         (mbsnwidth): Use K&R style function declarations.
88077         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88078         can optimize it when MB_CUR_MAX == 1.
88079         The width of control characters is zero, not 1.
88080
88081 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88082
88083         The following changes are from gettext 0.10.39 as maintained by
88084         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88085
88086         * m4/codeset.m4: Upgrade to serial AM1.
88087         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88088         all uses changed.  Quote first arg of AC_DEFUN.
88089         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88090
88091         * m4/iconv.m4: Upgrade to serial AM2.
88092         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88093         Add --with-libconv-prefix.
88094         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88095         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88096         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88097         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88098         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88099
88100         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88101         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88102         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88103         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88104         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88105         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88106         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88107         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88108         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88109
88110         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88111         string.h any more.
88112
88113         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88114         not the default value.
88115
88116         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88117         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88118         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88119         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88120         Also check for iswcntrl, used for wcwidth fallback.
88121         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88122         to Autoconf 2.13.
88123
88124 2001-08-03  Jim Meyering  <meyering@lucent.com>
88125
88126         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88127         as it was in the original.  Reported by Paul Eggert.
88128
88129 2001-07-16  Jim Meyering  <meyering@lucent.com>
88130
88131         * m4/gettimeofday.m4: New file.
88132         Prompted by a report from Bernhard Baehr.
88133
88134 2001-07-15  Jim Meyering  <meyering@lucent.com>
88135
88136         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88137         stuff. Now it's in ../Makefile.cfg.
88138
88139 2001-07-15  Jim Meyering  <meyering@lucent.com>
88140
88141         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88142         (BUILT_SOURCES): Add unlocked-io.h.
88143         (io_functions): Define.
88144         (unlocked-io.h): New rule.
88145         (DISTCLEANFILES): Add unlocked-io.h.
88146         (all-local): Depend on unlocked-io.h, to ensure it is created.
88147
88148         * lib/unlocked-io.hin: New file
88149
88150         * lib/regex.c: Update from glibc.
88151
88152 2001-07-05  Jim Meyering  <meyering@lucent.com>
88153
88154         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88155         recommendation.
88156         (libfetish_a_SOURCES): Put all .h files here instead.
88157         Remove a thus-exposed (better checks in automake) duplicate and
88158         two unnecessary .h files.
88159
88160 2001-07-04  Jim Meyering  <meyering@lucent.com>
88161
88162         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88163         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88164         distcheck failure.
88165
88166 2001-07-02  Jim Meyering  <meyering@lucent.com>
88167
88168         The following changes were prompted by suggestions from Bruno Haible.
88169
88170         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88171         is now generated.
88172         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88173         definition of EXTRA_DIST.
88174         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88175         ensure that the generated file is created/updated whenever the list
88176         of $(unlocked_functions) is changed.
88177         (jm-glibc-io.m4): New rule.
88178         (unlocked-io.h): New rule -- currently unused.
88179
88180 2001-06-24  Jim Meyering  <meyering@lucent.com>
88181
88182         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88183         unmatched right bracket, rather than kludging it with an extra,
88184         falsely-matching quote in a comment.  Patch by Akim Demaille.
88185
88186 2001-06-11  Jim Meyering  <meyering@lucent.com>
88187
88188         * lib/regex.c: Update from GNU libc.
88189
88190 2001-05-27  Jim Meyering  <meyering@lucent.com>
88191
88192         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88193         Check for ut_type in struct utmp.
88194
88195 2001-05-27  Jim Meyering  <meyering@lucent.com>
88196
88197         * lib/readutmp.h (UT_TYPE): Define.
88198
88199 2001-05-24  Jim Meyering  <meyering@lucent.com>
88200
88201         * lib/argmatch.c: Include "quote.h".
88202         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88203         quote function.  Reported by Göran Uddeborg.
88204
88205 2001-05-22  Jim Meyering  <meyering@lucent.com>
88206
88207         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88208         now that we use the package-supplied version unconditionally.
88209         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88210
88211 2001-05-21  Jim Meyering  <meyering@lucent.com>
88212
88213         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88214         shell syntax errors.
88215
88216 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88217
88218         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88219
88220 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88221
88222         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88223         Don't bother to check library strftime, since
88224         we'll be using our own my_strftime function anyway.
88225         Define my_strftime instead of strftime.
88226
88227 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88228
88229         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88230         which is not yet declared.
88231
88232 2001-05-15  Jim Meyering  <meyering@lucent.com>
88233
88234         * m4/regex.m4: Use proper quoting so brackets appear in the test
88235         program.
88236         Reported by, and with help from, Bruno Haible.
88237
88238 2001-05-13  Jim Meyering  <meyering@lucent.com>
88239
88240         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88241         undefined.
88242
88243 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88244
88245         dirname code cleanup.  base_name now behaves more compatibly
88246         with POSIX basename when given file names that have trailing
88247         slashes, and similarly for dir_name.  Add new primitives
88248         base_len and dir_len.  Put the directory-name-related decls
88249         into dirname.h.
88250
88251         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88252         * lib/backupfile.c (base_name): Likewise.
88253         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88254         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88255         * lib/makepath.c (strip_trailing_slashes): Likewise.
88256         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88257         ISSLASH): Likewise.
88258         * lib/rename.c (strip_trailing_slashes): Likewise.
88259         * lib/same.c (base_name): Likewise.
88260         * lib/stripslash.c (ISSLASH): Likewise.
88261
88262         * lib/addext.c: Include <dirname.h> after size_t is defined.
88263         * lib/backupfile.c: Likewise.
88264
88265         * lib/addext.c (addext): Use base_len to trim redundant
88266         trailing slashes instead of doing it ourselves.
88267         But do not trim the last slash if it is not redundant.
88268
88269         * lib/backupfile.c (find_backup_file_name,
88270         max_backup_version): Use base_len instead of rolling it ourselves.
88271         Handle the case of "" and (on DOS) "C:" correctly.
88272
88273         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88274         needed. Include <string.h>, <dirname.h>.
88275         (base_name): Allow file names ending in slashes, other than names
88276         that are all slashes.  In this case, return the basename followed
88277         by the slashes.  This is more general, and can be used in places
88278         where the original base_name purposely had an assertion failure.
88279         (base_len): New function.
88280
88281         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88282         Do not include <assert.h>; no longer needed.
88283         Include xalloc.h.
88284         (memrchr): Remove decl.
88285         (dir_name_r): Remove.
88286         (dir_len): Renamed from dirlen.  All callers changed.
88287         Rewrite in terms of base_name, for simplicity and consistency.
88288         (dir_name): Never return NULL.  All callers changed.
88289         Do not include <stdlib.h> in test program; no longer needed.
88290         return 0; is fine for test program.
88291
88292         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88293         New macros.
88294         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88295
88296         * lib/path-concat.c (path_concat): Use base_len to compute
88297         base length, not strlen; this means we cannot rely on memcpy
88298         to null-terminate.
88299
88300         * lib/same.c (STREQ): Remove.
88301         (same_name): Handle the case where the basename ends in trailing '/'.
88302
88303         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88304         a slash was stripped.  Do not strip the last slash after a
88305         file system prefix.
88306
88307 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88308
88309         * lib/Makefile.am (libfetish_a_SOURCES):
88310         Add strftime.c, since we now compile it on all hosts.
88311
88312         * lib/strftime.c (my_strftime):
88313         Define to nstrftime if emacs, but only if my_strftime is not defined.
88314         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88315         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88316         Add one more extra argument: a nanoseconds value.
88317         All uses changed.
88318         (ns): New macro.
88319         (my_strftime function): Add %N format.
88320         (emacs_strftimeu): Renamed from emacs_strftime,
88321         with extra ut argument.
88322
88323 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88324
88325         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88326
88327 2001-04-21  Jim Meyering  <meyering@lucent.com>
88328
88329         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88330         doesn't interfere.
88331
88332 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88333
88334         * m4/ftruncate.m4: Check for chsize.
88335         Link with ftruncate.o unconditionally if ftruncate is missing.
88336         This was required when cross-compiling to i586-mingw32msvc.
88337
88338 2001-04-08  Jim Meyering  <meyering@lucent.com>
88339
88340         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88341         recomputed; that's necessary when the offset spans a DST transition.
88342         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88343
88344 2001-04-02  Jim Meyering  <meyering@lucent.com>
88345
88346         * lib/regex.h, regex.c: Update from GNU libc.
88347
88348 2001-03-24  Jim Meyering  <meyering@lucent.com>
88349
88350         * m4/jm-macros.m4: Require autoconf-2.49d.
88351
88352 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88353
88354         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88355
88356 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88357
88358         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88359
88360 2001-03-17  Jim Meyering  <meyering@lucent.com>
88361
88362         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88363         now that the version in autoconf is equivalent.
88364         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88365
88366         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88367         Suggestion from Akim Demaille.
88368
88369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88370         (jm_PREREQ_TEMPNAME): New function.
88371
88372 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88373
88374         * lib/tempname.c (uint64_t): Define to uintmax_t if
88375         not defined, and if UINT64_MAX is not defined.
88376         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88377         Reported by John David Anglin.
88378
88379 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88380
88381         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88382         resolve alias if codeset is empty.
88383         * lib/config.charset (BeOS): Use wildcard syntax.
88384
88385 2001-03-13  Jim Meyering  <meyering@lucent.com>
88386
88387         * lib/path-concat.c (path_concat)
88388         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88389         concatenating e.g., `C:' and `foo'.
88390         From Bruno Haible.
88391
88392 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88393
88394         * lib/localcharset.c (locale_charset): Don't use
88395         setlocale(LC_CTYPE,NULL). Don't return NULL.
88396         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88397
88398 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88399
88400         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88401         support for DOS/DJGPP.
88402
88403 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88404
88405         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88406         lacks mkstemp.  Compile our own tempname.c if we compile our own
88407         mkstemp.c, as mkstemp relies on tempname.
88408
88409 2001-03-01  Jim Meyering  <meyering@lucent.com>
88410
88411         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88412         AH_VERBATIM really does output its argument verbatim.
88413
88414 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88415
88416         * lib/Makefile.am (libfetish_a_SOURCES):
88417         Add dup-safer.c, fopen-safer.c.
88418         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88419
88420         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88421         * lib/unistd-safer.h: New files.
88422
88423 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88424
88425         The mkstemp replacement is taken from glibc 2.2.2, with some
88426         portability fixes for use outside glibc, as follows:
88427
88428         * lib/tempname.c (struct_stat64): New macro.
88429         (direxists, __gen_tempname): Use it.
88430         This avoids a portability problem with Solaris 8.
88431
88432         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88433         (<stddef.h>, <stdint.h>, <string.h>):
88434         Include only if STDC_HEADERS || _LIBC.
88435         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88436         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88437         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88438         (__set_errno): Define this macro if <errno.h> doesn't.
88439         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88440         Define these macros if <stdio.h> doesn't.
88441         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88442         Define these macros if <sys/stat.h>
88443         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88444         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88445         __xstat64): Define if not _LIBC.
88446         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88447         (__gen_tempname): Invoke gettimeofday only if
88448         HAVE_GETTIMEOFDAY || _LIBC;
88449         otherwise, fall back on plain "time".
88450         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88451
88452         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88453
88454         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88455
88456 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88457
88458         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88459
88460 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88461
88462         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88463         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88464         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88465         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88466
88467 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88468
88469         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88470         Remove workaround macros for hosts that have mbrtowc but not
88471         mbstate_t, as we now insist on proper declarations for both
88472         before using mbrtowc.
88473
88474 2001-02-17  Jim Meyering  <meyering@lucent.com>
88475
88476         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88477         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88478         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88479         UnixWare 7.1.1.
88480
88481         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88482         rather than AC_CACHE_VAL.
88483
88484 2001-02-17  Jim Meyering  <meyering@lucent.com>
88485
88486         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88487         around included file name.
88488
88489         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88490
88491         * lib/strftime.c: Update from GNU libc (the only changes were to
88492         comments).
88493
88494 2001-02-17  Jim Meyering  <meyering@lucent.com>
88495
88496         * lib/regex.c: Update from libc.
88497
88498 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88499
88500         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88501         clash.
88502
88503 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88504
88505         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88506         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88507         Reported by Mark Hounschell via Paul Eggert.
88508
88509 2001-02-07  Jim Meyering  <meyering@lucent.com>
88510
88511         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88512
88513 2001-02-05  Jim Meyering  <meyering@lucent.com>
88514
88515         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88516         it includes the patch required for `large file' support with at least
88517         HP-UX's 10.20 /bin/cc.
88518
88519 2001-02-03  Jim Meyering  <meyering@lucent.com>
88520
88521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88522         AS_IF, now that it works once again (mysteriously).
88523         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88524
88525 2001-01-30  Jim Meyering  <meyering@lucent.com>
88526
88527         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88528         * m4/chown.m4: Rename conftestchown to conftest.chown.
88529         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88530         s/conftestdir2/conftest.d2/.
88531         * m4/utimes.m4: s/conftestdata/conftest.data/
88532         Inspired by Pavel Roskin's change in autoconf.
88533
88534 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88535
88536         * lib/config.charset: Update for FreeBSD 4.2.
88537
88538 2001-01-27  Jim Meyering  <meyering@lucent.com>
88539
88540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88541         a use of AS_IF.
88542         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88543
88544 2001-01-26  Jim Meyering  <meyering@lucent.com>
88545
88546         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88547         quotearg.c includes it.
88548
88549 2001-01-26  Jim Meyering  <meyering@lucent.com>
88550
88551         * lib/quotearg.c: Include stddef.h.
88552         * lib/quote.c: Include stddef.h.
88553         Reported by Axel Kittenberger.
88554
88555         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88556         line in double quotes so that it evokes a better diagnostic.
88557         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88558         Reported by Axel Kittenberger.
88559
88560 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88561
88562         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88563         as if it was a `charset'.
88564
88565 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88566
88567         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88568         has const.
88569
88570 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88571
88572         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88573         to avoid a warning.  Add back 'const' to inptr.
88574
88575 2001-01-20  Jim Meyering  <meyering@lucent.com>
88576
88577         Be sure that headers are checked before used in code compiled
88578         for the type checks.
88579         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88580         In place of that, invoke jm_CHECK_ALL_TYPES.
88581         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88582         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88583         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88584         The check for ssize_t was mistakenly run before the test for unistd.h.
88585
88586         The configure-time check for stdbool.h was missing.
88587         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88588         (jm_PREREQ_HASH): New function.
88589
88590 2001-01-17  Jim Meyering  <meyering@lucent.com>
88591
88592         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88593         for autoconf-2.49c.
88594         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88595
88596 2001-01-16  Jim Meyering  <meyering@lucent.com>
88597
88598         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88599         From Bruno Haible.
88600
88601 2001-01-14  Jim Meyering  <meyering@lucent.com>
88602
88603         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88604         foo and bar.  Create conftestdir/ in the script, not in the C code.
88605         Remove directories in the script, not in the C code.
88606         Remove conftestdir{,2} before trying to create the directory.
88607         Make the entire configure script fail if the mkdir fails.
88608
88609 2001-01-14  Jim Meyering  <meyering@lucent.com>
88610
88611         * lib/rename.c: New file.  From Volker Borchert.
88612         Include stdlib.h, string.h or strings.h, and xalloc.h.
88613         Use strip_trailing_slashes rather than open-coding it.
88614
88615 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88616
88617         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88618
88619 2001-01-03  Jim Meyering  <meyering@lucent.com>
88620
88621         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88622         of local `inptr' to avoid warning with some system declarations of
88623         iconv.
88624
88625 2001-01-02  Volker Borchert  <bt@teknon.de>
88626
88627         * m4/rename.m4: New file.
88628         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88629
88630 2001-01-01  Jim Meyering  <meyering@lucent.com>
88631
88632         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88633         even on systems with utmpx.h.  It's necessary for the declaration of
88634         utmp's ut_user member.  Reported by Andreas Jaeger.
88635
88636         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88637         available. They are required for the declarations of getgrgid and
88638         getpwuid resp.
88639         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88640         Reported by Andreas Jaeger.
88641
88642 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88643
88644         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88645         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88646         so `make install' also works in VPATH builds.
88647
88648 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88649
88650         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88651         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88652         can be used in subdirectories.
88653
88654 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88655
88656         * lib/modechange.c: Do not assume that mode_t uses the
88657         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88658         the other-execute bit of FOO even if S_IXOTH != 1.
88659
88660         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88661         WOTH, XOTH, ALLM): New macros.
88662         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88663          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88664         Use them.
88665         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88666         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88667         (mode_compile):
88668         No need to use uintmax_t; unsigned long is long enough.
88669         Don't bother to get suffix since we don't use it.
88670
88671 2000-12-26  Jim Meyering  <meyering@lucent.com>
88672
88673         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88674         better with autoheader.
88675
88676 2000-12-24  Jim Meyering  <meyering@lucent.com>
88677
88678         * lib/hash.c (is_prime): Return explicit boolean values.
88679         (hash_get_first): Return NULL to appease Irix5.6's 89.
88680         Reported by Nelson Beebe.
88681
88682 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88683
88684         * lib/localcharset.c (locale_charset): Add support for Win32.
88685
88686 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88687
88688         * lib/physmem.h, lib/physmem.c: New files.
88689
88690         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88691         (noinst_HEADERS): Add physmem.h.
88692
88693         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88694         't' for compatibility with Solaris 8 sort.
88695
88696 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88697
88698         * lib/config.charset: Add support for BeOS.
88699
88700 2000-12-17  Jim Meyering  <meyering@lucent.com>
88701
88702         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88703         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88704
88705 2000-12-16  Jim Meyering  <meyering@lucent.com>
88706
88707         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88708         N and M) would have treated it like `chown N:N FILE'.
88709
88710         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88711
88712 2000-12-16  Jim Meyering  <meyering@lucent.com>
88713
88714         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88715         SHELLS_FILE to a file name that's useful on djgpp systems.
88716         Include stdlib.h.
88717         (ADDITIONAL_DEFAULT_SHELLS): Define.
88718         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88719         Based mostly on a patch from Prashant TR.
88720
88721 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88722
88723         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88724         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88725         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88726
88727 2000-12-08  Andreas Schwab  <schwab@suse.de>
88728
88729         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88730         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88731
88732 2000-12-07  Jim Meyering  <meyering@lucent.com>
88733
88734         * lib/stripslash.c (ISSLASH): Define.
88735         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88736         `/'.
88737         From Prashant TR.
88738
88739         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88740         (dir_name_r): Declare this function as static.
88741         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88742         manifest itself on a name containing a mix of slashes and
88743         backslashes.
88744         Make this function work with names starting with a DOS-style
88745         drive letter and colon prefix.
88746         (dir_name): Append `.' if necessary.
88747         Based mostly on patches from Prashant TR and Eli Zaretskii.
88748
88749         * lib/dirname.h (dir_name_r): Remove prototype.
88750
88751 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88752
88753         * m4/off_t-format.m4: Remove this file.
88754         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88755
88756 2000-12-06  Jim Meyering  <meyering@lucent.com>
88757
88758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88759         replacement strtoull, we may well need the replacement strtoul, too.
88760         Check for declarations of strtoul and strtoull.
88761         Check for strtol.  Mainly as a cue to cause automake to include
88762         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88763         Check for limits.h -- strtol.c needs it.
88764
88765 2000-12-05  Jim Meyering  <meyering@lucent.com>
88766
88767         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88768
88769 2000-12-04  Jim Meyering  <meyering@lucent.com>
88770
88771         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88772         Also include memory.h, stdlib.h, unistd.h if appropriate.
88773         Reported by Andreas Jaeger (conflicting declaration of malloc).
88774
88775 2000-12-02  Jim Meyering  <meyering@lucent.com>
88776
88777         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88778         * m4/jm-macros.m4 (jm_MACROS): require it.
88779
88780 2000-12-02  Jim Meyering  <meyering@lucent.com>
88781
88782         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88783
88784 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88785
88786         * lib/memrchr.c: Include <config.h> before any system include file.
88787
88788 2000-11-30  Jim Meyering  <meyering@lucent.com>
88789
88790         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88791
88792 2000-11-30  Jim Meyering  <meyering@lucent.com>
88793
88794         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88795
88796 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88797
88798         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88799
88800 2000-11-26  Jim Meyering  <meyering@lucent.com>
88801
88802         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88803
88804 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88805
88806         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88807         size of (size_t) -1; it's not portable.
88808
88809 2000-11-17  Jim Meyering  <meyering@lucent.com>
88810
88811         * lib/strstr.c: Update from GNU libc.
88812
88813 2000-11-17  Akim Demaille  <akim@epita.fr>
88814
88815         * lib/obstack.h: Formatting changes.
88816         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88817         prevent type checking.
88818         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88819         cast the value to (void *): assigning a `foo *' to a `void *'
88820         variable is valid.
88821         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88822
88823 2000-11-16  Jim Meyering  <meyering@lucent.com>
88824
88825         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88826
88827 2000-11-11  Jim Meyering  <meyering@lucent.com>
88828
88829         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88830
88831 2000-11-10  Jim Meyering  <meyering@lucent.com>
88832
88833         * lib/obstack.h: Update from GNU libc.
88834         * lib/obstack.c: Likewise.
88835
88836 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88837
88838         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88839
88840 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88841
88842         * lib/getusershell.c (setusershell): Use rewind rather than
88843         fseek/fseeko, to avoid configuration hassles with fseeko.
88844         Don't bother opening SHELLS_FILE if shellstream is NULL;
88845         it's not necessary.
88846
88847 2000-11-05  Jim Meyering  <meyering@lucent.com>
88848
88849         * lib/makepath.h (make_dir): Declare.
88850         * lib/makepath.c (make_dir): Remove `static' attribute.
88851         Tweak a comment.
88852
88853 2000-11-04  Jim Meyering  <meyering@lucent.com>
88854
88855         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88856
88857 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88858
88859         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88860         last one in a bucket, advance to the next bucket.
88861
88862 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88863
88864         * lib/fnmatch.c: Do not comment out all the code if we are using
88865         the GNU C library, because in some cases we are replacing buggy
88866         code in the GNU C library itself.
88867
88868 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88869
88870         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88871         (regex_compile): Catch bogus \(\1\).
88872
88873 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88874
88875         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88876         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88877         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88878
88879 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88880
88881         * lib/error.h, getline.h, modechange.h:
88882         Remove "2000" from Copyright line, as the file hasn't been
88883         changed this year other than in the copyright notice.
88884
88885         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88886         was changed this year.
88887
88888 2000-10-29  Jim Meyering  <meyering@lucent.com>
88889
88890         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88891         renaming.
88892         * m4/ls-mntd-fs.m4: Likewise
88893
88894 2000-10-29  Jim Meyering  <meyering@lucent.com>
88895
88896         * lib/xstat.in: Fix grammar in comment.
88897
88898 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88899
88900         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88901         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88902         doesn't define __restrict_arr.
88903
88904 2000-10-28  Jim Meyering  <meyering@lucent.com>
88905
88906         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88907         (jm_PREREQ_MEMCHR): New function.
88908
88909 2000-10-28  Jim Meyering  <meyering@lucent.com>
88910
88911         * lib/memchr.c: Update from libc.
88912         Adjust for portability:
88913         [HAVE_STDLIB_H]: Include stdlib.h.
88914         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88915         Undef __memchr, too.
88916         [!weak_alias]: Define __memchr to memchr.
88917
88918         * lib/regex.c: Update from libc.
88919         * lib/regex.h: Likewise.
88920         * lib/getopt1.c: Likewise.
88921         * lib/memcmp.c: Likewise.
88922
88923         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88924         Avoid using fseek, when possible -- it's broken by design.
88925         Patch by Ulrich Drepper.
88926
88927 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88928
88929         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88930         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88931         Giving in to popular pressure to shut up the compiler with casts.
88932
88933 2000-10-26  Jim Meyering  <meyering@lucent.com>
88934
88935         * lib/strftime.c: Update from libc.
88936
88937 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88938
88939         * regex.c: More `unsigned char' -> `re_char' changes.
88940         Also change several `int' into `re_wchar_t'.
88941         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88942         (PUSH_FAILURE_POINTER): Don't cast any more.
88943         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88944         We want GCC to complain, since this piece of code makes
88945         re_match non-reentrant, which *should* be fixed.
88946         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88947         (EXTEND_BUFFER): Use RETALLOC.
88948         (SET_LIST_BIT): Don't cast.
88949         (re_wchar_t): New type.
88950         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88951         that those two functions will always properly return.
88952         (IMMEDIATE_QUIT_CHECK): Cast to void.
88953         (analyse_first): Use recursion rather than an explicit stack.
88954         (re_compile_fastmap): Can't fail anymore.
88955         (re_search_2): Don't check re_compile_fastmap for failure.
88956         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88957         Now also sets the new value (passed in a new argument).
88958         (re_match_2_internal): Use it.
88959         Also, use a new var `reg' of type size_t when looping through regs
88960         rather than reuse the inappropriate `mcnt'.
88961
88962 2000-10-25  Jim Meyering  <meyering@lucent.com>
88963
88964         * lib/obstack.c: Update from libc.
88965
88966 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88967
88968         * regex.c (regex_compile): Change the way of handling a range from
88969         a char less than 256 to a char not less than 256.
88970
88971 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88972
88973         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88974         NT-Emacs only.
88975         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88976         so that re_search functions only quit when callers expect them to.
88977
88978 2000-10-23  Jim Meyering  <meyering@lucent.com>
88979
88980         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88981         wrong.  That set_locale call must not have any side effects.
88982         From Paul Eggert.
88983
88984 2000-10-22  Jim Meyering  <meyering@lucent.com>
88985
88986         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88987         [CYCLIC]: Remove now-unused definition.
88988
88989         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88990         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88991         Suggestion from Ulrich Drepper.
88992
88993 2000-10-21  Jim Meyering  <meyering@lucent.com>
88994
88995         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88996         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88997         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88998
88999 2000-10-21  Jim Meyering  <meyering@lucent.com>
89000
89001         * lib/dirname.c (memrchr): Declare if necessary.
89002         (dir_name): Remove the restriction that there be no
89003         trailing slashes.  Now, this code skips past them, effectively
89004         ignoring them.
89005         [TEST_DIRNAME] (main): New unit tests.
89006
89007         * lib/memrchr.c: New file from GNU libc.
89008         Undef __memrchr, too.
89009         [!weak_alias]: Define __memrchr to memrchr.
89010         Guard weak_alias use with `#ifdef weak_alias'.
89011
89012 2000-10-21  Jim Meyering  <meyering@lucent.com>
89013
89014         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89015         (dir_name): Use dir_name_r.
89016         * lib/dirname.h (dir_name_r): Declare it.
89017
89018 2000-10-17  Jim Meyering  <meyering@lucent.com>
89019
89020         * lib/quote.h (PARAMS): Define and use.
89021         Reported by Akim Demaille.
89022
89023         * lib/getopt.c: Update from libc.
89024
89025 2000-10-16  Jim Meyering  <meyering@lucent.com>
89026
89027         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89028         setlocale.
89029         From Jan Fedak.
89030
89031 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89032
89033         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89034
89035 2000-09-25  Jim Meyering  <meyering@lucent.com>
89036
89037         * lib/md5.h (rol): Define (from GnuPG).
89038
89039         * lib/sha.c: Give credit (GnuPG) where due.
89040         (M): Use rol rather than open-coding it.
89041         Add a FIXME comment.
89042
89043 2000-09-21  Jim Meyering  <meyering@lucent.com>
89044
89045         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89046         Reported by Michael Stone.
89047
89048 2000-09-20  Jim Meyering  <meyering@lucent.com>
89049
89050         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89051         (noinst_HEADERS): Add sha.h.
89052         Based on code from Scott G. Miller and from GnuPG.
89053
89054 2000-09-18  Jim Meyering  <meyering@lucent.com>
89055
89056         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89057         LIBS. Otherwise, everyone ends up linking with -lelf for some
89058         configurations.
89059         Reported by Mike Stone.
89060
89061 2000-09-15  Jim Meyering  <meyering@lucent.com>
89062
89063         * lib/regex.c: Update from libc.
89064
89065 2000-09-10  Jim Meyering  <meyering@lucent.com>
89066
89067         * lib/getopt.c (_getopt_internal): Update from glibc.
89068
89069 2000-09-09  Jim Meyering  <meyering@lucent.com>
89070
89071         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89072         think it should be used as a general replacement for isascii.
89073         * lib/fnmatch.c: Likewise.
89074         * lib/mbswidth.c: Likewise
89075         * lib/regex.c: Likewise.
89076
89077         Don't use atoi.
89078         * lib/userspec.c: Include sys/param.h and limits.h.
89079         Include xstrtol.h.
89080         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89081         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89082         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89083         UID, GID.  Check range.
89084
89085 2000-09-06  Jim Meyering  <meyering@lucent.com>
89086
89087         * lib/getopt.c (_getopt_internal): Update from glibc.
89088
89089 2000-08-30  Jim Meyering  <meyering@lucent.com>
89090
89091         * lib/strftime.c: Merge in changes from GNU libc.
89092
89093 2000-08-26  Jim Meyering  <meyering@lucent.com>
89094
89095         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89096         * m4/fpending.m4: New file.
89097
89098 2000-08-26  Jim Meyering  <meyering@lucent.com>
89099
89100         * lib/closeout.c: Include "__fpending.h".
89101         (close_stdout_status): Return right away if there's nothing to flush.
89102
89103         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89104         * lib/__fpending.c: New file.
89105         * lib/__fpending.h: New file.
89106
89107 2000-08-20  Jim Meyering  <meyering@lucent.com>
89108
89109         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89110         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89111         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89112
89113 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89114
89115         Improve fileutils installation on systems where running
89116         programs (like install) can't be unlinked.
89117         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89118         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89119
89120 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89121
89122         Standardize on "memory exhausted" instead of "Memory exhausted"
89123         or "virtual memory exhausted".
89124         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89125         "virtual memory exhausted".
89126         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89127         our own message.
89128         * lib/userspec.c (parse_user_spec): Likewise.
89129         * lib/bumpalloc.h: comment fix
89130         * lib/same.c, userspec.c: Include xalloc.h.
89131
89132         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89133         not char *const and pointing to a constant array.
89134         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89135         (xrealloc): Comment fix.
89136
89137         * lib/userspec.c (parse_user_spec):
89138         Don't translate a message until just before returning,
89139         to avoid unnecessary translation.
89140
89141 2000-08-07  Jim Meyering  <meyering@lucent.com>
89142
89143         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89144         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89145         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89146         getgroups.c, gethostname.c, getopt.h, group-member.c,
89147         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89148         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89149         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89150         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89151         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89152         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89153         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89154         yesno.c: Back out Copyright date changes for each file with no change
89155         this year.  This eases coordination with other programs using the same
89156         source code modules.  From Paul Eggert.
89157
89158 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89159
89160         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89161         not char, for compatibility with glibc 2.1.3 strftime.c.
89162
89163 2000-08-03  Greg McGary  <greg@mcgary.org>
89164
89165         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89166         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89167         (EXTEND_BUFFER): Use them.
89168
89169 2000-08-01  Jim Meyering  <meyering@lucent.com>
89170
89171         * lib/dirname.c (ISSLASH): Define.
89172         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89173         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89174         both `\' and `/' may be use as path separators.
89175         Based on a patch from Prashant TR.
89176
89177 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89178
89179         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89180         slot vector a constant, since it might get modified.
89181
89182 2000-07-31  Jim Meyering  <meyering@lucent.com>
89183
89184         * lib/xmalloc.c: Use `virtual memory exhausted', not
89185         `Memory exhausted'.
89186         * lib/obstack.c (print_and_abort): Likewise.
89187
89188 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89189
89190         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89191         buffer, so that the caller can always quote one small
89192         component of a "memory exhausted" message in slot 0.
89193         From a suggestion by Jim Meyering.
89194
89195 2000-07-30  Jim Meyering  <meyering@lucent.com>
89196
89197         * lib/makepath.c (make_path): Quote the other instance, too.
89198
89199         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89200         (STATIC_BUF_SIZE): Define.
89201         (quotearg_n_options): Use only statically allocated storage when
89202         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89203         than STATIC_BUF_SIZE.
89204
89205 2000-07-29  Jim Meyering  <meyering@lucent.com>
89206
89207         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89208         * lib/dirname.c (dir_name): Likewise.
89209
89210         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89211         `/'.
89212
89213         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89214         (dir_name): Assert that there are no trailing slashes.
89215
89216 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89217
89218         * lib/mbswidth.h (mbswidth): Add a flags argument.
89219         (mbswidth): New declaration.
89220         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89221         * lib/mbswidth.c (mbswidth): Add a flags argument.
89222         (mbsnwidth): New function.
89223
89224 2000-07-24  Jim Meyering  <meyering@lucent.com>
89225
89226         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89227
89228 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89229
89230         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89231
89232 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89233
89234         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89235         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89236         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89237         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89238         invoke multibyte primitives.
89239
89240 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89241
89242         * lib/quotearg.c:
89243         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89244         so that mbstate_t is always defined.
89245
89246         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89247         be 1 in at least one GCC installation, and this configuration
89248         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89249         performance on hosts that have mbrtowc but have only unibyte
89250         locales, but I assume these hosts are rare.
89251
89252 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89253
89254         * lib/mbswidth.c (_XOPEN_SOURCE):
89255         Don't define; this causes problems on Solaris 7.
89256         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89257
89258 2000-07-23  Jim Meyering  <meyering@lucent.com>
89259
89260         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89261         too: getgrgid, getpwuid, getuid.
89262
89263 2000-07-23  Jim Meyering  <meyering@lucent.com>
89264
89265         * lib/basename.c (base_name): Add an assertion.
89266
89267 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89268
89269         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89270         shadow its mbsinit function.
89271
89272 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89273
89274         * lib/mbswidth.h: New file.
89275         * lib/mbswidth.c: New file.
89276         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89277         (noinst_HEADERS): Add mbswidth.h.
89278
89279 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89280
89281         * lib/config.charset: Add support for FreeBSD. Improve support for
89282         HP-UX and IRIX 6.
89283
89284 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89285
89286         * m4/mbswidth.m4: New file.
89287         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89288
89289 2000-07-15  Jim Meyering  <meyering@lucent.com>
89290
89291         * lib/makepath.c: Include quote.h.
89292         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89293         corresponding argument in a `quote (...)' call.
89294         Give better diagnostics.
89295
89296         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89297         (noinst_HEADERS): Add quote.h.
89298
89299         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89300         from tar's src/misc.c.
89301         * lib/quote.h: New file.  Prototypes for same.
89302
89303 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89304
89305         From a suggestion by Bruno Haible.
89306         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89307         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89308         to decide whether to define the BeOS workaround macro;
89309         this adjusts to the change to AC_MBSTATE_T.
89310
89311 2000-07-14  Jim Meyering  <meyering@lucent.com>
89312
89313         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89314         jm_AC_TYPE_UINTMAX_T.
89315
89316 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89317
89318         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89319
89320         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89321         quotearg_buffer_restyled): Add support for
89322         clocale_quoting_style.  Undo previous change to
89323         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89324         and "{RIGHT QUOTATION MARK}" msgids.
89325
89326 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89327
89328         From a suggestion by Bruno Haible.
89329         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89330         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89331         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89332         and mbstate_t, to a single-part test that simply defines mbstate_t.
89333         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89334         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89335
89336 2000-07-10  Jim Meyering  <meyering@lucent.com>
89337
89338         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89339
89340         * m4/gnu-source.m4: Output to confdefs.h directly.
89341         Suggestion from Akim Demaille.
89342
89343 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89344
89345         The old behavior of quoting `like this' doesn't look good with
89346         newer, ISO-style fonts.  See:
89347         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89348
89349         Instead, quote "like this" by default.  Let the translator
89350         tailor the locale-specific quoting behavior by providing
89351         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89352
89353         * lib/quotearg.c (N_): New macro.
89354         (gettext_default): New function.
89355         (quotearg_buffer_restyled): Use
89356         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89357         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89358
89359 2000-07-09  Jim Meyering  <meyering@lucent.com>
89360
89361         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89362         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89363
89364         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89366
89367 2000-07-09  Jim Meyering  <meyering@lucent.com>
89368
89369         * lib/Most files: Update copyright dates to include 2000.
89370
89371 2000-07-08  Jim Meyering  <meyering@lucent.com>
89372
89373         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89374         if not defined.
89375         (xgethostname): Remove now-unnecessary #ifdef.
89376         Move declaration of `err' into loop where it's used.
89377
89378 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89379         and Bruno Haible  <haible@clisp.cons.org>
89380
89381         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89382         only if the test for an object-type mbstate_t fails.  This
89383         prevents us from mistakenly reporting that mbstate_t is a
89384         system object type after we "#define mbstate_t int" to work
89385         around its lack.
89386
89387 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89388         and Bruno Haible  <haible@clisp.cons.org>
89389
89390         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89391
89392 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89393
89394         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89395         to strerror_r.
89396         Include <ctype.h> for use of isalpha.
89397
89398 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89399
89400         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89401         by allocating a larger buffer. Test the gethostname return value for
89402         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89403         returns an error and ENAMETOOLONG isn't defined.
89404
89405 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89406
89407         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89408         dimension.
89409
89410 2000-07-04  Jim Meyering  <meyering@lucent.com>
89411
89412         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89413         of the deprecated AC_CHECKING.
89414
89415 2000-07-04  Jim Meyering  <meyering@lucent.com>
89416
89417         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89418         Reported by Bruno Haible.
89419
89420 2000-07-04  Jim Meyering  <meyering@lucent.com>
89421
89422         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89423         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89424         lacks mbrtowc.
89425
89426 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89427
89428         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89429         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89430
89431 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89432         and Bruno Haible  <haible@clisp.cons.org>
89433
89434         * lib/quotearg.c (mbrtowc):
89435         Assign to *pwc, and return 1 only if result is nonzero.
89436         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89437
89438 2000-07-03  Jim Meyering  <meyering@lucent.com>
89439
89440         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89441
89442 2000-07-03  Jim Meyering  <meyering@lucent.com>
89443
89444         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89445         This is necessary to get a definition of e.g., UTMP_FILE on
89446         HP-UX 10.20.
89447         From Bob Proulx.
89448
89449 2000-07-02  Jim Meyering  <meyering@lucent.com>
89450
89451         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89452
89453         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89454         AC_LIBOBJ(function_name).
89455         * m4/chown.m4: Likewise.
89456         * m4/fnmatch.m4: Likewise.
89457         * m4/ftruncate.m4: Likewise.
89458         * m4/getgroups.m4: Likewise.
89459         * m4/getline.m4: Likewise.
89460         * m4/group-member.m4: Likewise.
89461         * m4/jm-macros.m4: Likewise.
89462         * m4/lstat.m4: Likewise.
89463         * m4/malloc.m4: Likewise.
89464         * m4/memcmp.m4: Likewise.
89465         * m4/nanosleep.m4: Likewise.
89466         * m4/putenv.m4: Likewise.
89467         * m4/realloc.m4: Likewise.
89468         * m4/regex.m4: Likewise.
89469         * m4/stat.m4: Likewise.
89470         * m4/strftime.m4: Likewise.
89471
89472 2000-07-02  Jim Meyering  <meyering@lucent.com>
89473
89474         * lib/quotearg.c (mbstate_t): Don't define here.
89475
89476 2000-07-02  Jim Meyering  <meyering@lucent.com>
89477
89478         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89479
89480 2000-07-01  Jim Meyering  <meyering@lucent.com>
89481
89482         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89483
89484 2000-07-01  Jim Meyering  <meyering@lucent.com>
89485
89486         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89487         problem.
89488
89489 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89490
89491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89492         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89493
89494 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89495
89496         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89497         per change in ../m4/ls-mntd-fs.m4.
89498         (read_filesystem_list): Ignore symbolic links.
89499
89500 2000-06-29  Jim Meyering  <meyering@lucent.com>
89501
89502         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89503         for declaration of strcmp.
89504
89505         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89506
89507         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89508         Avoid warning by casting result to `char *' to remove `const'.
89509
89510 2000-06-28  Jim Meyering  <meyering@lucent.com>
89511
89512         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89513         included by quotearg.c, for which we perform this test.  From
89514         Bruno Haible.
89515
89516 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89517
89518         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89519         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89520         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89521
89522 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89523
89524         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89525
89526 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89527
89528         savedir now sets errno on failure and invokes xmalloc to get memory.
89529         Fix a couple of other minor bugs while we're at it.
89530
89531         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89532         (NAMLEN): Remove macro.
89533         (malloc, realloc): Remove decls.
89534         (stpcpy): Likewise.
89535         ("xalloc.h"): Include.
89536         (NAME_SIZE_DEFAULT): New macro.
89537         (savedir): Use xmalloc / xrealloc to allocate memory.
89538         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89539         Skip "" directory entries.
89540         Use strlen to calculate directory entry length, since the old method
89541         is rarely used these days and isn't worth supporting.
89542         Don't use a pointer after freeing it.
89543         Check for integer overflow when calculating allocation size.
89544         Use memcpy to copy entries, instead of stpcpy.
89545         Set errno properly when returning NULL.
89546         Check for readdir error.
89547
89548 2000-06-26  Jim Meyering  <meyering@lucent.com>
89549
89550         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89551
89552 2000-06-25  Jim Meyering  <meyering@lucent.com>
89553
89554         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89555         Linux header bug when _XOPEN_SOURCE is defined to 500.
89556
89557 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89558
89559         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89560         deficiency.
89561
89562 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89563
89564         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89565         Include xalloc.h.
89566         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89567
89568 2000-06-24  Jim Meyering  <meyering@lucent.com>
89569
89570         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89571         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89572         for which strerror does return char*, but which lacks a conveniently
89573         accessible declaration of the function.  If the compile-test says
89574         strerror_r doesn't work, then resort to a `run'-test that works on
89575         BeOS and segfaults on DEC Unix.
89576
89577 2000-06-24  Jim Meyering  <meyering@lucent.com>
89578
89579         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89580
89581 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89582
89583         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89584         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89585
89586 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89587
89588         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89589         (mbrtowc, mbstate_t): Define substitutes if
89590         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89591         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89592         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89593
89594 2000-06-23  Jim Meyering  <meyering@lucent.com>
89595
89596         * m4/afs.m4: Add missing AC_MSG_RESULT.
89597         Reported by Bruno Haible.
89598
89599         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89600         Suggestion from Bruno Haible.
89601
89602 2000-06-23  Jim Meyering  <meyering@lucent.com>
89603
89604         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89605
89606 2000-06-21  Jim Meyering  <meyering@lucent.com>
89607
89608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89609
89610 2000-06-21  Jim Meyering  <meyering@lucent.com>
89611
89612         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89613         (noinst_HEADERS): Add getstr.h.
89614
89615         * lib/getline.c (getstr): Move into a separate file.
89616         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89617         the following changes: new parameter, delim2; both delim[12]
89618         parameters have type `int', not `char'.  The latter would lose
89619         with 8-bit delimiters.
89620         * lib/getstr.h: New file.
89621
89622 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89623
89624         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89625         than 1024, return a memory chunk of least possible size, instead
89626         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89627         Use free/xmalloc instead of xrealloc to avoid copying for very long
89628         paths.
89629
89630 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89631
89632         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89633         the empty string.
89634
89635 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89636
89637         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89638         address, not strdup.  Include <stdlib.h> and don't declare free().
89639
89640 2000-06-19  Jim Meyering  <meyering@lucent.com>
89641
89642         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89643
89644 2000-06-18  Jim Meyering  <meyering@lucent.com>
89645
89646         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89647
89648         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89649         `checking whether...' message to be consistent with that of the
89650         lstat test.
89651
89652 2000-06-18  Jim Meyering  <meyering@lucent.com>
89653
89654         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89655         Besides, these days every porting target provides a mkdir function.
89656
89657         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89658         needed. (this snippet comes from src/system.h).
89659
89660 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89661
89662         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89663
89664 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89665
89666         * lib/human.c (adjust_value): New function.
89667         (human_readable_inexact): Apply rounding style even when
89668         printing approximate values.
89669
89670 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89671
89672         * lib/human.c (human_readable_inexact): Allow an input block
89673         size that is not a multiple of the output block size, and vice versa.
89674         Reported by Piergiorgio Sartor.
89675
89676 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89677
89678         * lib/getdate.y (get_date): Apply relative times after time
89679         zone indicator, not before.  Reported by Todd A. Jacobs.
89680
89681 2000-06-13  Jim Meyering  <meyering@lucent.com>
89682
89683         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89684
89685         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89686
89687 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89688
89689         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89690
89691 2000-06-12  Jim Meyering  <meyering@lucent.com>
89692
89693         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89694         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89695         optional argument.
89696         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89697         the optional argument, `lib'.
89698
89699 2000-06-08  Jim Meyering  <meyering@lucent.com>
89700
89701         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89702
89703 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89704
89705         Rewrite largefile configuration so that we don't need to run
89706         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89707         AC_CANONICAL_HOST in configure.in -- jmm]
89708
89709         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89710         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89711         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89712         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89713         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89714         All uses changed.
89715         Instead of inspecting the output of getconf, try to compile the
89716         test program without and with the macro definition.
89717         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89718         for getconf.  Instead, check for the needed flags by compiling
89719         test programs.
89720
89721 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89722
89723         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89724
89725 2000-06-04  Jim Meyering  <meyering@lucent.com>
89726
89727         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89728         SunOS 4.1.4 for which gid_t is an unsigned type.
89729
89730 2000-06-03  Jim Meyering  <meyering@lucent.com>
89731
89732         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89733         now that autoconf requires that.
89734
89735         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89736         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89737         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89738
89739 2000-06-03  Jim Meyering  <meyering@lucent.com>
89740
89741         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89742
89743 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89744
89745         * m4/glibc21.m4: New file.
89746         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89747
89748 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89749
89750         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89751         newer, don't install charset.alias.
89752         * lib/config.charset: Change the Linux/glibc rules so they become empty
89753         on glibc-2.1 or newer.
89754
89755 2000-06-02  Jim Meyering  <meyering@lucent.com>
89756
89757         * lib/mountlist.c: Back out last change.  Instead, do this...
89758         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89759         me_dummy member using the same `ignore'-testing code.
89760         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89761         fs_type strings.
89762         From Mark D. Roth.
89763
89764 2000-05-29  Jim Meyering  <meyering@lucent.com>
89765
89766         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89767         mounts with the `ignore' attribute.  Based on a patch from
89768         Mark D. Roth.
89769
89770 2000-05-28  Jim Meyering  <meyering@lucent.com>
89771
89772         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89773         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89774         * m4/stat.m4: Likewise.
89775         * m4/lstat.m4: Likewise.
89776         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89777
89778         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89779         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89780
89781 2000-05-26  Jim Meyering  <meyering@lucent.com>
89782
89783         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89784
89785 2000-05-24  Jim Meyering  <meyering@lucent.com>
89786
89787         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89788         autoconf requires that.
89789         * m4/lib-check.m4: Likewise.
89790         * m4/jm-macros.m4: Likewise.
89791         * m4/strftime.m4: Likewise.
89792
89793         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89794         AC_CHECK_DECLS, now that autoconf requires that.
89795
89796 2000-05-22  Jim Meyering  <meyering@lucent.com>
89797
89798         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89799         * m4/lstat.m4: Likewise.
89800
89801 2000-05-22  Jim Meyering  <meyering@lucent.com>
89802
89803         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89804
89805 2000-05-20  Jim Meyering  <meyering@lucent.com>
89806
89807         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89808         (jm_PREREQ): Use it.
89809
89810 2000-05-18  Jim Meyering  <meyering@lucent.com>
89811
89812         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89813         back, too, since it may have been modified by allocate_entry.
89814         (hash_delete): Rewrite to use neither the assignment operator
89815         nor the comma operator in an if-expression.
89816
89817 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89818
89819         * lib/closeout.c:
89820         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89821         Remove; no longer needed.
89822         "quotearg.h": Add include.
89823         (file_name): Do not bother to explicitly initialize to NULL; it's less
89824         efficient on some hosts.
89825         (close_stdout_status): Remove test as to whether stdout was already
89826         closed; it breaks for the case "echo x | sort >&-".
89827         Quote file name colons.
89828         Do not assume that _("write error") lacks format strings.
89829
89830 2000-05-15  Jim Meyering  <meyering@lucent.com>
89831
89832         * lib/version-etc.c (version_etc_copyright): Update the copyright
89833         string used in all --version output.
89834
89835 2000-05-14  Jim Meyering  <meyering@lucent.com>
89836
89837         * lib/closeout.c (close_stdout_set_file_name): New function.
89838         (close_stdout_status): Use new file-scoped global.
89839         Return right away if fstat says the stdout file descriptor is invalid.
89840         * lib/closeout.h (close_stdout_set_file_name): Declare.
89841
89842 2000-05-10  Jim Meyering  <meyering@lucent.com>
89843
89844         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89845         (close_stdout_set_status): New function.
89846         * lib/closeout.h (close_stdout_set_status): Declare.
89847
89848 2000-05-09  Jim Meyering  <meyering@lucent.com>
89849
89850         * m4/gettext.m4: Rename this...
89851         * m4/libintl.m4: ...to this.
89852
89853 2000-05-08  Jim Meyering  <meyering@lucent.com>
89854
89855         * lib/long-options.c: Don't include closeout.h.
89856         (parse_long_options): Don't call close_stdout for --version.
89857
89858 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89859
89860         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89861         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89862         2.1.3 bug.  This avoids a clash when files like regex.c define
89863         _GNU_SOURCE.
89864
89865 2000-05-06  Jim Meyering  <meyering@lucent.com>
89866
89867         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89868         (AC_REPLACE_FUNCS): Add strnlen.
89869
89870         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89871         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89872
89873         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89874         AC_SEARCH_LIBS call for nanosleep.
89875         (LIB_NANOSLEEP): Set and AC_SUBST.
89876
89877 2000-05-06  Jim Meyering  <meyering@lucent.com>
89878
89879         * lib/strnlen.c: Undefine __strnlen and strnlen.
89880         [!weak_alias]: Define __strnlen to strnlen.
89881
89882         * lib/atexit.c: New file, from libiberty.
89883
89884 2000-05-06  Jim Meyering  <meyering@lucent.com>
89885
89886         * lib/closeout.c (close_stdout_status): Also check for errors on the
89887         stderr stream.
89888
89889 2000-05-05  Jim Meyering  <meyering@lucent.com>
89890
89891         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89892         AC_SEARCH_LIBS call for clock_gettime.
89893         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89894
89895         * m4/search-libs.m4: Update from autoconf.
89896
89897         su doesn't work on Solaris 2.6.
89898         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89899         <shadow.h>.  Reported by Dragos Harabor.
89900
89901 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89902
89903         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89904         memcpy instead of xmalloc, xrealloc, path_concat.
89905         (locale_charset): Treat empty environment variables as absent.
89906         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89907
89908 2000-05-04  Jim Meyering  <meyering@lucent.com>
89909
89910         * lib/getopt.c: Update from glibc.
89911         * lib/obstack.c: Likewise.
89912         * lib/obstack.h: Likewise.
89913         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89914         file
89915
89916         * lib/regex.h: Likewise.
89917         * lib/strndup.c: Likewise.
89918         * lib/strnlen.c: New file, from glibc.
89919
89920 2000-05-03  Jim Meyering  <meyering@lucent.com>
89921
89922         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89923
89924 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89925
89926         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89927         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89928         compile-time test, rather than inspecting host and OS, to
89929         decide whether to define _LARGEFILE_SOURCE.
89930
89931 2000-05-01  Jim Meyering  <meyering@lucent.com>
89932
89933         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89934
89935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89936         Based on a patch from Bruno Haible.
89937
89938 2000-05-01  Jim Meyering  <meyering@lucent.com>
89939
89940         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89941
89942 2000-04-29  Jim Meyering  <meyering@lucent.com>
89943
89944         * lib/path-concat.c: Declare strdup only if it's not defined.
89945         * lib/canon-host.c: Likewise.
89946
89947 2000-04-28  Jim Meyering  <meyering@lucent.com>
89948
89949         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89950         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89951         is included first, then limits.h is included by locale.h by libintl.h.
89952         From John David Anglin.
89953
89954 2000-04-25  Jim Meyering  <meyering@lucent.com>
89955
89956         * lib/makepath.c (S_IRWXUGO): Define.
89957         (make_path): Always perform explicit chmod if MODE specifies any
89958         of the `special' permission bits.  Prompted by a bug report against
89959         install from Mate Wierdl and Joost van Baal.
89960
89961 2000-04-18  Jim Meyering  <meyering@lucent.com>
89962
89963         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89964         (jm_PREREQ): Use it.
89965
89966 2000-04-18  Jim Meyering  <meyering@lucent.com>
89967
89968         * lib/README: New file.
89969
89970         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89971         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89972
89973 2000-04-17  Jim Meyering  <meyering@lucent.com>
89974
89975         Get it right :-)
89976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89977         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89978         Suggestion from Akim Demaille.
89979
89980 2000-04-17  Jim Meyering  <meyering@lucent.com>
89981
89982         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89983         the definition of it to rpl_strftime also defined-away the system's
89984         declaration.
89985
89986 2000-04-15  Jim Meyering  <meyering@lucent.com>
89987
89988         Use `C' to denote so-called `contiguous' files, the same way
89989         that tar does.
89990         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89991         (ftypelet): Use S_ISCTG.
89992         From Michael Deutschmann.
89993
89994 2000-04-14  Jim Meyering  <meyering@lucent.com>
89995
89996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89997         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89998         clobbered.
89999
90000 2000-04-14  Jim Meyering  <meyering@lucent.com>
90001
90002         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90003
90004 2000-04-13  Jim Meyering  <meyering@lucent.com>
90005
90006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90007         AH_VERBATIM to insert required #ifndef into config.h.in.
90008         Suggestion from Akim Demaille.
90009
90010 2000-04-12  Jim Meyering  <meyering@lucent.com>
90011
90012         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90013         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90014         Christian Krackowizer.
90015
90016         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90017         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90018         (AC_SYS_LARGEFILE): Require.
90019         (AM_C_PROTOTYPES): Require.
90020
90021 2000-04-08  Jim Meyering  <meyering@lucent.com>
90022
90023         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90024         names don't conflict.  Reported by Eli Zaretskii.
90025
90026 2000-04-07  Jim Meyering  <meyering@lucent.com>
90027
90028         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90029         sys/types.h, to work around system header problems on AIX 3.2.5.
90030         From Bruno Haible.
90031
90032 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90033
90034         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90035         bug.  Deal with the different error behavior of Irix iconv.
90036
90037 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90038
90039         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90040         IRIX if the installer said otherwise.
90041
90042 2000-04-05  Jim Meyering  <meyering@lucent.com>
90043
90044         Portability tweaks required for ultrix4.3.
90045         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90046         (jm_CHECK_DECLS): Add getutent to the list of functions.
90047         (_jm_DECL_HEADERS): Add utmpx.h.
90048         From John David Anglin.
90049
90050         * m4/strftime.m4: Back out the 2000-04-02 change.
90051         Instead of that change, simply undefine putenv in the test program.
90052
90053 2000-04-05  Jim Meyering  <meyering@lucent.com>
90054
90055         Portability tweaks required for ultrix4.3.
90056         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90057         getutent.
90058         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90059         * lib/canon-host.c: Declare strdup.
90060         * lib/path-concat.c: Likewise.
90061         From John David Anglin.
90062
90063 2000-04-04  Jim Meyering  <meyering@lucent.com>
90064
90065         Be more DOS 8.3-friendly.
90066         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90067         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90068         * lib/Makefile.am: Reflect renaming.
90069         Reported by Eli Zaretskii.
90070
90071         Use a temporary file name that won't clash with `charset.alias'
90072         in the DOS 8.3 name space.
90073         * lib/Makefile.am (charset_tmp): Define.
90074         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90075         (uninstall-local): Likewise.
90076         Reported by Eli Zaretskii.
90077
90078 2000-04-03  Jim Meyering  <meyering@lucent.com>
90079
90080         * m4/gettext.m4: Fix typo in comment.
90081
90082         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90083         textutils/configure.in).  Suggestion from Paul Eggert.
90084         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90085
90086 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90087
90088         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90089         variable in the shell rather than using putenv, which isn't
90090         portable.  This avoids the configure-time inter-test dependency
90091         on the potentially-renamed putenv function.
90092
90093 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90094
90095         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90096         before checking struct stat.st_blksize, so that
90097         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90098
90099 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90100
90101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90102         since strftime.c uses HAVE_STRFTIME to decide whether to use
90103         the underlying strftime.
90104
90105 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90106
90107         * lib/time/strftime.c (my_strftime): Make sure we call the system
90108         strftime, not ourselves, when invoking the underlying strftime.
90109
90110 2000-03-24  Jim Meyering  <meyering@lucent.com>
90111
90112         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90113         (charset_alias): Define.
90114         (install-exec-local): Factor out common code.
90115         (uninstall-local): Split lines longer than 80.
90116         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90117         (SUFFIXES): Define.
90118         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90119         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90120
90121 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90122
90123         * lib/config.charset: Output a line containing "Packages using this
90124         file".
90125         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90126         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90127         ref-del.sed): New rules.
90128
90129 2000-03-17  Jim Meyering  <meyering@lucent.com>
90130
90131         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90132         Otherwise, include <strings.h>
90133
90134 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90135
90136         * lib/unicodeio.c (utf8_wctomb): New function.
90137         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90138         format instead of in UCS-4 with platform dependent endianness.
90139
90140 2000-03-10  Jim Meyering  <meyering@lucent.com>
90141
90142         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90143         From Marco Franzen.
90144
90145 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90146
90147         * lib/savedir.c (savedir): Work even if directory size is
90148         negative; this can happen with some screwy NFS configurations.
90149
90150 2000-03-06  Jim Meyering  <meyering@lucent.com>
90151
90152         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90153         if it's NULL (because we ran out of memory).  From Bruno Haible.
90154
90155 2000-03-05  Jim Meyering  <meyering@lucent.com>
90156
90157         * lib/localcharset.c ("path-concat.h"): Include.
90158         (get_charset_aliases): Use path_concat instead of ANSI string
90159         concatenation.
90160
90161         * lib/unicodeio.h (PARAMS): Define.
90162         Use it to guard prototype.
90163
90164 2000-03-04  Jim Meyering  <meyering@lucent.com>
90165
90166         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90167         for lib/localcharset.c.
90168
90169 2000-03-04  Jim Meyering  <meyering@lucent.com>
90170
90171         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90172         installing into it.
90173         (uninstall-local): Uncomment this rule so `make distcheck' works
90174         once again.
90175
90176         * lib/unicodeio.c (<errno.h>): Include it.
90177         (errno): Declare if not defined.
90178
90179         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90180
90181         * lib/config.charset: New version, incorporating remarks from a linux
90182         i18n mailing list.  From Bruno Haible.
90183
90184 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90185
90186         * m4/codeset.m4: New file.
90187         * m4/iconv.m4: New file.
90188         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90189
90190 2000-03-03  Jim Meyering  <meyering@lucent.com>
90191
90192         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90193
90194 2000-03-02  Jim Meyering  <meyering@lucent.com>
90195
90196         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90197         the messages come out on separate lines.
90198
90199         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90200         rather than jm_CHECK_DECLARATIONS.
90201         * m4/decl.m4: Remove now-unused file.
90202
90203         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90204         geteuid.
90205
90206 2000-03-02  Jim Meyering  <meyering@lucent.com>
90207
90208         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90209
90210 2000-03-01  Jim Meyering  <meyering@lucent.com>
90211
90212         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90213         * lib/unicodeio.c: Likewise.
90214
90215 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90216
90217         * lib/config.charset: New file.
90218         * lib/localcharset.c: New file.
90219         * lib/unicodeio.h, lib/unicodeio.c: New files.
90220         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90221         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90222         (noinst_HEADERS): Add unicodeio.h.
90223         (all-local, install-exec-local, charset.alias): New targets.
90224
90225 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90226
90227         * lib/quotearg.c (ALERT_CHAR): New macro.
90228         (quotearg_buffer_restyled): Use it.
90229
90230 2000-02-27  Jim Meyering  <meyering@lucent.com>
90231
90232         * m4/check-decl.m4: Add getenv to the list.
90233
90234 2000-02-27  Jim Meyering  <meyering@lucent.com>
90235
90236         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90237         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90238
90239         * lib/backupfile.c: Guard inclusion of stdlib.h with
90240         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90241         Declare malloc if needed.
90242
90243         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90244         `#ifndef HAVE_DECL..'
90245         now that autoconf always defines the HAVE_DECL_ symbols.
90246         * lib/human.c: Likewise.
90247         * lib/same.c: Likewise.
90248         * lib/strtoumax.c: Likewise.
90249
90250         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90251         declaration check was not run.
90252         * lib/hash.c: Likewise.
90253         * lib/human.c: Likewise.
90254         * lib/same.c: Likewise.
90255         * lib/strtoumax.c: Likewise.
90256
90257         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90258         `.', then first look up the entire `.'-containing string as a login
90259         name.
90260
90261 2000-02-23  Jim Meyering  <meyering@lucent.com>
90262
90263         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90264         in place of my hack.
90265
90266 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90267
90268         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90269         (textint): New typedef.
90270         (parser_control): Member year changed from int to textint.
90271         All uses changed.
90272         (YYSTYPE): Removed; replaced by %union with int and textint members.
90273         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90274         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90275         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90276         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90277         (date, number, to_year): Use width of number in digits, not its value,
90278         to determine whether it's a 2-digit year, or a 2-digit time.
90279         (yylex): Store number of digits of numeric tokens.
90280         Reported by John Kendall.
90281
90282         (parser_control): Changed from struct parser_control to typedef (for
90283         consistency).  All uses changed.
90284
90285         (tID): Removed; not used.
90286         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90287
90288 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90289
90290         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90291         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90292
90293 2000-02-12  Jim Meyering  <meyering@lucent.com>
90294
90295         * lib/userspec.c (ISDIGIT): Define it.
90296         (isdigit): Remove definition.
90297         (is_number): Use ISDIGIT, not isdigit.
90298         <libintl.h>: Include.
90299         (_ and N_): Define.
90300         (parse_user_spec): Mark translatable strings.
90301
90302 2000-02-10  Jim Meyering  <meyering@lucent.com>
90303
90304         With these changes, nanosleep.[ch] are finally enough like the other
90305         lib/* replacement files to compile on a few more losing systems.
90306
90307         * lib/nanosleep.h: Don't include config.h.
90308         Remove prototype from declaration of nanosleep.
90309         (PARAMS): Remove now-unneeded definition.
90310         * lib/nanosleep.c: #undef nanosleep.
90311         (rpl_nanosleep): Rename from nanosleep.
90312
90313 2000-02-10  Jim Meyering  <meyering@lucent.com>
90314
90315         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90316         gnu_nanosleep to rpl_nanosleep.
90317
90318 2000-02-09  Jim Meyering  <meyering@lucent.com>
90319
90320         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90321         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90322
90323 2000-02-08  Akim Demaille  <akim@epita.fr>
90324
90325         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90326         `[' and `]' and remove uses of `changequote'.
90327         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90328         (AC_SYS_LARGEFILE): Likewise.
90329         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90330         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90331         of changequote.
90332         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90333         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90334         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90335         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90336
90337 2000-02-05  Jim Meyering  <meyering@lucent.com>
90338
90339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90340         Remove explicit use of AC_HEADER_TIME.  It is required by
90341         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90342         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90343         in autoconf whereby the expansion of the latter ended up preceding
90344         the expansion of its prerequisite, AC_HEADER_TIME.
90345         Reported by Volker Borchert.
90346
90347 2000-02-03  Jim Meyering  <meyering@lucent.com>
90348
90349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90350
90351 2000-02-03  Jim Meyering  <meyering@lucent.com>
90352
90353         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90354         rather than with `#if HAVE_UTMPNAME'.
90355
90356 2000-02-02  Jim Meyering  <meyering@lucent.com>
90357
90358         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90359         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90360         Reported by Eli Zaretskii.
90361
90362 2000-02-01  Jim Meyering  <meyering@lucent.com>
90363
90364         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90365
90366 2000-01-31  Jim Meyering  <meyering@lucent.com>
90367
90368         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90369         functions.  Add the time.h and sys/time.h headers along with the
90370         AC_REQUIRE'ment of AC_HEADER_TIME.
90371
90372 2000-01-31  Jim Meyering  <meyering@lucent.com>
90373
90374         * lib/nanosleep.h (nanosleep): Guard declaration with
90375         `#if ! HAVE_DECL_NANOSLEEP'.
90376         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90377         the declaration in that vendor's sys/timers.h.
90378         Reported by Christian Krackowizer.
90379
90380         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90381         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90382         (ISPRINT): Likewise.
90383         Reported by Tom Tromey.
90384
90385 2000-01-30  Jim Meyering  <meyering@lucent.com>
90386
90387         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90388
90389         * m4/prereq.m4 (utmp_includes): Define.
90390         Check for ut_user and ut_name members in both struct utmpx
90391         and struct utmp.
90392
90393 2000-01-30  Jim Meyering  <meyering@lucent.com>
90394
90395         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90396         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90397         header files where only utmpx.ut_user is declared.
90398
90399         * lib/readutmp.h (UT_USER): Define.
90400
90401 2000-01-29  Jim Meyering  <meyering@lucent.com>
90402
90403         * m4/lib-check.m4: New file containing library-related checks from
90404         fileutils and sh-utils (textutils had none).
90405
90406 2000-01-28  Jim Meyering  <meyering@lucent.com>
90407
90408         * m4/perl.m4: Change format of warning message to look more like that
90409         from the missing script.  Suggestion from François Pinard.
90410
90411 2000-01-25  Jim Meyering  <meyering@lucent.com>
90412
90413         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90414         well as time.h in the compile check.
90415         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90416         Fix typo in cross-compiling case: s/yes/no/.
90417
90418 2000-01-23  Jim Meyering  <meyering@lucent.com>
90419
90420         * m4/jm-macros.m4: Move df-related tests here from
90421         fileutils/configure.in
90422
90423         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90424         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90425
90426         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90427         s/space/ac_fsusage_space/.
90428         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90429
90430         * m4/ftruncate.m4: New file (derived from part of
90431         fileutils/configure.in).
90432         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90433         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90434
90435         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90436         AC_SUBST these here, rather than just in sh-util/configure.in, so
90437         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90438         all the same.
90439         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90440         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90441         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90442         (AC_SUBST(POW_LIBM)): Likewise.
90443         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90444
90445 2000-01-23  Jim Meyering  <meyering@lucent.com>
90446
90447         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90448         obstack.c.
90449
90450 2000-01-22  Jim Meyering  <meyering@lucent.com>
90451
90452         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90453
90454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90455
90456         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90457         configure.in
90458         (AC_CHECK_HEADERS): Likewise for sh-utils.
90459         (AC_CHECK_HEADERS): Likewise for textutils.
90460         Merge the three lists of headers.
90461
90462         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90463         from fileutils' configure.in.
90464
90465         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90466         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90467         check-decl.m4.
90468
90469         * m4/check-decl.m4: Use #if rather than #ifdef.
90470         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90471         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90472         (_jm_DECL_HEADERS): Define new function.
90473         (jm_CHECK_DECLARATIONS): Require it.
90474
90475 2000-01-22  Jim Meyering  <meyering@lucent.com>
90476
90477         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90478         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90479         Required for some AIX systems.  Reported by Christian Krackowizer.
90480         [TESTING] (main): New function.
90481
90482         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90483         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90484         letters.
90485
90486         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90487         iswprint.
90488
90489         * lib/strverscmp.c (ISDIGIT): Define.
90490         (strverscmp): Use ISDIGIT, not isdigit.
90491
90492 2000-01-19  Jim Meyering  <meyering@lucent.com>
90493
90494         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90495         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90496         defines `struct timespec' in <sys/time.h>
90497
90498         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90499         Thanks to Akim for explaining.
90500
90501 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90502
90503         * lib/nanosleep.c (nanosleep):
90504         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90505         POSIX.1 doesn't require SA_INTERRUPT and some systems
90506         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90507         it's been part of POSIX.1 since day 1 (in 1988).
90508
90509 2000-01-17  Jim Meyering  <meyering@lucent.com>
90510
90511         * lib/interlock: Remove unused file.  Reported by François Pinard.
90512
90513 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90514
90515         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90516         alert, backslash, formfeed, and vertical tab unnecessarily in
90517         shell quoting style.
90518
90519 2000-01-16  Jim Meyering  <meyering@lucent.com>
90520
90521         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90522         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90523         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90524         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90525
90526 2000-01-16  Jim Meyering  <meyering@lucent.com>
90527
90528         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90529         because the latter didn't work.
90530
90531 2000-01-15  Jim Meyering  <meyering@lucent.com>
90532
90533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90534         (AC_REPLACE_FUNCS): Add memcpy and memset.
90535         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90536         Add strpbrk.
90537         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90538
90539 2000-01-12  Jim Meyering  <meyering@lucent.com>
90540
90541         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90542         (jm_PREREQ): Use it.
90543         (jm_PREREQ_READUTMP): New macro.
90544         (jm_PREREQ): Use it.
90545
90546 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90547
90548         Quote multibyte characters correctly.
90549         * m4/c-bs-a.m4: New file.
90550         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90551         (jm_PREREQ): Use it.
90552
90553 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90554
90555         * m4/uintmax_t.m4: Port to autoconf 2.13.
90556
90557 2000-01-08  Jim Meyering  <meyering@ascend.com>
90558
90559         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90560         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90561
90562 2000-01-04  Jim Meyering  <meyering@ascend.com>
90563
90564         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90565         jm_STRUCT_DIRENT_D_TYPE.
90566         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90567         jm_STRUCT_DIRENT_D_INO.
90568         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90569         jm_STRUCT_UTIMBUF.
90570         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90571         renamings.
90572         * m4/utime.m4: Likewise.
90573
90574         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90575         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90576
90577 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90578
90579         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90580         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90581
90582 2000-01-02  Jim Meyering  <meyering@ascend.com>
90583
90584         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90585         remember if this is necessary.
90586
90587 1999-12-26  Jim Meyering  <meyering@ascend.com>
90588
90589         * m4/jm-macros.m4: Use it here.
90590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90591
90592 1999-12-23  Jim Meyering  <meyering@ascend.com>
90593
90594         * m4/jm-macros.m4: Check for clock_gettime (moved from
90595         fileutils/configure.in)
90596         Check for gettimeofday.
90597
90598 1999-12-20  Jim Meyering  <meyering@ascend.com>
90599
90600         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90601         autoconf-2.14a-1999-12-20.
90602
90603 1999-12-19  Jim Meyering  <meyering@ascend.com>
90604
90605         * m4/lstat-slash.m4: New file.
90606         * m4/jm-macros.m4: Use the new macro:
90607         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90608
90609 1999-12-07  Jim Meyering  <meyering@ascend.com>
90610
90611         * m4/perl.m4: Require that File::Compare be available, too.
90612         Too many systems seem to lack it.
90613
90614         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90615         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90616
90617 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90618
90619         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90620         problem with the QNX 4.25 shell, which doesn't propagate exit
90621         status of failed commands inside shell assignments.
90622
90623 1999-11-17  Jim Meyering  <meyering@ascend.com>
90624
90625         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90626
90627 1999-11-07  Jim Meyering  <meyering@ascend.com>
90628
90629         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90630
90631 1999-11-06  Jim Meyering  <meyering@ascend.com>
90632
90633         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90634         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90635
90636 1999-11-05  Jim Meyering  <meyering@ascend.com>
90637
90638         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90639         configure.in of textutils, fileutils, and sh-utils into this one
90640         (shared between those packages) file.
90641         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90642         AC_STRUCT_ST_BLKSIZE.
90643
90644 1999-11-03  Jim Meyering  <meyering@ascend.com>
90645
90646         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90647         of AC_CHECK_TYPE checks includes unistd.h.
90648         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90649         Suggestion from Akim Demaille.
90650
90651 1999-10-30  Jim Meyering  <meyering@ascend.com>
90652
90653         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90654         m4-quoted string.
90655         * m4/ls-mntd-fs.m4: Likewise.
90656         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90657         * m4/jm-winsz1.m4: Likewise.
90658
90659         * m4/const.m4: Remove file, since the fix made it into the experimental
90660         version of autoconf.
90661         * m4/mktime.m4: Likewise.
90662
90663         * m4/check-type.m4: Remove file, now that the latest version of
90664         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90665
90666         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90667         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90668         AC_CHECK_TYPE.
90669
90670 1999-10-04  Jim Meyering  <meyering@ascend.com>
90671
90672         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90673
90674 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90675
90676         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90677         2.95.1 bug with HP-UX 10.20.
90678
90679 1999-09-17  Jim Meyering  <meyering@ascend.com>
90680
90681         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90682         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90683         due to missing strdup (against sh-utils-2.0).
90684
90685 1999-08-29  Jim Meyering  <meyering@ascend.com>
90686
90687         * m4/jm-macros.m4: Require jm_BISON.
90688         * m4/bison.m4: New file.
90689
90690 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90691
90692         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90693         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90694
90695 1999-08-05  Jim Meyering  <meyering@ascend.com>
90696
90697         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90698         to avoid conflicts with `conftest' on 8+3 filesystems.
90699         Suggestion from Eli Zaretskii.
90700
90701 1999-08-04  Jim Meyering  <meyering@ascend.com>
90702
90703         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90704         fileutils and sh-utils (textutils's getline test was inadequate).
90705         (AM_FUNC_GETLINE): Run this test.
90706         (AC_CHECK_FUNCS): Check for getdelim.
90707         Reported by Bob Proulx.
90708
90709 1999-08-02  Jim Meyering  <meyering@ascend.com>
90710
90711         * m4/jm-macros.m4: Add a comment.
90712
90713 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90714
90715         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90716         <inttypes.h> defines strtoumax as a macro (and not as a
90717         function).
90718
90719 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90720
90721         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90722         that we can shift, multiply and divide unsigned long long
90723         values; Ultrix cc can't do it.
90724
90725 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90726
90727         * m4/mktime.m4: New file, which is a preview of what should appear
90728         in the next public autoconf release.
90729
90730 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90731
90732         * m4/lfs.m4: Remove this file.
90733         * m4/largefile.m4: New file.  It contains the old contents of
90734         lfs.m4, except that all names with prefix AC_LFS have been
90735         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90736         compatible with future autoconf versions.  Also, some minor m4
90737         quoting problems have been fixed.
90738
90739 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90740
90741         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90742         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90743         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90744         and simplify the shell code.
90745
90746 1999-08-01  Jim Meyering  <meyering@ascend.com>
90747
90748         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90749         m4.
90750
90751 1999-07-20  Jim Meyering  <meyering@ascend.com>
90752
90753         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90754
90755 1999-07-15  Jim Meyering  <meyering@ascend.com>
90756
90757         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90758
90759 1999-05-22  Jim Meyering  <meyering@ascend.com>
90760
90761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90762
90763 1999-05-20  Jim Meyering  <meyering@ascend.com>
90764
90765         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90766         Add a colon after each `then' in case $4 is empty.
90767
90768 1999-05-16  Jim Meyering  <meyering@ascend.com>
90769
90770         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90771
90772 1999-05-10  Jim Meyering  <meyering@ascend.com>
90773
90774         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90775
90776         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90777         AC_FUNC_MKTIME.
90778
90779 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90780
90781         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90782
90783 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90784
90785         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90786         not CPPFLAGS, so that linking works correctly in IRIX.
90787
90788 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90789
90790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90791
90792 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90793
90794         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90795         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90797         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90798         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90799
90800         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90801
90802 1999-04-20  Jim Meyering  <meyering@ascend.com>
90803
90804         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90805         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90806         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90807
90808 1999-04-18  Jim Meyering  <meyering@ascend.com>
90809
90810         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90811         * m4/jm-macros.m4: Use it.
90812
90813 1999-04-06  Jim Meyering  <meyering@ascend.com>
90814
90815         * m4/strftime.m4: Remove test for %f.
90816
90817 1999-03-29  Jim Meyering  <meyering@ascend.com>
90818
90819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90820         superset of the AC_TYPE_* checks in the textutils, fileutils,
90821         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90822         AC_TYPE_PID_T.
90823
90824 1999-03-28  Jim Meyering  <meyering@ascend.com>
90825
90826         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90827         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90828         replaced e.g., in the *.sh files of the sh-utils.
90829
90830 1999-03-20  Jim Meyering  <meyering@ascend.com>
90831
90832         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90833         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90834         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90835
90836 1999-03-19  Jim Meyering  <meyering@ascend.com>
90837
90838         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90839
90840 1999-03-12  Jim Meyering  <meyering@ascend.com>
90841
90842         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90843
90844 1999-03-07  Jim Meyering  <meyering@ascend.com>
90845
90846         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90847         declared.
90848
90849 1999-02-17  Jim Meyering  <meyering@ascend.com>
90850
90851         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90852         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90853
90854 1999-02-07  Jim Meyering  <meyering@ascend.com>
90855
90856         * m4/group-member.m4: New file -- extracted from sh-utils'
90857         configure.in.
90858
90859         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90860         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90861
90862 1999-02-06  Jim Meyering  <meyering@ascend.com>
90863
90864         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90865         * m4/fnmatch.m4: Likewise.
90866         * m4/getgroups.m4: Likewise.
90867         * m4/lstat.m4: Likewise.
90868         * m4/malloc.m4: Likewise.
90869         * m4/putenv.m4: Likewise.
90870         * m4/realloc.m4: Likewise.
90871         * m4/regex.m4: Likewise.
90872         * m4/stat.m4: Likewise.
90873         * m4/strftime.m4: Likewise.
90874         Suggestion from Alain Magloire.
90875
90876         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90877         * m4/fnmatch.m4: Likewise.
90878         * m4/getgroups.m4: Likewise.
90879         * m4/getline.m4: Likewise.
90880         * m4/lstat.m4: Likewise.
90881         * m4/malloc.m4: Likewise.
90882         * m4/memcmp.m4: Likewise.
90883         * m4/putenv.m4: Likewise.
90884         * m4/realloc.m4: Likewise.
90885         * m4/regex.m4: Likewise.
90886         * m4/stat.m4: Likewise.
90887         * m4/strftime.m4: Likewise.
90888         Suggestion from Alain Magloire.
90889
90890         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90891         an argument.
90892
90893         * m4/regex.m4: Add a run-time Test for proper operation of
90894         re_compile_pattern.
90895
90896 1999-01-31  Jim Meyering  <meyering@ascend.com>
90897
90898         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90899
90900 1999-01-30  Jim Meyering  <meyering@ascend.com>
90901
90902         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90903
90904         * m4/jm-mktime.m4: Make this a wrapper around the official
90905         AM_FUNC_MKTIME rather than my private copy, now that the official one
90906         is up to date.
90907         * m4/mktime.m4: Remove file.
90908
90909         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90910         * m4/uptime.m4: Likewise.
90911         * m4/uintmax_t.m4: Likewise.
90912
90913 1999-01-28  Jim Meyering  <meyering@ascend.com>
90914
90915         * m4/jm-macros.m4: Use jm_AFS.
90916         * m4/afs.m4: New file (from fileutils' configure.in).
90917
90918         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90919         * m4/chown.m4: Likewise.
90920         * m4/d-ino.m4: Likewise.
90921         * m4/d-type.m4: Likewise.
90922         * m4/fnmatch.m4: Likewise.
90923         * m4/getgroups.m4: Likewise.
90924         * m4/gettext.m4: Likewise.
90925         * m4/jm-mktime.m4: Likewise.
90926         * m4/jm-winsz2.m4: Likewise.
90927         * m4/lcmessage.m4: Likewise.
90928         * m4/ls-mntd-fs.m4: Likewise.
90929         * m4/malloc.m4: Likewise.
90930         * m4/memcmp.m4: Likewise.
90931         * m4/putenv.m4: Likewise.
90932         * m4/realloc.m4: Likewise.
90933         * m4/st_mtim.m4: Likewise.
90934         * m4/strftime.m4: Likewise.
90935
90936 1999-01-16  Jim Meyering  <meyering@ascend.com>
90937
90938         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90939         (ARGMATCH_DIE_DECL): Define.
90940
90941 1999-01-12  Jim Meyering  <meyering@ascend.com>
90942
90943         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90944         Reported by Lars Hecking.
90945
90946 1999-01-10  Jim Meyering  <meyering@ascend.com>
90947
90948         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90949         gross kludge.
90950         * m4/inttypes_h.m4: Likewise.
90951         * m4/lstat.m4: Likewise.
90952         * m4/malloc.m4: Likewise.
90953         * m4/readdir.m4: Likewise.
90954         * m4/realloc.m4: Likewise.
90955         * m4/st_dm_mode.m4: Likewise.
90956         * m4/stat.m4: Likewise.
90957         * m4/utimbuf.m4: Likewise.
90958         * m4/utimes.m4: Likewise.
90959
90960         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90961         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90962         comments in config.h.in are meaningful.
90963
90964         * m4/jm-macros.m4: Require autoconf-2.13 here.
90965
90966         * m4/regex.m4: By default, don't use the included regex.c on systems
90967         with glibc 2.  Suggestion from Uli Drepper.
90968
90969 1999-01-02  Jim Meyering  <meyering@ascend.com>
90970
90971         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90972
90973 1998-12-18  Jim Meyering  <meyering@ascend.com>
90974
90975         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90976         Based on a suggestion from Lars Hecking.
90977
90978 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90979
90980         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90981
90982 1998-11-16  Jim Meyering  <meyering@ascend.com>
90983
90984         * m4/lfs.m4: Double-quote the `uname...` expression.
90985
90986 1998-11-14  Jim Meyering  <meyering@ascend.com>
90987
90988         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90989         * m4/stat.m4: Likewise.
90990
90991 1998-11-03  Jim Meyering  <meyering@ascend.com>
90992
90993         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90994         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90995
90996 1998-10-18  Jim Meyering  <meyering@ascend.com>
90997
90998         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90999
91000 1998-10-17  Jim Meyering  <meyering@ascend.com>
91001
91002         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91003         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91004         calls for those previously hard-coded headers.  Instead, take a new
91005         parameter.
91006         (jm_CHECK_DECLARATIONS): Reflect interface change.
91007         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91008         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91009
91010         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91011
91012 1998-10-14  Jim Meyering  <meyering@ascend.com>
91013
91014         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91015         instead of "TZ=America/Vancouver".  From Paul Eggert.
91016
91017 1998-10-11  Jim Meyering  <meyering@ascend.com>
91018
91019         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91020         This adds a test for a recently added compatibility fix for mktime.c.
91021         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91022
91023 1998-09-27  Jim Meyering  <meyering@ascend.com>
91024
91025         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91026
91027         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91028         ../configure.in, including a change from Gordon Matzigkeit to allow
91029         cross-compiling for the Hurd.
91030
91031         * m4/glibc.m4: New file/macro to test for the GNU C Library
91032         versions 1 and 2.  From Gordon Matzigkeit.
91033         Indent.
91034
91035 1998-09-21  Jim Meyering  <meyering@ascend.com>
91036
91037         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91038
91039 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91040
91041         Port nanosecond-resolution times to UnixWare 2.1.2 and
91042         pedantic Solaris 2.6.
91043
91044         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91045         AC_STRUCT_ST_MTIM.
91046         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91047         Generate name of ns member, instead of just 1 or undef.
91048         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91049
91050 1998-08-15  Jim Meyering  <meyering@ascend.com>
91051
91052         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91053         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91054         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91055         instead of jm_TYPE_SSIZE_T.
91056
91057 1998-08-12  Jim Meyering  <meyering@ascend.com>
91058
91059         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91060
91061 1998-08-02  Jim Meyering  <meyering@ascend.com>
91062
91063         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91064         in acconfig.h manually.
91065
91066 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91067
91068         * m4/st_mtim.m4: New file.
91069
91070 1998-07-28  Jim Meyering  <meyering@ascend.com>
91071
91072         * m4/utimes.m4: Undef stat.
91073
91074 1998-07-25  Jim Meyering  <meyering@ascend.com>
91075
91076         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91077         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91078
91079 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91080
91081         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91082         uid and gid actually remain unchanged.
91083
91084 1998-07-07  Jim Meyering  <meyering@ascend.com>
91085
91086         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91087
91088 1998-07-04  Jim Meyering  <meyering@ascend.com>
91089
91090         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91091         to prove that this macro can be used in packages without regex.c.
91092
91093 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91094
91095         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91096         is to be used.
91097
91098 1998-07-03  Jim Meyering  <meyering@ascend.com>
91099
91100         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91101
91102         * m4/gettext.m4: New file -- from gettext-0.10.35.
91103         * m4/lcmessage.m4: Likewise.
91104         * m4/progtest.m4: Likewise.
91105
91106         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91107         * m4/jm-macros.m4: Require the new macro.
91108
91109 1998-06-29  Jim Meyering  <meyering@ascend.com>
91110
91111         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91112         for the definition of NGROUPS (used in a system header included
91113         by sys/mount.h).
91114
91115 1998-06-28  Jim Meyering  <meyering@ascend.com>
91116
91117         * m4/ls-mntd-fs.m4: New file.
91118         * m4/fstypename.m4: New file.
91119
91120         * m4/jm-macros.m4: Require the new macro.
91121         * m4/jm-glibc-io.m4: New file.
91122
91123 1998-05-19  Jim Meyering  <meyering@ascend.com>
91124
91125         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91126         * m4/lchown.m4: New file.
91127
91128         * m4/Makefile.am.in: New file.
91129         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91130
91131 1998-05-14  Jim Meyering  <meyering@ascend.com>
91132
91133         * m4/Makefile.am (EXTRA_DIST): Add them.
91134         * m4/jm-macros.m4: New file.
91135         * m4/utimbuf.m4: New file.
91136
91137 1998-05-12  Jim Meyering  <meyering@ascend.com>
91138
91139         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91140
91141 1998-05-11  Jim Meyering  <meyering@ascend.com>
91142
91143         * m4/isc-posix.m4: New file.
91144
91145 1998-05-10  Jim Meyering  <meyering@ascend.com>
91146
91147         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91148
91149 1998-05-09  Jim Meyering  <meyering@ascend.com>
91150
91151         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91152         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91153         with automake.
91154
91155         * m4/ssize_t.m4: New file.
91156         * m4/mktime.m4: Remove file -- the new automake has this now.
91157
91158 1998-04-26  Jim Meyering  <meyering@ascend.com>
91159
91160         * m4/assert.m4: New file.
91161         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91162
91163 1998-04-05  Jim Meyering  <meyering@ascend.com>
91164
91165         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91166         (jm_PREREQ): Use it here.
91167
91168 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91169
91170         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91171         in acconfig.h.
91172
91173 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91174
91175         * m4/prereq.m4: New file.
91176         * m4/error.m4: New file.
91177         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91178
91179 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91180
91181         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91182         cache-check for the same variable -- that defeated the purpose of
91183         the test; the test program was never run.  This was a problem only
91184         on systems with losing getline functions -- HP-UX 10.20 is one.
91185         Reported by Bjorn Helgaas.
91186
91187 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91188
91189         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91190
91191 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91192
91193         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91194
91195         * m4/const.m4: New file.  Use an initializer in this declaration
91196         typedef int charset[2]; const charset x;
91197         Reported by Bob Glickstein.
91198
91199 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91200
91201         * m4/chown.m4: Fix reversed types on -1 args to chown.
91202         From Kaveh Ghazi.
91203
91204 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91205
91206         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91207         Add lseek and memchr.
91208
91209         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91210         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91211         have a 20-character limit on names.
91212
91213 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91214
91215         * m4/inttypes_h.m4: New file.
91216         * m4/uintmax_t.m4: New file.
91217         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91218
91219
91220         -----
91221
91222         Local Variables:
91223         coding: utf-8
91224         End:
91225
91226         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91227
91228         Copying and distribution of this file, with or without
91229         modification, are permitted provided the copyright notice
91230         and this notice are preserved.